/* ============================================================
   Landing page — centered hero, 3DLogoLab-inspired structure
   ============================================================ */

main { padding-top: calc(var(--nav-h) + 24px); }

/* ============================================================
   Hero (centered)
   ============================================================ */

.hero {
    position: relative;
    padding: var(--s-12) 0 var(--s-16);
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -10% 10% auto 10%;
    height: 620px;
    background:
        radial-gradient(closest-side, rgba(149, 241, 209, 0.16), transparent 70%),
        radial-gradient(closest-side at 80% 30%, rgba(111, 190, 255, 0.14), transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.hero-centered .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-trust {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px 6px 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}
.hero-trust strong { color: var(--text-primary); font-weight: 600; }

.avatar-stack {
    display: inline-flex;
    align-items: center;
}
.avatar-stack span {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid var(--bg-base);
    margin-left: -7px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.avatar-stack span:first-child { margin-left: 0; }

.hero h1 {
    font-size: clamp(2.6rem, 7vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.98;
    max-width: 18ch;
    margin: 0 auto;
}
.hero h1 .text-grad { display: inline-block; }

.hero-lead {
    margin: 24px auto 0;
    text-align: center;
    max-width: 56ch;
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    justify-content: center;
}

.hero-fineprint {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 12.5px;
}

.hero-proof-grid {
    width: min(620px, 100%);
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.hero-proof-grid div {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(255,255,255,0.075);
    border-radius: var(--r-md);
    background: rgba(255,255,255,0.025);
}
.hero-proof-grid strong {
    font-size: 18px;
    line-height: 1.1;
    color: var(--text-primary);
}
.hero-proof-grid span {
    color: var(--text-muted);
    font-size: 11.5px;
}

/* ---- Hero 3D demo card ---- */
.demo-card {
    position: relative;
    width: min(1120px, 112vw);
    max-width: none;
    height: clamp(430px, 54vw, 680px);
    margin: 34px auto 0;
    border-radius: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    touch-action: pan-y;
    pointer-events: none;
}
.demo-card canvas {
    position: relative;
    z-index: 1;
    width: 100% !important;
    height: 100% !important;
    display: block;
    background: transparent !important;
    pointer-events: none;
}

/* ============================================================
   "Used at" logo bar
   ============================================================ */

.logobar {
    padding: var(--s-10) 0 var(--s-8);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: var(--s-8);
}
.logobar-label {
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 18px;
    font-weight: 600;
}
.logobar-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 36px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
    opacity: 0.55;
}

/* ============================================================
   Competitive value strip
   ============================================================ */

.value-strip-section {
    padding-top: var(--s-12);
}

.value-strip {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--s-8);
    align-items: center;
    padding: 34px;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-xl);
    background:
        radial-gradient(600px 260px at 10% 0%, rgba(149, 241, 209, 0.10), transparent 65%),
        linear-gradient(180deg, rgba(17, 21, 28, 0.94), rgba(8, 11, 16, 0.94));
    box-shadow: var(--shadow-md);
}
.value-copy .eyebrow { margin-bottom: 18px; }
.value-copy h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 14px;
}
.value-copy p {
    color: var(--text-secondary);
    font-size: 14.5px;
    line-height: 1.65;
}
.value-points {
    display: grid;
    gap: 10px;
}
.value-points div {
    padding: 15px 16px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--r-md);
    background: rgba(255,255,255,0.025);
}
.value-points strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 4px;
}
.value-points span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 820px) {
    .value-strip { grid-template-columns: 1fr; padding: 26px; }
}

/* ============================================================
   Section header
   ============================================================ */

.section-head {
    text-align: center;
    margin: 0 auto var(--s-10);
    max-width: 720px;
}
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 14px; }
.section-head .lead { margin: 0 auto; text-align: center; }

/* ============================================================
   Steps (numbered, 3-step row with arrows)
   ============================================================ */

.steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: stretch;
    gap: 20px;
    margin-top: 36px;
}

.step {
    padding: 32px 28px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(17, 21, 28, 0.92), rgba(10, 12, 16, 0.92));
    position: relative;
    transition: border-color var(--transition);
}
.step:hover { border-color: var(--border-strong); }

