/* ---------------------------
   Base + Layout
---------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg-dark: #050816;
    --bg-darker: #02010a;
    --bg-light: #f9fafb;
    --bg-muted: #f3f4f6;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.16);
    --accent-strong: #2563eb;
    --text-main: #0f172a;
    --text-soft: #6b7280;
    --border-subtle: #e5e7eb;
    --radius-xl: 22px;
    --radius-pill: 999px;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.18);
    --shadow-light: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 28px 70px rgba(15, 23, 42, 0.35);
    --max-width: 1120px;
    --transition-fast: 0.18s ease-out;
    --transition-med: 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
    --nav-height: 70px;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #e5e7eb;
    background: radial-gradient(circle at top left, #0b1220, #020617 55%, #000 100%);
    -webkit-font-smoothing: antialiased;
}

/* Desktop scale boost so 100% ≈ your current zoomed view */
@media (min-width: 1200px) {
    body {
        zoom: 1.25; /* adjust up/down later if you want */
    }
}

/* ---------------------------
   Nav
---------------------------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.88));
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-logo {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.6), 0 12px 24px rgba(15, 23, 42, 0.9);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-main {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.logo-sub {
    font-size: 11px;
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.nav-link {
    color: #e5e7eb;
    text-decoration: none;
    opacity: 0.86;
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(to right, #3b82f6, #22c1c3);
    border-radius: 999px;
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-pill {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), rgba(15, 23, 42, 0.9));
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.8);
}

.nav-link-pill::after {
    display: none;
}

.nav-link-pill:hover {
    border-color: rgba(191, 219, 254, 0.7);
}

/* ---------------------------
   Hero
---------------------------- */

.hero {
    padding: 56px 16px 40px;
    background: radial-gradient(circle at top left, #0b1120, #020617);
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-main {
    flex: 1.2;
    min-width: 280px;
}

.hero-visual {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #a5b4fc;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 42px;
    line-height: 1.1;
    margin: 0 0 18px;
}

.hero h1 .accent {
    color: #60a5fa;
}

.hero-sub {
    font-size: 15px;
    line-height: 1.6;
    color: #cbd5f5;
    max-width: 560px;
    margin: 0 0 22px;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-strong), #06b6d4);
    color: white;
    box-shadow: var(--shadow-strong);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.6);
}

.btn-ghost {
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.16), rgba(15, 23, 42, 0.9));
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.45);
}

.btn-ghost:hover {
    border-color: rgba(209, 213, 219, 0.9);
    transform: translateY(-1px);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.tag-pill {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
}

.hero-footnote {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
}

.hero-visual-frame {
    border-radius: 24px;
    padding: 14px;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), rgba(15, 23, 42, 0.96));
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.45);
    cursor: zoom-in;
}

.hero-flow-img {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    border-radius: 18px;
}

.hero-visual-caption {
    font-size: 12px;
    color: #cbd5f5;
    text-align: center;
    max-width: 420px;
}

/* ---------------------------
   Sections
---------------------------- */

.section {
    padding: 60px 16px;
}

.section-light {
    background: #f9fafb;
    color: var(--text-main);
}

.section-muted {
    background: #eef2ff;
    color: var(--text-main);
}

.section-dark {
    background: #020617;
    color: #e5e7eb;
}

.section-contact {
    padding-bottom: 70px;
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    margin-bottom: 28px;
}

.section-header.center {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.section-header p {
    margin: 0;
    font-size: 15px;
    color: var(--text-soft);
}

/* ---------------------------
   Grids & Cards
---------------------------- */

.grid {
    display: grid;
    gap: 18px;
}

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.pill-card {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 18px 20px 18px;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(226, 232, 240, 0.9);
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition-med), transform var(--transition-med), border-color var(--transition-med), background var(--transition-med);
}

.section-dark .card {
    background: #020617;
    border-color: rgba(51, 65, 85, 0.9);
}

.pill-card {
    border-radius: 999px;
}

/* Expandable behaviour */

.expand-card {
    cursor: pointer;
}

.expand-card h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.expand-card p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-soft);
    max-height: 0;
    opacity: 0;
    transform: translateY(4px);
    overflow: hidden;
    transition: max-height var(--transition-med), opacity var(--transition-med), transform var(--transition-med);
}

.section-muted .expand-card p,
.section-light .expand-card p {
    color: #4b5563;
}

.expand-card::after {
    content: "Tap to expand";
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 11px;
    color: rgba(148, 163, 184, 0.9);
}

.expand-card.expanded::after {
    content: "Tap to collapse";
}

.expand-card:hover {
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.8);
}

