/* =====================================================================
   mytechcampiagn — style.css
   Token plan
   ---------------------------------------------------------------------
   --base    #0b0f1a  deep near-navy page background
   --surface #131a29  raised panels, cards, header
   --surface-2 #1b2435 inputs, selected rows
   --border  #263149  hairlines and outlines
   --accent  #4ea1ff  CTAs, active states, focus — used sparingly
   --text    #e8edf6  body text (contrast > 12:1 on base)
   --muted   #9aa8c0  secondary text (contrast > 4.6:1 on base)
   Type: system stack for body, monospace for numbers/steps.
   Scale: 0.8125 / 0.9375 / 1 / 1.125 / 1.375 / 1.75 / 2.25 / 3rem
   Layout: max width 1140px, prose max 66ch.
   ===================================================================== */

:root {
  --base: #060b16;
  --surface: #0f1626;
  --surface-2: #172034;
  --border: #24304a;
  --accent: #22d3ee;
  --accent-2: #7c8cff;
  --accent-ink: #04121a;
  --text: #e8edf6;
  --muted: #9aa8c0;
  --good: #4ade80;
  --bad: #ff7a7a;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-4xl: 3rem;

  --wrap: 1140px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--base);
  background-image:
    radial-gradient(900px 480px at 12% -8%, rgba(34, 211, 238, .16), transparent 60%),
    radial-gradient(760px 460px at 92% 4%, rgba(124, 140, 255, .16), transparent 62%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 650; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 1rem; max-width: 66ch; }