.step-num {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.10em;
    color: var(--accent-mint);
    margin-bottom: 16px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

.step-tag {
    display: inline-flex;
    margin-top: 18px;
    padding: 5px 9px;
    border-radius: var(--r-pill);
    background: rgba(149, 241, 209, 0.08);
    border: 1px solid rgba(149, 241, 209, 0.16);
    color: var(--accent-mint);
    font-size: 11px;
    font-weight: 700;
}

.step-arrow {
    align-self: center;
    color: var(--text-muted);
    font-size: 26px;
    font-weight: 300;
}

@media (max-width: 900px) {
    .steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .step-arrow { display: none; }
}

.workflow-cta {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ============================================================
   Materials showcase (split: copy + orb cards)
   ============================================================ */

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-12);
    align-items: center;
}

.showcase-copy h2 { margin: 18px 0 22px; }
.showcase-copy .lead { margin: 0; }

.material-list {
    list-style: none;
    margin: 28px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.material-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}
.dot-color {
    width: 14px; height: 14px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.20);
    flex-shrink: 0;
}

.showcase-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    aspect-ratio: 1 / 1;
    max-width: 540px;
    margin-left: auto;
}

.material-card {
    position: relative;
    border-radius: var(--r-xl);
    background:
        radial-gradient(closest-side at 50% 25%, rgba(255,255,255,0.06), transparent 70%),
        linear-gradient(180deg, #0e1219, #06080d);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition);
}
.material-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.material-orb {
    width: 70%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    box-shadow: 0 16px 42px rgba(0,0,0,0.45), inset 0 -8px 16px rgba(0,0,0,0.30);
    position: relative;
}

.material-name {
    position: absolute;
    bottom: 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.005em;
}

@media (max-width: 900px) {
    .showcase-grid { grid-template-columns: 1fr; gap: var(--s-8); }
    .showcase-visual { margin: 0 auto; max-width: 460px; }
}

/* ============================================================
   Use cases (4 cards)
   ============================================================ */

.use-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 36px;
}

.use-card {
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(17, 21, 28, 0.92), rgba(10, 12, 16, 0.92));
    transition: border-color var(--transition), transform var(--transition);
}
.use-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }

.use-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--gradient-brand-soft);
    border: 1px solid rgba(149, 241, 209, 0.22);
    color: var(--accent-mint);
    margin-bottom: 18px;
}
.use-icon svg { width: 18px; height: 18px; }

.use-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.use-card p { color: var(--text-secondary); font-size: 13.5px; line-height: 1.55; }

@media (max-width: 980px) { .use-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .use-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Testimonials
   ============================================================ */

.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 32px;
}

.quote {
    padding: 30px 28px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: linear-gradient(180deg, rgba(17, 21, 28, 0.92), rgba(10, 12, 16, 0.92));
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: border-color var(--transition);
}
.quote:hover { border-color: var(--border-strong); }

.quote-body {
    color: var(--text-primary);
    font-size: 15.5px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.quote-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.quote-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.quote-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
}
.quote-role {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

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

/* ============================================================
   Pricing teaser
   ============================================================ */

.price-teaser {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 880px;
    margin: 36px auto 0;
}
.plan-card {
    position: relative;
    padding: 32px 28px;
    border-radius: var(--r-xl);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(17, 21, 28, 0.92), rgba(10, 12, 16, 0.92));
    display: flex; flex-direction: column;
    gap: 18px;
}
.plan-card.featured {
    border-color: rgba(149, 241, 209, 0.35);
    background:
        linear-gradient(180deg, rgba(20, 28, 28, 0.92), rgba(10, 16, 18, 0.92)),
        var(--gradient-brand-soft);
    box-shadow: var(--shadow-glow);
}
.plan-badge {
    position: absolute;
    top: 16px; right: 16px;
    padding: 5px 11px;
    background: var(--gradient-brand);
    color: #051218;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--r-pill);
}
.plan-card .plan-name {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
}
.plan-card.featured .plan-name { color: var(--accent-mint); }
.plan-card .plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}
.plan-card .plan-price small {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 4px;
}
.plan-card .plan-feats {
    list-style: none;
    display: flex; flex-direction: column;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}
.plan-card .plan-feats li { display: flex; gap: 10px; align-items: flex-start; }
.plan-card .plan-feats li svg {
    width: 16px; height: 16px;
    color: var(--accent-mint);
    flex-shrink: 0; margin-top: 2px;
}

