/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #0e1016;
  --text: #2a2e39;
  --muted: #5d6272;
  --line: #e6e3dc;

  --dark: #0b0c10;
  --dark-2: #13151c;
  --dark-line: rgba(255, 255, 255, .09);
  --on-dark: #f3f2ee;
  --on-dark-muted: #a1a5b3;

  --accent: #f0643a;
  --accent-soft: #ff8a5c;
  --accent-ink: #c2441c;
  --grad: linear-gradient(100deg, #ffb36b 0%, #f0643a 45%, #e8467c 100%);

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 16, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--dark-line);
  color: var(--on-dark);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo img { width: 32px; height: 32px; }

.nav { display: flex; align-items: center; gap: 32px; }

.nav a:not(.btn) {
  text-decoration: none;
  color: var(--on-dark-muted);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}

.nav a:not(.btn):hover { color: var(--on-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s;
}

.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(240, 100, 58, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.btn-glass {
  color: var(--on-dark);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .05);
}

.btn-glass:hover { background: rgba(255, 255, 255, .1); }

.btn-line {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
}

.btn-line:hover { border-color: #cfcabf; box-shadow: 0 10px 24px -16px rgba(14, 16, 22, .35); }

.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
  text-align: center;
  padding: 128px 0 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(42% 55% at 22% 10%, rgba(240, 100, 58, .26), transparent 70%),
    radial-gradient(40% 55% at 80% 20%, rgba(30, 163, 242, .18), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(60% 70% at 50% 30%, #000 20%, transparent 75%);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--on-dark-muted);
}

.pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 100, 58, .2);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px, 6.4vw, 80px);
  line-height: 1;
  letter-spacing: -0.04em;
  max-width: 15ch;
  margin: 26px auto 24px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  color: var(--on-dark-muted);
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 54ch;
  margin: 0 auto 38px;
}

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.brands {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 44px;
  margin-top: 104px;
  padding: 30px 0 34px;
  border-top: 1px solid var(--dark-line);
}

.brands .label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--on-dark);
  text-decoration: none;
  opacity: .88;
  transition: opacity .2s;
}

.brand-chip:hover { opacity: 1; }
.brand-chip img { width: 32px; height: 32px; border-radius: 9px; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 70px; }

.section { padding: 120px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}

.section-head { max-width: 700px; margin-bottom: 56px; }
.section-sub { color: var(--muted); font-size: 18.5px; margin: 0; max-width: 56ch; }

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.about h2 { margin: 0; }
.about-text p { font-size: 18px; color: var(--text); margin: 0 0 20px; }
.about-text p:last-child { margin-bottom: 0; }

/* Portfolio */
.portfolio-section { padding-top: 0; }

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -36px rgba(14, 16, 22, .35);
}

.product.gb { --brand: #138bd6; --tint: #e3f2fd; --shot-bg: linear-gradient(150deg, #e4f4fe 0%, #d3f1ee 100%); }
.product.fl { --brand: #14505c; --tint: #e0eced; --shot-bg: linear-gradient(150deg, #e7f0f1 0%, #d5e5e8 100%); }

.shot {
  padding: 32px 32px 0;
  background: var(--shot-bg);
  border-bottom: 1px solid var(--line);
}

.browser {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #fff;
  box-shadow: 0 -1px 0 rgba(14, 16, 22, .06), 0 18px 40px -22px rgba(14, 16, 22, .45);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  background: #f1f2f4;
  border-bottom: 1px solid #e3e5e9;
}

.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5d8dd; }

.browser-url {
  margin-left: 10px;
  padding: 0 10px;
  height: 18px;
  line-height: 18px;
  border-radius: 5px;
  background: #fff;
  color: #7a808c;
  font-size: 11px;
}

.browser img { width: 100%; height: auto; }

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 34px 36px 36px;
}

.product-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }

.product-head img {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  box-shadow: 0 10px 20px -12px rgba(14, 16, 22, .45);
}

.product-head h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 2px;
}

.product-head .domain { font-size: 14.5px; color: var(--muted); text-decoration: none; }
.product-head .domain:hover { color: var(--brand); }