.expand-card.expanded {
    background: #ffffff;
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 26px 60px rgba(37, 99, 235, 0.25);
}

.expand-card.expanded p {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
}

/* For dark background pill-cards */
.section-muted .pill-card {
    background: #ffffff;
}

/* ---------------------------
   Flow layout
---------------------------- */

.flow {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 30px;
}

.flow-step {
    background: #020617;
    color: #e5e7eb;
    border-radius: var(--radius-xl);
    padding: 16px 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(51, 65, 85, 0.95);
    position: relative;
}

.flow-badge {
    position: absolute;
    top: 14px;
    left: 18px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: radial-gradient(circle at top left, #3b82f6, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.flow-step h3 {
    margin: 0 0 6px 40px;
    font-size: 15px;
}

.flow-step p {
    margin: 0 0 8px 40px;
    font-size: 14px;
    color: #cbd5f5;
}

.flow-tag {
    display: inline-flex;
    margin-left: 40px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.flow-arrow {
    text-align: center;
    font-size: 18px;
    color: #64748b;
}

/* ---------------------------
   Differentiation cards
---------------------------- */

.diagram-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.diagram-card {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.32), rgba(15, 23, 42, 0.98));
    border-radius: var(--radius-xl);
    padding: 18px 20px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: var(--shadow-soft);
}

.diagram-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #bfdbfe;
    margin-bottom: 10px;
}

.diagram-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.diagram-card p {
    margin: 0;
    font-size: 14px;
    color: #cbd5f5;
}

/* ---------------------------
   Before / With comparison
---------------------------- */

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.comparison-card {
    border-radius: var(--radius-xl);
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-light);
}

.comparison-card-focus {
    border-color: rgba(59, 130, 246, 0.85);
    box-shadow: 0 22px 60px rgba(37, 99, 235, 0.15);
}

.comparison-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.comparison-card ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: #4b5563;
}

/* ---------------------------
   Founder section
---------------------------- */

.founder-card {
    max-width: 780px;
    margin: 0 auto;
    padding: 26px 24px 26px;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.3), rgba(15, 23, 42, 0.98));
    box-shadow: var(--shadow-soft);
}

.founder-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.founder-card p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.7;
    color: #e5e7f5;
}

.founder-close {
    margin-top: 6px;
    font-weight: 500;
}

/* ---------------------------
   Contact
---------------------------- */

.contact-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 28px;
    align-items: flex-start;
}

.contact-copy h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.contact-copy p {
    margin: 0 0 14px;
    font-size: 14px;
    color: #e5e7eb;
}

.contact-list {
    margin: 0;
    padding-left: 18px;
    font-size: 14px;
    color: #cbd5f5;
}

.contact-card {
    background: #020617;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 18px 20px;
    box-shadow: var(--shadow-soft);
}

.contact-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.contact-hint {
    margin: 0 0 10px;
    font-size: 13px;
    color: #cbd5f5;
}

.contact-hint.small {
    font-size: 12px;
    color: #9ca3af;
}

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
}

.field-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9ca3af;
}

.field-value {
    font-size: 14px;
    color: #bfdbfe;
    text-decoration: none;
}

.field-value:hover {
    text-decoration: underline;
}

.full-width {
    width: 100%;
}

/* ---------------------------
   Footer
---------------------------- */

.footer {
    background: #020617;
    color: #9ca3af;
    border-top: 1px solid rgba(51, 65, 85, 0.8);
    padding: 14px 16px 18px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 12px;
}

.footer a {
    color: #bfdbfe;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer .dot {
    margin: 0 4px;
}

/* ---------------------------
   Image Modal
---------------------------- */

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 60;
    padding: 16px;
}

.image-modal.open {
    display: flex;
}

.image-modal img {
    max-width: min(96vw, 1100px);
    max-height: 90vh;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}

.image-modal-close {
    position: absolute;
    top: 16px;
    right: 22px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: none;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 20px;
    cursor: pointer;
}

/* ---------------------------
   Responsive
---------------------------- */

@media (max-width: 1024px) {
    .hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-visual {
        align-items: flex-start;
    }

    .diagram-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid.four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 720px) {
    .nav-inner {
        padding-inline: 14px;
        gap: 10px;
    }

    .nav-links {
        display: none; /* simple mobile: no menu (can add later) */
    }

    .hero {
        padding-top: 34px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-visual-frame {
        width: 100%;
    }

    .section {
        padding: 46px 14px;
    }

    .grid.three,
    .grid.four {
        grid-template-columns: minmax(0, 1fr);
    }

    .comparison-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .diagram-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .pill-card {
        border-radius: 22px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .expand-card::after {
        display: none; /* cleaner on small screens */
    }
}
