:root {
  --navy: #102b48;
  --navy-2: #183b61;
  --gold: #b78a3a;
  --gold-light: #d7b66e;
  --ink: #16283a;
  --muted: #667281;
  --paper: #f7f4ee;
  --white: #ffffff;
  --line: #dce2e8;
  --soft-blue: #edf3f8;
  --success: #176b4d;
  --danger: #a33b32;
  --shadow: 0 18px 50px rgba(16, 43, 72, 0.12);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.narrow { width: min(calc(100% - 40px), 760px); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16,43,72,.08);
}
.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 190px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-weight: 650; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: white; box-shadow: 0 10px 24px rgba(16,43,72,.18); }
.btn-primary:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); color: #111; box-shadow: 0 10px 24px rgba(183,138,58,.24); }
.btn-outline { border-color: rgba(16,43,72,.28); color: var(--navy); background: white; }
.btn-quiet { padding: 9px 14px; color: var(--navy); }
.btn-block { width: 100%; }

.hero {
  background:
    radial-gradient(circle at 75% 10%, rgba(215,182,110,.25), transparent 28%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  padding: 82px 0 72px;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 54px; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 850; }
h1, h2, h3 { color: var(--navy); line-height: 1.08; margin-top: 0; }
h1 { font-size: clamp(2.7rem, 6vw, 5.2rem); letter-spacing: -.045em; margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); letter-spacing: -.035em; margin-bottom: 18px; }
h3 { font-size: 1.25rem; }
.hero p { font-size: 1.18rem; color: #4e5c6a; max-width: 650px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 20px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; color: var(--muted); font-size: .92rem; }
.trust-row span::before { content: "✓"; color: var(--success); font-weight: 900; margin-right: 7px; }
.hero-media {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 470px;
  background: #0a1520;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(5,17,28,.82)); }
.hero-media-card { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; color: white; }
.hero-media-card strong { font-size: 1.2rem; display: block; }
.hero-media-card span { color: rgba(255,255,255,.76); }

.section { padding: 84px 0; }
.section-soft { background: var(--paper); }
.section-navy { background: var(--navy); color: white; }
.section-navy h2, .section-navy h3 { color: white; }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading p { font-size: 1.1rem; color: var(--muted); }
.section-navy .section-heading p { color: rgba(255,255,255,.72); }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 12px 28px rgba(16,43,72,.06);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; background: var(--soft-blue); color: var(--navy);
  font-weight: 900; font-size: 1.25rem; margin-bottom: 20px;
}
.card p { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: white; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); color: var(--gold); font-weight: 900; font-size: 1.4rem; display: block; margin-bottom: 20px; }

.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.video-shell { border-radius: 22px; overflow: hidden; background: #05080d; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.12); }
.video-shell video { width: 100%; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); border-radius: var(--radius); overflow: hidden; }
.metric { padding: 28px; background: white; }
.metric strong { display: block; color: var(--navy); font-size: 2rem; line-height: 1; margin-bottom: 8px; }
.metric span { color: var(--muted); font-size: .92rem; }

.cta-band { padding: 44px; border-radius: 24px; background: linear-gradient(135deg, var(--navy), #244e76); color: white; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.cta-band h2 { margin: 0 0 10px; color: white; font-size: clamp(1.8rem,4vw,3rem); }
.cta-band p { margin: 0; color: rgba(255,255,255,.72); }

.page-hero { background: var(--paper); padding: 68px 0 54px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem,5vw,4.4rem); margin-bottom: 16px; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.12rem; }

.scene-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.scene-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: white; transition: .2s ease; }
.scene-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.scene-image { aspect-ratio: 16/10; background: linear-gradient(145deg, #0f2944, #b78a3a); display: grid; place-items: center; color: white; font-size: 3rem; }
.scene-body { padding: 22px; }
.price { color: var(--gold); font-weight: 850; }

.form-shell { background: white; border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 750; margin-bottom: 8px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid #cfd7df; border-radius: 12px; padding: 13px 14px; background: white; color: var(--ink); outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(183,138,58,.12); }
.helper { color: var(--muted); font-size: .86rem; margin-top: 6px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; color: var(--muted); }
.checkbox input { margin-top: 4px; }
.form-status { display: none; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.form-status.show { display: block; }
.form-status.error { background: #fff0ee; color: var(--danger); }
.form-status.success { background: #ebf7f1; color: var(--success); }

.auth-page { min-height: calc(100vh - 78px); display: grid; place-items: center; padding: 50px 20px; background: linear-gradient(135deg, var(--paper), #eaf0f5); }
.auth-layout { width: min(100%, 980px); display: grid; grid-template-columns: .9fr 1.1fr; background: white; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.auth-art { padding: 48px; background: linear-gradient(145deg, var(--navy), #244e76); color: white; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art img { filter: brightness(0) invert(1); width: 210px; }
.auth-art h2 { color: white; margin-top: 70px; }
.auth-art p { color: rgba(255,255,255,.72); }
.auth-form { padding: 50px; }
.auth-form h1 { font-size: 2.5rem; margin-bottom: 12px; }
.auth-form > p { color: var(--muted); margin-bottom: 28px; }
.password-wrap { position: relative; }
.password-toggle { position: absolute; right: 12px; top: 43px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }

.dashboard { background: #f4f6f8; min-height: calc(100vh - 78px); padding: 44px 0 80px; }
.dash-top { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 28px; }
.dash-top h1 { font-size: 2.5rem; margin-bottom: 6px; }
.dash-top p { margin: 0; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 24px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.project { display: grid; grid-template-columns: 90px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.project:last-child { border-bottom: 0; }
.thumb { width: 90px; aspect-ratio: 16/10; border-radius: 10px; background: linear-gradient(135deg, var(--navy), var(--gold)); }
.status { display: inline-flex; border-radius: 999px; padding: 6px 10px; font-weight: 750; font-size: .78rem; }
.status.ready { background: #eaf7f0; color: var(--success); }
.status.render { background: #fff5df; color: #8a650f; }
.status.draft { background: #edf1f5; color: #536170; }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 13px 0; border-bottom: 1px solid var(--line); }
.list-clean li:last-child { border-bottom: 0; }

.site-footer { background: #0c2239; color: rgba(255,255,255,.72); padding: 54px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 42px; }
.site-footer .brand img { filter: brightness(0) invert(1); width: 190px; }
.site-footer h3 { color: white; font-size: 1rem; }
.site-footer a { text-decoration: none; display: block; margin: 8px 0; }
.site-footer a:hover { color: var(--gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; font-size: .85rem; }

.notice { padding: 16px 18px; border-left: 4px solid var(--gold); background: #fbf7ed; border-radius: 8px; color: #62543b; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 78px; flex-direction: column; align-items: stretch; padding: 20px; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 15px 30px rgba(16,43,72,.08); }
  .nav-links.open { display: flex; }
  .nav-actions .btn-outline { display: none; }
  .hero-grid, .demo-grid, .auth-layout, .dash-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .hero-media { min-height: 390px; }
  .cards-3, .scene-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .auth-art { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
  .brand img { width: 155px; }
  .nav-actions .btn-primary { padding: 10px 14px; font-size: .85rem; }
  .cards-3, .scene-grid, .steps, .metrics, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .hero-media { min-height: 340px; }
  .cta-band { padding: 30px; align-items: flex-start; flex-direction: column; }
  .auth-form { padding: 34px 24px; }
  .project { grid-template-columns: 66px 1fr; }
  .project .status { grid-column: 2; justify-self: start; }
  .thumb { width: 66px; }
}
