:root {
  --ink: #0e0d0b;
  --ink-2: #171510;
  --ink-3: #242018;
  --yellow: #f5b82e;
  --yellow-2: #ffd66b;
  --yellow-soft: #fff4d4;
  --paper: #f6f4ee;
  --surface: #ffffff;
  --warm: #b8b6ae;
  --line: #ded9cd;
  --line-dark: rgba(255,255,255,.12);
  --text: #201e18;
  --muted: #6e6a60;
  --success: #52725d;
  --danger: #9e514b;
  --info: #466a7a;
  --shadow-sm: 0 12px 30px rgba(32, 27, 16, .08);
  --shadow-lg: 0 30px 80px rgba(16, 14, 9, .18);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --container: 1180px;
  --sidebar: 265px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { border: 0; }

::selection { background: var(--yellow); color: var(--ink); }

.app-shell { min-height: 100vh; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.page { padding: 36px 0 110px; }
.page--wide { padding: 32px 28px 80px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #867541;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 9px; background: var(--yellow); }

h1, h2, h3, h4, p { margin-top: 0; }
h1 { font-size: clamp(2.15rem, 6vw, 5.6rem); line-height: .96; letter-spacing: -.055em; }
h2 { font-size: clamp(1.65rem, 3.4vw, 3.1rem); line-height: 1.05; letter-spacing: -.04em; }
h3 { font-size: 1.12rem; line-height: 1.2; letter-spacing: -.015em; }
p { line-height: 1.65; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.tiny { font-size: .74rem; }
.text-yellow { color: var(--yellow); }
.text-white { color: #fff; }

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 780;
  transition: transform .22s var(--ease), background .22s, border-color .22s, box-shadow .22s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--yellow); color: var(--ink); box-shadow: 0 12px 28px rgba(245,184,46,.25); }
.btn--primary:hover { background: var(--yellow-2); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a261d; }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; opacity: .9; }
.btn--soft { background: var(--yellow-soft); color: #665013; }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 9px 14px; font-size: .84rem; }
.btn svg { width: 18px; height: 18px; }

.icon-btn {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: inherit;
  cursor: pointer;
}
.icon-btn svg { width: 19px; height: 19px; }

/* Public landing */
.public-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(14,13,11,.82);
  color: #fff;
  backdrop-filter: blur(18px);
}
.public-nav__inner {
  width: min(calc(100% - 32px), var(--container));
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.02em; }
.brand__mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 950;
}
.brand__mark::after { content: ""; position: absolute; width: 26px; height: 2px; background: var(--ink); transform: rotate(-32deg); opacity: .35; }
.brand small { display: block; color: var(--warm); font-size: .64rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.public-links { display: flex; align-items: center; gap: 24px; color: #d4d0c5; font-size: .9rem; }
.public-links a:hover { color: #fff; }

.hero {
  min-height: 100svh;
  padding: 128px 0 74px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 22%, rgba(245,184,46,.18), transparent 34%),
    linear-gradient(135deg, #0b0a08 0%, #17140e 52%, #090806 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 66px; align-items: center; }
.hero h1 { max-width: 730px; margin-bottom: 24px; }
.hero h1 span { color: var(--yellow); }
.hero__lead { max-width: 620px; color: #c8c3b8; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 36px; color: #aaa499; font-size: .82rem; }
.hero__proof strong { display: block; color: #fff; font-size: 1.02rem; }

.machine-stage {
  position: relative;
  min-height: 530px;
  isolation: isolate;
}
.machine-glow { position: absolute; inset: 18% 7% 8%; border-radius: 50%; background: rgba(245,184,46,.15); filter: blur(65px); z-index: -2; }
.machine-card {
  position: absolute;
  inset: 58px 8px 30px 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.035));
  box-shadow: 0 50px 110px rgba(0,0,0,.42);
  backdrop-filter: blur(20px);
  transform: rotate(2.5deg);
}
.machine-visual { position: absolute; inset: 110px 44px 70px 70px; }
.machine-body {
  position: absolute;
  inset: 70px 40px 80px 52px;
  border-radius: 52px 52px 30px 34px;
  background: linear-gradient(145deg, #302d28, #11100e 68%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,.19), 0 35px 55px rgba(0,0,0,.35);
}
.machine-body::before {
  content: "AMAYA";
  position: absolute;
  top: 42px;
  left: 42px;
  color: var(--yellow);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .2em;
}
.machine-body::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 32px;
  width: 42%;
  height: 37%;
  border-radius: 13px 9px 23px 12px;
  background: #090806;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}
.machine-base { position: absolute; left: 20px; right: 8px; bottom: 48px; height: 76px; border-radius: 20px; background: linear-gradient(#3d3932,#15130f); box-shadow: 0 25px 35px rgba(0,0,0,.42); }
.spool { position: absolute; top: 0; width: 38px; height: 108px; border-radius: 11px 11px 18px 18px; background: repeating-linear-gradient(0deg, #e9ddbd 0 3px, #f7edcf 3px 6px); box-shadow: 0 12px 25px rgba(0,0,0,.28); }
.spool::before { content: ""; position: absolute; top: -16px; left: 11px; width: 16px; height: 22px; border-radius: 4px; background: #a79050; }
.spool--1 { left: 24%; }
.spool--2 { left: 45%; background: repeating-linear-gradient(0deg,#f1b923 0 3px,#ffd96f 3px 6px); }
.spool--3 { left: 66%; background: repeating-linear-gradient(0deg,#b2aea3 0 3px,#e7e3d9 3px 6px); }
.thread-line { position: absolute; top: 85px; height: 2px; width: 230px; background: linear-gradient(90deg, transparent, var(--yellow), transparent); transform: rotate(24deg); transform-origin: left; left: 28%; opacity: .8; }
.floating-note { position: absolute; min-width: 180px; padding: 15px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; background: rgba(18,16,12,.86); box-shadow: 0 20px 45px rgba(0,0,0,.28); backdrop-filter: blur(12px); }
.floating-note strong { display: block; margin-bottom: 4px; font-size: .88rem; }
.floating-note span { color: #aaa499; font-size: .75rem; }
.floating-note--one { top: 32px; right: 0; animation: floatY 5s ease-in-out infinite; }
.floating-note--two { bottom: 14px; left: 0; animation: floatY 6s ease-in-out infinite reverse; }
@keyframes floatY { 50% { transform: translateY(-10px); } }

.section { padding: 96px 0; }
.section--dark { color: #fff; background: var(--ink); }
.section--yellow { background: var(--yellow); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 42px; }
.section__head p { max-width: 550px; margin-bottom: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.feature-card__icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 20px; border-radius: 15px; background: var(--yellow-soft); color: #7b5b0e; }
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card p { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.journey { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; margin-top: 36px; }
.journey__item { position: relative; padding: 23px 16px; border-radius: 18px; background: rgba(255,255,255,.07); text-align: center; }
.journey__item strong { display: block; color: var(--yellow); font-size: .75rem; letter-spacing: .1em; }
.journey__item span { display: block; margin-top: 8px; font-size: .86rem; }
.journey__item:not(:last-child)::after { content: "→"; position: absolute; top: 50%; right: -10px; z-index: 2; color: var(--yellow); transform: translateY(-50%); }
.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { max-width: 660px; margin-bottom: 0; color: #514113; }

/* App chrome */
.client-layout { display: grid; min-height: 100vh; grid-template-columns: var(--sidebar) 1fr; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: var(--ink);
}
.sidebar .brand { padding: 4px 8px 24px; }
.sidebar-nav { display: grid; gap: 5px; }
.nav-item {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 14px;
  color: #aaa59b;
  font-weight: 680;
  font-size: .9rem;
  transition: .2s ease;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active { background: var(--yellow); color: var(--ink); }
.nav-item svg { width: 20px; height: 20px; flex: 0 0 auto; }
.sidebar__foot { margin-top: auto; }
.profile-mini { display: flex; align-items: center; gap: 11px; padding: 13px 10px; border-top: 1px solid var(--line-dark); }
.avatar { display: grid; width: 40px; height: 40px; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 900; }
.profile-mini strong { display: block; font-size: .85rem; }
.profile-mini span { color: #928d82; font-size: .72rem; }
.main-area { min-width: 0; }
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  height: 74px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(246,244,238,.86);
  backdrop-filter: blur(18px);
}
.breadcrumbs { color: var(--muted); font-size: .84rem; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.demo-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(245,184,46,.17); }
.mobile-topbar, .bottom-nav { display: none; }

.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.page-head h1 { margin-bottom: 8px; font-size: clamp(2rem,4vw,3.8rem); }
.page-head p { max-width: 660px; margin-bottom: 0; color: var(--muted); }
.page-head__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid--dashboard { grid-template-columns: 1.45fr .8fr; align-items: start; }
.stack { display: grid; gap: 18px; }

.card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); }
.card--dark { color: #fff; border-color: transparent; background: var(--ink); }
.card--yellow { background: var(--yellow); border-color: transparent; }
.card--soft { background: #f0ede5; }
.card--flat { box-shadow: none; }
.card--clickable { cursor: pointer; transition: transform .22s var(--ease), box-shadow .22s; }
.card--clickable:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card__title { margin-bottom: 5px; }
.card__meta { color: var(--muted); font-size: .78rem; }
.card--dark .card__meta { color: #aaa59b; }
.card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }

.hero-card { position: relative; min-height: 285px; padding: 34px; overflow: hidden; color: #fff; border-radius: var(--radius-lg); background: linear-gradient(135deg,#0d0c0a 0%,#282116 100%); box-shadow: var(--shadow-lg); }
.hero-card::after { content: ""; position: absolute; right: -120px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: rgba(245,184,46,.18); filter: blur(12px); }
.hero-card__content { position: relative; z-index: 2; max-width: 620px; }
.hero-card h2 { margin-bottom: 12px; font-size: clamp(2rem,4vw,3.4rem); }
.hero-card p { color: #c6c1b6; }
.hero-card__machine { position: absolute; right: 35px; bottom: 22px; width: 250px; height: 180px; opacity: .48; }
.hero-card__machine::before { content:""; position:absolute; inset: 35px 16px 38px 18px; border-radius: 34px 30px 19px 22px; background: linear-gradient(135deg,#6b5a2d,#15130f); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.hero-card__machine::after { content:""; position:absolute; left:0; right:0; bottom:20px; height:38px; border-radius:12px; background:#56491f; }

.progress-row { display: flex; align-items: center; gap: 12px; }
.progress { flex: 1; height: 8px; overflow: hidden; border-radius: 999px; background: #e5e1d6; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--yellow); }
.card--dark .progress { background: rgba(255,255,255,.12); }
.progress-value { min-width: 40px; text-align: right; color: var(--muted); font-size: .78rem; font-weight: 800; }
.card--dark .progress-value { color: #d2cdc2; }

.metric { padding: 21px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.metric__value { display: block; margin: 7px 0; font-size: 2rem; font-weight: 900; letter-spacing: -.04em; }
.metric__label { color: var(--muted); font-size: .78rem; }
.metric__trend { color: var(--success); font-size: .75rem; font-weight: 750; }

.quick-search { position: relative; }
.quick-search svg { position: absolute; top: 50%; left: 16px; width: 19px; height: 19px; color: var(--muted); transform: translateY(-50%); }
.input {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
  color: var(--text);
  background: #fff;
  transition: border .2s, box-shadow .2s;
}
.quick-search .input { padding-left: 46px; }
.input:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(245,184,46,.17); }
textarea.input { min-height: 120px; resize: vertical; }
.label { display: block; margin-bottom: 8px; font-size: .8rem; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-field { display: grid; align-content: start; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: .76rem; cursor: pointer; }
.chip:hover, .chip.active { border-color: var(--yellow); color: #644c11; background: var(--yellow-soft); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--success { color: var(--success); background: #e7f0e9; }
.status--warning { color: #856216; background: #fff2cd; }
.status--info { color: var(--info); background: #e5f0f4; }
.status--muted { color: #747169; background: #eceae4; }
.status--danger { color: var(--danger); background: #f5e4e2; }

.machine-card-sm { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: center; }
.machine-thumb { position: relative; min-height: 112px; border-radius: 19px; background: linear-gradient(135deg,#efebe0,#d9d2c2); overflow: hidden; }
.machine-thumb::before { content:""; position:absolute; inset: 27px 16px 26px 24px; border-radius: 24px 21px 13px 16px; background: linear-gradient(145deg,#393630,#12110e); box-shadow: 0 13px 23px rgba(0,0,0,.22); }
.machine-thumb::after { content:""; position:absolute; left:12px; right:9px; bottom:18px; height:24px; border-radius:9px; background:#2d2a24; }
.machine-thumb--light::before { background: linear-gradient(145deg,#fff,#cfc8b9); }
.machine-thumb--light::after { background:#9d9585; }

.next-action { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; background: var(--yellow-soft); }
.next-action__number { display: grid; width: 42px; height: 42px; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--yellow); font-weight: 900; }
.next-action strong { display: block; margin-bottom: 3px; }
.next-action span { color: #725f28; font-size: .78rem; }

.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 21px; width: 2px; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; }
.timeline-dot { z-index: 2; display: grid; width: 44px; height: 44px; place-items: center; border: 4px solid #fff; border-radius: 50%; background: #e6e2d9; color: var(--muted); font-weight: 900; box-shadow: 0 0 0 1px var(--line); }
.timeline-item.completed .timeline-dot { color: #fff; background: var(--success); }
.timeline-item.current .timeline-dot { color: var(--ink); background: var(--yellow); box-shadow: 0 0 0 5px rgba(245,184,46,.17); }
.timeline-item h3 { margin-bottom: 4px; }
.timeline-item p { margin-bottom: 0; color: var(--muted); font-size: .8rem; }

.video-frame { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 22px; background: radial-gradient(circle at 50% 40%,#3c3420,#0a0907 70%); color: #fff; }
.video-frame::before { content:""; position:absolute; inset:22% 22% 18%; border-radius:28px 25px 15px; background: linear-gradient(145deg,#554c3e,#15120e); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 25px 50px rgba(0,0,0,.35); }
.video-frame::after { content:""; position:absolute; left:18%; right:18%; bottom:16%; height:12%; border-radius:12px; background:#6a5a2c; }
.play-btn { position: absolute; top: 50%; left: 50%; z-index: 3; display: grid; width: 70px; height: 70px; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); transform: translate(-50%,-50%); cursor: pointer; box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.play-btn svg { width: 28px; height: 28px; margin-left: 4px; }
.video-caption { position: absolute; left: 18px; bottom: 16px; z-index: 3; padding: 8px 11px; border-radius: 10px; background: rgba(0,0,0,.56); font-size: .74rem; }

.step-list { display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 38px 1fr; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.step__number { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--yellow-soft); color: #77570d; font-weight: 900; }
.step h4 { margin-bottom: 5px; }
.step p { margin-bottom: 0; color: var(--muted); font-size: .82rem; }
.step.active { border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(245,184,46,.12); }

.notice { display: flex; gap: 13px; padding: 16px; border-radius: 16px; border: 1px solid; font-size: .84rem; }
.notice svg { width: 20px; height: 20px; flex: 0 0 auto; }
.notice--warning { color: #705411; border-color: #ead18e; background: #fff7df; }
.notice--info { color: #345a69; border-color: #bcd3dc; background: #ecf6f9; }
.notice--success { color: #3b5d46; border-color: #b9d2c0; background: #edf6ef; }

.challenge-card { overflow: hidden; }
.challenge-cover { position: relative; height: 150px; margin: -24px -24px 20px; background: linear-gradient(140deg,#241f15,#6c5828); }
.challenge-cover::before { content:""; position:absolute; width:150px; height:150px; top:22px; right:28px; border: 1px solid rgba(255,255,255,.3); border-radius:50%; }
.challenge-cover::after { content:""; position:absolute; left:26px; bottom:25px; width:100px; height:58px; border-radius:15px; background:var(--yellow); box-shadow: 55px -25px 0 rgba(255,255,255,.18); transform:rotate(-8deg); }
.challenge-cover--light { background: linear-gradient(140deg,#e8dfc9,#b8a169); }
.challenge-cover--green { background: linear-gradient(140deg,#1e2c23,#65795c); }

.solution-list { display: grid; gap: 10px; margin-top: 18px; }
.solution-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 15px; background: #fff; cursor: pointer; }
.solution-item:hover { border-color: var(--yellow); }
.solution-item strong { display: block; font-size: .87rem; }
.solution-item span { color: var(--muted); font-size: .75rem; }

.comparison { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.comparison table { width: 100%; min-width: 680px; border-collapse: collapse; }
.comparison th, .comparison td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: .82rem; }
.comparison th { background: #f0ede6; color: var(--muted); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.comparison tr:last-child td { border-bottom: 0; }
.check { color: var(--success); font-weight: 900; }
.dash { color: #aaa69d; }

.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.choice { display: flex; min-height: 84px; align-items: center; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: #fff; cursor: pointer; text-align: left; transition: .2s; }
.choice:hover, .choice.active { border-color: var(--yellow); background: var(--yellow-soft); }
.choice__icon { display: grid; width: 40px; height: 40px; place-items: center; flex: 0 0 auto; border-radius: 13px; background: #f1eee6; }
.choice strong { display: block; margin-bottom: 3px; font-size: .88rem; }
.choice span { color: var(--muted); font-size: .74rem; }

.score-card { padding: 30px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(135deg,#12100d,#3a2e14); box-shadow: var(--shadow-lg); }
.score-ring { display: grid; width: 110px; height: 110px; place-items: center; margin-bottom: 24px; border-radius: 50%; background: conic-gradient(var(--yellow) 0 62%, rgba(255,255,255,.1) 62%); }
.score-ring::before { content:""; width:82px; height:82px; border-radius:50%; background:var(--ink); }
.score-ring span { position:absolute; font-size:1.45rem; font-weight:900; }

.damay-hero { position: relative; padding: 42px; overflow: hidden; border-radius: 34px; color: #fff; background: #0c0b09; }
.damay-hero::before { content:""; position:absolute; width:420px; height:420px; right:-170px; top:-190px; border-radius:50%; border:1px solid rgba(245,184,46,.55); box-shadow: 0 0 0 45px rgba(245,184,46,.05), 0 0 0 90px rgba(245,184,46,.03); }
.damay-hero__content { position: relative; z-index: 2; max-width: 720px; }
.damay-hero h1 { font-size: clamp(2.4rem,5vw,5rem); }
.damay-hero p { color: #bdb7aa; font-size: 1rem; }
.damay-statement { margin: 26px 0; padding-left: 18px; border-left: 3px solid var(--yellow); font-size: 1.22rem; font-weight: 850; }

/* Admin */
.admin-layout { min-height: 100vh; color: #e7e2d8; background: #0f0e0c; }
.admin-layout .app-topbar { color:#fff; border-color: rgba(255,255,255,.08); background: rgba(15,14,12,.88); }
.admin-layout .breadcrumbs { color:#938e84; }
.admin-layout .page--wide { background: #15130f; min-height: calc(100vh - 74px); }
.admin-layout .card, .admin-layout .metric { color:#eeeae1; border-color:rgba(255,255,255,.09); background:#1d1a15; box-shadow:none; }
.admin-layout .muted, .admin-layout .card__meta, .admin-layout .metric__label { color:#969087; }
.admin-layout .progress { background:rgba(255,255,255,.09); }
.admin-layout .comparison { border-color:rgba(255,255,255,.1); background:#1b1814; }
.admin-layout .comparison th { background:#25211b; color:#a7a198; }
.admin-layout .comparison td, .admin-layout .comparison th { border-color:rgba(255,255,255,.08); }
.admin-layout .input { color:#fff; border-color:rgba(255,255,255,.1); background:#25211b; }
.admin-tabs { display:flex; gap:8px; padding:0 28px 16px; overflow:auto; background:#0f0e0c; }
.admin-tab { flex:0 0 auto; padding:9px 13px; border-radius:999px; color:#9e988e; font-size:.78rem; font-weight:750; background:rgba(255,255,255,.05); cursor:pointer; }
.admin-tab.active, .admin-tab:hover { color:#111; background:var(--yellow); }
.table-wrap { overflow:auto; border:1px solid rgba(255,255,255,.08); border-radius:18px; }
.data-table { width:100%; min-width:860px; border-collapse:collapse; }
.data-table th, .data-table td { padding:14px 15px; border-bottom:1px solid rgba(255,255,255,.07); text-align:left; font-size:.78rem; }
.data-table th { color:#8f897f; font-size:.67rem; letter-spacing:.08em; text-transform:uppercase; }
.data-table tr:last-child td { border-bottom:0; }
.data-table tbody tr:hover { background:rgba(255,255,255,.025); }

/* Modal and toast */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(8,7,5,.72); backdrop-filter: blur(10px); animation: fadeIn .2s ease; }
.modal { width: min(100%, 620px); max-height: min(88vh,760px); overflow:auto; padding: 28px; border-radius: 28px; background: #fff; box-shadow: 0 40px 100px rgba(0,0,0,.38); animation: modalIn .3s var(--ease); }
.modal__head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:20px; }
.modal__head h2 { font-size:1.7rem; }
.modal__foot { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; }
@keyframes fadeIn { from{opacity:0} }
@keyframes modalIn { from{opacity:0; transform:translateY(20px) scale(.98)} }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 120; max-width: 370px; padding: 15px 18px; border-radius: 16px; color:#fff; background:#191611; box-shadow:0 22px 50px rgba(0,0,0,.28); animation: toastIn .35s var(--ease); }
.toast strong { display:block; margin-bottom:3px; }
.toast span { color:#c6c0b6; font-size:.78rem; }
@keyframes toastIn { from{opacity:0; transform:translateY(20px)} }

.empty-state { padding: 38px; border: 1px dashed var(--line); border-radius: 20px; text-align: center; color: var(--muted); }
.divider { height:1px; margin:24px 0; background:var(--line); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

@media (max-width: 1050px) {
  :root { --sidebar: 230px; }
  .hero__grid { grid-template-columns: 1fr; }
  .machine-stage { min-height: 430px; max-width: 650px; width:100%; margin-inline:auto; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .journey { grid-template-columns: repeat(3,1fr); }
  .journey__item:nth-child(3)::after { display:none; }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .grid--dashboard { grid-template-columns: 1fr; }
  .hero-card__machine { opacity:.2; }
}

@media (max-width: 800px) {
  .public-links { display:none; }
  .section { padding:72px 0; }
  .section__head { display:block; }
  .section__head p { margin-top:16px; }
  .feature-grid, .grid--3, .grid--2 { grid-template-columns:1fr; }
  .cta-band { grid-template-columns:1fr; }
  .client-layout { display:block; }
  .sidebar, .app-topbar { display:none; }
  .mobile-topbar { position:sticky; top:0; z-index:40; height:64px; padding:0 16px; display:flex; align-items:center; justify-content:space-between; color:#fff; background:rgba(14,13,11,.92); backdrop-filter:blur(16px); }
  .mobile-topbar .brand small { display:none; }
  .page--wide { padding:24px 16px 110px; }
  .bottom-nav { position:fixed; z-index:50; left:10px; right:10px; bottom:calc(10px + env(safe-area-inset-bottom)); min-height:68px; padding:8px; display:grid; grid-template-columns:repeat(5,1fr); border:1px solid rgba(255,255,255,.1); border-radius:22px; color:#9f9a90; background:rgba(18,16,13,.94); box-shadow:0 20px 55px rgba(0,0,0,.28); backdrop-filter:blur(18px); }
  .bottom-nav a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; border-radius:15px; font-size:.62rem; font-weight:750; }
  .bottom-nav a svg { width:19px; height:19px; }
  .bottom-nav a.active { color:var(--ink); background:var(--yellow); }
  .page-head { display:block; }
  .page-head__actions { margin-top:18px; }
  .form-grid, .choice-grid { grid-template-columns:1fr; }
  .machine-card-sm { grid-template-columns:100px 1fr; }
  .admin-tabs { padding-inline:16px; }
  .admin-layout .page--wide { min-height:100vh; }
  .toast { left:14px; right:14px; bottom:94px; }
}

@media (max-width: 620px) {
  .container { width:min(calc(100% - 24px),var(--container)); }
  .hero { padding-top:112px; }
  .hero__actions .btn { width:100%; }
  .hero__proof { display:grid; grid-template-columns:repeat(2,1fr); }
  .machine-stage { min-height:330px; }
  .machine-card { inset:35px 0 20px 12px; border-radius:30px; }
  .machine-visual { inset:72px 20px 45px 36px; }
  .machine-body { inset:55px 22px 62px 34px; }
  .spool { width:28px; height:80px; }
  .floating-note { min-width:145px; padding:11px 12px; }
  .floating-note--one { right:2px; }
  .journey { grid-template-columns:1fr; }
  .journey__item:not(:last-child)::after { top:auto; right:50%; bottom:-16px; transform:translateX(50%) rotate(90deg); }
  .journey__item:nth-child(3)::after { display:block; }
  .grid--4 { grid-template-columns:1fr; }
  .hero-card { min-height:310px; padding:26px; }
  .hero-card__machine { right:-20px; bottom:8px; }
  .card { padding:20px; }
  .challenge-cover { margin:-20px -20px 18px; }
  .machine-card-sm { grid-template-columns:1fr; }
  .machine-thumb { min-height:145px; }
  .timeline-item { grid-template-columns:44px 1fr; }
  .timeline-item > .btn, .timeline-item > .status { grid-column:2; justify-self:start; }
  .damay-hero { padding:28px 24px; }
  .modal { padding:22px; border-radius:22px; }
}

.card__head > svg { width: 23px; height: 23px; flex: 0 0 auto; }
.score-ring { position: relative; }
.score-ring span { inset: 0; display: grid; place-items: center; }
