/* ═══════════════════════════════════════════════════════════════
   GEPYR Landing — styles.css
   Apple-inspired: large typography, generous whitespace,
   restrained motion, warm brand palette.
   ═══════════════════════════════════════════════════════════════ */

/* ── Font ── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('../src/frontend/vendor/fonts/inter-latin.woff2') format('woff2');
}

/* ── Tokens ── */
:root {
    --bg:             #faf9f7;
    --bg-elevated:    #ffffff;
    --bg-sunken:      #f3f1ed;
    --text-primary:   #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary:  #86868b;
    --accent:         #572828;
    --accent-hover:   #6b3535;
    --accent-subtle:  rgba(87, 40, 40, 0.06);
    --gold:           #b58d53;
    --green:          #2d6a2e;
    --border:         rgba(0, 0, 0, 0.06);
    --border-strong:  rgba(0, 0, 0, 0.10);
    --shadow-sm:      0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md:      0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg:      0 16px 48px rgba(0, 0, 0, 0.08);
    --shadow-xl:      0 24px 64px rgba(0, 0, 0, 0.10);
    --radius:         14px;
    --radius-lg:      22px;
    --radius-xl:      30px;
    --ease:           cubic-bezier(0.25, 0.1, 0.25, 1);
    --duration:       0.4s;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::selection {
    background: rgba(87, 40, 40, 0.15);
    color: var(--text-primary);
}

/* ═══════════ NAVBAR ═══════════ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    transition: background var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
}

#navbar.scrolled {
    background: rgba(250, 249, 247, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 0.5px 0 var(--border);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.2px;
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-logo img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0;
    transition: color var(--duration) var(--ease);
}

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

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

.btn-enter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 1.1rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 980px;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0;
    transition: background var(--duration) var(--ease), opacity var(--duration);
}

.btn-enter:hover {
    background: var(--accent-hover);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 18px;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(8.25px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-8.25px) rotate(-45deg);
}

/* ═══════════ MOBILE MENU ═══════════ */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(29, 29, 31, 0.92);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s var(--ease);
}

.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    transition: color 0.3s;
}

.mobile-link:hover {
    color: #fff;
}

.mobile-enter {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 0.7rem 2.2rem;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-enter:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* ═══════════ HERO ═══════════ */
#hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 10rem 2rem 8rem;
    background: var(--bg);
    overflow: hidden;
}

.hero-inner {
    max-width: 720px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.6rem;
    opacity: 0;
    animation: heroFadeUp 1s var(--ease) 0.1s forwards;
}

#hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: 1.8rem;
    opacity: 0;
    animation: heroFadeUp 1s var(--ease) 0.25s forwards;
}

.hero-accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 400;
    max-width: 520px;
    margin: 0 auto 2.8rem;
    letter-spacing: -0.1px;
    opacity: 0;
    animation: heroFadeUp 1s var(--ease) 0.4s forwards;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: heroFadeUp 1s var(--ease) 0.55s forwards;
}

.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-sunken));
    pointer-events: none;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════ BUTTONS ═══════════ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.8rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 980px;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0;
    border: none;
    cursor: pointer;
    transition: background var(--duration) var(--ease),
                transform 0.2s var(--ease);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.8rem;
    background: transparent;
    color: var(--accent);
    text-decoration: none;
    border-radius: 980px;
    font-size: 0.88rem;
    font-weight: 400;
    border: none;
    cursor: pointer;
    transition: color var(--duration), background var(--duration);
}

.btn-secondary:hover {
    background: var(--accent-subtle);
}

.btn-lg {
    padding: 0.78rem 2rem;
    font-size: 0.92rem;
}

.btn-full {
    width: 100%;
}

/* ═══════════ SECTIONS ═══════════ */
.section-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-narrow {
    max-width: 740px;
}

.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-top: 1.2rem;
    font-weight: 400;
}

/* ═══════════ FEATURES ═══════════ */
#features {
    padding: 8rem 0;
    background: var(--bg-sunken);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature-card {
    background: var(--bg-elevated);
    padding: 2.2rem 1.8rem;
    transition: background var(--duration) var(--ease);
}

