/* === Custom Properties === */
:root {
    --green-900: #0A1F0C;
    --green-800: #0F2B12;
    --green-700: #1A4D20;
    --green-600: #22692A;
    --green-500: #2B8534;
    --green-400: #3DA348;
    --green-300: #62C971;
    --green-200: #A8E5B0;
    --green-100: #D4F2D8;
    --green-50:  #EEF9EF;
    --cream:     #FAFAF6;
    --text:      #1B2417;
    --text-mid:  #4A5A4C;
    --text-muted:#5C6D5E;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.05), 0 16px 40px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08), 0 32px 64px rgba(0,0,0,0.1);
    --shadow-phone: 0 20px 60px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.1);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* === Focus & Accessibility === */
*:focus-visible {
    outline: 2px solid var(--green-500);
    outline-offset: 3px;
    border-radius: 4px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 200;
    padding: 12px 24px;
    background: var(--green-600);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 14px;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 12px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .fade-in {
        opacity: 1;
        transform: none;
    }

    .hero-eyebrow,
    .hero h1,
    .hero-sub,
    .hero-actions,
    .hero-phones {
        opacity: 1;
    }
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Animations === */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease-out),
                transform 0.7s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children in grids */
.fade-in.visible:nth-child(2) { transition-delay: 0.08s; }
.fade-in.visible:nth-child(3) { transition-delay: 0.16s; }
.fade-in.visible:nth-child(4) { transition-delay: 0.24s; }
.fade-in.visible:nth-child(5) { transition-delay: 0.32s; }
.fade-in.visible:nth-child(6) { transition-delay: 0.4s; }

/* === Navigation === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 246, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled {
    border-bottom-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.nav-wordmark {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-mid);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:not(.nav-cta):hover {
    color: var(--text);
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--green-500);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--green-600);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(34, 105, 42, 0.25);
}

.nav-cta:hover {
    background: var(--green-700) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 105, 42, 0.35) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* === Hero === */
.hero {
    padding: 140px 0 100px;
    background:
        radial-gradient(ellipse 70% 50% at 65% 40%, rgba(43, 133, 52, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 20% 80%, rgba(43, 133, 52, 0.04) 0%, transparent 60%),
        var(--cream);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-600);
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out) 0.1s forwards;
}

.hero h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out) 0.2s forwards;
}

.hero-sub {
    font-size: 19px;
    line-height: 1.55;
    color: var(--text-mid);
    margin-bottom: 36px;
    max-width: 460px;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out) 0.35s forwards;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeUp 0.7s var(--ease-out) 0.5s forwards;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.app-store-badge:hover {
    transform: scale(1.04);
    opacity: 0.9;
}

.hero-platform {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    padding-left: 16px;
    border-left: 2px solid var(--green-200);
}

/* Hero phone composition */
.hero-phones {
    position: relative;
    height: 520px;
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) 0.4s forwards;
}

.hero-phone {
    position: absolute;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-phone);
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s var(--ease-out);
}

.hero-phone-front {
    width: 260px;
    height: 490px;
    left: 10%;
    top: 20px;
    z-index: 2;
    transform: rotate(-3deg);
}

.hero-phone-back {
    width: 240px;
    height: 460px;
    right: 5%;
    top: 0;
    z-index: 1;
    transform: rotate(5deg);
    opacity: 0.92;
}

.hero-phones:hover .hero-phone-front {
    transform: rotate(-1.5deg) translateY(-6px);
}

.hero-phones:hover .hero-phone-back {
    transform: rotate(3deg) translateY(-6px);
}

/* === Features === */
.features {
    padding: 100px 0;
    background: #fff;
}

.section-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 56px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 36px 30px;
    transition: box-shadow 0.4s ease, transform 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--green-100) 0%, var(--green-50) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--green-600);
}

.feature-card h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.6;
}

/* === Screenshots === */
.screenshots {
    padding: 100px 0;
    background: var(--cream);
    overflow: hidden;
}

.screenshots-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 16px 24px 32px;
    scrollbar-width: none;
}

.screenshots-scroll::-webkit-scrollbar {
    display: none;
}