@media (max-width: 720px) { .price-teaser { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ (accordion)
   ============================================================ */

.faq {
    max-width: var(--container-sm);
    margin: 36px auto 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.faq details {
    background: linear-gradient(180deg, rgba(17, 21, 28, 0.92), rgba(10, 12, 16, 0.92));
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: border-color var(--transition);
}
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    font-size: 22px;
    color: var(--text-muted);
    transition: transform var(--transition), color var(--transition);
    line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent-mint); }
.faq .answer {
    padding: 0 22px 22px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================================
   Big CTA
   ============================================================ */

.big-cta {
    text-align: center;
    padding: var(--s-16) 32px;
    border-radius: var(--r-xl);
    background:
        radial-gradient(closest-side at 50% 0%, rgba(149, 241, 209, 0.18), transparent 70%),
        linear-gradient(180deg, rgba(17, 21, 28, 0.95), rgba(10, 12, 16, 0.95));
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    max-width: 960px;
}
.big-cta h2 { margin-bottom: 14px; }
.big-cta p { margin: 0 auto 28px; max-width: 50ch; }

/* ============================================================
   Reveal animation
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 720ms cubic-bezier(0.2,0.7,0.2,1), transform 720ms cubic-bezier(0.2,0.7,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 720px) {
    main { padding-top: calc(var(--nav-h) + 16px); }
    .hero { padding: var(--s-10) 0 var(--s-12); }
    .hero-proof-grid { grid-template-columns: 1fr; }
    .demo-card {
        width: 100%;
        height: 390px;
        margin-top: 30px;
    }
    .logobar-row { gap: 18px; font-size: 12.5px; }
}

/* ── 2D → 3D before/after section ─────────────────────────────── */
.beforeafter-section { padding: 40px 0 80px; }

.beforeafter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 32px;
    max-width: 1080px;
    margin: 0 auto;
}

.beforeafter-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    min-width: 0;
}

.beforeafter-tag {
    display: inline-block;
    padding: 5px 12px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
}
.beforeafter-tag.accent {
    color: #0b0e14;
    background: linear-gradient(180deg, #d6fbe9 0%, #88e6c5 60%, #67d8ff 100%);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(149, 241, 209, 0.30);
}

.beforeafter-stage {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 600ms cubic-bezier(0.2, 0.9, 0.3, 1);
}
.beforeafter-card:hover .beforeafter-stage {
    transform: translateY(-4px);
}

.beforeafter-stage.white {
    background:
        radial-gradient(80% 60% at 50% 30%, #ffffff, #e9ecf2 90%);
    border: 1px solid rgba(0, 0, 0, 0.10);
}
.beforeafter-stage.dark {
    background:
        radial-gradient(70% 50% at 50% 50%, rgba(149, 241, 209, 0.12), transparent 65%),
        linear-gradient(180deg, #14181f, #05080d);
    border: 1px solid var(--border);
}

.beforeafter-stage.white svg {
    width: 82%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 0 rgba(0,0,0,0.06));
}

#ba-canvas {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
}

.beforeafter-card figcaption {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-transform: uppercase;
    font-weight: 600;
}

.beforeafter-arrow {
    color: var(--accent-mint);
    background: rgba(149, 241, 209, 0.10);
    border: 1px solid rgba(149, 241, 209, 0.30);
    border-radius: 999px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 28px rgba(149, 241, 209, 0.30), inset 0 0 14px rgba(149, 241, 209, 0.12);
    flex-shrink: 0;
    animation: ba-arrow-pulse 2.6s ease-in-out infinite;
}
@keyframes ba-arrow-pulse {
    0%, 100% { transform: translateX(0);    box-shadow: 0 0 28px rgba(149, 241, 209, 0.30), inset 0 0 14px rgba(149, 241, 209, 0.12); }
    50%      { transform: translateX(4px);  box-shadow: 0 0 38px rgba(149, 241, 209, 0.50), inset 0 0 14px rgba(149, 241, 209, 0.18); }
}

@media (max-width: 900px) {
    .beforeafter { gap: 22px; }
    .beforeafter-arrow { width: 42px; height: 42px; }
    .beforeafter-arrow svg { width: 20px; height: 20px; }
}

@media (max-width: 720px) {
    .beforeafter-section { padding: 32px 0 60px; }
    .beforeafter {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .beforeafter-arrow {
        transform: rotate(90deg);
        margin: 0 auto;
        width: 38px;
        height: 38px;
        animation: ba-arrow-pulse-v 2.6s ease-in-out infinite;
    }
    @keyframes ba-arrow-pulse-v {
        0%, 100% { transform: rotate(90deg) translateX(0); }
        50%      { transform: rotate(90deg) translateX(4px); }
    }
    .beforeafter-stage { aspect-ratio: 16 / 10; }
}
