:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-alt: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --primary: #4f46e5;
  --primary-dark: #312e81;
  --accent: #14b8a6;
  --warm: #f59e0b;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  box-shadow: 0 12px 25px rgba(79, 70, 229, 0.35);
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.brand span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.nav a:hover {
  color: #fff;
}

.nav-cta {
  background: rgba(79, 70, 229, 0.2);
  border: 1px solid rgba(129, 140, 248, 0.4);
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  color: #fff;
}

.mobile-toggle {
  display: none;
  border: 1px solid rgba(148,163,184,0.3);
  background: rgba(15,23,42,0.9);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.nav-panel {
  display: none;
  background: rgba(15, 23, 42, 0.98);
  border-top: 1px solid rgba(148,163,184,0.15);
}

.nav-panel.open {
  display: block;
}

.nav-panel .nav {
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 0 1.3rem;
}

.hero {
  background: radial-gradient(circle at top, rgba(79, 70, 229, 0.22), transparent 38%), #0f172a;
  color: #fff;
  padding: 7rem 0 5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  background: rgba(79, 70, 229, 0.18);
  color: #c7d2fe;
  border: 1px solid rgba(129, 140, 248, 0.4);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  margin-top: 0;
  line-height: 1.1;
}

.hero h1 {
  margin: 1.2rem 0 1rem;
  font-size: clamp(2.7rem, 5vw, 5rem);
  letter-spacing: -0.06em;
}

.hero p {
  color: rgba(226, 232, 240, 0.82);
  font-size: 1.08rem;
  max-width: 620px;
}

.button-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 1rem 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), #6d5efc);
  color: #fff;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.3);
}

.button.secondary {
  background: rgba(15,23,42,0.35);
  color: #fff;
  border: 1px solid rgba(148,163,184,0.25);
}

.hero-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 30px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.price-box {
  background: linear-gradient(135deg, rgba(79,70,229,0.2), rgba(20,184,166,0.12));
  border-radius: 24px;
  padding: 1.3rem;
  border: 1px solid rgba(129,140,248,0.3);
}

.price-box .tag {
  color: #c7d2fe;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.price-box .amount {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  margin: 0.7rem 0;
}

.price-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: rgba(226,232,240,0.8);
}

.price-box li { margin: 0.5rem 0; }

.section {
  padding: 5.5rem 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.06em;
  margin-bottom: 1rem;
}

.section-copy {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 1.7rem;
  box-shadow: var(--shadow);
}

