/* --- 1. Global Styles & ScrapingBee Theme --- */
:root {
    --brand-yellow: #ffc600;
    --background-main: #ffc600;
    --background-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #404040;
    --border-color: #e0e0e0;
    --code-bg: #f5f5f5;
    --code-text: #2d2d2d;
    --shadow-color: rgba(0, 0, 0, 0.05);
    --nav-height: 80px;
    --angle: 5vw; /* Controls the steepness of the diagonal divider */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--background-main);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1.1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- 2. Navigation Bar --- */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
    font-size: 1rem;
    font-weight: 600;
}
/* .main-nav .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
} */
.main-nav .nav-links {
    display: none; /* Hidden on mobile */
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}
.main-nav .nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: normal;
}
.main-nav .nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.main-nav .nav-actions .btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--text-primary);
}
/* Dropdown Menu */
.dropdown {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--text-primary);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    list-style: none;
    width: 200px;
    z-index: 10;
}
.dropdown-menu::before { /* Triangle */
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-bottom-color: var(--text-primary);
}
.dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li {
    padding: 0.5rem 0;
}
.dropdown-menu a {
    color: white !important;
    text-decoration: underline !important;
}

@media (max-width: 1024px) {
    .main-nav .nav-links { display: none; }
}
@media (min-width: 1024px) {
        .main-nav .nav-links { display: flex; }
}

/* --- 3. Typography & Links --- */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
}
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}
h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1.5rem;
}
h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    max-width: 65ch;
}
a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}
a.btn:hover {
    text-decoration: none;
}

/* --- 4. Layout & Sections --- */
.section {
    padding: 6rem 0;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header .eyebrow {
    display: inline-block;
    font-weight: 700;
    background: rgba(0,0,0,0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.grid-layout {
    display: grid;
    gap: 2.5rem;
}
@media (min-width: 992px) {
    .grid-layout.two-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-layout.balanced-columns {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* Diagonal Section Divider */
.diagonal-top {
    background-color: #fff;
    margin-top: calc(-1 * var(--angle));
    padding-top: calc(6rem + var(--angle));
    clip-path: polygon(0 var(--angle), 100% 0, 100% 100%, 0% 100%);
}

/* --- 5. Components --- */
/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0 6rem 0;
}
.hero .subtitle {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    color: var(--text-secondary);
}
.hero .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid var(--text-primary);
}
.btn-primary {
    background-color: var(--text-primary);
    color: var(--background-main);
    font-weight: normal;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    font-weight: normal;
}
.btn-secondary:hover {
    background-color: rgba(0,0,0,0.05);
    transform: translateY(-3px);
}

/* General Card Style */
.card {
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2.5rem;
    box-shadow: 0 4px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Protocol Feature Cards */
.protocol-feature-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-yellow);
}
.protocol-feature-card .icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.protocol-feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
}
.protocol-feature-card p {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

/* Tool List Styling */
.tool-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.tool-name {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: "SF Mono", "Fira Code", monospace;
    line-height: 1.4;
    word-break: break-all;
}
.tool-tag {
    background-color: var(--brand-yellow);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    color: var(--text-primary);
    border: 1px solid rgba(0,0,0,0.1);
    white-space: nowrap;
    margin-top: 2px;
}

/* Code & Connection Section */
.tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}
.tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}
.tab:hover { color: var(--text-primary); }
.tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--brand-yellow);
}
.tab-content { display: none; }
.tab-content.active { display: block; }

pre {
    background-color: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    font-family: "SF Mono", "Fira Code", monospace;
    font-size: 0.9rem;
    color: var(--code-text);
    position: relative;
    max-height: 450px;
    overflow: auto;
}
pre::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
pre::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
pre::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
pre::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
.copy-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Final CTA Section */
#cta .subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

/* Additional Changes */
.main-nav .logo img {
    height: 26px; /* Controls the height of the logo */
    display: block; /* Ensures proper alignment and spacing */
}