:root {
  --paper: #f6f4ef;
  --paper-2: #efece5;
  --card: #ffffff;
  --ink: #111216;
  --ink-2: #393c44;
  --muted: #6c7079;
  --line: rgba(17, 18, 22, 0.09);
  --accent: #2f45ff;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(17, 18, 22, 0.04), 0 12px 32px -12px rgba(17, 18, 22, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.08; letter-spacing: -0.028em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.todo { background: #ffe58a; color: #5a4300; padding: 1px 6px; border-radius: 6px; font-weight: 600; font-size: 0.9em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; font-size: 18px; }
.mark { width: 30px; height: 30px; color: var(--ink); flex: none; }
nav { display: flex; gap: 6px; }
nav a { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
nav a:hover, nav a[aria-current="page"] { background: rgba(17, 18, 22, 0.06); color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(17, 18, 22, 0.6); }
.btn-dark:hover { background: #000; }
.btn-light { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: rgba(17, 18, 22, 0.2); }
.btn-paper { background: var(--paper); color: var(--ink); margin-top: 28px; }
.btn span { font-size: 0.85em; opacity: 0.6; }

/* ---------- hero ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.eyebrow-light { color: rgba(246, 244, 239, 0.6); }
.lede { font-size: 20px; line-height: 1.55; color: var(--ink-2); max-width: 34em; margin-top: 22px; }
.hero { position: relative; overflow: hidden; padding: 96px 0 104px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); font-weight: 750; letter-spacing: -0.04em; max-width: 12ch; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.glow { position: absolute; inset: -20% -10% auto auto; width: 70%; height: 140%; pointer-events: none; filter: blur(70px); opacity: 0.55;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 78%); mask-image: linear-gradient(to bottom, #000 45%, transparent 78%);
  background:
    radial-gradient(closest-side at 30% 35%, rgba(233, 196, 106, 0.55), transparent),
    radial-gradient(closest-side at 70% 30%, rgba(254, 90, 93, 0.45), transparent),
    radial-gradient(closest-side at 55% 70%, rgba(47, 69, 255, 0.35), transparent),
    radial-gradient(closest-side at 85% 65%, rgba(244, 116, 59, 0.4), transparent);
}
.hero-art { position: relative; height: 440px; }
.float-icon { position: absolute; border-radius: 22.5%; box-shadow: 0 2px 4px rgba(17, 18, 22, 0.06), 0 24px 48px -16px rgba(17, 18, 22, 0.35); animation: float 7s ease-in-out infinite; }
.fi-1 { width: 132px; height: 132px; left: 6%; top: 4%; animation-delay: -1s; }
.fi-2 { width: 112px; height: 112px; left: 52%; top: 0; animation-delay: -3s; }
.fi-3 { width: 150px; height: 150px; left: 30%; top: 34%; animation-delay: -2s; z-index: 1; }
.fi-4 { width: 104px; height: 104px; left: 2%; top: 64%; animation-delay: -4s; }
.fi-5 { width: 118px; height: 118px; left: 66%; top: 58%; animation-delay: -5s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
@media (prefers-reduced-motion: reduce) { .float-icon { animation: none; } html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 48px 0 96px; }
.section-tint { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); font-weight: 720; }
.section-head p:not(.eyebrow) { margin-top: 16px; font-size: 19px; }

/* ---------- products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; transition: transform .2s, box-shadow .2s; }
.product:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(17, 18, 22, 0.04), 0 20px 44px -16px rgba(17, 18, 22, 0.2); }
.product:first-child { grid-column: span 2; }
.product-head { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 64px; height: 64px; border-radius: 22.5%; box-shadow: 0 0 0 1px rgba(17, 18, 22, 0.1), 0 8px 18px -8px rgba(17, 18, 22, 0.35); flex: none; }
.product h3 { font-size: 24px; font-weight: 700; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.badge { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; }
.badge-soon { background: #fff4d6; border-color: #f2dd9b; color: #6b5200; }
.product-tagline { font-size: 19px; font-weight: 650; color: var(--ink); letter-spacing: -0.015em; line-height: 1.35; margin-top: 4px; }
.points { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.points li { font-size: 14px; color: var(--ink-2); background: var(--paper); border-radius: 10px; padding: 6px 10px; }
.product-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.principle .num { display: inline-block; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; margin-bottom: 18px; }
.principle h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }

/* ---------- company card ---------- */
.company-card { background: var(--ink); color: rgba(246, 244, 239, 0.75); border-radius: 30px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; position: relative; overflow: hidden; }
.company-card::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; filter: blur(60px); background: radial-gradient(closest-side, rgba(47, 69, 255, 0.5), transparent); pointer-events: none; }
.company-card h2 { color: var(--paper); font-size: clamp(30px, 3.6vw, 42px); font-weight: 720; margin-bottom: 16px; }
.company-card a:not(.btn) { color: var(--paper); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: rgba(246, 244, 239, 0.12); border-radius: 18px; overflow: hidden; position: relative; z-index: 1; align-self: start; }
.facts > div { background: #17181d; padding: 18px 20px; }
.facts .span-2 { grid-column: span 2; }
.facts dt { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(246, 244, 239, 0.5); margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--paper); font-weight: 550; }

/* ---------- inner pages ---------- */
.page-hero { padding: 88px 0 24px; }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 740; letter-spacing: -0.038em; }
.not-found { padding-bottom: 120px; }
.prose h2 { font-size: 26px; font-weight: 700; margin: 48px 0 14px; }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 1.2em; margin: 14px 0; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.product-list { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.product-list li { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 0 !important; line-height: 1.45; }
.product-list img { width: 40px; height: 40px; border-radius: 22.5%; flex: none; }
.info { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); }
.info > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.info > div:first-child { border-top: 0; }
.info dt { font-weight: 650; color: var(--ink); }
.info dd { margin: 0; }
.info a { color: var(--accent); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.contact-card h3 { font-size: 15px; font-weight: 700; letter-spacing: 0; margin: 28px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }
.contact-card .big { font-size: 22px; font-weight: 650; letter-spacing: -0.015em; }
.contact-card .big a, .support-list a { color: var(--accent); text-decoration: none; }
.contact-card address { font-style: normal; }
.support-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 4px; }
.support-list li { display: grid; grid-template-columns: 32px 130px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.support-list li:first-child { border-top: 0; }
.support-list img { width: 32px; height: 32px; border-radius: 22.5%; }
.support-list span { font-weight: 650; color: var(--ink); }
.support-list a { overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin: 16px 0; max-width: 30em; font-size: 15px; }
.site-footer address { font-style: normal; font-size: 14px; color: var(--muted); line-height: 1.7; }
.site-footer address a { color: var(--ink-2); }
.site-footer h2 { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { height: 300px; max-width: 460px; }
  .fi-1 { width: 96px; height: 96px; } .fi-2 { width: 84px; height: 84px; } .fi-3 { width: 112px; height: 112px; }
  .fi-4 { width: 80px; height: 80px; } .fi-5 { width: 88px; height: 88px; }
  .product-grid, .principles, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .product:first-child { grid-column: auto; }
  .company-card { grid-template-columns: 1fr; padding: 36px 28px; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .brand span { display: none; }
  nav a { padding: 8px 10px; }
  .lede { font-size: 18px; }
  .product { padding: 22px; }
  .facts { grid-template-columns: 1fr; }
  .facts .span-2 { grid-column: auto; }
  .info > div { grid-template-columns: 1fr; gap: 2px; }
  .support-list li { grid-template-columns: 32px 1fr; }
  .support-list li a { grid-column: 2; }
}
