@font-face {
    font-family: "Anadaptive Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("jost.woff2") format("woff2");
}

:root {
    --bg: #050506;
    --bg-soft: #0c0c0e;
    --panel: rgba(255, 255, 255, 0.03);
    --panel-strong: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f7f8f8;
    --text-2: #b4bcd0;
    --text-3: #8a8f98;
    --brand-a: #aa45b5;
    --brand-b: #cc4388;
    --brand-c: #d73f74;
    --brand-grad: linear-gradient(92.88deg, #aa45b5 9.16%, #cc4388 43.89%, #d73f74 64.72%);
    --silver-grad: linear-gradient(to bottom right, #ffffff 30%, rgba(255, 255, 255, 0.62));
    --max: 1180px;
    --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: "Anadaptive Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }

::selection { background: rgba(204, 67, 136, 0.55); color: #fff; }

.shell { width: min(100% - 40px, var(--max)); margin: 0 auto; }

.skip-link {
    position: absolute; top: 12px; left: 12px; z-index: 60;
    transform: translateY(-160%);
    border-radius: 8px; background: var(--text); color: var(--bg);
    padding: 10px 14px; font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- header ---------- */

.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background 400ms ease, border-color 400ms ease;
}
.site-header.scrolled {
    background: rgba(5, 5, 6, 0.72);
    border-color: var(--line);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.nav-shell {
    min-height: 68px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 17px; letter-spacing: 0; }
.brand-mark { display: block; width: 30px; height: 30px; }

.nav-links { display: flex; align-items: center; gap: 4px; color: var(--text-3); font-size: 15px; }
.nav-links a, .nav-cta {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 38px; padding: 0 13px; border-radius: 8px;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}
.nav-links a:hover { color: var(--text); background: var(--panel-strong); }
.nav-cta { border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; font-size: 15px; }
.nav-cta:hover { border-color: rgba(255, 255, 255, 0.4); }

/* ---------- type ---------- */

.eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    color: var(--text-3); font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0;
}
.eyebrow::before {
    content: ""; width: 22px; height: 1px;
    background: var(--brand-grad);
}

.silver {
    display: block;
    overflow: visible;
    padding-bottom: 0.18em;
    margin-bottom: -0.18em;
    background: var(--silver-grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

h1 {
    font-size: clamp(46px, 6.4vw, 84px);
    line-height: 1.16; letter-spacing: 0; font-weight: 500;
    max-width: 900px;
}
h2 {
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.16; letter-spacing: 0; font-weight: 500;
    max-width: 780px;
}
h3 { font-size: 23px; line-height: 1.24; font-weight: 600; letter-spacing: 0; }

.lede { color: var(--text-2); font-size: 19px; line-height: 1.6; max-width: 640px; }

/* ---------- buttons ---------- */

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px; border-radius: 10px;
    font-weight: 600; font-size: 16px; border: 1px solid transparent;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
    background: var(--brand-grad); color: #fff;
    box-shadow: 0 8px 30px rgba(204, 67, 136, 0.35);
}
.button.primary:hover { box-shadow: 0 12px 40px rgba(204, 67, 136, 0.5); }
.button.ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.button.ghost:hover { border-color: rgba(255, 255, 255, 0.42); }
.ext::after { content: "\2197"; font-size: 0.85em; color: currentColor; opacity: 0.75; }

/* ---------- hero ---------- */

.hero {
    position: relative; overflow: hidden;
    padding: 168px 0 0;
}
.hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 42% at 50% -6%, rgba(170, 69, 181, 0.22), transparent),
        radial-gradient(ellipse 42% 34% at 78% 16%, rgba(215, 63, 116, 0.12), transparent);
}
.hero-copy { position: relative; display: grid; gap: 26px; justify-items: center; text-align: center; }
.hero-copy .lede { margin: 0 auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; padding-top: 8px; }

/* popout screen */

.popout {
    --popout-max-width: 1200px;
    --popout-page-gutter: 32px;
    position: relative;
    margin: 74px auto 0;
    width: 100%;
}
.popout::before {
    content: ""; position: absolute; inset: 8% -6% -12% -6%;
    background: radial-gradient(ellipse 60% 55% at 50% 60%, rgba(170, 69, 181, 0.28), rgba(215, 63, 116, 0.1) 55%, transparent 75%);
    filter: blur(30px);
    pointer-events: none;
}
.product-popout__stage {
    position: relative;
    width: min(var(--popout-max-width), calc(100% - (2 * var(--popout-page-gutter))));
    margin-inline: auto;
    perspective: 2000px;
}
.product-popout__frame {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: var(--bg-soft);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    transform-origin: center center;
    transform: rotateX(25deg);
}
.product-popout__frame > *,
.product-popout__frame::after {
    grid-column: 1;
    grid-row: 1;
}
.popout.in-view .product-popout__frame {
    animation: product-popout-reveal 1400ms 400ms forwards;
}
@keyframes product-popout-reveal {
    0% { transform: rotateX(25deg); }
    25% { transform: rotateX(25deg) scale(0.9); }
    60%, 100% { transform: none; }
}
.product-popout__image {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    min-width: 0;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: inherit;
}
.product-popout__frame::after {
    content: ""; pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.07), transparent 30%);
}
.popout-tags {
    position: relative; display: flex; justify-content: center; gap: 10px;
    margin-top: 26px; padding-bottom: 30px;
}
@media (max-width: 600px) {
    .popout { --popout-page-gutter: 24px; }
    .product-popout__frame { border-radius: 2px; }
}
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--panel); padding: 7px 15px;
    color: var(--text-2); font-size: 14px; font-weight: 600;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-grad); }

