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

:root {
  --bg: #070b14;
  --bg-2: #0b1220;
  --panel: #0f1829;
  --panel-2: #131f35;
  --line: #1e2d47;
  --text: #dbe5f5;
  --muted: #8fa3c4;
  --white: #ffffff;
  --cyan: #22d3ee;
  --green: #34f5a5;
  --violet: #8b5cf6;
  --danger: #ff5d73;
  --gradient: linear-gradient(135deg, #22d3ee 0%, #34f5a5 100%);
  --radius: 14px;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--cyan); }
a:hover { color: var(--green); }
em { font-style: normal; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.5rem; }

/* ── NAV ─────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(7,11,20,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 1.5rem;
}
.nav-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.4rem; font-weight: 800; text-decoration: none; color: var(--white); letter-spacing: -0.5px; }
.logo svg { width: 28px; height: 28px; }
.logo em { color: var(--cyan); }
.nav-links { display: flex; gap: 1.3rem; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.92rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--cyan); }
.btn-nav { background: var(--gradient); color: #04110d !important; padding: 0.5rem 1.2rem; border-radius: 10px; font-weight: 700 !important; }
.btn-nav:hover { filter: brightness(1.1); color: #04110d !important; }

.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: -1rem;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  min-width: 260px; padding: 0.5rem 0; list-style: none;
}
.dropdown-menu li a { display: block; padding: 0.5rem 1.2rem; font-size: 0.9rem; }
.dropdown-menu li a:hover { background: var(--panel-2); }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { display: block; }

.nav-toggle-cb { display: none; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); }

/* ── BUTTONS ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.8rem; border-radius: 12px;
  font-size: 1rem; font-weight: 700; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s; border: none; cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: #04110d; box-shadow: 0 6px 28px rgba(34,211,238,0.3); }
.btn-primary:hover { color: #04110d; filter: brightness(1.08); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid #36507a; }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── HERO ─────────────────────────────── */
.hero {
  padding: 9.5rem 0 5rem;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(34,211,238,0.16), transparent 70%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(139,92,246,0.14), transparent 70%),
    linear-gradient(rgba(34,211,238,0.04) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(34,211,238,0.04) 1px, transparent 1px) 0 0 / 44px 100%,
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 3rem; align-items: center; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 0.8rem; color: var(--green);
  border: 1px solid rgba(52,245,165,0.35); background: rgba(52,245,165,0.07);
  padding: 0.25rem 0.8rem; border-radius: 50px; margin-bottom: 1.2rem; letter-spacing: 0.5px;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.12; color: var(--white); letter-spacing: -1px; margin-bottom: 1.2rem; }
h1 em, h2 em { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin-bottom: 2rem; }

