/* =========================================================
   Effective Data.ai — one token system, one grid, one accent
   ========================================================= */

:root {
    /* Ground */
    --paper:        #f7f6f8;
    --surface:      #ffffff;
    --night:        #17131d;
    --night-2:      #1f1a27;

    /* Ink on light */
    --ink:          #191520;
    --ink-2:        #554f5e;
    --ink-3:        #6e6779;

    /* Ink on night */
    --on-night:     #f4f1f7;
    --on-night-2:   #b6adc0;
    --on-night-3:   #8b8397;

    /* Rules */
    --rule:         #e3dfe7;
    --rule-2:       #cfc8d6;
    --rule-night:   rgba(255, 255, 255, 0.12);

    /* Accent — the only colour on the page */
    --accent:       #ad5389;   /* marks, rules, fills  */
    --accent-ink:   #96406f;   /* accent as text on light (5.8:1) */
    --accent-deep:  #8a3663;   /* pressed / hover fill */
    --accent-lift:  #c97aa8;   /* accent on night (6.1:1) */
    --accent-soft:  rgba(173, 83, 137, 0.10);

    /* Metrics */
    --nav-h:        68px;
    --radius:       4px;
    --measure:      64ch;
    --ease:         cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-color: var(--rule-2) transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* --- Browser surfaces ------------------------------------------------ */

::selection {
    background: var(--accent);
    color: #fff;
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--rule-2);
    border: 3px solid var(--paper);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.dark :focus-visible,
.footer :focus-visible,
.navbar :focus-visible,
.hero :focus-visible {
    outline-color: var(--accent-lift);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 2000;
    padding: 12px 18px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: top 0.2s var(--ease);
}

.skip-link:focus-visible { top: 16px; }

/* --- Type ------------------------------------------------------------ */

h1, h2, h3 {
    color: var(--ink);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--accent-ink); }

/* --- Layout ---------------------------------------------------------- */

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}

.section {
    padding: 104px 0;
    scroll-margin-top: var(--nav-h);
}

.section + .section { padding-top: 0; }

.section.dark {
    background: var(--night);
    color: var(--on-night-2);
    padding-top: 104px;
    margin-top: 104px;
}

.section.dark h1,
.section.dark h2,
.section.dark h3 { color: var(--on-night); }

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.375rem);
    margin-bottom: 14px;
}

.section-header p {
    font-size: 1.0625rem;
    color: var(--ink-3);
    max-width: 58ch;
    margin: 0 auto;
}

.section.dark .section-header p { color: var(--on-night-3); }

/* --- Icons ----------------------------------------------------------- */

.icon-defs { position: absolute; }

.icon {
    width: 24px;
    height: 24px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Navigation ------------------------------------------------------ */

.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(23, 19, 29, 0.72);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid transparent;
    transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.navbar.is-scrolled {
    background: rgba(23, 19, 29, 0.94);
    border-bottom-color: var(--rule-night);
}

.nav-container {
    max-width: 1160px;
    height: 100%;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo-image {
    height: 28px;
    width: auto;
    transition: opacity 0.2s var(--ease);
}

.logo-wrapper:hover .logo-image { opacity: 0.75; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 36px;
}

.nav-menu a {
    position: relative;
    display: block;
    color: var(--on-night-2);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s var(--ease);
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--accent-lift);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s var(--ease);
}

.nav-menu a:hover,
.nav-menu a.is-active { color: var(--on-night); }

.nav-menu a.is-active::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    margin: 0 auto;
    background: var(--on-night);
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.75px) rotate(-45deg); }

/* --- Hero ------------------------------------------------------------ */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-h) + 40px) 0 80px;
    background: var(--night);
    color: var(--on-night-2);
    overflow: hidden;
}

.vanta-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

/* Settle the field into the page instead of cutting it off */
.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to bottom, rgba(23, 19, 29, 0) 0%, rgba(23, 19, 29, 0.85) 78%, var(--night) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 32px;
}

.hero-title {
    font-size: clamp(2.75rem, 7vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.04;
    color: var(--on-night);
    margin-bottom: 28px;
}

.hero-subtitle {
    font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
    color: var(--on-night-2);
    max-width: 46ch;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* One authored arrival — the only scripted motion on the page */
.hero-title,
.hero-subtitle,
.hero-buttons {
    animation: rise 0.9s var(--ease) both;
}

.hero-subtitle { animation-delay: 0.09s; }
.hero-buttons  { animation-delay: 0.17s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
    to   { opacity: 1; transform: none; filter: none; }
}

/* --- Buttons --------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover { background: var(--accent-deep); }
.btn-primary:active { background: #772d54; }

.btn-primary:disabled {
    background: var(--night-2);
    color: var(--on-night-3);
    border-color: var(--rule-night);
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--on-night);
    border-color: var(--rule-night);
}

.btn-secondary:hover { border-color: var(--on-night-2); }

/* --- The grid: every card system on the page is this one -------------- */

.grid {
    display: grid;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cell {
    background: var(--surface);
    padding: 34px 30px 36px;
    display: flex;
    flex-direction: column;
    transition: background-color 0.25s var(--ease);
}

.cell:hover { background: #fdfcfe; }

.cell .icon {
    color: var(--ink-3);
    margin-bottom: 22px;
    transition: color 0.25s var(--ease);
}

.cell:hover .icon { color: var(--accent); }

.cell h3 {
    font-size: 1.0625rem;
    margin-bottom: 10px;
}

.cell p {
    font-size: 0.9375rem;
    color: var(--ink-2);
}

.cell-list {
    list-style: none;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
}

.cell-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.875rem;
    color: var(--ink-3);
    line-height: 2;
}

.cell-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.9em;
    width: 9px;
    height: 1px;
    background: var(--accent);
}

/* --- Roadmap ---------------------------------------------------------- */

.roadmap {
    max-width: 660px;
    margin: 0 auto;
    list-style: none;
}

.roadmap-item {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    position: relative;
    padding-bottom: 40px;
}

.roadmap-item:last-child { padding-bottom: 0; }

.roadmap-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 22px;
    top: 46px;
    bottom: -2px;
    width: 1px;
    background: var(--rule-2);
}

.roadmap-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    flex: none;
    border: 1px solid var(--rule-2);
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent-ink);
    font-size: 0.9375rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.roadmap-content { padding-top: 9px; }

