:root {
  --paper: #eff2f0;
  --paper-deep: #e1e7e3;
  --ink: #161918;
  --muted: #4d5651;
  --blue: #3762e4;
  --coral: #ff6d4a;
  --green: #a9cdb1;
  --line: rgba(22, 25, 24, 0.22);
  --display: "Manrope", sans-serif;
  --body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
::selection { color: white; background: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
button { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header { min-height: 92px; margin: 0 clamp(1.25rem, 4vw, 4rem); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: .8rem; font: 800 1.25rem/1 var(--display); text-decoration: none; letter-spacing: -.04em; }
.brand-mark { width: 34px; height: 34px; overflow: visible; }
.mark-a { fill: var(--blue); }.mark-b { fill: var(--coral); }.mark-c { fill: var(--green); }
nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 3rem); }
nav a { position: relative; color: var(--muted); text-decoration: none; font-weight: 500; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.4rem; height: 2px; background: var(--blue); transition: right .25s ease; }
nav a:hover { color: var(--ink); } nav a:hover::after { right: 0; }
.menu-toggle { display: none; border: 0; background: none; color: var(--ink); }

.hero { height: 620px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); border-bottom: 1px solid var(--line); }
.hero-copy { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 4vw, 4rem) 5rem; display: flex; flex-direction: column; align-items: flex-start; }
h1,h2,h3,p { margin-top: 0; }
h1 { max-width: 880px; margin-bottom: 1.8rem; font: 800 clamp(3.4rem, 6.6vw, 6rem)/.96 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.dot { color: var(--coral); }
.hero-intro { max-width: 580px; margin-bottom: 2.6rem; color: var(--muted); font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.02em; }
.primary-action { display: inline-flex; align-items: center; gap: 2.5rem; padding: 1rem 1.25rem 1rem 1.5rem; background: var(--blue); color: white; font-weight: 600; border-radius: 12px; text-decoration: none; box-shadow: 0 14px 30px rgba(55, 98, 228, .18); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease; }
.primary-action svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }.primary-action:hover { transform: translateY(-3px); box-shadow: 0 20px 36px rgba(55, 98, 228, .26); }