.feature-card:hover {
    background: #fdfcfb;
}

.feature-icon {
    width: 42px;
    height: 42px;
    background: var(--accent-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.4rem;
    transition: background var(--duration), transform var(--duration);
}

.feature-card:hover .feature-icon {
    background: var(--accent);
    transform: scale(1.05);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    transition: color var(--duration);
}

.feature-card:hover .feature-icon svg {
    color: #fff;
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.1px;
    margin-bottom: 0.45rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.55;
    font-weight: 400;
}

/* ═══════════ HOW IT WORKS ═══════════ */
#how-it-works {
    padding: 8rem 0;
    background: var(--bg);
}

.steps-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}

.step-card {
    flex: 1;
    max-width: 320px;
    text-align: center;
    padding: 3rem 2rem;
}

.step-number {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
    color: var(--accent);
    opacity: 0.2;
    margin-bottom: 1.4rem;
    transition: opacity var(--duration);
}

.step-card:hover .step-number {
    opacity: 0.45;
}

.step-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

.step-divider {
    width: 1px;
    background: var(--border-strong);
    margin: 2rem 0;
    flex-shrink: 0;
}

/* ═══════════ PRICING ═══════════ */
#pricing {
    padding: 8rem 0;
    background: var(--bg-sunken);
}

.pricing-card {
    max-width: 440px;
    margin: 0 auto;
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2.5rem 3rem;
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    transition: box-shadow var(--duration) var(--ease),
                transform var(--duration) var(--ease);
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.pricing-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 2rem;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.4rem;
}

.price-symbol {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 2px;
    align-self: flex-start;
    margin-top: 0.8rem;
}

.price-integer {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -3px;
    color: var(--text-primary);
}

.price-decimal {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.price-period {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    font-weight: 400;
    margin-left: 4px;
}

.pricing-divider {
    width: 40px;
    height: 1px;
    background: var(--border-strong);
    margin: 2rem auto;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-primary);
}

.pricing-features li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--green);
    stroke-width: 2.5;
}

.pricing-note {
    margin-top: 1rem;
    font-size: 0.76rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

/* ═══════════ FAQ ═══════════ */
#faq {
    padding: 8rem 0;
    background: var(--bg);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.3rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    gap: 2rem;
    letter-spacing: -0.1px;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-tertiary);
    transition: transform 0.4s var(--ease), color 0.3s;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease);
}

.faq-item.open .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding-bottom: 1.3rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 400;
}

/* ═══════════ CTA FINAL ═══════════ */
#cta-final {
    padding: 4rem 0 8rem;
    background: var(--bg);
}

.cta-block {
    text-align: center;
    padding: 5rem 2rem;
    background: var(--text-primary);
    border-radius: var(--radius-xl);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.12;
    pointer-events: none;
}

.cta-block::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.06;
    pointer-events: none;
}

.cta-block h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
}

.cta-block p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2.2rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    font-weight: 400;
}

.cta-block .btn-primary {
    background: #fff;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
}

.cta-block .btn-primary:hover {
    background: rgba(255, 255, 255, 0.88);
}

/* ═══════════ FOOTER ═══════════ */
#footer {
    padding: 0 2rem;
    background: var(--bg);
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

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

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 400;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom p {
    font-size: 0.76rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

/* ═══════════ SCROLL-REVEAL ═══════════ */
[data-animate] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    #hero {
        padding: 8rem 1.5rem 5rem;
        min-height: auto;
    }

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

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }

    .step-card {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }

    .step-divider {
        width: 40px;
        height: 1px;
        margin: 0;
    }

    .pricing-card {
        padding: 3rem 1.8rem 2.5rem;
    }

    .price-integer {
        font-size: 4rem;
    }

    .cta-block {
        padding: 3.5rem 1.5rem;
        border-radius: var(--radius-lg);
    }

    #features,
    #how-it-works,
    #pricing,
    #faq {
        padding: 5.5rem 0;
    }

    .section-header {
        margin-bottom: 3.5rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .nav-inner {
        height: 48px;
    }

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

    .hero-ctas .btn-primary,
    .hero-ctas .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.6rem;
    }
}
