/* ========================================
   THE AGENT BROS — Styles
   ======================================== */

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'DM Sans', sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea { font: inherit; color: inherit; }

/* --- CSS Variables --- */
:root {
    --dark-teal: #264653;
    --teal: #2a9d8f;
    --gold: #e9c46a;
    --orange: #f4a261;
    --coral: #e76f51;

    --nav-height: 72px;
    --container: 1160px;
    --container-narrow: 680px;
    --radius: 10px;
    --radius-lg: 16px;
    --transition: 0.3s ease;
}

/* --- Dark Theme (default) --- */
[data-theme="dark"] {
    --bg: #0f1923;
    --bg-alt: #141f2b;
    --bg-card: #182635;
    --bg-card-hover: #1d2f40;
    --text: #e4e2dd;
    --text-secondary: #8a9da8;
    --text-muted: #5a7080;
    --border: rgba(255,255,255,0.07);
    --border-strong: rgba(255,255,255,0.12);
    --nav-bg: rgba(15,25,35,0.85);
    --input-bg: #1a2836;
    --shadow: 0 2px 20px rgba(0,0,0,0.3);
    color-scheme: dark;
}

/* --- Light Theme --- */
[data-theme="light"] {
    --bg: #faf9f6;
    --bg-alt: #f0efeb;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f7f4;
    --text: #1a2a36;
    --text-secondary: #4a6670;
    --text-muted: #7a9098;
    --border: rgba(38,70,83,0.08);
    --border-strong: rgba(38,70,83,0.15);
    --nav-bg: rgba(250,249,246,0.88);
    --input-bg: #f5f4f0;
    --shadow: 0 2px 20px rgba(0,0,0,0.06);
    color-scheme: light;
}

body {
    background: var(--bg);
    color: var(--text);
    transition: background var(--transition), color var(--transition);
}

/* --- Typography --- */
.label {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--teal);
    margin-bottom: 1rem;
}

.section-headline {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.section-sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.hide-mobile { display: inline; }
.show-mobile { display: none; }

/* --- Layout --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
}

.section-alt {
    background: var(--bg-alt);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius);
    padding: 12px 24px;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; }

.btn-primary {
    background: var(--coral);
    color: #fff;
}
.btn-primary:hover {
    background: #d4603f;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border-strong);
}
.btn-outline:hover {
    border-color: var(--coral);
    color: var(--coral);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover {
    color: var(--text);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.08em;
    color: var(--text);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}
.nav-links a:hover {
    color: var(--text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
}
.theme-toggle:hover {
    background: var(--border);
}

.theme-icon {
    width: 18px;
    height: 18px;
}

[data-theme="dark"] .theme-icon.sun { display: block; }
[data-theme="dark"] .theme-icon.moon { display: none; }
[data-theme="light"] .theme-icon.sun { display: none; }
[data-theme="light"] .theme-icon.moon { display: block; }

/* Hamburger */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}
.nav-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 24px;
    flex-direction: column;
    gap: 1rem;
}
.mobile-menu.active {
    display: flex;
}
.mobile-menu a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
}
[data-theme="light"] .hero-canvas {
    opacity: 0.05;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 80px 24px 120px;
}

.hero-headline {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.08;
    margin-bottom: 1.5rem;
}

.hero-accent {
    display: inline-block;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: cover;
    background-position: center;
}

.hero-sub {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.arrow-down {
    display: inline-block;
    animation: bobDown 2s ease-in-out infinite;
}

@keyframes bobDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* --- Cards (What We Do) --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    overflow: hidden;
    transition: all var(--transition);
}
.card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.card-icon {
    font-size: 28px;
    margin-bottom: 1rem;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --- Steps (How It Works) --- */
.steps {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}
.step:first-child {
    border-top: 1px solid var(--border);
}

.step-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 56px;
    line-height: 1;
    color: var(--text-muted);
    flex-shrink: 0;
    width: 80px;
    opacity: 0.5;
}

.step-body {
    padding-top: 8px;
}

.step-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 0.75rem;
}

.step-text {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
}

/* --- Pricing --- */
.early-adopter {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--teal);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
    cursor: pointer;
    transition: all var(--transition);
}
.early-adopter:hover {
    background: var(--bg-card-hover);
    border-color: var(--coral);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.early-adopter-badge {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    background: var(--teal);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.early-adopter p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.pricing-featured {
    border-color: var(--coral);
}

.pricing-top {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.pricing-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--coral);
    margin-bottom: 0.5rem;
}

.pricing-tier {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 24px;
    margin-bottom: 0.25rem;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-list {
    margin-bottom: 1.5rem;
    flex: 1;
}

.pricing-list li {
    font-size: 15px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 1.25rem;
    position: relative;
}
.pricing-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-size: 13px;
}

.pricing-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 1.5rem;
    padding: 12px;
    background: rgba(233,196,106,0.08);
    border-radius: 8px;
    line-height: 1.5;
}

/* --- Plan Tag --- */
.plan-tag {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    animation: tagPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.plan-tag.active {
    display: inline-flex;
}

.plan-tag-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    background: var(--teal);
    padding: 8px 16px;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

.plan-tag-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    color: var(--text-muted);
    transition: all var(--transition);
}
.plan-tag-close:hover {
    background: var(--border);
    color: var(--text);
}

@keyframes tagPop {
    0% { opacity: 0; transform: scale(0.8) translateY(8px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- Contact Form --- */
.form {
    margin-top: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 16px;
    transition: border-color var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-success {
    display: none;
    text-align: center;
    padding: 3rem 0;
}
.form-success.active {
    display: block;
}

.form-success-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.form-success h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.08em;
}

.footer-location {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}
.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color var(--transition);
}
.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* --- Reveal Animation --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }

    .nav-links { display: none; }
    .nav-actions .btn { display: none; }
    .nav-burger { display: flex; }

    .hero-content { padding: 60px 24px 80px; }

    .hide-mobile { display: none; }
    .show-mobile { display: inline; }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        gap: 0.75rem;
    }
    .step-num {
        font-size: 40px;
        width: auto;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .early-adopter {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
}