.generative-stage { position: relative; min-height: 560px; border-left: 1px solid var(--line); overflow: hidden; isolation: isolate; }
#identity-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.apps-section, .principles, .legal-hub { padding: clamp(5rem, 10vw, 10rem) clamp(1.25rem, 4vw, 4rem); }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: end; margin-bottom: clamp(3rem, 6vw, 6rem); }
.section-heading h2, .principle-lead h2, .legal-hub h2 { margin-bottom: 0; font: 800 clamp(2.7rem, 5vw, 5rem)/1 var(--display); letter-spacing: -.04em; }
.section-heading p { max-width: 430px; margin: 0; color: var(--muted); font-size: 1.15rem; }
.app-list { border-top: 1px solid var(--ink); }
.app-row { min-height: 150px; display: grid; grid-template-columns: 80px 1fr auto; gap: clamp(1rem, 3vw, 3rem); align-items: center; border-bottom: 1px solid var(--line); }
.app-link { grid-template-columns: 80px 1fr auto 28px; color: inherit; text-decoration: none; }
.app-link .app-symbol { transition: transform .25s ease; }.app-link:hover .app-symbol { transform: scale(1.04); }.app-link:hover .app-arrow { transform: translate(3px,-3px); color: var(--blue); }
.app-arrow { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.app-symbol { width: 64px; height: 64px; border-radius: 14px; position: relative; }
.symbol-blue { display: grid; grid-template-columns: repeat(2,8px); grid-template-rows: repeat(2,8px); place-content: center; gap: 5px; background: var(--blue); }
.symbol-blue span { background: white; border-radius: 2px; }
.symbol-coral { background: var(--coral); }.symbol-coral span { position: absolute; width: 24px; height: 24px; left: 20px; top: 20px; border: 3px solid white; transform: rotate(45deg); }
.symbol-green { background: var(--green); }.symbol-green span { position: absolute; width: 28px; height: 17px; left: 18px; top: 23px; background: white; border-radius: 100% 0 100% 0; transform: rotate(-20deg); }
.app-copy h3 { margin-bottom: .3rem; font: 700 clamp(1.3rem, 2vw, 1.8rem) var(--display); letter-spacing: -.03em; }.app-copy p { margin: 0; color: var(--muted); }
.status { padding: .4rem .7rem; background: var(--paper-deep); border-radius: 99px; color: var(--muted); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.muted-row .app-symbol { filter: saturate(.65); }

.principles { background: var(--ink); color: white; }
.principle-lead { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: end; }
.principle-lead p { max-width: 580px; margin: 0; color: #b8c1bc; font-size: clamp(1.1rem, 2vw, 1.4rem); }
.principle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 7rem; background: rgba(255,255,255,.18); }
.principle-grid article { min-height: 300px; padding: 2.25rem; background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; }
.principle-grid h3 { margin: 1.8rem 0 .5rem; font: 700 1.55rem var(--display); }.principle-grid p { margin: 0; color: #aeb8b3; }
.principle-shape { width: 70px; height: 70px; margin-bottom: auto; display: block; }.shape-one { border-radius: 0 100% 0 100%; background: var(--blue); }.shape-two { border-radius: 50%; background: var(--coral); }.shape-three { border-radius: 100% 0 100% 0; background: var(--green); }

.legal-hub { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: start; }
.legal-links { border-top: 1px solid var(--ink); }
.legal-links a { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 2rem; min-height: 100px; border-bottom: 1px solid var(--line); text-decoration: none; }
.legal-links span { font: 700 1.2rem var(--display); }.legal-links small { color: var(--muted); font-size: .95rem; }.legal-links svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }.legal-links a:hover svg { transform: translate(3px,-3px); color: var(--blue); }

footer { min-height: 150px; margin: 0 clamp(1.25rem, 4vw, 4rem); border-top: 1px solid var(--ink); display: grid; grid-template-columns: 1fr auto auto; gap: 3rem; align-items: center; color: var(--muted); font-size: .85rem; }
.footer-brand { color: var(--ink); }.footer-brand i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

.legal-page main { width: min(760px, calc(100% - 2.5rem)); margin: 0 auto; padding: 7rem 0; }.legal-page h1 { font-size: clamp(3rem, 7vw, 5rem); }.legal-page h2 { margin-top: 3rem; font: 700 1.4rem var(--display); }.legal-page p,.legal-page li { color: var(--muted); }.legal-page .notice { padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-deep); }.back-link { display: inline-block; margin-bottom: 2rem; font-weight: 600; }
.legal-document h2:first-child { margin-top: 0; }.legal-document h3 { margin: 2.5rem 0 .75rem; font: 700 1.15rem var(--display); }.legal-document code { padding: .15em .35em; border-radius: 4px; background: var(--paper-deep); font-size: .88em; }.legal-document li { margin-bottom: .55rem; }.legal-document a { color: var(--blue); }

.product-page main { padding: 0 clamp(1.25rem, 4vw, 4rem); }.product-hero { min-height: 520px; display: grid; grid-template-columns: 160px minmax(0, 780px); gap: clamp(2rem, 5vw, 5rem); align-items: center; border-bottom: 1px solid var(--line); }.product-hero img { width: 128px; height: 128px; border-radius: 28px; }.product-hero h1 { margin-bottom: 1.5rem; }.product-hero p { max-width: 650px; color: var(--muted); font-size: 1.25rem; }.product-hero .product-state { margin-bottom: 1rem; color: var(--blue); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.product-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin: 7rem 0; }.product-facts article { min-height: 250px; padding: 2rem; background: var(--paper); }.product-facts h2 { font: 700 1.35rem var(--display); }.product-facts p { color: var(--muted); }
.product-legal { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; padding: 3rem 0 8rem; }.product-legal > h2 { margin: 0; font: 800 clamp(2.5rem, 5vw, 4.5rem)/1 var(--display); letter-spacing: -.04em; }

@media (max-width: 900px) {
  .site-header { min-height: 76px; }
  .menu-toggle { display: block; cursor: pointer; }
  .home-header nav { position: absolute; top: 76px; left: -1.25rem; right: -1.25rem; padding: 1.5rem; display: none; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--ink); } .home-header nav.open { display: flex; }
  .legal-page nav { gap: 1rem; font-size: .9rem; }
  .legal-page .site-header { height: auto; padding: 1rem 0; flex-wrap: wrap; gap: .75rem; }.legal-page .site-header .brand { width: 100%; }.legal-page .site-header nav { width: 100%; justify-content: space-between; }
  .product-hero { min-height: 580px; grid-template-columns: 1fr; gap: 2rem; align-content: center; }.product-hero img { width: 96px; height: 96px; border-radius: 22px; }.product-facts { grid-template-columns: 1fr; margin: 4rem 0; }.product-facts article { min-height: 190px; }.product-legal { grid-template-columns: 1fr; gap: 3rem; }
  .hero { min-height: auto; height: auto; grid-template-columns: 1fr; }.hero-copy { padding-top: 5rem; }.generative-stage { min-height: 240px; border-left: 0; border-top: 1px solid var(--line); }
  .section-heading,.principle-lead,.legal-hub { grid-template-columns: 1fr; }.principle-grid { grid-template-columns: 1fr; margin-top: 4rem; }.principle-grid article { min-height: 240px; }
  .legal-hub { gap: 3rem; }
}
@media (max-width: 620px) {
  h1 { font-size: clamp(2.75rem, 13vw, 3.7rem); }.hero-copy { padding: 3rem 1.25rem 2.5rem; }
  .generative-stage { min-height: 180px; }
  .apps-section { padding-top: 3rem; }
  .section-heading { align-items: start; }.app-row { min-height: 175px; grid-template-columns: 64px 1fr; gap: 1rem; }.app-link { grid-template-columns: 64px 1fr 24px; }.status { grid-column: 2; width: max-content; }.app-link .app-arrow { grid-column: 3; grid-row: 1 / span 2; }.app-copy p { font-size: .88rem; }
  .legal-links a { grid-template-columns: 1fr auto; gap: .5rem; padding: 1rem 0; }.legal-links small { grid-column: 1; }.legal-links svg { grid-column: 2; grid-row: 1 / span 2; }
  footer { grid-template-columns: 1fr; gap: 1rem; padding: 2.5rem 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
