@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,650&display=swap");

:root {
  --ink: #11120f;
  --paper: #f7f8f3;
  --white: #ffffff;
  --blue: #1d4ed8;
  --green: #cbf437;
  --coral: #ff675d;
  --line: #cbd0c5;
  --muted: #5c6258;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

a { color: inherit; }

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--green);
  border: 2px solid var(--ink);
  padding: 8px 14px;
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 248, 243, .95);
  border-bottom: 1px solid var(--ink);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(calc(100% - 40px), var(--max));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: "Newsreader", serif;
  font-size: 30px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { font-size: 14px; font-weight: 700; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--white);
  border: 2px solid var(--ink);
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.button:hover, .button:focus-visible { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--blue); }
.button.light { background: var(--white); color: var(--ink); }

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 110px));
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
  background: #dfe3d8 url("assets/product-board.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 18, 15, .34);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 64px 0;
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 10px;
  background: var(--green);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; font-family: "Newsreader", serif; font-weight: 650; line-height: 1.02; letter-spacing: 0; }
h1 { max-width: 850px; font-size: clamp(52px, 9vw, 106px); }
h2 { font-size: clamp(38px, 6vw, 66px); }
h3 { font-size: 30px; }

.hero p { max-width: 650px; margin: 22px 0 28px; font-size: clamp(18px, 2.4vw, 24px); line-height: 1.45; }

.section { border-bottom: 1px solid var(--ink); }
.section-inner { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 88px 0; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; margin-bottom: 44px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 18px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { min-height: 360px; display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--white); border-radius: 6px; overflow: hidden; }
.product-card:nth-child(2) { background: var(--blue); color: var(--white); }
.product-card:nth-child(3) { background: var(--green); }
.product-visual { aspect-ratio: 16 / 9; padding: 24px; border-bottom: 1px solid var(--ink); display: grid; place-items: center; background: var(--paper); color: var(--ink); }
.product-visual .mini-page { width: 78%; height: 82%; border: 2px solid currentColor; padding: 12px; display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); }
.product-visual .mini-page i { border: 1px solid currentColor; }
.product-body { padding: 24px; display: flex; flex: 1; flex-direction: column; }
.product-body p { margin: 14px 0 28px; }
.product-meta { margin-top: auto; display: flex; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid currentColor; font-weight: 700; }

.process { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.step { min-height: 230px; padding: 28px; border-right: 1px solid var(--ink); }
.step:last-child { border-right: 0; }
.step b { display: block; margin-bottom: 36px; color: var(--blue); font-size: 14px; }
.step p { margin: 14px 0 0; color: var(--muted); }

.company-band { background: var(--ink); color: var(--white); }
.company-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: start; }
.company-grid p { max-width: 670px; font-size: 20px; }
.company-details { margin: 0; border-top: 1px solid #60645d; }
.company-details div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid #60645d; }
.company-details dt { color: #b9beb4; }
.company-details dd { margin: 0; }

.legal-page main { width: min(calc(100% - 40px), 860px); margin: 0 auto; padding: 80px 0 110px; }
.legal-page h1 { font-size: clamp(48px, 8vw, 82px); }
.legal-page h2 { margin: 50px 0 12px; font-family: "Newsreader", serif; font-size: 30px; }
.legal-page p, .legal-page li { color: #3f443d; }
.legal-meta { margin: 20px 0 48px; padding-bottom: 24px; border-bottom: 1px solid var(--line); color: var(--muted); }

.site-footer { background: var(--white); }
.footer-inner { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 42px 0; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a { font-size: 14px; }
.footer-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .6s ease both; }
  .hero-inner > *:nth-child(2) { animation-delay: .08s; }
  .hero-inner > *:nth-child(3) { animation-delay: .16s; }
  .hero-inner > *:nth-child(4) { animation-delay: .24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 820px) {
  .nav-links a:not(.button) { display: none; }
  .hero { min-height: min(680px, calc(100svh - 88px)); background-position: 46% center; }
  .hero-inner { padding: 42px 0; }
  .section-inner { padding: 64px 0; }
  .section-heading, .company-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-grid, .process { grid-template-columns: 1fr; }
  .product-card { min-height: 0; }
  .step { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .step:last-child { border-bottom: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 440px) {
  .nav { width: min(calc(100% - 28px), var(--max)); min-height: 64px; }
  .brand { font-size: 26px; }
  .button { padding-inline: 14px; }
  .hero-inner, .section-inner, .footer-inner, .legal-page main { width: min(calc(100% - 28px), var(--max)); }
  h1 { font-size: 49px; }
  .company-details div { grid-template-columns: 1fr; gap: 4px; }
}
