/* ═══════════════════════════════════════════════════
   Huntly Marketing Website — Global Styles
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --green: #22c55e;
    --green-dark: #16a34a;
    --green-dim: #14532d;
    --green-glow: rgba(34, 197, 94, .18);
    --orange: #f97316;
    --purple: #a855f7;
    --bg: #0b1223;
    --bg2: #0f172a;
    --panel: #111827;
    --panel2: #1f2937;
    --border: #1e293b;
    --border2: #374151;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --muted2: #64748b;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 4px 24px rgba(0, 0, 0, .4);
    --shadow-green: 0 8px 32px rgba(34, 197, 94, .25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ── Typography ── */
h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ── Layout ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-sm {
    padding: 48px 0;
}

/* ── Navbar ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 18, 35, .85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 16px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text);
}

.nav-logo .dot {
    color: var(--green);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: color .2s, background .2s;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--panel2);
}

.nav-links a.active {
    color: var(--green);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: background .2s, transform .15s, box-shadow .2s;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-green);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: 8px;
    border-radius: 8px;
}

.nav-hamburger:hover {
    background: var(--panel2);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all .2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 4px 16px rgba(34, 197, 94, .3);
}

.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border2);
}

.btn-outline:hover {
    border-color: var(--green);
    color: var(--green);
    background: rgba(34, 197, 94, .06);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
    border-radius: var(--radius);
}

/* ── Badge / pill ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.badge-green {
    background: rgba(34, 197, 94, .12);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, .25);
}

.badge-orange {
    background: rgba(249, 115, 22, .12);
    color: var(--orange);
    border: 1px solid rgba(249, 115, 22, .25);
}

.badge-purple {
    background: rgba(168, 85, 247, .12);
    color: var(--purple);
    border: 1px solid rgba(168, 85, 247, .25);
}

/* ── Cards ── */
.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}

.card:hover {
    border-color: rgba(34, 197, 94, .4);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(34, 197, 94, .12);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.card-icon-green {
    background: rgba(34, 197, 94, .12);
}

.card-icon-orange {
    background: rgba(249, 115, 22, .12);
}

.card-icon-purple {
    background: rgba(168, 85, 247, .12);
}

.card-icon-blue {
    background: rgba(59, 130, 246, .12);
}

/* ── Section headers ── */
.section-label {
    text-align: center;
    margin-bottom: 48px;
}

.section-label h2 {
    margin: 12px 0 8px;
}

.section-label p {
    max-width: 520px;
    margin: 0 auto;
}

/* ── Divider ── */
.divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border2), transparent);
    margin: 0;
}

/* ── Grid helpers ── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

/* ── Store badges ── */
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--panel);
    border: 1.5px solid var(--border2);
    border-radius: var(--radius);
    transition: border-color .2s, transform .2s;
}

.store-badge:hover {
    border-color: var(--green);
    transform: translateY(-2px);
}

.store-badge .icon {
    font-size: 28px;
}

.store-badge .label {
    line-height: 1.2;
}

.store-badge .sub {
    font-size: 11px;
    color: var(--muted);
}

.store-badge .name {
    font-size: 16px;
    font-weight: 700;
}

/* ── App screenshot ── */
.screenshot {
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .5);
    width: 100%;
    height: auto;
    display: block;
}

/* ── Stats row ── */
.stats-row {
    display: flex;
    gap: 0;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    padding: 32px 40px;
    text-align: center;
    border-right: 1px solid var(--border);
    flex: 1;
    min-width: 160px;
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--green);
    display: block;
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

/* ── Feature row (image + text) ── */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse>* {
    direction: ltr;
}

.feature-text h2 {
    margin: 12px 0 16px;
}

.feature-text p {
    margin-bottom: 20px;
}

.feature-img-wrap {
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

/* ── Steps ── */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}

.step:last-child {
    border-bottom: none;
}

.step-num {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--green-dim);
    border: 2px solid var(--green);
    color: var(--green);
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-body h3 {
    margin-bottom: 4px;
}

.step-body p {
    font-size: 14px;
}

/* ── Footer ── */
.site-footer {
    background: var(--panel);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 14px;
    margin-top: 12px;
    max-width: 260px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted2);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: var(--muted);
    font-size: 14px;
    transition: color .2s;
}

.footer-col a:hover {
    color: var(--green);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--muted2);
}

.footer-bottom a {
    color: var(--muted);
}

.footer-bottom a:hover {
    color: var(--green);
}

/* ── FAQ Accordion ── */
.faq-item {
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    gap: 16px;
}

.faq-question:hover {
    color: var(--green);
}

.faq-chevron {
    transition: transform .3s;
    font-size: 18px;
    color: var(--muted);
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--green);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .3s;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer-inner {
    padding: 0 0 20px;
    font-size: 14px;
}

.faq-answer-inner a {
    color: var(--green);
}

/* ── Glow BG decoration ── */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.glow-green {
    background: rgba(34, 197, 94, .15);
}

.glow-orange {
    background: rgba(249, 115, 22, .1);
}

.glow-purple {
    background: rgba(168, 85, 247, .1);
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-row.reverse {
        direction: ltr;
    }

    .feature-img-wrap {
        max-width: 240px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        padding: 24px 20px;
        min-width: 120px;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--panel);
        border-bottom: 1px solid var(--border);
        padding: 12px 20px;
        gap: 4px;
    }

    .nav-hamburger {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stats-row {
        flex-direction: column;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .section {
        padding: 56px 0;
    }

    h1 {
        font-size: 2rem;
    }
}

/* ── Animations ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeup {
    animation: fadeUp .6s ease both;
}

.delay-1 {
    animation-delay: .1s;
}

.delay-2 {
    animation-delay: .2s;
}

.delay-3 {
    animation-delay: .3s;
}

.delay-4 {
    animation-delay: .4s;
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s, transform .6s;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}