a { color: var(--accent); }
a:hover { color: #7de9fb; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; border-top: 1px solid var(--border); }
.section-head { margin-bottom: 32px; }
.section-head p { color: var(--muted); }
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: var(--fs-sm); font-weight: 600;
  padding: 11px 18px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: #222e44; color: var(--text); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent; color: var(--accent-ink); font-weight: 700;
  box-shadow: 0 6px 20px rgba(34, 211, 238, .22);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #5ce4f5, #97a4ff);
  border-color: transparent; color: var(--accent-ink);
  box-shadow: 0 8px 26px rgba(34, 211, 238, .32);
}
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-quiet { background: transparent; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(6, 11, 22, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .45);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand-mark { display: inline-flex; flex: none; }
.brand-name {
  font-weight: 800; letter-spacing: .12em; font-size: var(--fs-sm);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.brand svg { flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: var(--fs-sm);
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover, .nav a.is-active { color: var(--text); background: var(--surface); }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover, .drawer a.btn-primary { color: var(--accent-ink); }
.hamburger {
  margin-left: auto; display: none; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 8px; cursor: pointer;
}
.drawer {
  display: none; border-top: 1px solid var(--border); background: var(--surface);
  padding: 12px 20px 20px;
}
.drawer.is-open { display: block; }
.drawer a { display: block; padding: 12px 4px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.drawer .btn { width: 100%; margin-top: 14px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs); color: var(--muted);
  border: 1px solid var(--border); background: var(--surface);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); flex: none; }
.hero h1 { font-size: var(--fs-3xl); max-width: 18ch; }
.hero-sub { font-size: var(--fs-lg); color: var(--muted); max-width: 60ch; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 26px 0 28px; }
.chips li {
  font-size: var(--fs-xs); color: var(--muted);
  border: 1px solid var(--border); border-radius: 8px; padding: 6px 11px; background: var(--surface);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- booking layout ---------- */
.booking-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }

.wizard {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden;
}
.wizard-head { padding: 22px 22px 0; }
.steps { list-style: none; display: flex; margin: 0; padding: 0; gap: 6px; }
.steps li { flex: 1; min-width: 0; }
.step-btn {
  width: 100%; text-align: left; background: none; border: 0; padding: 0 0 12px; cursor: default;
  color: var(--muted); font: inherit; font-size: var(--fs-xs);
  border-bottom: 3px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.step-btn .num {
  font-family: var(--mono); font-size: 0.75rem; width: 22px; height: 22px; flex: none;
  border-radius: 50%; border: 1px solid var(--border);
  display: grid; place-items: center; background: var(--surface-2);
}
.step-btn .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step-btn[data-state="current"] { color: var(--text); border-bottom-color: var(--accent); }
.step-btn[data-state="current"] .num { border-color: var(--accent); color: var(--accent); }
.step-btn[data-state="done"] { color: var(--text); border-bottom-color: var(--accent); }
.step-btn[data-state="done"] .num { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.wizard-body { padding: 26px 22px 8px; }
.wizard-body h3 { margin-bottom: 4px; }
.step-hint { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 22px; }
.wizard-foot {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px; border-top: 1px solid var(--border); background: #0f1626;
}
.wizard-foot .spacer { margin-left: auto; }
.foot-note { font-size: var(--fs-xs); color: var(--muted); }

/* fields */
.field { margin-bottom: 18px; }
.field label, .fieldset-legend { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 6px; }
.field .help { font-size: var(--fs-xs); color: var(--muted); margin: 4px 0 0; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: var(--fs-sm); color: var(--text);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.error-text { color: var(--bad); font-size: var(--fs-xs); margin-top: 5px; min-height: 1em; }
.is-invalid { border-color: var(--bad) !important; }

fieldset { border: 0; padding: 0; margin: 0 0 22px; }
.option-list { display: grid; gap: 8px; }
.option {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--border); background: var(--surface-2);
  border-radius: 8px; padding: 10px 12px; cursor: pointer; font-size: var(--fs-sm);
}
.option:hover { border-color: #33415f; }
.option input { margin: 4px 0 0; accent-color: var(--accent); flex: none; }
.option:has(input:checked) { border-color: var(--accent); background: #16233a; }
.option input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* package picker */
.packages { display: grid; gap: 10px; grid-template-columns: 1fr; }
.pkg {
  display: block; border: 1px solid var(--border); background: var(--surface-2);
  border-radius: 10px; padding: 14px; cursor: pointer;
}
.pkg:has(input:checked) { border-color: var(--accent); background: #16233a; }
.pkg-top { display: flex; align-items: baseline; gap: 10px; }
.pkg-top input { accent-color: var(--accent); }
.pkg-name { font-weight: 650; font-size: var(--fs-sm); }
.pkg-price { margin-left: auto; font-family: var(--mono); font-size: var(--fs-sm); }
.pkg-meta { color: var(--muted); font-size: var(--fs-xs); margin: 6px 0 0 24px; }

/* topics */
.topic-note {
  font-size: var(--fs-xs); color: var(--muted); background: var(--surface-2);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  padding: 10px 12px; border-radius: 6px; margin-bottom: 20px;
}
.topic-cat { margin-bottom: 22px; }
.topic-cat h4 { margin: 0 0 10px; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.topic {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); background: var(--surface-2);
  border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font-size: var(--fs-sm);
}
.topic:has(input:checked) { border-color: var(--accent); background: #16233a; }
.topic input { accent-color: var(--accent); }
.topic .price { margin-left: auto; font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.topic .lock { font-size: var(--fs-xs); color: var(--accent); }
.topic.is-locked { cursor: default; }

/* review */
.review-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.review-table th, .review-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.review-table th { color: var(--muted); font-weight: 600; width: 38%; }
.review-table td.num { text-align: right; font-family: var(--mono); }
.review-total td, .review-total th { border-bottom: 0; font-weight: 700; font-size: var(--fs-md); }
.success { text-align: left; padding: 8px 0 12px; }
.success .tick { color: var(--good); margin-bottom: 10px; }

/* summary panel */
.summary {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px;
}
.summary h3 { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.summary-total { font-family: var(--mono); font-size: var(--fs-2xl); letter-spacing: -0.02em; }
.summary-rows { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); font-size: var(--fs-xs); color: var(--muted); }
.summary-rows li { display: flex; gap: 10px; padding: 3px 0; }
.summary-rows span:last-child { margin-left: auto; font-family: var(--mono); color: var(--text); }
.summary-meter { height: 4px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin: 12px 0 4px; }
.summary-meter i { display: block; height: 100%; background: var(--accent); width: 25%; transition: width .25s ease; }
.mobile-bar { display: none; }

/* ---------- services ---------- */
.grid-services { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.svc { background: var(--surface); padding: 20px; }
.svc svg { color: var(--accent); margin-bottom: 10px; }
.svc h3 { font-size: var(--fs-sm); margin-bottom: 4px; }
.svc p { color: var(--muted); font-size: var(--fs-sm); margin: 0; }

/* ---------- assessment ---------- */
.quiz-cards { display: grid; gap: 14px; }
.quiz-card {
  text-align: left; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; cursor: pointer; color: var(--text); font: inherit;
}
.quiz-card:hover { border-color: var(--accent); }
.quiz-card h3 { margin-bottom: 4px; }
.quiz-card p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: 12px; }
.quiz-card .count { font-family: var(--mono); font-size: var(--fs-xs); color: var(--accent); }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(4, 7, 14, .78);
  display: none; align-items: center; justify-content: center; padding: 16px; z-index: 120;
}
.modal-backdrop.is-open { display: flex; }
.modal {
  width: 100%; max-width: 620px; max-height: 90vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px;
}
.modal-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; }
.modal-close { margin-left: auto; background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 8px; padding: 6px 9px; cursor: pointer; }
.quiz-meta { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); margin-bottom: 8px; }
.timer.is-low { color: var(--bad); }
.progress { height: 4px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .3s linear; }
.quiz-q { font-size: var(--fs-lg); font-weight: 600; margin-bottom: 14px; }
.result-score { font-family: var(--mono); font-size: var(--fs-4xl); line-height: 1; }
.result-sub { color: var(--muted); margin-bottom: 20px; }
.review-item { border-top: 1px solid var(--border); padding: 12px 0; font-size: var(--fs-sm); }
.review-item .tag { font-family: var(--mono); font-size: var(--fs-xs); }
.tag.ok { color: var(--good); }
.tag.no { color: var(--bad); }
.review-item p { margin: 4px 0 0; color: var(--muted); }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--border); max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  background: none; border: 0; color: var(--text); font: inherit; font-weight: 600;
  padding: 18px 2px; cursor: pointer;
}
.faq-q svg { margin-left: auto; flex: none; color: var(--muted); transition: transform .18s ease; }
.faq-q[aria-expanded="true"] svg { transform: rotate(45deg); color: var(--accent); }
.faq-a { padding: 0 2px 18px; color: var(--muted); font-size: var(--fs-sm); }
.faq-a[hidden] { display: none; }

/* ---------- contact + footer ---------- */
.contact-grid { display: grid; gap: 14px; }
.contact-card {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: 12px; padding: 18px; text-decoration: none; color: var(--text); display: block;
}
.contact-card:hover { border-color: var(--accent); color: var(--text); }
.contact-card span { display: block; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 4px; }
.contact-card strong { font-weight: 600; font-size: var(--fs-sm); word-break: break-word; }

.footer { border-top: 1px solid var(--border); padding: 40px 0 60px; color: var(--muted); font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: 28px; }
.footer h4 { font-size: var(--fs-xs); color: var(--text); margin-bottom: 10px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { padding: 3px 0; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); font-size: var(--fs-xs); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- responsive ---------- */
@media (max-width: 767px) {
  .nav { display: none; }
  .hamburger { display: inline-flex; }
  .mobile-bar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-bar .m-total { font-family: var(--mono); font-size: var(--fs-lg); }
  .mobile-bar .m-label { font-size: var(--fs-xs); color: var(--muted); display: block; }
  .mobile-bar .btn { margin-left: auto; }
  body { padding-bottom: 72px; }
  .summary { display: none; }
}

@media (min-width: 600px) {
  .packages { grid-template-columns: 1fr 1fr; }
  .grid-services { grid-template-columns: 1fr 1fr; }
  .quiz-cards { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 900px) {
  h1 { font-size: var(--fs-4xl); }
  .hero { padding: 96px 0 80px; }
  .section { padding: 88px 0; }
  .booking-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .summary { position: sticky; top: 88px; }
  .grid-services { grid-template-columns: repeat(3, 1fr); }
  .quiz-cards { grid-template-columns: repeat(3, 1fr); }
  .wizard-body { padding: 30px 28px 12px; }
  .wizard-head { padding: 26px 28px 0; }
  .wizard-foot { padding: 18px 28px; }
  .step-btn { font-size: var(--fs-sm); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
