:root {
  --ink: #102637;
  --teal: #123b46;
  --teal-soft: #dbe8e6;
  --coral: #f26b4a;
  --coral-dark: #c84b31;
  --cream: #f5f0e8;
  --paper: #fffdf9;
  --green: #4b8b72;
  --muted: #66747b;
  --line: rgba(16, 38, 55, 0.14);
  --shadow: 0 22px 70px rgba(16, 38, 55, 0.12);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 36px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper);
}
.skip-link:focus { transform: translateY(0); }

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(245, 240, 232, 0.12);
  color: var(--paper);
  background: rgba(18, 59, 70, 0.94);
  backdrop-filter: blur(18px);
}

.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 11px;
  background: url("../img/logo-embromation-zero-symbol.svg") center / cover no-repeat;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}
.brand small { display: block; font-size: 0.63rem; font-weight: 650; letter-spacing: 0.16em; opacity: 0.68; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: inherit; font-size: 0.92rem; text-decoration: none; opacity: 0.82; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links .nav-cta { padding: 10px 17px; border-radius: 999px; color: var(--ink); background: var(--coral); font-weight: 800; opacity: 1; }
.menu-toggle { display: none; border: 0; color: inherit; background: transparent; font-size: 1.5rem; cursor: pointer; }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  background: var(--teal);
}
.hero::before { content: ""; position: absolute; width: 420px; height: 420px; right: -210px; top: -130px; border: 1px solid rgba(242, 107, 74, 0.4); border-radius: 50%; }
.hero-grid { min-height: 690px; display: grid; grid-template-columns: 1.05fr 0.85fr; align-items: center; gap: 70px; padding-block: 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--coral); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.hero h1, .page-hero h1 { max-width: 780px; margin: 0; font-size: clamp(3rem, 7vw, 6.6rem); line-height: 0.92; letter-spacing: -0.065em; }
.hero h1 em { color: var(--coral); font-family: Georgia, serif; font-weight: 500; }
.hero-copy > p:not(.eyebrow) { max-width: 640px; margin: 28px 0 0; color: rgba(255, 253, 249, 0.76); font-size: clamp(1rem, 2vw, 1.22rem); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 21px; border: 1px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 800; cursor: pointer; }
.button-primary { color: var(--ink); background: var(--coral); }
.button-primary:hover { background: #ff8061; }
.button-ghost { border-color: rgba(255, 255, 255, 0.28); color: var(--paper); background: transparent; }
.button-dark { color: var(--paper); background: var(--ink); }

.avatar-card { position: relative; max-width: 470px; justify-self: end; }
.avatar-frame { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 180px 180px 26px 26px; box-shadow: var(--shadow); }
.avatar-frame img { aspect-ratio: 1 / 1.1; width: 100%; object-fit: cover; object-position: center top; }
.avatar-tag { position: absolute; right: -18px; bottom: 34px; width: min(260px, 70%); padding: 16px 18px; border-radius: 16px; color: var(--ink); background: var(--paper); box-shadow: 0 18px 50px rgba(0,0,0,.2); }
.avatar-tag strong { display: block; font-size: 1.04rem; }
.avatar-tag span { color: var(--muted); font-size: .78rem; }
.ai-chip { position: absolute; top: 28px; left: -25px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(16,38,55,.78); font-size: .74rem; font-weight: 750; }

.trust-strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 24px; border-right: 1px solid var(--line); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border: 0; }
.trust-item strong { display: block; font-size: 1.25rem; letter-spacing: -0.03em; }
.trust-item span { color: var(--muted); font-size: .82rem; }

