/* ============================================================
   Crosslink — clean, light, modern landing page
   (Ellie-style: white/warm background, friendly accent,
    rounded cards, pill buttons, generous spacing)
   ============================================================ */

:root {
    --bg: #ffffff;
    --bg-soft: #f7f6f3;          /* warm off-white for alternating sections */
    --bg-tint: #f2effd;          /* light accent tint */
    --text: #15151b;             /* near-black headings */
    --text-soft: #54545f;        /* body gray */
    --text-faint: #8b8b97;       /* captions */
    --accent: #6c5ce7;           /* friendly indigo-violet */
    --accent-dark: #5848d6;
    --accent-soft: #efecfd;
    --border: #eceaf1;
    --white: #ffffff;
    --radius-lg: 24px;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(20, 20, 45, 0.04), 0 2px 6px rgba(20, 20, 45, 0.05);
    --shadow-md: 0 10px 30px rgba(35, 28, 90, 0.08);
    --shadow-lg: 0 28px 70px rgba(35, 28, 90, 0.14);
    --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text-soft);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3, h4 {
    color: var(--text);
    line-height: 1.12;
    letter-spacing: -0.025em;
    font-weight: 800;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }
.bg-soft { background: var(--bg-soft); }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-dark);
    background: var(--accent-soft);
    padding: 7px 15px; border-radius: 999px;
    margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 16px; }
.section-head p { font-size: 1.12rem; color: var(--text-soft); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: inherit; font-weight: 600; font-size: 1rem;
    padding: 14px 26px; border-radius: 999px;
    border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--white); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.06rem; }
.btn svg { transition: transform 0.2s ease; }
.btn-primary:hover svg { transform: translateX(3px); }

/* ---------- Navigation ---------- */
.nav-wrap {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav-wrap.scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 1.35rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; }
.brand .brand-mark {
    width: 30px; height: 30px; border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), #8e7bff);
    display: flex; align-items: center; justify-content: center; color: #fff;
    box-shadow: var(--shadow-md);
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.97rem; font-weight: 500; color: var(--text-soft); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.25s; }
.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); }
.mobile-menu {
    display: none; flex-direction: column; gap: 4px;
    padding: 12px 24px 24px; border-bottom: 1px solid var(--border); background: var(--white);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 13px 8px; font-weight: 500; color: var(--text); border-radius: 10px; }
.mobile-menu a:hover { background: var(--bg-soft); }
.mobile-menu .btn { margin-top: 10px; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
    width: 900px; height: 520px; z-index: -1;
    background: radial-gradient(closest-side, rgba(108, 92, 231, 0.14), transparent 70%);
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); margin-bottom: 22px; max-width: 880px; margin-inline: auto; }
.hero h1 .hl { color: var(--accent); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-soft); max-width: 600px; margin: 0 auto 34px; }

