/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #0D0D0D;
    color: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === Typography === */
h1, h2, h3 { font-weight: 600; }
.accent { color: #D4A574; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #D4A574;
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    border: 1px solid #262626;
    border-radius: 100px;
}
.section-header h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-desc { color: #A0A0A0; font-size: 1.1rem; max-width: 540px; margin: 0 auto; }

/* === Nav === */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1rem 2rem;
    background: rgba(13,13,13,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #262626;
}
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 0.95rem; letter-spacing: 0.35em; font-weight: 600; }
.logo-pro { color: #D4A574; }
.nav-cta {
    font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: #D4A574; text-decoration: none;
    padding: 0.5rem 1.2rem; border: 1px solid #D4A574; border-radius: 6px;
    transition: all 0.3s;
}
.nav-cta:hover { background: #D4A574; color: #0D0D0D; }

/* === Hero === */
.hero {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 8rem 2rem 4rem; position: relative;
    text-align: center;
}
.hero-viewfinder {
    position: relative; width: min(90vw, 600px); aspect-ratio: 2.39/1;
    margin-bottom: 3rem;
}
.vf-frame {
    position: absolute; inset: 0;
    border: 1px solid rgba(212,165,116,0.4);
    border-radius: 2px;
}
.vf-corner { position: absolute; width: 20px; height: 20px; }
.vf-corner::before, .vf-corner::after { content: ''; position: absolute; background: #D4A574; }
.vf-corner::before { width: 20px; height: 1.5px; }
.vf-corner::after { width: 1.5px; height: 20px; }
.tl { top: -1px; left: -1px; }
.tr { top: -1px; right: -1px; }
.tr::before { right: 0; }
.tr::after { right: 0; }
.bl { bottom: -1px; left: -1px; }
.bl::before { bottom: 0; }
.bl::after { bottom: 0; }
.br { bottom: -1px; right: -1px; }
.br::before { right: 0; bottom: 0; }
.br::after { right: 0; bottom: 0; }

.vf-ratio, .vf-camera, .vf-lens, .vf-compass, .vf-wb {
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #8A8A8A;
    letter-spacing: 0.05em;
}
.vf-ratio { bottom: -1.6rem; left: 50%; transform: translateX(-50%); }
.vf-camera { top: -1.6rem; left: 0; color: #D4A574; }
.vf-lens { top: -1.6rem; right: 0; }
.vf-compass { bottom: -1.6rem; left: 0; color: #7B9EB8; }
.vf-wb { bottom: -1.6rem; right: 0; color: #E8C59B; }

.sun-arc { position: absolute; inset: 0; pointer-events: none; }
.arc-svg { width: 100%; height: 100%; }
.sun-dot { filter: drop-shadow(0 0 6px #E8C59B); }

/* hero-flare now handled by SVG glow following the sun */

.hero-text { max-width: 640px; }
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.25em;
    font-weight: 700;
    margin-bottom: 1rem;
}
.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: #C9B896;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}
.hero-sub {
    color: #A0A0A0;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto; margin-right: auto;
}

/* === Buttons === */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.6rem;
    padding: 0.9rem 2rem;
    background: #D4A574; color: #0D0D0D;
    font-weight: 600; font-size: 0.85rem;
    letter-spacing: 0.08em; text-transform: uppercase;
    text-decoration: none; border-radius: 8px;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(212,165,116,0.2);
}
.btn-primary:hover {
    background: #E8C59B;
    box-shadow: 0 0 50px rgba(212,165,116,0.35);
    transform: translateY(-1px);
}
.btn-large { padding: 1.1rem 2.5rem; font-size: 0.95rem; }

/* === Features === */
.features { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.feature-card {
    background: #1A1A1A;
    border: 1px solid #262626;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}
.feature-card:hover {
    border-color: #D4A574;
    box-shadow: 0 0 40px rgba(212,165,116,0.08);
    transform: translateY(-2px);
}
.feature-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #1A1A1A 0%, rgba(212,165,116,0.05) 100%);
    border-color: rgba(212,165,116,0.3);
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 0 2rem;
    align-items: start;
}
.feature-card.featured .feature-icon { grid-row: 1 / 3; align-self: center; }
.feature-card.featured .feature-tags { grid-column: 2; }
@media (max-width: 600px) {
    .feature-card.featured { grid-template-columns: 1fr; }
    .feature-card.featured .feature-icon { grid-row: auto; }
    .feature-card.featured .feature-tags { grid-column: 1; }
}
.feature-icon { margin-bottom: 1.2rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.feature-card p { color: #A0A0A0; font-size: 0.9rem; line-height: 1.6; }
.feature-tags { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.tag {
    font-size: 0.7rem; padding: 0.3rem 0.7rem;
    border-radius: 100px; background: #262626; color: #A0A0A0;
    font-family: 'JetBrains Mono', monospace; letter-spacing: 0.05em;
}
.tag.golden { background: rgba(201,168,108,0.15); color: #C9A86C; }
.tag.blue { background: rgba(74,107,138,0.15); color: #7B9EB8; }

/* === Database === */
.database {
    padding: 6rem 2rem;
    max-width: 1200px; margin: 0 auto;
}
.db-showcase {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
    margin-bottom: 4rem;
}
@media (max-width: 700px) { .db-showcase { grid-template-columns: 1fr; } }
.db-heading {
    font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase;
    color: #D4A574; margin-bottom: 1.2rem;
    font-family: 'JetBrains Mono', monospace;
}
.db-brands { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.brand-pill {
    padding: 0.45rem 0.9rem;
    background: #1A1A1A; border: 1px solid #262626; border-radius: 6px;
    font-size: 0.8rem; color: #C9B896;
    font-family: 'JetBrains Mono', monospace;
    transition: border-color 0.3s;
}
.brand-pill:hover { border-color: #D4A574; }
.brand-pill.more { color: #8A8A8A; border-style: dashed; }

.db-stats {
    display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
    padding: 3rem 0; border-top: 1px solid #262626;
}
.stat { text-align: center; }
.stat-num {
    display: block; font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700; color: #D4A574;
    font-family: 'JetBrains Mono', monospace;
}
.stat-label { font-size: 0.8rem; color: #8A8A8A; letter-spacing: 0.1em; text-transform: uppercase; }

/* === How It Works === */
.how-it-works { padding: 6rem 2rem; max-width: 1000px; margin: 0 auto; }
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; }
.step {
    padding: 2rem; border-left: 2px solid #262626;
    transition: border-color 0.3s;
}
.step:hover { border-color: #D4A574; }
.step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem; font-weight: 700;
    color: rgba(212,165,116,0.2); margin-bottom: 1rem;
}
.step h3 { font-size: 1rem; margin-bottom: 0.6rem; }
.step p { color: #A0A0A0; font-size: 0.85rem; line-height: 1.6; }

/* === CTA === */
.cta {
    padding: 8rem 2rem; text-align: center; position: relative;
    overflow: hidden;
}
.cta-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(212,165,116,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.5rem; }
.cta p { color: #A0A0A0; max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.7; }

/* === Footer === */
.footer {
    padding: 3rem 2rem; border-top: 1px solid #262626; text-align: center;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-logo { font-size: 0.8rem; letter-spacing: 0.35em; font-weight: 600; margin-bottom: 0.8rem; }
.footer-copy { color: #8A8A8A; font-size: 0.75rem; margin-bottom: 0.3rem; }
.footer-sub { color: #555; font-size: 0.7rem; }

/* === Animations === */
@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Fade-in on scroll */
/* === Feature Hero Sections === */
.feature-hero {
    padding: 6rem 5% 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-hero-text {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.feature-hero-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0.5rem 0 1rem;
}
.feature-hero-text p {
    color: #A0A0A0;
    font-size: 1.05rem;
    line-height: 1.6;
}
.feature-hero-img {
    text-align: center;
}
.feature-hero-img.wide img {
    width: 100%;
    max-width: 1100px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,165,116,0.1);
    display: block;
    margin: 0 auto;
}
.feature-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
}
.fstat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.fstat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #D4A574;
}
.fstat-label {
    font-size: 0.75rem;
    color: #6A6A6A;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* === Feature Duo (Two-up portrait cards) === */
.feature-duo {
    display: flex;
    gap: 40px;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.duo-card {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.duo-img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
    margin-bottom: 1.5rem;
}
.duo-img img {
    width: 100%;
    height: auto;
    display: block;
}
.duo-text h3 {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0.4rem 0 0.6rem;
}
.duo-text p {
    color: #A0A0A0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* === Feature Immersive (Full-bleed with text overlay) === */
.feature-immersive {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin: 4rem 0;
}
.feature-immersive-bg {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
}
.feature-immersive-bg img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: cover;
    opacity: 0.5;
}
.feature-immersive::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #0D0D0D 0%, rgba(13,13,13,0.3) 50%, rgba(13,13,13,0.7) 100%);
    pointer-events: none;
}
.feature-immersive-content {
    position: relative;
    z-index: 1;
    padding: 4rem 5% 5rem;
    max-width: 600px;
}
.feature-immersive-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0.5rem 0 1rem;
}
.feature-immersive-content p {
    color: #C0C0C0;
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .feature-duo { flex-direction: column; gap: 3rem; }
    .feature-immersive { min-height: 70vh; }
    .feature-stats { flex-wrap: wrap; gap: 1rem; }
}

.feature-card, .step, .stat, .brand-pill {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s;
}
.feature-card.visible, .step.visible, .stat.visible, .brand-pill.visible {
    opacity: 1; transform: translateY(0);
}