.roadmap-content h3 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.roadmap-content p {
    font-size: 0.9375rem;
    color: var(--ink-3);
}

/* --- Contact ---------------------------------------------------------- */

.contact-content {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 64px;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}

.contact-info { list-style: none; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--rule-night);
}

.contact-item:first-child { padding-top: 0; }

.contact-item .icon {
    color: var(--on-night-3);
    margin-top: 2px;
}

.contact-item h3 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--on-night-3);
    margin-bottom: 3px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--on-night);
}

.contact-item a {
    color: var(--on-night);
    text-decoration: none;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: color 0.2s var(--ease);
}

.contact-item a:hover {
    color: var(--accent-lift);
    text-decoration: underline;
}

.contact-form { display: block; }

.form-group { margin-bottom: 26px; }

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--on-night-3);
    margin-bottom: 9px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 0;
    border: 0;
    border-bottom: 1px solid var(--rule-night);
    border-radius: 0;
    background: transparent;
    color: var(--on-night);
    caret-color: var(--accent-lift);
    font: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.2s var(--ease);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--on-night-3); }

.form-group input:hover,
.form-group textarea:hover { border-bottom-color: var(--on-night-3); }

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-lift);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: none;
    box-shadow: 0 1px 0 0 var(--accent-lift);
}

.form-group.has-error input,
.form-group.has-error textarea { border-bottom-color: #e9787c; }

.field-error {
    display: block;
    margin-top: 7px;
    font-size: 0.8125rem;
    color: #f0989b;
}

.form-status {
    margin-top: 18px;
    font-size: 0.9375rem;
    color: var(--accent-lift);
    min-height: 1.5em;
}

/* --- Footer ----------------------------------------------------------- */

.footer {
    background: var(--night);
    color: var(--on-night-2);
    border-top: 1px solid var(--rule-night);
    padding: 72px 0 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 56px;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    display: block;
    margin-bottom: 18px;
}

.footer-brand p {
    font-size: 0.9375rem;
    color: var(--on-night-3);
    max-width: 32ch;
}

.footer-section h2 {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--on-night-3);
    margin-bottom: 16px;
}

.footer-section ul { list-style: none; }

.footer-section ul li { margin-bottom: 10px; }

.footer-section ul li a {
    color: var(--on-night-2);
    font-size: 0.9375rem;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.footer-section ul li a:hover { color: var(--on-night); }

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--on-night-3);
    line-height: 0;
    transition: color 0.2s var(--ease);
}

.social-links a:hover { color: var(--on-night); }

.social-links .icon { width: 20px; height: 20px; }

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--rule-night);
    font-size: 0.875rem;
    color: var(--on-night-3);
}

/* --- Responsive -------------------------------------------------------- */

@media (max-width: 1080px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-content { grid-template-columns: 1fr 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-content { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 820px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        display: none;
        flex-direction: column;
        gap: 0;
        padding: 8px 0 20px;
        background: rgba(23, 19, 29, 0.98);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--rule-night);
    }

    .nav-menu.is-open { display: flex; }

    .nav-menu li { border-bottom: 1px solid var(--rule-night); }
    .nav-menu li:last-child { border-bottom: 0; }

    .nav-menu a { padding: 15px 32px; font-size: 1rem; }
    .nav-menu a::after { display: none; }
    .nav-menu a.is-active { color: var(--accent-lift); }
}

@media (max-width: 700px) {
    .container,
    .hero-container,
    .nav-container { padding: 0 20px; }

    .section { padding: 72px 0; }
    .section.dark { margin-top: 72px; padding-top: 72px; }
    .section-header { margin-bottom: 40px; }

    .grid-3,
    .grid-4 { grid-template-columns: minmax(0, 1fr); }

    .cell { padding: 30px 24px 32px; }

    .roadmap-item { gap: 20px; padding-bottom: 32px; }
    .roadmap-item:not(:last-child)::after { left: 20px; top: 42px; }
    .roadmap-number { width: 41px; height: 41px; }
    .roadmap-content { padding-top: 7px; }

    .footer { padding: 56px 0 28px; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 36px; margin-bottom: 40px; }
    .footer-brand { grid-column: 1 / -1; }

    .nav-menu a { padding: 15px 20px; }
}

@media (max-width: 420px) {
    .hero-title { letter-spacing: -0.03em; }
    .hero-buttons .btn { width: 100%; }
    .footer-content { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
