/* =========================================================
   CyberOne Assurance — Global Stylesheet
   Dark, techy, edgy security-consultancy theme.
   ========================================================= */

:root {
  --bg: #070b12;
  --bg-alt: #0b1119;
  --bg-elevated: #0f1724;
  --bg-card: rgba(16, 24, 37, 0.72);
  --border: #1c2b3d;
  --border-bright: #2a4258;

  --cyan: #2fe4e0;
  --teal: #16d4a8;
  --blue: #3b82f6;
  --danger: #ff3d5f;
  --amber: #ffb020;

  --text: #e8f1f7;
  --text-dim: #93a4b8;
  --text-faint: #5b6b80;

  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --sans: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;

  --radius: 6px;
  --maxw: 1180px;

  --glow-cyan: 0 0 18px rgba(47, 228, 224, 0.35);
  --glow-teal: 0 0 18px rgba(22, 212, 168, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Background texture: grid + vignette + scanlines ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 228, 224, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 228, 224, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.014) 0px,
    rgba(255, 255, 255, 0.014) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
}

main, header, footer { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; padding: 96px 0; }
section.tight { padding: 64px 0; }

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.25rem; }
p { color: var(--text-dim); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--cyan);
  box-shadow: var(--glow-cyan);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.grad-text {
  background: linear-gradient(90deg, var(--cyan), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid var(--border-bright);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(120deg, var(--cyan), var(--teal));
  border-color: transparent;
  color: #04141a;
  font-weight: 700;
  box-shadow: 0 6px 30px -8px rgba(47, 228, 224, 0.55);
}
.btn-primary:hover { box-shadow: 0 10px 34px -6px rgba(47, 228, 224, 0.75); }

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 18, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; }
.brand-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.brand-name span { display: block; font-family: var(--mono); font-size: 0.62rem; color: var(--cyan); letter-spacing: 0.22em; font-weight: 500; }

/* Text-only wordmark brand (matches logo lockup) */
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 6px; }
.brand-word {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: 0.005em;
  color: var(--text);
}
.brand-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
}
.brand-sub::before, .brand-sub::after { content: ""; width: 16px; height: 1px; background: var(--cyan); box-shadow: var(--glow-cyan); }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--cyan);
  transition: right 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }
.nav-links a.active { color: var(--cyan); }

.nav-cta { display: flex; align-items: center; gap: 22px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); }

@media (max-width: 880px) {
  .nav-links { position: fixed; top: 69px; left: 0; right: 0; bottom: 0;
    background: var(--bg); flex-direction: column; justify-content: flex-start;
    padding: 32px 24px; gap: 24px; transform: translateX(100%);
    transition: transform 0.25s ease; border-top: 1px solid var(--border); }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-cta .btn-primary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero h1 { margin: 0 auto; max-width: 820px; }
.hero-lead { font-size: 1.12rem; max-width: 620px; margin: 30px auto 34px; }
.hero-stats { display: flex; gap: 34px; margin-top: 48px; flex-wrap: wrap; justify-content: center; }
.hero-stats div strong { display: block; font-family: var(--mono); font-size: 1.5rem; color: var(--cyan); }
.hero-stats div span { font-size: 0.8rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }

.hero-visual { position: relative; display: flex; justify-content: center; margin: 34px auto 8px; }
.hero-visual video, .hero-visual img {
  width: 100%; max-width: 620px;
  border-radius: 8px;
  filter: drop-shadow(0 0 40px rgba(47, 228, 224, 0.22));
}
.hero .btn-row { justify-content: center; }
.hero .badge-list { justify-content: center; }
@media (max-width: 700px) {
  .hero-visual { justify-content: center; }
}

/* ---------- Terminal card ---------- */
.terminal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.7);
  max-width: 560px;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }
.terminal-title { margin-left: 8px; }
.terminal-body {
  padding: 22px 20px;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: #b7f5ef;
  min-height: 170px;
}
.terminal-body .line { margin-bottom: 8px; color: var(--text-dim); }
.terminal-body .prompt { color: var(--teal); }
.terminal-body .out { color: var(--cyan); }
.terminal-cursor { display: inline-block; width: 8px; height: 1em; background: var(--cyan); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 30px 26px;
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(47, 228, 224, 0.25);
}
.card-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-bright);
  color: var(--cyan);
  margin-bottom: 20px;
  clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.94rem; }
.card ul { margin-top: 14px; padding-left: 0; list-style: none; }
.card ul li {
  font-size: 0.86rem; color: var(--text-dim);
  padding-left: 18px; position: relative; margin-bottom: 8px;
}
.card ul li::before {
  content: ">"; position: absolute; left: 0; color: var(--teal); font-family: var(--mono);
}
.card .tag {
  display: inline-block; margin-top: 16px;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  color: var(--text-faint); text-transform: uppercase;
  border: 1px solid var(--border); padding: 4px 10px;
}

/* ---------- Process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 980px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }
.step {
  border-top: 2px solid var(--border-bright);
  padding-top: 18px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono); color: var(--cyan); font-size: 0.85rem;
  display: block; margin-bottom: 10px;
}
.step h4 { font-size: 0.98rem; margin-bottom: 8px; }
.step p { font-size: 0.84rem; }

/* ---------- Banner / CTA ---------- */
.banner {
  border: 1px solid var(--border-bright);
  background: linear-gradient(135deg, rgba(47,228,224,0.08), rgba(22,212,168,0.02));
  padding: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%);
}
.banner h2 { max-width: 560px; }

/* ---------- Coming soon ---------- */
.coming-soon-card {
  border: 1px dashed var(--border-bright);
  padding: 46px;
  text-align: center;
  position: relative;
}
.coming-soon-card .eyebrow { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 30px;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.footer-grid a, .footer-grid p { font-size: 0.9rem; color: var(--text-dim); display: block; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 0.75rem; color: var(--text-faint);
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 28px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 70px 0 50px; border-bottom: 1px solid var(--border); }
.page-hero .eyebrow { margin-bottom: 14px; }
.page-hero p { max-width: 640px; font-size: 1.05rem; }
.breadcrumb { font-family: var(--mono); font-size: 0.75rem; color: var(--text-faint); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-faint);
}
.field input, .field select, .field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 14px;
  font-family: var(--sans);
  font-size: 0.95rem;
  border-radius: 3px;
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(47,228,224,0.12);
}
.field-note { font-size: 0.78rem; color: var(--text-faint); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info .info-row { display: flex; gap: 16px; margin-bottom: 26px; align-items: flex-start; }
.contact-info .info-row .k {
  font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--cyan); width: 110px; flex-shrink: 0; padding-top: 3px;
}
.contact-info .info-row .v { color: var(--text); font-size: 0.98rem; }
.contact-info .info-row .v small { display:block; color: var(--text-faint); font-size: 0.82rem; margin-top: 4px; }

.notice {
  border-left: 3px solid var(--amber);
  background: rgba(255, 176, 32, 0.06);
  padding: 16px 18px;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 26px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border-bright), transparent); margin: 0 0; }
.badge-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.badge-list span {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--border-bright); padding: 6px 12px; color: var(--text-dim);
}
.legal-strip {
  font-family: var(--mono); font-size: 0.78rem; color: var(--text-faint);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 16px 0; text-align: center;
}
