:root {
  --paper: #f6f7f9;
  --paper-warm: #fbf5ee;
  --surface: #ffffff;
  --surface-dark: #111823;
  --ink: #172130;
  --muted: #647083;
  --line: rgba(23, 33, 48, 0.11);
  --copper: #a5663f;
  --copper-soft: #f4dfcf;
  --violet: #6948e8;
  --coral: #f16f68;
  --mint: #16a88f;
  --blue: #347bd8;
  --focus: #005fcc;
  --shadow: 0 24px 70px rgba(28, 36, 49, 0.12);
  --radius: 26px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

body.product-page {
  --paper: #f7f8fb;
  --ink: #182333;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface-dark);
  color: white;
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-nav {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(23, 33, 48, 0.08);
  background: rgba(246, 247, 249, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-nav .nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(165, 102, 63, 0.28);
  border-radius: 13px;
  background: linear-gradient(145deg, #fff, var(--copper-soft));
  color: var(--copper);
  font-size: 19px;
  box-shadow: 0 8px 24px rgba(165, 102, 63, 0.16);
}

.brand-word { font-size: 20px; }
.brand-word span { color: var(--copper); }

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a,
.mobile-menu a {
  padding: 10px 13px;
  border-radius: 11px;
  color: #4d5969;
  text-decoration: none;
  font-size: 14px;
  font-weight: 720;
}

.nav-links a:hover,
.mobile-menu a:hover { background: rgba(23, 33, 48, 0.06); color: var(--ink); }

.nav-links .nav-cta {
  margin-left: 6px;
  background: var(--surface-dark);
  color: white;
}

.nav-links .nav-cta:hover { background: #273447; color: white; }
.mobile-menu { display: none; margin-left: auto; }
.mobile-menu summary { cursor: pointer; font-weight: 780; }
.mobile-menu div { padding: 8px 0 16px; display: grid; }

.eyebrow {
  margin: 0 0 16px;
  color: var(--copper);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 94px;
}

.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -250px;
  top: -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 111, 104, 0.2), rgba(105, 72, 232, 0.08) 55%, transparent 72%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 70px;
  align-items: center;
}

.hero h1,
.product-hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(48px, 7vw, 90px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 900;
}

.hero h1 em {
  color: var(--copper);
  font-style: normal;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.button-row { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(23, 33, 48, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(23, 33, 48, 0.11); }
.button.primary { border-color: var(--surface-dark); background: var(--surface-dark); color: white; }
.button.crush { border-color: #25203d; background: #25203d; color: white; }
.button.disabled { cursor: default; opacity: 0.78; }
.button.disabled:hover { transform: none; }

.trust-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  color: #5e6877;
  font-size: 14px;
  font-weight: 720;
}

.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--mint); font-weight: 900; }

.hero-board {
  min-height: 470px;
  position: relative;
  border: 1px solid rgba(23, 33, 48, 0.08);
  border-radius: 34px;
  background: linear-gradient(145deg, #fff 5%, #f2e9e0 48%, #e8e8fb);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-board::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(23, 33, 48, 0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(135deg, black, transparent 72%);
}

.board-card {
  position: absolute;
  z-index: 2;
  width: min(280px, 70%);
  padding: 22px;
  border: 1px solid rgba(23, 33, 48, 0.09);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(23, 33, 48, 0.15);
}

.board-card small { display: block; margin-bottom: 7px; color: var(--muted); font-weight: 750; }
.board-card strong { font-size: 20px; line-height: 1.2; }
.board-card.one { left: 7%; top: 12%; transform: rotate(-3deg); }
.board-card.two { right: 6%; top: 37%; transform: rotate(3deg); }
.board-card.three { left: 12%; bottom: 8%; transform: rotate(1deg); }
.board-card .dot { width: 10px; height: 10px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--coral); }

.section { padding: 92px 0; }
.section.white { border-block: 1px solid var(--line); background: var(--surface); }
.section.dark { background: var(--surface-dark); color: white; }

.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2,
.legal-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.section-heading p { margin: 16px 0 0; color: var(--muted); font-size: 18px; }
.dark .section-heading p { color: #aab4c2; }

.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.app-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(23, 33, 48, 0.07);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.app-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.app-card.static:hover { transform: none; box-shadow: 0 12px 32px rgba(23, 33, 48, 0.07); }
.app-visual { height: 235px; min-height: 235px; overflow: hidden; background: #eceff3; }
.app-visual img { width: 100%; height: 100%; object-fit: cover; }
.app-card.crush-card .app-visual { background: linear-gradient(145deg, #ffdce9, #e7ddff); }
.app-card.crush-card .app-visual img { width: 72%; margin-inline: auto; object-position: center 12%; }
.app-copy { padding: 30px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.app-copy h3 { margin: 17px 0 10px; font-size: 28px; letter-spacing: -0.035em; }
.app-copy p { margin: 0; color: var(--muted); }
.app-copy .more { margin-top: auto; padding-top: 26px; color: var(--copper); font-weight: 820; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eef1f5;
  color: #596474;
  font-size: 12px;
  font-weight: 850;
}
.status.live { background: #e4f6ed; color: #16724e; }
.status.soon { background: #fceae7; color: #a3433e; }
.status.dev { background: #ece9fc; color: #513bb8; }

/* KernCraft portfolio intro */
.portfolio-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 96px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 15%, rgba(255,107,44,.12), transparent 28%),
    radial-gradient(circle at 86% 24%, rgba(105,72,232,.13), transparent 30%),
    var(--paper);
}
.portfolio-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(23,33,48,.075) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.38), transparent 78%);
  pointer-events: none;
}
.portfolio-hero-inner { position: relative; z-index: 1; text-align: center; }
.portfolio-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(52px, 8vw, 94px);
  line-height: .96;
  letter-spacing: -.07em;
  font-weight: 900;
}
.portfolio-hero h1 em { color: var(--copper); font-style: normal; }
.portfolio-hero .hero-copy { margin-inline: auto; }
.app-chip-row { max-width: 980px; margin: 42px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.app-chip-row span { display: inline-flex; align-items: center; gap: 9px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.86); font-size: 14px; font-weight: 790; box-shadow: 0 8px 22px rgba(23,33,48,.055); }
.app-chip-row i { width: 9px; height: 9px; border-radius: 50%; background: var(--app-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--app-color) 15%, transparent); }
.centered { justify-content: center; }

.principles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.principle-card { padding: 26px; border: 1px solid rgba(255,255,255,.12); border-radius: 21px; background: rgba(255,255,255,.055); }
.principle-card b { display: block; margin-bottom: 10px; font-size: 18px; }
.principle-card p { margin: 0; color: #aab4c2; font-size: 14px; }
.principle-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 13px; background: rgba(255,255,255,.1); }

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-warm); }
.about-card strong { display: block; margin-bottom: 12px; font-size: 24px; }
.about-card p { margin: 0; color: var(--muted); }

.site-footer { padding: 46px 0 60px; border-top: 1px solid var(--line); background: #eef0f3; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { margin: 0 0 10px; font-size: 18px; }
.footer-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.footer-links { display: grid; align-content: start; gap: 9px; }
.footer-links a { color: #4d5969; font-size: 14px; }
.footer-bottom { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* CrushVibe product */
.crush-nav .brand-mark { border-color: rgba(241, 111, 104, .25); background: linear-gradient(145deg, #fff, #ffe6e2); color: var(--coral); }
.product-hero { position: relative; overflow: hidden; padding: 76px 0 104px; }
.product-hero::before,
.product-hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(6px); pointer-events: none; }
.product-hero::before { width: 560px; height: 560px; top: -260px; left: -220px; background: radial-gradient(circle, rgba(241,111,104,.22), transparent 70%); }
.product-hero::after { width: 620px; height: 620px; right: -270px; bottom: -320px; background: radial-gradient(circle, rgba(105,72,232,.18), transparent 70%); }
.product-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: center; }
.crush-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; font-size: 20px; font-weight: 900; letter-spacing: -.025em; }
.crush-symbol { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; background: linear-gradient(145deg, var(--coral), var(--violet)); color: white; box-shadow: 0 15px 30px rgba(105,72,232,.22); }
.crush-symbol svg { width: 30px; height: 30px; }
.crush-symbol.icon-image { overflow: hidden; background: none; }
.crush-symbol.icon-image img { width: 100%; height: 100%; object-fit: cover; }
.product-hero h1 { max-width: 600px; font-size: clamp(50px, 7vw, 82px); }
.gradient-text { color: var(--violet); }
.product-lead { max-width: 620px; margin: 24px 0 0; color: var(--muted); font-size: 20px; }
.availability { display: inline-flex; margin-top: 22px; padding: 7px 12px; border-radius: 999px; background: #ece9fc; color: #513bb8; font-size: 13px; font-weight: 820; }
.phones { min-height: 620px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: end; }
.phone { position: relative; width: 100%; overflow: hidden; border: 9px solid #111823; border-radius: 45px; background: #111823; box-shadow: 0 32px 70px rgba(24,35,51,.22); }
.phone img { width: 100%; height: auto; }
.phone.one { z-index: 2; margin-bottom: 30px; }
.phone.two { z-index: 1; margin-top: 30px; }
.privacy-strip { padding: 25px 0; background: #25203d; color: white; }
.privacy-strip .wrap { display: flex; justify-content: center; gap: 22px 42px; flex-wrap: wrap; }
.privacy-strip span { font-size: 14px; font-weight: 770; }
.privacy-strip span::before { content: "●"; margin-right: 9px; color: #7be2c7; font-size: 10px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card { padding: 30px; border: 1px solid var(--line); border-radius: 23px; background: white; }
.feature-card .icon { width: 47px; height: 47px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 15px; background: #fff0ed; color: #b94843; font-size: 21px; }
.feature-card:nth-child(2) .icon { background: #e7f7f3; color: #087d69; }
.feature-card:nth-child(3) .icon { background: #ece9fc; color: #513bb8; }
.feature-card:nth-child(4) .icon { background: #e7f0fc; color: #286bbf; }
.feature-card h3 { margin: 0 0 9px; font-size: 22px; }
.feature-card p { margin: 0; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 28px; border-top: 1px solid rgba(255,255,255,.17); counter-increment: step; }
.step::before { content: "0" counter(step); display: block; margin-bottom: 38px; color: #8f80ed; font-weight: 900; letter-spacing: .08em; }
.step h3 { margin: 0 0 9px; font-size: 21px; }
.step p { margin: 0; color: #aab4c2; }
.safety-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; align-items: stretch; }
.safety-main, .safety-side { padding: 36px; border-radius: var(--radius); }
.safety-main { background: linear-gradient(145deg, #fff0ed, #f4edff); }
.safety-side { background: white; border: 1px solid var(--line); }
.safety-main h2 { margin: 0 0 16px; font-size: clamp(32px,4vw,50px); line-height: 1.05; letter-spacing: -.04em; }
.safety-main p, .safety-side p { color: var(--muted); }
.safety-list { display: grid; gap: 13px; margin-top: 24px; }
.safety-list div { display: flex; gap: 11px; align-items: flex-start; font-weight: 720; }
.safety-list div::before { content: "✓"; color: var(--mint); font-weight: 900; }
.crisis-box { margin-top: 20px; padding: 18px; border-radius: 16px; background: #fff4df; color: #6c4b12; font-size: 14px; }
.cta-panel { padding: 56px; border-radius: 32px; background: linear-gradient(125deg, #25203d, #352b5f 55%, #633f6e); color: white; text-align: center; box-shadow: var(--shadow); }
.cta-panel h2 { max-width: 730px; margin: 0 auto; font-size: clamp(34px,5vw,56px); line-height: 1.04; letter-spacing: -.045em; }
.cta-panel p { max-width: 620px; margin: 18px auto 0; color: #d8d3eb; }
.cta-panel .button-row { justify-content: center; }

/* Legal and support */
.legal-hero { padding: 72px 0 42px; }
.legal-hero p { max-width: 720px; color: var(--muted); font-size: 18px; }
.legal-layout { display: grid; grid-template-columns: 230px minmax(0, 760px); gap: 60px; align-items: start; padding-bottom: 90px; }
.legal-toc { position: sticky; top: 96px; display: grid; gap: 9px; }
.legal-toc a { color: var(--muted); font-size: 14px; }
.legal-content { padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.legal-content h2 { margin: 40px 0 12px; font-size: 25px; letter-spacing: -.025em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin: 24px 0 8px; }
.legal-content p, .legal-content li { color: #566274; }
.legal-content a { color: #3d57a7; }
.legal-content .highlight { padding: 18px; border-radius: 15px; background: #eaf7f3; color: #245c52; }
.legal-content .warning { padding: 18px; border-radius: 15px; background: #fff4df; color: #6c4b12; }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 30px; }
.support-card { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.support-card h2, .support-card h3 { margin-top: 0; }
.faq { display: grid; gap: 12px; }
.faq details { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.faq summary { cursor: pointer; font-weight: 820; }
.faq p { margin-bottom: 0; color: var(--muted); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .mobile-menu { display: block; }
  .hero-grid, .product-hero-grid, .about-grid, .safety-grid { grid-template-columns: 1fr; }
  .hero-board { min-height: 410px; }
  .principles-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .phones { min-height: 590px; max-width: 620px; width: 100%; margin-inline: auto; }
  .phone { width: 100%; }
  .legal-layout { grid-template-columns: 1fr; gap: 24px; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 8px 18px; }
}

@media (max-width: 660px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .site-nav .nav-inner { min-height: 64px; }
  .brand-word { font-size: 18px; }
  .hero, .product-hero, .portfolio-hero { padding: 58px 0 72px; }
  .hero h1, .product-hero h1 { font-size: clamp(44px, 15vw, 65px); }
  .hero-grid { gap: 46px; }
  .hero-board { min-height: 370px; }
  .board-card { padding: 18px; }
  .board-card strong { font-size: 17px; }
  .section { padding: 70px 0; }
  .app-grid, .feature-grid, .steps, .support-grid { grid-template-columns: 1fr; }
  .portfolio-hero h1 { font-size: clamp(46px, 15vw, 66px); }
  .app-card { min-height: 0; }
  .app-card { min-height: 0; }
  .app-visual { min-height: 220px; }
  .principles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .phones { min-height: 510px; }
  .phone { width: 100%; border-width: 6px; border-radius: 32px; }
  .phone.one { margin-bottom: 20px; }
  .phone.two { margin-top: 20px; }
  .cta-panel { padding: 40px 24px; }
  .legal-content { padding: 24px 20px; }
  .legal-hero { padding-top: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (prefers-contrast: more) {
  :root { --line: rgba(23, 33, 48, .32); --muted: #475365; }
  .button, .app-card, .feature-card, .legal-content, .support-card, .faq details { border-width: 2px; }
}