.section { padding-block: 100px; }
.section-tight { padding-block: 64px; }
.section-dark { color: var(--paper); background: var(--ink); }
.section-paper { background: var(--paper); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 42px; }
.section-head h2 { max-width: 760px; margin: 0; font-size: clamp(2.1rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -0.055em; }
.section-head > p { max-width: 420px; margin: 0; color: var(--muted); }
.section-dark .section-head > p { color: rgba(255,255,255,.64); }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.category-card { min-height: 265px; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(16,38,55,.08); }
.category-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--teal); background: var(--teal-soft); font-size: 1.25rem; font-weight: 900; }
.category-card:nth-child(2) .category-icon, .category-card:nth-child(4) .category-icon { color: var(--coral-dark); background: #fae0d9; }
.category-card h3 { margin: 30px 0 7px; font-size: 1.25rem; }
.category-card p { margin: 0; color: var(--muted); font-size: .9rem; }

.method-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.method-intro { position: sticky; top: 120px; }
.method-intro h2 { margin: 0 0 22px; font-size: clamp(2.3rem, 5vw, 4.4rem); line-height: .98; letter-spacing: -.055em; }
.method-intro p { color: rgba(255,255,255,.65); }
.steps { counter-reset: steps; }
.step { counter-increment: steps; display: grid; grid-template-columns: 74px 1fr; gap: 20px; padding: 30px 0; border-top: 1px solid rgba(255,255,255,.14); }
.step::before { content: "0" counter(steps); color: var(--coral); font-family: Georgia, serif; font-size: 1.3rem; font-style: italic; }
.step h3 { margin: 0 0 8px; font-size: 1.3rem; }
.step p { margin: 0; color: rgba(255,255,255,.64); }

.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.offer-card { position: relative; display: flex; flex-direction: column; min-height: 260px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.offer-card .offer-kicker { color: var(--coral-dark); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.offer-card h3 { margin: 14px 0 8px; font-size: 1.3rem; line-height: 1.2; }
.offer-card p { color: var(--muted); font-size: .9rem; }
.offer-card .button { align-self: flex-start; margin-top: auto; }
.empty-state { grid-column: 1 / -1; padding: 40px; border: 1px dashed rgba(16,38,55,.25); border-radius: var(--radius); background: rgba(255,255,255,.38); text-align: center; }
.empty-state strong { display: block; margin-bottom: 8px; font-size: 1.25rem; }
.empty-state p { max-width: 620px; margin: auto; color: var(--muted); }

.quote-band { padding: 72px 0; color: var(--ink); background: var(--coral); }
.quote-band blockquote { max-width: 970px; margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 4.3rem); font-style: italic; line-height: 1.05; letter-spacing: -.045em; }

.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.faq h2 { margin: 0; font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.faq details { padding: 22px 0; border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; list-style: none; }
.faq summary::after { content: "+"; float: right; color: var(--coral-dark); font-size: 1.3rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 50px 0 0; color: var(--muted); }

.page-hero { padding: 96px 0 74px; color: var(--paper); background: var(--teal); }
.page-hero h1 { max-width: 960px; font-size: clamp(3.2rem, 8vw, 7.2rem); }
.page-hero p { max-width: 700px; margin: 24px 0 0; color: rgba(255,255,255,.68); font-size: 1.1rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: transparent; cursor: pointer; }
.filter.active { border-color: var(--ink); color: var(--paper); background: var(--ink); }
.legal { max-width: 820px; }
.legal h2 { margin-top: 52px; font-size: 1.8rem; letter-spacing: -.03em; }
.legal h3 { margin-top: 32px; }
.legal p, .legal li { color: #4f5e65; }
.notice { margin: 30px 0; padding: 20px 22px; border-left: 4px solid var(--coral); background: var(--paper); }

.dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.metric span { color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.metric strong { display: block; margin-top: 8px; font-size: 2.6rem; line-height: 1; letter-spacing: -.06em; }
.metric small { color: var(--muted); }
.status-ready { color: var(--green); }
.status-blocked { color: var(--coral-dark); }
.table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.badge-ready { color: #1b5f47; background: #d9eee6; }
.badge-blocked { color: #973b29; background: #f9ddd6; }

.site-footer { padding: 60px 0 30px; color: rgba(255,255,255,.72); background: var(--teal); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .6fr .6fr; gap: 60px; }
.footer-grid h3 { color: var(--paper); }
.footer-grid p { max-width: 480px; }
.footer-grid a { display: block; margin: 8px 0; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.13); font-size: .78rem; }

@media (max-width: 900px) {
  .hero-grid, .method-grid, .faq { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; padding-top: 60px; }
  .hero h1 { font-size: clamp(3.4rem, 14vw, 6rem); }
  .avatar-card { max-width: 500px; justify-self: center; }
  .method-intro { position: static; }
  .card-grid, .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .section-head { display: block; }
  .section-head > p { margin-top: 20px; }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .menu-toggle { display: block; }
  .nav-links { position: absolute; inset: 76px 0 auto; display: none; flex-direction: column; align-items: stretch; padding: 24px; background: var(--teal); }
  .nav-links.open { display: flex; }
  .nav-links .nav-cta { text-align: center; }
  .hero-grid { min-height: auto; padding-bottom: 70px; }
  .avatar-tag { right: 10px; }
  .ai-chip { left: 10px; }
  .trust-grid, .card-grid, .offer-grid, .dashboard-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-item { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding-block: 72px; }
  .step { grid-template-columns: 52px 1fr; }
  .footer-bottom { flex-direction: column; }
}

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