/* ThinkOutsideTheBox LLC, site styles.
   Palette shared with docsfamily.com (deep navy, brass gold), kept sober and corporate.
   One self-hosted typeface: Archivo (variable weight and width). */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo.woff2') format('woff2-variations'), url('/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b1120;
  --bg-2: #0f172a;
  --card: #131c31;
  --card-2: #18233d;
  --line: rgba(226, 232, 240, 0.1);
  --line-strong: rgba(226, 232, 240, 0.18);
  --ink: #f1f5f9;
  --soft: #a3aec4;
  --mute: #8591a9;
  --gold: #d4b26a;
  --gold-2: #e8cf96;
  --gold-deep: #b8954a;
  --df: #7c8cff;      /* DocsFamily brand, used only in its section */
  --df-2: #5eead4;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; color: var(--gold-2); background: rgba(212, 178, 106, 0.1); padding: 0.1em 0.4em; border-radius: 6px; }

::selection { background: rgba(212, 178, 106, 0.35); color: #fff; }

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

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: 0.6rem 1rem; background: var(--gold); color: var(--bg); font-weight: 650; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 1rem; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.1rem;
  font-size: 0.8rem; font-weight: 650; font-stretch: 112%;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--df { color: var(--df); }
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(212, 178, 106, 0.16); }
.eyebrow__dot--pulse { animation: pulse 2.4s var(--ease) infinite; }

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.08; font-weight: 720; font-stretch: 104%;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }

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

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.actions--center { justify-content: center; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 50px; padding: 0.8rem 1.45rem;
  border: 1px solid transparent; border-radius: 12px;
  font: inherit; font-size: 1rem; font-weight: 650; font-stretch: 104%;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.button:hover { transform: translateY(-1px); }
.button--sm { min-height: 42px; padding: 0.55rem 1.05rem; font-size: 0.92rem; border-radius: 10px; }
.button--gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1406; box-shadow: 0 10px 30px -12px rgba(212, 178, 106, 0.55); }
.button--gold:hover { box-shadow: 0 14px 34px -12px rgba(212, 178, 106, 0.75); }
.button--ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-strong); color: var(--ink); }
.button--ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(226, 232, 240, 0.32); }
.button--df { background: linear-gradient(135deg, var(--df), #9f7aea); color: #0b1120; box-shadow: 0 10px 30px -12px rgba(124, 140, 255, 0.6); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 17, 32, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background-color 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(11, 17, 32, 0.88); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--ink); }
.brand picture { flex: none; }
.brand__logo { width: 52px; height: auto; }
.brand__name { font-weight: 720; font-stretch: 108%; letter-spacing: -0.01em; font-size: 1.08rem; }
.brand__llc { margin-left: 0.35rem; font-weight: 500; color: var(--gold); font-size: 0.78em; letter-spacing: 0.08em; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav__list { display: flex; gap: 1.9rem; }
.site-nav__list a { position: relative; color: var(--soft); text-decoration: none; font-weight: 500; font-size: 0.97rem; transition: color 0.2s; }
.site-nav__list a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.site-nav__list a:hover, .site-nav__list a[aria-current='page'] { color: var(--ink); }
.site-nav__list a[aria-current='page']::after { transform: scaleX(1); }
.site-nav__list a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; align-items: center; gap: 0.6rem;
  min-height: 44px; padding: 0.5rem 0.9rem;
  background: rgba(255, 255, 255, 0.04); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px;
  font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s var(--ease), background-color 0.2s; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .brand__logo { width: 44px; }
  .nav-toggle { display: inline-flex; }
  /* Closed by default on small screens; .site-nav.is-open (higher specificity) opens it. */
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: rgba(11, 17, 32, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  }
  .site-nav.is-open { display: flex; animation: drop 0.25s var(--ease); }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a { display: block; padding: 0.9rem 0; font-size: 1.1rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .site-nav__list a::after { display: none; }
  .site-nav__cta { width: 100%; }
}

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

.hero { position: relative; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4rem, 9vw, 7.5rem); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.hero__glow { position: absolute; width: 900px; height: 900px; right: -260px; top: -300px; background: radial-gradient(closest-side, rgba(212, 178, 106, 0.11), rgba(124, 140, 255, 0.04) 55%, transparent); pointer-events: none; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }

.hero__title {
  font-size: clamp(2.5rem, 5.6vw, 4.4rem);
  line-height: 1.03; font-weight: 740; font-stretch: 100%;
  letter-spacing: -0.035em;
  text-wrap: balance;
  margin-bottom: 1.5rem;
}
.hero__title em { font-style: normal; color: var(--gold); background: linear-gradient(180deg, var(--gold-2), var(--gold-deep)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__lead { max-width: 56ch; font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--soft); margin-bottom: 2.1rem; }

.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.75rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.hero__facts li { padding-right: 1.25rem; }
.hero__facts li + li { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.hero__facts strong { display: block; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.hero__facts span { display: block; font-size: 0.88rem; color: var(--mute); }

.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__frame {
  position: relative; width: min(100%, 460px); aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 40%, rgba(212, 178, 106, 0.12), transparent 65%), linear-gradient(160deg, #17213a, #0d1426);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hero__frame picture { display: block; width: 80%; margin: auto; }
.hero__logo { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55)); transform-origin: 50% 50%; animation: float 9s ease-in-out infinite; }
.hero__corner { position: absolute; width: 34px; height: 34px; border-color: var(--gold); border-style: solid; opacity: 0.7; }
.hero__corner--tl { top: 16px; left: 16px; border-width: 1px 0 0 1px; border-top-left-radius: 10px; }
.hero__corner--br { bottom: 16px; right: 16px; border-width: 0 1px 1px 0; border-bottom-right-radius: 10px; }

@media (max-width: 520px) {
  .hero__facts li { padding-right: 0.75rem; }
  .hero__facts li + li { padding-left: 0.75rem; }
  .hero__facts strong { font-size: 1rem; }
  .hero__facts span { font-size: 0.8rem; line-height: 1.35; }
  .brand__name { font-size: 0.98rem; }
  .brand__llc { display: none; }
  .hero .eyebrow { font-size: 0.72rem; letter-spacing: 0.1em; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 0.5rem 0.75rem; }
  .hero .actions .button { flex: 1 1 100%; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .hero__frame { width: min(78%, 340px); border-radius: 22px; }
}

/* ---------- DocsFamily flagship ---------- */

.flagship { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.flagship::before { content: ''; position: absolute; width: 900px; height: 900px; left: -300px; top: -200px; background: radial-gradient(closest-side, rgba(124, 140, 255, 0.12), transparent); pointer-events: none; }
.flagship .wrap { position: relative; }
.flagship__tagline { margin-top: 1rem; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; color: var(--ink); font-weight: 450; text-wrap: balance; }
.flagship__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.flagship__text { font-size: 1.12rem; color: var(--soft); margin-bottom: 1.5rem; }
.flagship__launch { color: var(--soft); font-size: 0.98rem; margin-bottom: 2rem; }
.badge { display: inline-block; margin: 0 0.5rem 0.4rem 0; padding: 0.3rem 0.75rem; border-radius: 999px; font-size: 0.82rem; font-weight: 650; color: var(--df-2); background: rgba(94, 234, 212, 0.08); border: 1px solid rgba(94, 234, 212, 0.28); }

@media (max-width: 960px) { .flagship__grid { grid-template-columns: 1fr; } }

/* Demo window */
.demo { position: relative; border-radius: var(--radius); background: linear-gradient(180deg, #151f38, #101931); border: 1px solid var(--line-strong); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), 0 0 90px -50px rgba(124, 140, 255, 0.7); overflow: hidden; }
.demo__bar { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); font-size: 0.82rem; }
.demo__dots { display: inline-flex; gap: 6px; }
.demo__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.demo__app { font-weight: 650; }
.demo__lock { margin-left: auto; color: var(--df-2); font-size: 0.78rem; }
.demo__body { display: grid; grid-template-columns: 210px 1fr; min-height: 300px; }
.demo__docs { padding: 0.9rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.35rem; }
.demo__doc { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.65rem; border-radius: 10px; border: 1px solid transparent; transition: background-color 0.35s, border-color 0.35s; }
.demo__doc b { display: block; font-size: 0.86rem; font-weight: 600; line-height: 1.25; }
.demo__doc small { display: block; font-size: 0.74rem; color: var(--mute); }
.demo__doc.is-active { background: rgba(124, 140, 255, 0.12); border-color: rgba(124, 140, 255, 0.35); }
.demo__icon { flex: none; width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); position: relative; }
.demo__icon::after { content: ''; position: absolute; inset: 7px; background: var(--soft); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.demo__doc.is-active .demo__icon::after { background: var(--df); }
.demo__icon--home { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.demo__icon--car { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 11l1.5-4.5A2 2 0 0 1 8.4 5h7.2a2 2 0 0 1 1.9 1.5L19 11a2 2 0 0 1 2 2v4h-2v2h-3v-2H8v2H5v-2H3v-4a2 2 0 0 1 2-2zm2.2 0h9.6l-1-3H8.2zM6.5 15a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3zm11 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z'/%3E%3C/svg%3E"); }
.demo__icon--lease { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h9l5 5v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm8 1.5V8h4.5zM8 12h8v1.6H8zm0 4h8v1.6H8z'/%3E%3C/svg%3E"); }
.demo__icon--id { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h12a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm6 5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7zM8.5 17v1.6h7V17z'/%3E%3C/svg%3E"); }

.demo__chat { padding: 1.4rem; display: flex; flex-direction: column; gap: 0.8rem; justify-content: flex-end; }
.demo__q, .demo__a { max-width: 88%; padding: 0.75rem 1rem; border-radius: 16px; font-size: 0.97rem; line-height: 1.45; }
.demo__q { align-self: flex-end; min-height: 2.9em; background: var(--df); color: #0b1120; font-weight: 600; border-bottom-right-radius: 5px; }
.demo__a { align-self: flex-start; background: rgba(11, 17, 32, 0.85); border: 1px solid var(--line-strong); border-bottom-left-radius: 5px; }
.demo__src { margin-top: 0.45rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.demo__typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 0.85rem 1rem; border-radius: 16px; background: rgba(11, 17, 32, 0.85); border: 1px solid var(--line); }
.demo__typing[hidden] { display: none; }
.demo__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--soft); animation: blink 1s infinite; }
.demo__typing i:nth-child(2) { animation-delay: 0.15s; }
.demo__typing i:nth-child(3) { animation-delay: 0.3s; }
.demo__caption { padding: 0.7rem 1.1rem; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--mute); }

/* Animated state only when JS runs the demo */
.demo.is-live .demo__q, .demo.is-live .demo__a { opacity: 0; transform: translateY(8px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.demo.is-live .demo__q.is-shown, .demo.is-live .demo__a.is-shown { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .demo__body { grid-template-columns: 1fr; }
  .demo__docs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .demo__doc { flex: none; }
  .demo__doc small { display: none; }
  .demo__lock { display: none; }
  .demo__chat { min-height: 210px; padding: 1.1rem; }
}

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { padding: 1.9rem 1.8rem 2rem; background: var(--bg-2); transition: background-color 0.3s; }
.feature:hover { background: #121b30; }
.feature h3 { font-size: 1.12rem; font-weight: 680; letter-spacing: -0.01em; margin: 1.1rem 0 0.45rem; }
.feature p { color: var(--soft); font-size: 0.98rem; }
.feature__icon { display: block; width: 42px; height: 42px; border-radius: 12px; background: rgba(124, 140, 255, 0.1); border: 1px solid rgba(124, 140, 255, 0.25); position: relative; }
.feature__icon::after { content: ''; position: absolute; inset: 10px; background: var(--df); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.feature__icon--shield { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.4-8 11-4.6-1.6-8-6-8-11V5zm-1 13.4l6-6-1.4-1.4-4.6 4.6-2.1-2.1L7.5 12z'/%3E%3C/svg%3E"); }
.feature__icon--family { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 11a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7zm8.5 1a3 3 0 1 1 0-6 3 3 0 0 1 0 6zM1 20c0-3.9 3.1-7 7-7s7 3.1 7 7zm15.5 0c0-2-.7-3.9-1.9-5.4A5.5 5.5 0 0 1 23 19v1z'/%3E%3C/svg%3E"); }
.feature__icon--key { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14.5 2a7.5 7.5 0 1 1-2.1 14.7L10 19.1V21H8v1H3v-4.4l7.3-7.3A7.5 7.5 0 0 1 14.5 2zm2 3.5a2 2 0 1 0 0 4 2 2 0 0 0 0-4z'/%3E%3C/svg%3E"); }
.feature__icon--eye { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.3 2l18.7 18.7-1.3 1.3-3.4-3.4A11 11 0 0 1 1 12a11.7 11.7 0 0 1 4.2-5.2L2 3.3zM12 4.5c5 0 9.3 3.1 11 7.5a11.8 11.8 0 0 1-3.1 4.5l-3.5-3.5A4.5 4.5 0 0 0 11 7.6L8.6 5.1A11 11 0 0 1 12 4.5z'/%3E%3C/svg%3E"); }
.feature__icon--spark { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l2.6 7.4L22 11l-7.4 2.6L12 21l-2.6-7.4L2 11l7.4-2.6z'/%3E%3C/svg%3E"); }
.feature__icon--devices { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 4h15a1 1 0 0 1 1 1v3h-2V6H4v9h9v2H1v-1.5h1V5a1 1 0 0 1 1-1zm13 6h6a1 1 0 0 1 1 1v9a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1zm1 2v6h4v-6z'/%3E%3C/svg%3E"); }

@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- Approach ---------- */

.approach { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.approach__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.approach__intro { position: sticky; top: 110px; }
.approach__intro p:not(.eyebrow) { margin-top: 1.25rem; color: var(--soft); font-size: 1.1rem; max-width: 42ch; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.principle { position: relative; padding: 1.9rem 1.8rem 2rem; border-radius: var(--radius); background: linear-gradient(180deg, var(--card), rgba(19, 28, 49, 0.4)); border: 1px solid var(--line); transition: border-color 0.3s, transform 0.3s var(--ease); }
.principle:hover { border-color: rgba(212, 178, 106, 0.35); }
.principle__num { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 1.6rem; }
.principle h3 { font-size: 1.2rem; font-weight: 680; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.principle p { color: var(--soft); font-size: 0.98rem; }

@media (max-width: 960px) {
  .approach__grid { grid-template-columns: 1fr; }
  .approach__intro { position: static; }
}
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; } }

/* ---------- Next app teaser ---------- */

.next { padding: 0 0 clamp(4.5rem, 9vw, 7.5rem); }
.next__card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 3rem; align-items: center;
  padding: clamp(2rem, 5vw, 3.75rem);
  border-radius: 24px;
  background: radial-gradient(ellipse at 85% 50%, rgba(212, 178, 106, 0.14), transparent 60%), linear-gradient(135deg, #141d33, #0e1528);
  border: 1px solid rgba(212, 178, 106, 0.22);
}
.next__copy p:not(.eyebrow) { margin-top: 1.1rem; color: var(--soft); font-size: 1.08rem; max-width: 56ch; }
.next__box { position: relative; justify-self: center; width: 210px; height: 190px; perspective: 600px; }
.next__crate {
  position: absolute; inset: 40px 0 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #1b2644, #121a30);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.next__lid {
  position: absolute; left: -8px; right: -8px; top: 22px; height: 30px; z-index: 2;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.6);
  transform-origin: 15% 100%;
  animation: lid 5s var(--ease) infinite;
}
.next__label { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.next__stamp { padding: 0.35rem 0.85rem; border: 1px dashed rgba(212, 178, 106, 0.6); border-radius: 8px; color: var(--gold); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; }

@media (max-width: 760px) {
  .next__card { grid-template-columns: 1fr; }
  .next__box { order: -1; width: 180px; height: 160px; }
}

/* ---------- CTA ---------- */

.cta { position: relative; padding: clamp(4.5rem, 9vw, 7rem) 0; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(212, 178, 106, 0.12), transparent 70%), var(--bg); }
.cta__inner { max-width: 760px; }
.cta__title { font-size: clamp(2rem, 4.6vw, 3.3rem); line-height: 1.07; font-weight: 740; letter-spacing: -0.03em; text-wrap: balance; }
.cta__inner p { margin: 1.1rem auto 2.1rem; color: var(--soft); font-size: 1.12rem; max-width: 52ch; }

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

.site-footer { border-top: 1px solid var(--line); background: #090e1b; padding-top: 3.5rem; font-size: 0.95rem; }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.75rem; }
.site-footer__tag { margin-top: 1rem; color: var(--mute); }
.site-footer__title { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.site-footer__col li + li { margin-top: 0.55rem; }
.site-footer__col a { color: var(--soft); text-decoration: none; }
.site-footer__col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__muted { color: var(--mute); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-block: 1.5rem 2rem; border-top: 1px solid var(--line); color: var(--mute); font-size: 0.88rem; }
.site-footer__top { color: var(--soft); text-decoration: none; }
.site-footer__top:hover { color: var(--ink); }

@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__company { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */

.notfound { padding: clamp(5rem, 14vw, 10rem) 0; }
.notfound__inner { max-width: 760px; }
.notfound h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.05; font-weight: 740; letter-spacing: -0.03em; margin-bottom: 1.25rem; }
.notfound__text { color: var(--soft); font-size: 1.12rem; margin-bottom: 2rem; word-break: break-word; }

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

.contact { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4.5rem, 9vw, 7rem); overflow: hidden; }
.contact__glow { position: absolute; width: 900px; height: 900px; left: -320px; top: -360px; background: radial-gradient(closest-side, rgba(212, 178, 106, 0.1), rgba(124, 140, 255, 0.04) 55%, transparent); pointer-events: none; }
.contact__grid { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__title { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; font-weight: 740; letter-spacing: -0.035em; margin-bottom: 1.25rem; }
.contact__lead { color: var(--soft); font-size: clamp(1.05rem, 1.5vw, 1.18rem); max-width: 48ch; }
.contact__points { margin-top: 2.5rem; display: grid; gap: 1.4rem; border-top: 1px solid var(--line); padding-top: 2rem; }
.contact__points li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__points strong { display: block; font-weight: 680; margin-bottom: 0.15rem; }
.contact__points span:not(.contact__icon) { display: block; color: var(--soft); font-size: 0.96rem; }
.contact__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(212, 178, 106, 0.1); border: 1px solid rgba(212, 178, 106, 0.28); position: relative; }
.contact__icon::after { content: ''; position: absolute; inset: 10px; background: var(--gold); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.contact__icon--chat { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 3h16a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H9l-5 4v-4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2zm3 6v2h10V9zm0 4v2h7v-2z'/%3E%3C/svg%3E"); }
.contact__icon--shield { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.4-8 11-4.6-1.6-8-6-8-11V5zm-1 13.4l6-6-1.4-1.4-4.6 4.6-2.1-2.1L7.5 12z'/%3E%3C/svg%3E"); }
.contact__icon--app { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 2h9l5 5v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1zm8 1.5V8h4.5zM8 12h8v1.6H8zm0 4h8v1.6H8z'/%3E%3C/svg%3E"); }

.contact__card { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 22px; background: linear-gradient(180deg, var(--card), #0f172b); border: 1px solid var(--line-strong); box-shadow: 0 40px 90px -45px rgba(0, 0, 0, 0.95); }

.form { display: grid; gap: 1.25rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form__field { display: grid; gap: 0.45rem; }
.form__label { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.form__label small { font-weight: 450; color: var(--mute); }
.form input, .form select, .form textarea {
  width: 100%; padding: 0.8rem 0.95rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: rgba(11, 17, 32, 0.7);
  border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.form textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: rgba(226, 232, 240, 0.3); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 178, 106, 0.2); background: rgba(11, 17, 32, 0.95); }
.form__select { position: relative; display: block; }
.form__select::after { content: ''; position: absolute; right: 1rem; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.form select { -webkit-appearance: none; appearance: none; padding-right: 2.5rem; cursor: pointer; }
.form select option { background: var(--bg-2); color: var(--ink); }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__turnstile { min-height: 65px; }
.form__status { padding: 0.9rem 1rem; border-radius: 12px; font-size: 0.96rem; }
.form__status[hidden] { display: none; }
.form__status--error { color: #fecaca; background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.35); }
.form__status--ok { display: grid; gap: 0.2rem; color: #ccfbf1; background: rgba(94, 234, 212, 0.08); border: 1px solid rgba(94, 234, 212, 0.35); }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.form__note { font-size: 0.85rem; color: var(--mute); }
.button:disabled { opacity: 0.7; cursor: progress; transform: none; }

@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .form__row { grid-template-columns: 1fr; }
  .form__actions .button { width: 100%; }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.features .reveal:nth-child(3n + 2), .principles .reveal:nth-child(2n) { transition-delay: 0.08s; }
.features .reveal:nth-child(3n) { transition-delay: 0.16s; }
.hero .reveal:nth-child(2) { transition-delay: 0.06s; }
.hero .reveal:nth-child(3) { transition-delay: 0.12s; }
.hero .reveal:nth-child(4) { transition-delay: 0.18s; }
.hero .reveal:nth-child(5) { transition-delay: 0.24s; }

/* ---------- Keyframes ---------- */

@keyframes float { 0%, 100% { transform: translateY(5px) rotate(0deg); } 50% { transform: translateY(-5px) rotate(-1deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(212, 178, 106, 0.16); } 50% { box-shadow: 0 0 0 8px rgba(212, 178, 106, 0.04); } }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes lid { 0%, 55%, 100% { transform: rotate(0deg) translateY(0); } 70% { transform: rotate(-14deg) translateY(-14px); } 85% { transform: rotate(-4deg) translateY(-4px); } }

/* ---------- Reduced motion ---------- */

@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; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