.icon-box {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(79,70,229,0.1);
  color: var(--primary);
  margin-bottom: 1rem;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem;
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.info-panel {
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.list li::before {
  content: '✓';
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(20,184,166,0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 900;
  flex-shrink: 0;
}

.pricing-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
}

.price-card.featured {
  background: linear-gradient(180deg, var(--primary), #544dda);
  color: #fff;
  border-color: transparent;
}

.featured .button {
  background: #fff;
  color: var(--primary-dark);
}

.plan-label {
  display: inline-block;
  background: rgba(79,70,229,0.12);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.featured .plan-label {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.price {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  margin: 1rem 0;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  color: inherit;
}

.price-card li {
  margin: 0.6rem 0;
}

.page-hero {
  background: linear-gradient(135deg, #0f172a, #172554);
  color: #fff;
  padding: 6.5rem 0 4rem;
}

.page-hero .container {
  text-align: center;
}

.page-hero p {
  color: rgba(226,232,240,0.82);
  max-width: 720px;
  margin: 1rem auto 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.5rem;
}

.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(79,70,229,0.12), rgba(20,184,166,0.15));
  color: var(--primary);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-privacy-note {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 145, 72, 0.07);
}

.contact-privacy-note strong { color: #ffb176; }
.contact-privacy-note span, .contact-privacy-footnote, .field-hint { color: var(--muted); font-size: 0.86rem; }
.contact-privacy-footnote { margin-top: 1.2rem; }
.spam-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form label, #contactForm label { display: block; margin-bottom: 0.5rem; color: var(--text); font-weight: 700; }
.contact-form input, #contactForm select, #contactForm textarea { margin-top: 0.45rem; }
.faq-list { max-width: 860px; }
.faq-item { padding: 1.25rem 1.4rem; border-bottom: 1px solid var(--line); background: rgba(27, 19, 18, 0.78); }
.faq-item:first-child { border-radius: 12px 12px 0 0; }
.faq-item:last-child { border-radius: 0 0 12px 12px; border-bottom: 0; }
.faq-item summary { cursor: pointer; color: var(--text); font-weight: 800; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--accent); font-size: 1.2rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--muted); margin: 1rem 2rem 0 0; max-width: 700px; }
.faq-item[open] p { animation: page-rise 0.25s ease-out both; }
.faq-cta, .safety-note { border-top: 1px solid var(--line); background: #17100f; }
.faq-cta .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.faq-cta p { color: var(--muted); }
.safety-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.safety-item { min-height: 230px; padding: 1.7rem; background: var(--panel); }
.safety-item > span { color: var(--accent); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.16em; }
.safety-item h2 { margin: 0.8rem 0; font-size: 1.25rem; }
.safety-item p, .safety-note p { color: var(--muted); }
.safety-link { display: inline-flex; gap: 0.5rem; margin-top: 0.75rem; color: #ffad72; font-weight: 800; }

.contact-panel,
.form-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.contact-list li {
  margin: 1rem 0;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}

.field,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font: inherit;
  color: var(--text);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.field:focus, textarea:focus {
  outline: none;
  border-color: rgba(79,70,229,0.7);
  box-shadow: 0 0 0 4px rgba(79,70,229,0.1);
}

.form-row {
  margin-top: 1rem;
}

.form-message {
  display: none;
  margin-top: 1rem;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-weight: 600;
}

.form-message.show {
  display: block;
}

.form-message.success {
  background: rgba(16,185,129,0.12);
  color: #047857;
  border: 1px solid rgba(16,185,129,0.2);
}

.form-message.error {
  background: rgba(239,68,68,0.08);
  color: #b91c1c;
  border: 1px solid rgba(239,68,68,0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.5rem 0;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  letter-spacing: -0.06em;
}

.stats-note {
  margin: -1rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  border-bottom: 1px solid var(--line);
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

.table-wrap th {
  background: #f8fafc;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.7);
  padding: 2rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner,
  .two-col,
  .contact-layout,
  .grid-3,
  .pricing-wrap,
  .team-grid,
  .metric-row,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .hero {
    padding-top: 5.5rem;
  }
}

@media (max-width: 600px) {
  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .safety-grid { grid-template-columns: 1fr; }
  .safety-item { min-height: 0; }
  .faq-cta .button { width: auto; }
}

:root {
  --bg: #100b0b;
  --panel: #1b1312;
  --panel-alt: #241816;
  --text: #f8eee8;
  --muted: #c1aaa0;
  --line: #3d2924;
  --primary: #df4638;
  --primary-dark: #a92e27;
  --accent: #ff9148;
  --warm: #ffb35e;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  background-color: var(--bg);
  background-image: linear-gradient(rgba(255, 145, 72, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 145, 72, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
}

.site-header {
  background: rgba(16, 9, 8, 0.92);
  border-bottom-color: rgba(255, 145, 72, 0.18);
}

.brand-mark {
  background: linear-gradient(140deg, #d83c32, #ff984a);
  box-shadow: 0 12px 28px rgba(232, 72, 48, 0.24);
}

.brand span { color: var(--accent); }
.nav { color: #d6c2b8; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--warm); }
.nav-cta { background: rgba(224, 65, 52, 0.14); border-color: rgba(255, 145, 72, 0.4); }

.nav-panel {
  background: rgba(16, 9, 8, 0.98);
  border-top-color: rgba(255, 145, 72, 0.16);
}

.mobile-toggle {
  background: #211513;
  border-color: var(--line);
}

.hero, .page-hero {
  background-color: #120a09;
  background-image: linear-gradient(115deg, rgba(124, 32, 27, 0.72), rgba(20, 11, 10, 0.9) 55%, rgba(207, 78, 35, 0.32)), linear-gradient(rgba(255, 145, 72, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 145, 72, 0.04) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  color: var(--text);
  animation: ember-shift 18s ease-in-out infinite alternate;
}

@keyframes ember-shift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 8% 0, 44px 44px, 44px 44px; }
}

.eyebrow, .plan-label {
  background: rgba(232, 72, 48, 0.14);
  color: #ffb176;
  border-color: rgba(255, 145, 72, 0.35);
}

.button.primary, .featured {
  background: linear-gradient(125deg, #be332d, #f16c37 82%);
  color: #fff8f1;
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(209, 64, 43, 0.22);
}

.button.primary:hover { box-shadow: 0 18px 42px rgba(240, 108, 55, 0.32); }
.button.secondary { background: #211513; color: var(--text); border-color: var(--line); }

.section, main > .section[style*="#fff"] { background: var(--bg) !important; }
.section-title, h1, h2, h3, h4 { color: var(--text); }
.section-copy, .page-hero p { color: var(--muted); }
.card, .team-card, .price-card, .contact-panel, .form-panel, .info-panel, .metric, .stat-card {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.price-card.featured { background: linear-gradient(145deg, #8e2924, #e45532 72%, #ef8b3e); }
.featured .button { background: #fff1e4; color: #70251f; }
.plan-label { border-radius: 4px; }
.price, .price-box .amount { color: var(--warm); }
.icon-box, .avatar { background: rgba(223, 70, 56, 0.14); color: #ff9a64; }
.list li, .contact-list li, .team-card p, .card p, .price-card p { color: var(--muted); }

.field, textarea, .contact-form input {
  background: #110c0b;
  border-color: #49312a;
  color: var(--text);
}

.field::placeholder, textarea::placeholder { color: #947b71; }
.field:focus, textarea:focus, .contact-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 145, 72, 0.12); }

input:not([type="checkbox"]):not([type="radio"]), textarea, select {
  color: #fff8f0;
  caret-color: #ffad67;
  color-scheme: dark;
}

input:not([type="checkbox"]):not([type="radio"])::placeholder, textarea::placeholder {
  color: #c2a99a;
  opacity: 1;
}

input:not([type="checkbox"]):not([type="radio"])::selection, textarea::selection {
  color: #160c09;
  background: #ffc078;
}

input:not([type="checkbox"]):not([type="radio"]):focus-visible, textarea:focus-visible, select:focus-visible {
  border-color: #ffad67;
  outline: 2px solid #ffad67;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(255, 145, 72, 0.2);
}
.form-message.success { background: rgba(61, 135, 91, 0.16); color: #a6edba; border-color: rgba(104, 196, 130, 0.3); }
.form-message.error { background: rgba(197, 56, 45, 0.14); color: #ffaaa0; border-color: rgba(239, 97, 78, 0.3); }

.table-wrap { background: var(--panel); border-color: var(--line); }
.table-wrap th { background: #261715; color: #e8a17b; }
.table-wrap th, .table-wrap td { border-bottom-color: var(--line); }
.site-footer { background: #090606; color: #a99186; border-top: 1px solid #35211d; }

.global-search {
  position: relative;
  z-index: 10;
  width: min(1120px, calc(100% - 2rem));
  margin: 1.1rem auto;
}

.global-search, .global-search form, .hero-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 145, 72, 0.28);
  border-radius: 14px;
  background: rgba(25, 15, 13, 0.94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.global-search input, .global-search form input, .hero-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0.8rem 0.9rem;
  background: transparent;
  color: var(--text);
  font: inherit;
}

.global-search input::placeholder, .hero-search input::placeholder { color: #aa8c7e; }
.search-submit { flex: 0 0 auto; border: 0; border-radius: 9px; padding: 0.75rem 1rem; background: #e34f37; color: white; font: inherit; font-weight: 800; cursor: pointer; }
.search-results { display: none; position: absolute; top: calc(100% + 0.4rem); left: 0; right: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #1b1312; box-shadow: var(--shadow); }
.search-results.open { display: block; animation: search-in 0.18s ease-out both; }
.search-result { display: block; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); color: var(--text); }
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result:focus { background: #2b1a17; outline: none; }
.search-result strong { display: block; color: #ffad72; }
.search-result span { color: var(--muted); font-size: 0.85rem; }
.search-empty { padding: 1rem; color: var(--muted); }
@keyframes search-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

.reveal-on-scroll { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(.2,.75,.25,1); }
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.page-hero .container, .card, .price-card, .contact-panel, .form-panel { animation: page-rise 0.65s cubic-bezier(.2,.75,.25,1) both; }
@keyframes page-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .nav-panel.open .nav { display: flex; }
  .global-search { margin-top: 0.8rem; }
}

@media (max-width: 600px) {
  .search-submit { padding: 0.7rem 0.75rem; }
  .global-search form, .hero-search { border-radius: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
  .reveal-on-scroll { opacity: 1; transform: none; }
}
