:root {
  --ink: #0a1020;
  --ink-soft: #202a3d;
  --paper: #f7f9fc;
  --white: #ffffff;
  --blue: #1859e8;
  --blue-dark: #0e3ca7;
  --blue-pale: #e8efff;
  --line: #dbe2ee;
  --muted: #647086;
  --yellow: #ffc928;
  --violet: #8d7cff;
  --success: #0b8068;
  --shadow: 0 24px 70px rgba(16, 35, 72, .11);
  --radius: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(24, 89, 232, .09), transparent 27rem),
    linear-gradient(180deg, #fff 0, var(--paper) 38rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 99;
  top: 1rem;
  left: 1rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.shell { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(219, 226, 238, .8);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
}
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .72rem; text-decoration: none; font-weight: 850; letter-spacing: -.03em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 11px;
  background: var(--ink);
  color: white;
  font-size: .82rem;
  letter-spacing: -.06em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.nav-links { display: flex; align-items: center; gap: 1.15rem; color: var(--ink-soft); font-size: .94rem; font-weight: 650; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--blue); }
.nav-contact { padding: .52rem .88rem; border-radius: 999px; color: white !important; background: var(--ink); }

.hero { padding: clamp(4rem, 9vw, 7.5rem) 0 3rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .72fr); align-items: end; gap: 3rem; }
.eyebrow { margin: 0 0 .8rem; color: var(--blue); font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 820px; margin-bottom: 1.25rem; font-size: clamp(3.1rem, 8vw, 6.8rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4.5vw, 3.55rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.hero-copy { max-width: 690px; margin: 0; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-note {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.75);
  color: var(--muted);
}
.hero-note strong { display: block; margin-bottom: .25rem; color: var(--ink); }

.apps-section { padding: 2.5rem 0 6rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.section-head h2 { margin-bottom: 0; }
.section-head p { max-width: 450px; margin: 0; color: var(--muted); }
.apps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.app-card {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  isolation: isolate;
}
.app-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  right: -6rem;
  bottom: -7rem;
  border-radius: 50%;
  background: var(--card-glow);
  filter: blur(2px);
  opacity: .65;
}
.app-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.app-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 12px 30px rgba(13,27,55,.18); }
.status { display: inline-flex; align-items: center; padding: .38rem .65rem; border-radius: 999px; background: #eff3f8; color: #47556c; font-size: .78rem; font-weight: 760; }
.app-card h3 { margin: 2rem 0 .8rem; font-size: clamp(2rem, 4vw, 3rem); }
.app-card > p { max-width: 30rem; min-height: 5.2rem; color: var(--ink-soft); font-size: 1.05rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1.8rem; }
.meta-row span { padding: .36rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.65); font-size: .8rem; font-weight: 700; }
.card-links { display: flex; flex-wrap: wrap; gap: .65rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .68rem 1rem; border-radius: 13px; text-decoration: none; font-weight: 760; }
.button.primary { background: var(--ink); color: white; }
.button.secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.button:hover { transform: translateY(-1px); }

.studio-strip { padding: 0 0 6rem; }
.studio-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; padding: clamp(2rem, 5vw, 4rem); border-radius: 32px; background: var(--ink); color: white; }
.studio-panel h2 { margin-bottom: 0; }
.studio-panel p { margin-top: 0; color: #c4cee0; font-size: 1.08rem; }
.studio-panel a { color: white; }

.page-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 2.5rem; }
.page-hero .crumbs { margin-bottom: 1rem; color: var(--muted); font-size: .9rem; }
.page-hero h1 { max-width: 920px; font-size: clamp(2.8rem, 7vw, 5.7rem); }
.page-hero .lede { max-width: 780px; color: var(--ink-soft); font-size: 1.15rem; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); align-items: start; gap: 3.5rem; padding: 1rem 0 6rem; }
.legal-nav { position: sticky; top: 100px; padding: 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: white; }
.legal-nav strong { display: block; margin-bottom: .7rem; }
.legal-nav a { display: block; padding: .35rem 0; color: var(--muted); font-size: .9rem; text-decoration: none; }
.legal-nav a:hover { color: var(--blue); }
.legal { min-width: 0; }
.legal section { scroll-margin-top: 100px; padding: 0 0 2.3rem; margin: 0 0 2.3rem; border-bottom: 1px solid var(--line); }
.legal h2 { margin-bottom: .85rem; font-size: clamp(1.65rem, 3vw, 2.3rem); }
.legal h3 { margin: 1.6rem 0 .55rem; font-size: 1.15rem; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal li + li { margin-top: .45rem; }
.legal a { color: var(--blue-dark); }
.callout { padding: 1.15rem 1.25rem; border-left: 4px solid var(--blue); border-radius: 0 14px 14px 0; background: var(--blue-pale); }
.contact-box { padding: clamp(1.4rem, 4vw, 2.2rem); border-radius: 22px; background: var(--ink); color: white; }
.contact-box p { color: #c4cee0; }
.contact-box a { color: white; }

.app-detail { padding-bottom: 6rem; }
.app-detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 4rem; }
.app-detail-icon { width: min(100%, 360px); border-radius: 28%; box-shadow: 0 35px 80px rgba(12, 27, 56, .2); justify-self: end; }
.app-detail h1 { font-size: clamp(3rem, 7vw, 5.9rem); }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3.5rem; }
.feature { padding: 1.35rem; border: 1px solid var(--line); border-radius: 18px; background: white; }
.feature strong { display: block; margin-bottom: .35rem; }
.feature p { margin: 0; color: var(--muted); font-size: .92rem; }
.disclaimer { margin-top: 2rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; color: var(--ink-soft); background: white; }

