/* ============================================================
   VULONE HOME V2 - clean, monochrome, restrained.
   Reference: x.ai / resend.com. No gimmicks.
   ============================================================ */

:root {
    --v2-bg: #0e0e0e;
    --v2-surface: #141414;
    --v2-line: rgba(255, 255, 255, 0.08);
    --v2-line-strong: rgba(255, 255, 255, 0.14);
    --v2-txt-1: #fafafa;
    --v2-txt-2: #a1a1aa;
    --v2-txt-3: #63636b;
    --v2-radius: 12px;
}

/* ---------- shared ---------- */

.v2-section {
    position: relative;
    padding: 7rem 1.5rem;
    background: var(--v2-bg);
}

.v2-container {
    max-width: 1080px;
    margin: 0 auto;
}

.v2-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--v2-txt-3);
    margin-bottom: 1.25rem;
}

.v2-h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--v2-txt-1);
}

.v2-sub {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--v2-txt-2);
}

/* ============================================================
   HERO
   ============================================================ */

.hv2-section {
    position: relative;
    padding: 11rem 1.5rem 6rem;
    background: transparent;
    text-align: center;
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Concentric rings */
.hv2-rings {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.hv2-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.hv2-ring-1 { width: 400px; height: 400px; }
.hv2-ring-2 { width: 700px; height: 700px; }
.hv2-ring-3 { width: 1000px; height: 1000px; }
.hv2-ring-4 { width: 1300px; height: 1300px; }
.hv2-ring-5 { width: 1600px; height: 1600px; }
.hv2-ring-6 { width: 1900px; height: 1900px; }
.hv2-ring-7 { width: 2200px; height: 2200px; }

.hv2-headline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.75rem, 6.5vw, 4.75rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.05;
    color: var(--v2-txt-1);
    max-width: 1000px;
    margin: 0 auto 1.5rem;
}

.hv2-sub {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.7;
    color: var(--v2-txt-2);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hv2-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 5rem;
}

.hv2-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    color: #000;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.hv2-cta-primary:hover {
    background: #e4e4e7;
}

.hv2-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--v2-line-strong);
    color: var(--v2-txt-1);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 8px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.hv2-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Centered hero (no screenshot frame) */
.hv2-hero-centered {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 900px;
}

.hv2-hero-centered .hv2-ctas {
    margin-bottom: 0;
}

/* Latest research box (above hero headline) */
.hv2-research-box {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    max-width: 100%;
    padding: 0.7rem 1.4rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--v2-line);
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hv2-research-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--v2-line-strong);
}

.hv2-research-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.hv2-research-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--v2-txt-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 480px;
}

.hv2-research-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--v2-txt-2);
}

/* product screenshot frame */
.hv2-frame {
    max-width: 1080px;
    margin: 0 auto;
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-radius);
    overflow: hidden;
    background: var(--v2-surface);
}

.hv2-frame img {
    display: block;
    width: 100%;
    height: auto;
}

/* Hero image rotator: stacked crossfade */
.hv2-rotator {
    position: relative;
}
.hv2-rotator-img {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.hv2-rotator-img.active {
    opacity: 1;
}
.hv2-rotator-img + .hv2-rotator-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile: zoom into the screenshot instead of shrinking it */
@media (max-width: 768px) {
    .hv2-frame.hv2-rotator {
        aspect-ratio: 4 / 3;
    }
    .hv2-frame.hv2-rotator .hv2-rotator-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
    }
}

@media (max-width: 480px) {
    .hv2-frame.hv2-rotator {
        aspect-ratio: 1 / 1;
    }
}

/* ============================================================
   SOURCES - logo marquee
   ============================================================ */

.src2-section {
    padding: 3.5rem 0 4rem;
    background: var(--v2-bg);
    border-bottom: 1px solid var(--v2-line);
    overflow: hidden;
}

.src2-head {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0 1.5rem;
}

.src2-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--v2-txt-3);
    letter-spacing: 0.02em;
}

.src2-marquee {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    overflow: hidden;
    padding: 1rem 0;
    mask-image: linear-gradient(to right, transparent, black 25%, black 75%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 25%, black 75%, transparent);
}

.src2-track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 2rem;
    width: max-content;
    animation: src2Marquee 60s linear infinite;
}

@keyframes src2Marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.src2-marquee:hover .src2-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .src2-track { animation: none; }
}

/* ============================================================
   STATS
   ============================================================ */