.screenshots-track {
    display: flex;
    gap: 24px;
    padding: 8px 0;
    width: max-content;
    margin: 0 auto;
}

.screenshots-track img {
    width: 280px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    scroll-snap-align: center;
    flex-shrink: 0;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.screenshots-track img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* === Enterprise === */
.enterprise {
    padding: 100px 0;
    background: var(--green-800);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.enterprise::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(98, 201, 113, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.enterprise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.enterprise-eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-300);
    margin-bottom: 16px;
}

.enterprise h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: #fff;
}

.enterprise-sub {
    font-size: 18px;
    color: var(--green-200);
    margin-bottom: 24px;
    line-height: 1.5;
}

.enterprise-text > p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    line-height: 1.65;
}

.enterprise-features {
    list-style: none;
    margin-bottom: 36px;
}

.enterprise-features li {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.enterprise-features li:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.enterprise-features li strong {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 3px;
}

.enterprise-features li span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    font-family: 'Figtree', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--green-600);
    color: #fff;
    box-shadow: 0 2px 12px rgba(34, 105, 42, 0.3);
}

.btn-primary:hover {
    background: var(--green-500);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(34, 105, 42, 0.4);
}

.enterprise .btn-primary {
    background: #fff;
    color: var(--green-800);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.enterprise .btn-primary:hover {
    background: var(--green-50);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.enterprise-image {
    position: relative;
}

.enterprise-image img {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-md);
    box-shadow:
        0 0 80px rgba(98, 201, 113, 0.1),
        0 20px 60px rgba(0, 0, 0, 0.35);
    margin: 0 auto;
}

/* === Privacy Policy === */
.privacy {
    padding: 140px 0 100px;
    background: var(--cream);
}

.privacy h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.privacy-effective {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.privacy h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 14px;
}

.privacy p {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 16px;
    max-width: 720px;
}

.privacy a {
    color: var(--green-500);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--green-200);
    transition: text-decoration-color 0.2s ease;
}

.privacy a:hover {
    text-decoration-color: var(--green-500);
}

/* === Footer === */
.footer {
    background: var(--green-900);
    color: #d1d5db;
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.footer-wordmark {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-download {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
    margin-bottom: 4px;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* === Responsive: Tablet === */
@media (max-width: 1023px) {
    .hero {
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-sub {
        font-size: 17px;
    }

    .hero-phones {
        height: 440px;
    }

    .hero-phone-front {
        width: 220px;
        height: 420px;
    }

    .hero-phone-back {
        width: 200px;
        height: 390px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 32px;
    }

    .enterprise h2 {
        font-size: 32px;
    }

    .enterprise-grid {
        gap: 40px;
    }
}

/* === Responsive: Mobile === */
@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: rgba(250, 250, 246, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 20px 24px 28px;
        gap: 16px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-cta {
        text-align: center;
        width: 100%;
    }

    .hero {
        padding: 110px 0 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-sub {
        font-size: 17px;
        max-width: none;
    }

    .hero-actions {
        flex-direction: column;
        gap: 8px;
    }

    .hero-platform {
        border-left: none;
        padding-left: 0;
    }

    .hero-phones {
        height: 340px;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }

    .hero-phone-front {
        width: 190px;
        height: 360px;
        left: 5%;
    }

    .hero-phone-back {
        width: 170px;
        height: 330px;
        right: 5%;
    }

    .features {
        padding: 64px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 36px;
    }

    .feature-card {
        padding: 28px 24px;
    }

    .screenshots {
        padding: 64px 0;
    }

    .screenshots-track img {
        width: 240px;
    }

    .enterprise {
        padding: 64px 0;
    }

    .enterprise-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .enterprise h2 {
        font-size: 28px;
    }

    .enterprise-image {
        order: -1;
    }

    .enterprise-image img {
        max-width: 340px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-download {
        justify-content: center;
    }

    .privacy {
        padding: 110px 0 64px;
    }

    .privacy h1 {
        font-size: 32px;
    }

    .privacy h2 {
        font-size: 20px;
    }
}