.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 2rem; padding: 3.5rem 0; }
.footer-brand p { max-width: 430px; color: var(--muted); }
.footer-col strong { display: block; margin-bottom: .8rem; }
.footer-col a { display: block; width: fit-content; margin: .42rem 0; color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--blue); }
.copyright { padding: 1rem 0 1.8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (prefers-reduced-motion: no-preference) {
  .app-card, .button { transition: transform .2s ease, box-shadow .2s ease; }
  .app-card:hover { transform: translateY(-4px); box-shadow: 0 30px 80px rgba(16, 35, 72, .16); }
}

@media (max-width: 820px) {
  .hero-grid, .studio-panel, .app-detail-grid, .legal-layout { grid-template-columns: 1fr; }
  .apps-grid { grid-template-columns: 1fr; }
  .hero-note { max-width: 520px; }
  .section-head { align-items: start; flex-direction: column; gap: .5rem; }
  .legal-nav { position: static; display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
  .legal-nav strong { width: 100%; }
  .app-detail-icon { width: min(76vw, 320px); justify-self: start; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 1.5rem, 1120px); }
  .nav { align-items: flex-start; padding: .8rem 0; }
  .nav-links { justify-content: flex-end; flex-wrap: wrap; gap: .45rem .8rem; font-size: .84rem; }
  .nav-links a:not(.nav-contact) { display: none; }
  .hero { padding-top: 3.6rem; }
  h1 { font-size: clamp(2.75rem, 15vw, 4.7rem); }
  .app-card { min-height: 0; }
  .app-card > p { min-height: 0; }
  .feature-list, .footer-grid { grid-template-columns: 1fr; }
  .footer-grid { gap: 1.2rem; }
}

@media (prefers-color-scheme: dark) {
  :root { --paper: #080d18; --white: #0f1625; --ink: #f4f7fc; --ink-soft: #c4cee0; --line: #263147; --muted: #98a5ba; --blue: #7ca4ff; --blue-dark: #a9c0ff; --blue-pale: #172747; --shadow: 0 24px 70px rgba(0,0,0,.3); }
  body { background: radial-gradient(circle at 8% 4%, rgba(65,112,255,.17), transparent 27rem), linear-gradient(180deg, #0b111e 0, var(--paper) 38rem); }
  .site-header { background: rgba(11, 17, 30, .88); }
  .brand-mark, .button.primary, .contact-box, .studio-panel { background: #f4f7fc; color: #0a1020; }
  .nav-contact { background: #f4f7fc; color: #0a1020 !important; }
  .hero-note, .app-card, .feature, .legal-nav, .button.secondary, .disclaimer, .site-footer { background: var(--white); }
  .studio-panel p, .contact-box p { color: #44516a; }
  .studio-panel a, .contact-box a { color: #0a1020; }
}

/* Compact bilingual legal pages */
.i18n-pending body.legal-simple-page { visibility: hidden; }
.legal-simple-page { background: #f7f7f5; color: #202124; }
.legal-simple-header { border-bottom: 1px solid #deded9; background: #fff; }
.legal-simple-bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(100% - 2rem, 860px); margin: 0 auto; padding: 1rem 0; }
.legal-simple-header .brand { font-size: 1rem; }
.legal-simple-header .brand-mark { width: 34px; height: 34px; border-radius: 9px; font-size: .72rem; }
.language-switcher { display: flex; align-items: center; gap: .5rem; color: #888; white-space: nowrap; }
.language-switcher button { border: 0; padding: .3rem 0; background: transparent; color: #5f6368; font: inherit; font-size: .9rem; cursor: pointer; }
.language-switcher button:hover, .language-switcher button[aria-pressed="true"] { color: #111; text-decoration: underline; text-underline-offset: 4px; }
.legal-simple-main { width: min(100% - 2rem, 820px); margin: 0 auto; padding: 3.25rem 0 5rem; }
.legal-document > header { margin-bottom: 2.2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #deded9; }
.legal-document h1 { margin: 0 0 .7rem; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.15; letter-spacing: -.035em; }
.legal-document h2 { margin: 2.4rem 0 .75rem; font-size: 1.35rem; line-height: 1.3; letter-spacing: -.015em; }
.legal-document h3 { margin: 1.35rem 0 .5rem; font-size: 1.05rem; }
.legal-document p, .legal-document li { color: #4b4d50; font-size: 1rem; line-height: 1.75; }
.legal-document p { margin: 0 0 1rem; }
.legal-document ul { padding-left: 1.35rem; }
.legal-document li + li { margin-top: .35rem; }
.legal-document a { color: #245bb8; overflow-wrap: anywhere; }
.legal-updated { color: #777 !important; font-size: .9rem !important; }
.legal-simple-footer { width: min(100% - 2rem, 820px); margin: 0 auto; padding: 1.6rem 0 2.5rem; border-top: 1px solid #deded9; color: #6f7275; font-size: .87rem; }
.legal-simple-footer div { display: flex; flex-wrap: wrap; gap: .55rem; }
.legal-simple-footer a { color: inherit; }
.legal-simple-footer p { margin: .65rem 0 0; }
@media (max-width: 540px) { .legal-simple-bar { align-items: flex-start; flex-direction: column; gap: .7rem; } .legal-simple-main { padding-top: 2.3rem; } }
@media (prefers-color-scheme: dark) {
  .legal-simple-page { background: #101214; color: #f2f2f2; }
  .legal-simple-header { background: #15181b; border-color: #35383c; }
  .legal-simple-header .brand-mark { background: #f4f7fc; color: #0a1020; }
  .language-switcher button { color: #b7bbc0; }
  .language-switcher button:hover, .language-switcher button[aria-pressed="true"] { color: #fff; }
  .legal-document > header, .legal-simple-footer { border-color: #35383c; }
  .legal-document p, .legal-document li { color: #c7c9cc; }
  .legal-document a { color: #91b4ff; }
}