.terminal {
  background: #050810; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--mono); font-size: 0.82rem; box-shadow: 0 25px 70px rgba(0,0,0,0.5);
}
.terminal-bar { display: flex; gap: 6px; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3a58; }
.terminal pre { padding: 1.1rem 1.2rem; color: var(--muted); white-space: pre-wrap; line-height: 1.8; }
.terminal .ok { color: var(--green); }
.terminal .warn { color: #fbbf24; }
.terminal .bad { color: var(--danger); }
.terminal .cmd { color: var(--cyan); }

/* ── PAGE HERO ─────────────────────── */
.page-hero {
  padding: 8.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 60% 80% at 85% 0%, rgba(34,211,238,0.14), transparent 70%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; font-family: var(--mono); }
.breadcrumb a { text-decoration: none; }
.breadcrumb span { margin: 0 0.5rem; }

/* ── SECTIONS ─────────────────────── */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); color: var(--white); line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 0.8rem; }
h3 { font-size: 1.12rem; color: var(--white); margin-bottom: 0.5rem; }
.section-header p { color: var(--muted); }

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  display: block; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem; text-decoration: none; color: var(--text);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
a.card:hover { border-color: var(--cyan); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(34,211,238,0.1); color: var(--text); }
.card .icon { font-size: 1.7rem; margin-bottom: 0.7rem; display: block; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .more { display: inline-block; margin-top: 0.8rem; color: var(--cyan); font-weight: 600; font-size: 0.9rem; }
.card-risk { border-left: 3px solid var(--danger); }
.card-do { border-left: 3px solid var(--green); }

.content-block { max-width: 820px; margin: 0 auto; }
.content-block p { margin-bottom: 1.1rem; color: var(--text); }
.content-block ul { margin: 0 0 1.4rem 1.2rem; }
.content-block li { margin-bottom: 0.5rem; }

.steps { counter-reset: step; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.steps li::before { content: "0" counter(step); font-family: var(--mono); color: var(--cyan); font-size: 1.1rem; display: block; margin-bottom: 0.4rem; }
.steps strong { color: var(--white); display: block; margin-bottom: 0.3rem; }
.steps span { color: var(--muted); font-size: 0.92rem; }

.checklist { list-style: none; max-width: 820px; margin: 0 auto; display: grid; gap: 0.7rem; }
.checklist li { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem 0.8rem 2.6rem; position: relative; }
.checklist li::before { content: "\2713"; position: absolute; left: 1rem; color: var(--green); font-weight: 700; }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 0.8rem; padding: 0 1.2rem; }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; color: var(--white); }
.faq details[open] summary { color: var(--cyan); }
.faq details p { padding-bottom: 1rem; color: var(--muted); }

.notice { max-width: 820px; margin: 2rem auto 0; border: 1px solid rgba(251,191,36,0.4); background: rgba(251,191,36,0.06); border-radius: 10px; padding: 1rem 1.2rem; font-size: 0.92rem; color: #f3dca0; }

.cta-band { padding: 4rem 0; text-align: center; background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(52,245,165,0.08)), var(--bg-2); border-top: 1px solid var(--line); }
.cta-band p { color: var(--muted); margin-bottom: 1.6rem; }
.cta-band .btn-group { justify-content: center; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; text-align: center; }
.stat-number { display: block; font-size: 1.7rem; font-weight: 800; color: var(--cyan); font-family: var(--mono); }
.stat-label { color: var(--muted); font-size: 0.9rem; }

.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.pills a { text-decoration: none; border: 1px solid var(--line); background: var(--panel); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.88rem; }
.pills a:hover { border-color: var(--cyan); }

/* ── FORM ─────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--text); }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 0.75rem 0.9rem; background: #060a13; color: var(--white);
  border: 1px solid var(--line); border-radius: 10px; font: inherit;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 0.6rem; font-size: 0.85rem; color: var(--muted); align-items: flex-start; }
.consent input { margin-top: 0.35rem; }
#form-msg { margin-top: 1rem; font-weight: 600; }
#form-msg.ok { color: var(--green); }
#form-msg.err { color: var(--danger); }

/* ── FOOTER ─────────────────────── */
footer { background: #04070e; border-top: 1px solid var(--line); padding: 4rem 1.5rem 0; font-size: 0.92rem; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer-brand p { color: var(--muted); margin-top: 0.8rem; }
.footer-col h4 { color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { max-width: 1160px; margin: 0 auto; padding: 1.5rem 0; text-align: center; color: #5d7194; font-size: 0.82rem; }

/* ── RESPONSIVE ─────────────────────── */
@media (max-width: 1000px) {
  .hero-grid, .contact-grid { grid-template-columns: 1fr; }
  .grid-4, .steps, .stats-row { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0; max-height: calc(100vh - 68px); overflow-y: auto;
    background: var(--bg); padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--line); gap: 0.8rem;
  }
  .nav-toggle-cb:checked ~ .nav-links { display: flex; }
  .dropdown-menu { position: static; display: block; box-shadow: none; border: none; background: transparent; padding-left: 0.8rem; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .steps, .stats-row, .form-row, .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
}