/* ---------- sections ---------- */

.section { position: relative; padding: 110px 0; }
.section-heading { display: grid; gap: 18px; margin-bottom: 48px; }
.section.tinted { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* portfolio cards */

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.product-card {
    display: grid; gap: 20px; align-content: start;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--panel); padding: 30px;
    transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.product-card:hover { border-color: var(--line-strong); background: var(--panel-strong); transform: translateY(-3px); }

.product-card-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
.product-card-header > a { color: var(--text-2); font-weight: 600; }
.product-card-header > a:hover { color: var(--text); }
.product-kicker {
    border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
    color: var(--text-2); font-weight: 600; letter-spacing: 0; text-transform: uppercase; font-size: 12px;
}
.product-card p { color: var(--text-2); }

.feature-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.feature-list li { position: relative; padding-left: 24px; color: var(--text-2); }
.feature-list li::before {
    content: ""; position: absolute; top: 0.62em; left: 0;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand-grad);
}

.card-preview {
    overflow: hidden; border: 1px solid var(--line); border-radius: 10px;
}
.card-preview img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; }
.card-cta { display: flex; gap: 12px; padding-top: 4px; }

/* agent graham gallery */

.screenshot-feature {
    overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: var(--bg-soft);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}
.screenshot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.screenshot-grid figure {
    overflow: hidden; border: 1px solid var(--line); border-radius: 12px;
    background: var(--panel);
    transition: border-color 200ms ease, transform 200ms ease;
}
.screenshot-grid figure:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.screenshot-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.screenshot-grid figcaption { padding: 12px 14px; color: var(--text-2); font-size: 14px; font-weight: 600; border-top: 1px solid var(--line); }

/* dialapp */

.dialapp-split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.dialapp-copy { display: grid; gap: 22px; justify-items: start; }
.dialapp-visual { position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.dialapp-visual img { width: 100%; }
.dialapp-visual figcaption {
    position: absolute; left: 14px; bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 999px;
    background: rgba(5, 5, 6, 0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: #fff; padding: 8px 15px; font-size: 14px; font-weight: 600;
}
.dialapp-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.dialapp-card {
    display: grid; gap: 12px; padding: 24px;
    border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
}
.dialapp-card p { color: var(--text-2); }
.status-dot { width: 11px; height: 11px; border-radius: 50%; background: #35c98d; box-shadow: 0 0 0 5px rgba(53, 201, 141, 0.15); }

/* company / story */

.story-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; }
.story-copy { display: grid; gap: 20px; }
.story-copy p { color: var(--text-2); font-size: 17px; line-height: 1.6; }
.story-visual { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6); }
.story-visual img { width: 100%; }

.company-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.company-grid article { display: grid; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.company-grid p { color: var(--text-2); }
.company-grid h3 { font-size: 19px; }
.company-grid h3 .num { color: var(--text-3); margin-right: 10px; font-weight: 500; }

/* cta */

.cta-section { position: relative; overflow: hidden; text-align: center; padding: 130px 0; }
.cta-glow {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(170, 69, 181, 0.2), transparent 70%);
}
.cta-inner { position: relative; display: grid; gap: 24px; justify-items: center; }
.cta-inner h2 { max-width: 640px; }
.cta-inner p { color: var(--text-2); font-size: 18px; max-width: 560px; }

/* footer */

.site-footer { border-top: 1px solid var(--line); padding: 36px 0; }
.footer-shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--text-3); font-size: 14px; }
.footer-shell nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-shell a { color: var(--text-2); font-weight: 600; }
.footer-shell a:hover { color: var(--text); }

/* reveal */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
    .product-grid, .dialapp-split, .story-split, .company-grid, .dialapp-band { grid-template-columns: 1fr; }
    .screenshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero { padding-top: 140px; }
}

@media (max-width: 760px) {
    .nav-links { display: none; }
    .hero { padding-top: 120px; }
    h1 { font-size: 46px; }
    .lede { font-size: 17px; }
    .screenshot-grid { grid-template-columns: 1fr; }
    .section { padding: 76px 0; }
    .footer-shell { flex-direction: column; align-items: flex-start; }
    .product-popout__frame, .popout.in-view .product-popout__frame { animation: none; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    .product-popout__frame { animation: none; transform: none; }
}