/* Waitlist form (light) */
.signup { max-width: 520px; margin: 0 auto; }
.signup-row { display: flex; gap: 10px; }
.signup-field {
    flex: 1; display: flex; align-items: center; gap: 10px;
    background: var(--white); border: 1.5px solid var(--border); border-radius: 999px;
    padding: 0 20px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.signup-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.signup-field svg { color: var(--text-faint); flex-shrink: 0; }
.signup-field input {
    flex: 1; min-width: 0; border: none; outline: none; background: transparent;
    font-family: inherit; font-size: 1rem; color: var(--text); padding: 15px 0;
}
.signup-field input::placeholder { color: var(--text-faint); }
.signup-status { margin-top: 14px; min-height: 20px; font-size: 0.92rem; color: var(--text-soft); }
.signup-status.success { color: #1a9d6a; }
.signup-status.error { color: #d6455d; }

.hero-perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 22px; }
.hero-perks li { display: flex; align-items: center; gap: 7px; font-size: 0.9rem; color: var(--text-soft); }
.hero-perks li svg { color: var(--accent); flex-shrink: 0; }

.hero-proof { margin-top: 26px; font-size: 0.92rem; color: var(--text-faint); }
.hero-proof .avatars { display: inline-flex; vertical-align: middle; margin-right: 10px; }
.hero-proof .avatars span {
    width: 30px; height: 30px; border-radius: 50%; margin-left: -9px;
    border: 2px solid var(--white); display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 700; color: #fff;
}
.hero-proof .avatars span:first-child { margin-left: 0; }
.hero-proof .avatars span:nth-child(1) { background: #6c5ce7; }
.hero-proof .avatars span:nth-child(2) { background: #ff7a9c; }
.hero-proof .avatars span:nth-child(3) { background: #2bb6a6; }
.hero-proof strong { color: var(--text); }

/* Hero success swap */
.signup.is-success .signup-row,
.signup.is-success .signup-status { display: none; }
.signup-success { display: none; }
.signup.is-success ~ .hero-perks,
.signup.is-success ~ .hero-proof { display: none; }
.signup.is-success .signup-success { display: block; animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.signup-success .check {
    width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
    background: #e7f8f0; color: #1a9d6a; display: flex; align-items: center; justify-content: center;
}
.signup-success h3 { font-size: 1.3rem; margin-bottom: 6px; }
.signup-success p { font-size: 0.98rem; color: var(--text-soft); }

/* Hero media */
.hero-media { margin-top: 64px; }

/* ---------- Image placeholders ---------- */
.ph {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 10px; text-align: center; padding: 28px;
    background: linear-gradient(135deg, #f4f2fd, #eef1f8);
    border: 1.5px dashed #cdc8e6; border-radius: var(--radius-lg);
    color: #9a96b8; min-height: 280px;
}
.ph svg { width: 40px; height: 40px; opacity: 0.55; }
.ph .ph-label { font-weight: 600; font-size: 0.96rem; color: #7c77a4; }
.ph .ph-file { font-size: 0.78rem; color: #aaa6c6; font-family: 'SFMono-Regular', ui-monospace, monospace; }
.ph.ph-wide { min-height: 440px; box-shadow: var(--shadow-lg); }
.ph.ph-video { min-height: 480px; }
.ph.ph-video .play {
    width: 72px; height: 72px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-lg);
    display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 4px;
}

/* When a placeholder actually holds an image/video, drop the dashed
   placeholder look and render it as a clean fitted frame. Auto-applies
   to any remaining .ph as you fill them in. */
.ph:has(img),
.ph:has(video),
.feature .ph:has(img),
.feature .ph:has(video),
.founder .ph:has(img),
.founder .ph:has(video) {
    min-height: 0;
    padding: 0;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.ph > img,
.ph > video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
}

/* ---------- Click-to-fullscreen lightbox ---------- */
.ph > img, .hero-media img, .ph > video:not([data-no-zoom]) { cursor: zoom-in; transition: filter 0.2s ease; }
.ph > img:hover, .hero-media img:hover, .ph > video:not([data-no-zoom]):hover { filter: brightness(1.04); }

.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    display: none; align-items: center; justify-content: center; padding: 32px;
    background: rgba(14, 13, 28, 0.9);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    cursor: zoom-out; opacity: 0; transition: opacity 0.22s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img, .lightbox video {
    max-width: 94vw; max-height: 92vh; width: auto; height: auto;
    border-radius: 14px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    cursor: default; animation: lbZoom 0.26s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes lbZoom { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close {
    position: fixed; top: 20px; right: 24px;
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff; cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); transform: scale(1.05); }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tcard {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.tcard .stars { color: #f5b301; font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 14px; }
.tcard blockquote { font-size: 1.02rem; color: var(--text); line-height: 1.6; margin-bottom: 22px; flex: 1; }
.tcard .who { display: flex; align-items: center; gap: 12px; }
.tcard .who .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--bg-tint); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent); }
.tcard .who .name { font-weight: 700; color: var(--text); font-size: 0.95rem; }
.tcard .who .role { font-size: 0.85rem; color: var(--text-faint); }

/* ---------- Features (alternating) ---------- */
.feature {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
    padding: 60px 0;
}
.feature:nth-child(even) .feature-text { order: 2; }
.feature-eyebrow { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.feature-text h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 16px; }
.feature-text p { font-size: 1.08rem; color: var(--text-soft); margin-bottom: 22px; }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 11px; color: var(--text); font-size: 1rem; }
.feature-list li svg { color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.feature .ph { min-height: 360px; }

/* ---------- Platforms ---------- */
.platforms { text-align: center; }
.platform-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; }
.platform-pill {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--white); border: 1px solid var(--border); border-radius: 14px;
    padding: 16px 26px; box-shadow: var(--shadow-sm); font-weight: 600; color: var(--text);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.platform-pill:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.platform-pill svg { color: var(--accent); }
.platform-pill small { display: block; font-size: 0.78rem; font-weight: 500; color: var(--text-faint); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
    width: 100%; background: none; border: none; cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 26px 4px; text-align: left; font-size: 1.12rem; font-weight: 600; color: var(--text);
}
.faq-q .icon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: transform 0.25s ease; line-height: 1; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 4px 26px; color: var(--text-soft); font-size: 1.02rem; }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.founder .ph { min-height: 360px; border-radius: var(--radius-lg); }
.founder-note h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 20px; }
.founder-note p { font-size: 1.08rem; color: var(--text-soft); margin-bottom: 18px; }
.founder-sign { font-weight: 700; color: var(--text); }

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-card {
    background: linear-gradient(135deg, #6c5ce7, #8e7bff);
    border-radius: var(--radius-lg); padding: 72px 40px; color: #fff;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.final-card h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.final-card p { color: rgba(255, 255, 255, 0.86); font-size: 1.14rem; max-width: 540px; margin: 0 auto 30px; }
.final-card .btn-primary { background: #fff; color: var(--accent-dark); box-shadow: 0 10px 30px rgba(0,0,0,0.18); }
.final-card .btn-primary:hover { background: #f3f1ff; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 0.95rem; color: var(--text-soft); max-width: 280px; }
.footer-col h5 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 16px; font-weight: 700; }
.footer-col a { display: block; padding: 6px 0; font-size: 0.95rem; color: var(--text-soft); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--text-faint); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; background: var(--white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-soft); transition: 0.2s; }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav-links, .nav-cta .btn { display: none; }
    .nav-toggle { display: flex; }
    .section { padding: 72px 0; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .feature { grid-template-columns: 1fr; gap: 32px; padding: 36px 0; }
    .feature:nth-child(even) .feature-text { order: 0; }
    .feature .ph, .feature-text { order: 0 !important; }
    .founder { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .signup-row { flex-direction: column; }
    .signup-field { border-radius: var(--radius); }
    .signup .btn { width: 100%; }
    .final-card { padding: 52px 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
