:root {
  --bg: #120d1f;
  --bg-2: #1c1430;
  --card: #241a3d;
  --line: #3a2d5c;
  --text: #ece8f5;
  --muted: #b3a9cc;
  --gold: #e3b341;
  --gold-2: #f2cf6f;
  --purple: #6b3fc9;
  --radius: 14px;
  --max: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header + nav */
.site-header {
  background: rgba(18, 13, 31, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.5px; }
.brand img { width: 36px; height: 36px; }
.brand span { color: var(--gold); }

.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a { color: var(--muted); padding: 8px 14px; border-radius: 8px; font-weight: 500; }
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-links a.active { color: var(--bg); background: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 80px 0 64px;
  background: radial-gradient(circle at 80% 20%, rgba(107, 63, 201, 0.35), transparent 55%),
              radial-gradient(circle at 10% 90%, rgba(227, 179, 65, 0.12), transparent 50%);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; margin-bottom: 12px; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.15; margin-bottom: 18px; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 8px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin-bottom: 28px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid var(--gold);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn-gold { background: var(--gold); color: var(--bg); }
.btn-gold:hover { background: var(--gold-2); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--gold); margin-left: 10px; }
.btn-ghost:hover { background: rgba(227, 179, 65, 0.1); }

/* Sections + cards */
section { padding: 60px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head p { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card p { color: var(--muted); }
.card .icon { width: 44px; height: 44px; margin-bottom: 14px; }
.card ul { color: var(--muted); padding-left: 18px; margin-top: 10px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-size: 2rem; color: var(--gold); }
.stat span { color: var(--muted); }

.page-hero { padding: 56px 0 24px; }
.page-hero p { color: var(--muted); max-width: 640px; }

/* Pricing estimator */
.estimator { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field small { color: var(--muted); }
input[type="range"] { width: 100%; accent-color: var(--gold); }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  padding: 11px 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.check { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; color: var(--muted); }
.check input { accent-color: var(--gold); width: 18px; height: 18px; }
.total { font-size: 2.4rem; color: var(--gold); font-weight: 700; }
.breakdown { list-style: none; margin-top: 14px; color: var(--muted); }
.breakdown li { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 6px 0; }

/* FAQ accordion */
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: var(--card); overflow: hidden; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  font-family: inherit;
}
.faq-q::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
.faq-item.open .faq-q::after { content: "\2212"; }
.faq-a { display: none; padding: 0 18px 16px; color: var(--muted); }
.faq-item.open .faq-a { display: block; }

/* Contact form */
.form-msg { margin-top: 12px; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: #7ee2a8; }
.form-msg.err { color: #ff8f8f; }
.error-text { color: #ff8f8f; font-size: 0.85rem; display: none; margin-top: 4px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #ff8f8f; }
.field.invalid .error-text { display: block; }

/* Team */
.avatar { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 14px; }
.role { color: var(--gold); font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }

/* 404 */
.notfound { text-align: center; padding: 100px 0; flex: 1; }
.notfound .code { font-size: clamp(4rem, 14vw, 8rem); color: var(--gold); font-weight: 800; line-height: 1; }
.notfound p { color: var(--muted); margin: 14px auto 28px; max-width: 460px; }

/* Footer */
main { flex: 1; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .estimator, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-art { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .stat-row { grid-template-columns: 1fr; }
  .btn-ghost { margin-left: 0; margin-top: 10px; }
  .hero { padding: 48px 0 40px; }
}