.stats3-section {
    position: relative;
    background: #0e0e0e;
    padding: 7.5rem 1.5rem;
    overflow: hidden;
}
.stats3-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(to right, transparent, transparent 179px, rgba(255,255,255,0.025) 179px, rgba(255,255,255,0.025) 180px),
        repeating-linear-gradient(to bottom, transparent, transparent 179px, rgba(255,255,255,0.025) 179px, rgba(255,255,255,0.025) 180px);
    mask-image: linear-gradient(to bottom, transparent 5%, black 30%, black 70%, transparent 95%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 5%, black 30%, black 70%, transparent 95%);
}
.stats3-container { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.stats3-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats3-cell { display: flex; flex-direction: column; align-items: center; padding: 1.5rem 1rem; }
.stats3-value {
    font-family: 'Saira', 'Inter', sans-serif;
    font-size: clamp(52px, 7vw, 92px);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: #fafafa;
    line-height: 1;
}
.stats3-label { font-size: 14px; font-weight: 400; color: #8a8a8a; margin-top: 18px; }
.stats3-stagger { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stats3-stagger.stats3-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) { .stats3-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats3-row { grid-template-columns: 1fr; } .stats3-cell { padding: 2rem 1rem; } }

/* ============================================================
   STATEMENT
   ============================================================ */

.nar2-section {
    background: var(--v2-bg);
    padding: 8rem 1.5rem;
    border-top: 1px solid var(--v2-line);
}

.nar2-container {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.nar2-text {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.375rem, 2.8vw, 1.875rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.5;
    color: var(--v2-txt-3);
}

.nar2-text span {
    color: rgba(255, 255, 255, 0.22);
    transition: color 0.3s ease;
}

.nar2-text span.nar2-on {
    color: var(--v2-txt-1);
}

.nar2-text strong {
    color: var(--v2-txt-1);
    font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
    .nar2-text span { color: var(--v2-txt-1); }
}

.nar2-closer {
    margin-top: 2.5rem;
}

.nar2-sub {
    max-width: 560px;
    margin: 2rem auto 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--v2-txt-2);
}

/* ============================================================
   FEATURES
   ============================================================ */

.ft2-section {
    background: var(--v2-bg);
    border-top: 1px solid var(--v2-line);
}

.ft2-header {
    max-width: 640px;
    margin-bottom: 3.5rem;
}

.ft2-header .v2-h2 { margin-bottom: 1rem; }

.ft2-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--v2-line);
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-radius);
    overflow: hidden;
}

@media (max-width: 960px) { .ft2-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ft2-grid { grid-template-columns: 1fr; } }

.ft2-card {
    background: var(--v2-bg);
    padding: 2rem;
    transition: background 0.2s ease;
}

.ft2-card:hover {
    background: var(--v2-surface);
}

.ft2-card i {
    width: 20px;
    height: 20px;
    color: var(--v2-txt-2);
    margin-bottom: 1.25rem;
}

.ft2-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--v2-txt-1);
    margin-bottom: 0.5rem;
}

.ft2-card p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--v2-txt-2);
}

/* ============================================================
   QUOTE
   ============================================================ */

.pf2-section {
    background: var(--v2-bg);
    border-top: 1px solid var(--v2-line);
}

.pf2-quote {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.pf2-quote blockquote {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.25rem, 2.4vw, 1.625rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.55;
    color: var(--v2-txt-1);
    margin-bottom: 1.5rem;
}

.pf2-attrib {
    font-size: 0.8125rem;
    color: var(--v2-txt-3);
}

.pf2-caps {
    max-width: 720px;
    margin: 3.5rem auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.75rem;
    font-size: 0.8125rem;
    color: var(--v2-txt-3);
}

/* ============================================================
   LIVE INTELLIGENCE
   ============================================================ */

.li2-section {
    background: #0e0e0e;
    border-top: 1px solid var(--v2-line);
}

.li2-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.li2-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--v2-txt-2);
    transition: color 0.2s ease;
}

.li2-link:hover { color: var(--v2-txt-1); }

.li2-kbd {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #6B7280;
    margin-bottom: 1.5rem;
}

.li2-kbd-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    font-size: 0.7rem;
    color: #9CA3AF;
    background: rgba(255, 255, 255, 0.03);
}

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

@media (max-width: 960px) { .li2-grid { grid-template-columns: 1fr; } }