.tag {
  align-self: flex-start;
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product .desc { font-size: 16.5px; color: var(--muted); margin: 0 0 24px; }

.checks { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 11px; }

.checks li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: 500; color: var(--text); }

.checks .tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--brand);
}

.checks .tick svg { width: 12px; height: 12px; }

.product-cta { margin-top: auto; align-self: flex-start; }

/* Dark section: principles + contact */
.dark-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
}

.dark-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(40% 30% at 85% 6%, rgba(30, 163, 242, .12), transparent 70%),
    radial-gradient(45% 35% at 15% 96%, rgba(240, 100, 58, .18), transparent 70%);
}

.dark-section .eyebrow { color: var(--accent-soft); }
.dark-section .section-sub { color: var(--on-dark-muted); }

.principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.principle {
  padding: 28px 26px 30px;
  border-radius: 20px;
  border: 1px solid var(--dark-line);
  background: rgba(255, 255, 255, .035);
}

.principle .ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgba(240, 100, 58, .13);
  color: var(--accent-soft);
}

.principle .ico svg { width: 22px; height: 22px; }

.principle h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.principle p { margin: 0; color: var(--on-dark-muted); font-size: 15.5px; }

.contact-card {
  scroll-margin-top: 96px;
  margin-top: 104px;
  padding: 72px 40px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .1);
  background:
    radial-gradient(55% 110% at 50% 0%, rgba(240, 100, 58, .32), transparent 70%),
    var(--dark-2);
  text-align: center;
}

.contact-card .eyebrow { justify-content: center; }
.contact-card h2 { margin: 0 auto 16px; }
.contact-card p { color: var(--on-dark-muted); font-size: 18px; max-width: 48ch; margin: 0 auto 34px; }
.contact-card .btn { height: 56px; padding: 0 28px; font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark-muted);
  font-size: 15px;
  padding: 72px 0 40px;
}

.dark-section + .site-footer { padding-top: 16px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 56px;
  border-top: 1px solid var(--dark-line);
}

.footer-grid .logo { color: var(--on-dark); margin-bottom: 14px; }
.footer-grid p { margin: 0; max-width: 32ch; }

.footer-col h4 {
  margin: 4px 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark);
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--on-dark); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  font-size: 14px;
}

.footer-bottom a { text-decoration: none; }

/* ---------- Legal pages ---------- */
.legal { padding: 88px 0 120px; }
.legal .wrap { max-width: 780px; }
.legal h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 10px;
}
.legal .updated { color: var(--muted); margin: 0 0 48px; }
.legal h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 10px; line-height: 1.2; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent-ink); }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; align-items: center; padding: 0 0 80px; text-align: left; }
.notfound .wrap { position: relative; }
.notfound .logo { display: inline-flex; color: var(--on-dark); }
.notfound .lead { margin-left: 0; }
.notfound .actions { justify-content: flex-start; }
.notfound .code {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(96px, 18vw, 200px);
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 0 0 12px;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; }
.js .reveal.d2 { transition-delay: .16s; }
.js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .product { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .products { grid-template-columns: 1fr; max-width: 620px; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { height: 62px; }
  .nav a:not(.btn) { display: none; }
  .logo { font-size: 18px; }
  .logo img { width: 28px; height: 28px; }
  .hero { padding-top: 80px; }
  .brands { margin-top: 72px; gap: 14px 28px; }
  .brands .label { width: 100%; }
  .brand-chip { font-size: 18px; }
  .section { padding: 80px 0; }
  .portfolio-section { padding-top: 0; }
  .section-head { margin-bottom: 36px; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .about-text p { font-size: 17px; }
  .shot { padding: 22px 22px 0; }
  .product-body { padding: 26px 22px 28px; }
  .product-head img { width: 48px; height: 48px; border-radius: 13px; }
  .product-head h3 { font-size: 24px; }
  .product-head { flex-wrap: wrap; }
  .product-head .tag { order: 3; margin-left: 0; }
  .principles { grid-template-columns: 1fr; }
  .contact-card { margin-top: 64px; padding: 52px 22px; border-radius: 22px; }
  .contact-card .btn { height: 52px; padding: 0 22px; font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .legal { padding: 56px 0 88px; }
}