.li2-card {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: #0e0e0e;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.li2-card:hover,
.li2-card:focus {
    border-color: rgba(255, 255, 255, 0.14);
    background: #141414;
    transform: translateY(-3px);
}

.li2-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.li2-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.li2-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.5rem 1.75rem 1.75rem;
}

.li2-author {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.li2-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22D3EE, #0ea5e9);
    color: #0e0e0e;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.li2-author-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.li2-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--v2-txt-1);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.li2-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.li2-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.li2-date {
    font-size: 0.875rem;
    color: #6B7280;
    white-space: nowrap;
}

/* ============================================================
   NAVBAR scrolled state
   ============================================================ */

#navbar {
    transition: background 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--v2-line);
}

/* ============================================================
   API STRIP  (x.ai style)
   ============================================================ */
.api2-section {
    background: var(--v2-bg);
    border-top: 1px solid var(--v2-line);
    border-bottom: 1px solid var(--v2-line);
    padding: 7rem 1.5rem;
}
.api2-container {
    max-width: 1080px;
    margin: 0 auto;
}

.api2-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}
.api2-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--v2-txt-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
}
.api2-heading {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--v2-txt-1);
    line-height: 1.08;
    margin-bottom: 1.5rem;
}
.api2-desc {
    font-size: 1rem;
    color: var(--v2-txt-2);
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 1.25rem;
}
.api2-bullets {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}
.api2-bullets li {
    font-size: 0.875rem;
    color: var(--v2-txt-2);
    line-height: 1.7;
}
.api2-bullets li::before {
    content: ' ';
    color: var(--v2-txt-3);
}
.api2-ctas {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}
.api2-btn-primary {
    display: inline-flex;
    align-items: center;
    height: 2.5rem;
    padding: 0 1.25rem;
    border-radius: 0.5rem;
    background: #fff;
    color: #000;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}
.api2-btn-primary:hover { background: #e4e4e7; }
.api2-btn-secondary {
    display: inline-flex;
    align-items: center;
    height: 2.5rem;
    padding: 0 1.25rem;
    border-radius: 0.5rem;
    color: var(--v2-txt-2);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.api2-btn-secondary:hover { color: var(--v2-txt-1); }

/* Terminal window */
.api2-terminal {
    background: #0d0d10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.api2-terminal-bar {
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
}
.api2-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.api2-dot-red { background: #ff5f57; }
.api2-dot-yellow { background: #febc2e; }
.api2-dot-green { background: #28c840; }
.api2-terminal-body {
    padding: 1.25rem 1.5rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    color: #a1a1aa;
}
.api2-t-prompt { color: #63636b; }
.api2-t-cmd { color: #e4e4e7; }
.api2-t-str { color: #a5d6ff; }
.api2-t-num { color: #fbbf24; }
.api2-t-bool { color: #f87171; }
.api2-t-out { color: #71717a; }
.api2-t-cursor {
    animation: api2Blink 1s step-end infinite;
    color: #0ea5e9;
}
@keyframes api2Blink {
    50% { opacity: 0; }
}

.api2-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--v2-line);
}
.api2-stat {
    min-width: 120px;
}
.api2-stat-value {
    display: block;
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--v2-txt-1);
    letter-spacing: -0.03em;
    margin-bottom: 0.25rem;
}
.api2-stat-label {
    font-size: 0.8125rem;
    color: var(--v2-txt-3);
    max-width: 140px;
    display: block;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .api2-section { padding: 4rem 1rem; }
    .api2-split { grid-template-columns: 1fr; gap: 2rem; }
    .api2-stats { gap: 1.5rem; }
    .api2-stat { min-width: 100px; }
    .api2-stat-value { font-size: 1.5rem; }
    .api2-terminal-body { font-size: 0.7rem; padding: 1rem; }
}

@media (max-width: 480px) {
    .v2-section { padding: 3rem 0.75rem; }
    .nar2-section { padding: 4rem 0.75rem; }
    .nar2-quote { font-size: 1.125rem; }
    .nar2-attribution { font-size: 0.75rem; }
    .ft2-grid { gap: 1rem; }
    .stats3-section { padding: 4rem 0.75rem; }
    .api2-heading { font-size: 1.75rem; }
    .api2-desc { font-size: 0.875rem; }
    .api2-bullets li { font-size: 0.8125rem; }
    .api2-terminal-body { font-size: 0.65rem; padding: 0.75rem; }
    .hv2-headline { font-size: clamp(1.75rem, 7vw, 2.25rem); }
    .hv2-frame img { max-width: 100%; }
}
