/* ==========================================================
   CircuitFlux Private Limited – space theme
   Colours are defined once here. Header stays white.
   ========================================================== */
:root {
  /* space */
  --space: #050A1A;
  --space-2: #0A1430;
  --panel: #0E1C40;
  --line: rgba(150, 185, 255, 0.18);
  --text: #E7EEFA;
  --muted: #A9B8D3;
  /* brand on dark */
  --blue: #6FA8FF;
  --blue-strong: #3D8BFF;
  --green: #3DDC6A;
  --green-dark: #2BBF55;
  /* header (white) */
  --head-bg: #FFFFFF;
  --head-ink: #13213A;
  --head-blue: #0A4DA8;
  --head-line: #D8E1EE;

  --font-head: "Exo 2", "Segoe UI", Arial, sans-serif;
  --font-body: "Barlow", system-ui, "Segoe UI", Arial, sans-serif;
  --radius: 8px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--space);
  /* star field */
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.9), transparent),
    radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 200px 150px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 300px 40px, rgba(190,215,255,0.7), transparent),
    radial-gradient(1px 1px at 380px 210px, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 60px 260px, rgba(190,215,255,0.8), transparent);
  background-size: 420px 300px;
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: #A9CBFF; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--head-bg); color: var(--head-ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header (white) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--head-bg);
  border-bottom: 1px solid var(--head-line);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--head-ink); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--head-blue); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .call { background: var(--head-blue); color: #FFFFFF; padding: 10px 18px; border-radius: var(--radius); }
.nav .call:hover { background: #062F6E; color: #FFFFFF; }
.menu-btn {
  display: none; background: none; border: 2px solid var(--head-blue); color: var(--head-blue);
  border-radius: var(--radius); padding: 8px 12px; font: 600 16px var(--font-body); cursor: pointer;
}

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-block; padding: 14px 22px; border-radius: var(--radius); font-weight: 600; text-decoration: none; font-size: 17px; border: 2px solid transparent; cursor: pointer; font-family: var(--font-body); }
.btn-primary { background: var(--green); color: #04121F; }
.btn-primary:hover { background: var(--green-dark); color: #04121F; }
.btn-outline { border-color: var(--blue); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--blue); color: #04121F; }

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 30%, rgba(61, 139, 255, 0.28), transparent 45%),
    radial-gradient(circle at 8% 95%, rgba(61, 220, 106, 0.14), transparent 40%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; color: #FFFFFF; letter-spacing: -0.01em; }
.hero p { font-size: 20px; color: var(--muted); max-width: 34ch; margin: 20px 0 32px; }
.board { width: 100%; height: auto; overflow: visible; }
.board .orbit { fill: none; stroke: rgba(150, 185, 255, 0.45); stroke-width: 1.5; stroke-dasharray: 4 7; }
.trace { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 1.8s ease-out forwards; }
.trace.b { stroke: var(--blue); filter: drop-shadow(0 0 6px rgba(111, 168, 255, 0.8)); }
.trace.g { stroke: var(--green); filter: drop-shadow(0 0 6px rgba(61, 220, 106, 0.7)); }
.trace:nth-of-type(2) { animation-delay: 0.2s; }
.trace:nth-of-type(3) { animation-delay: 0.4s; }
.trace:nth-of-type(4) { animation-delay: 0.6s; }
.pad { fill: var(--space); stroke-width: 6; opacity: 0; animation: pop 0.4s ease-out 1.6s forwards; }
.pad[stroke="#6FA8FF"] { stroke: var(--blue); }
.pad[stroke="#3DDC6A"] { stroke: var(--green); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

.page-head {
  border-bottom: 1px solid var(--line); padding: 72px 0 52px;
  background: radial-gradient(circle at 85% 0%, rgba(61, 139, 255, 0.22), transparent 50%);
}
.page-head h1 { font-size: clamp(32px, 4.5vw, 48px); color: #FFFFFF; }
.page-head p { color: var(--muted); max-width: 60ch; margin: 14px 0 0; font-size: 20px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.head { max-width: 640px; margin-bottom: 44px; }
.head h2 { font-size: clamp(28px, 3.6vw, 40px); color: #FFFFFF; }
.head p { color: var(--muted); margin: 12px 0 0; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 2px solid var(--blue); }
.svc { padding: 32px 0; border-bottom: 1px solid var(--line); }
.svc:nth-child(odd) { padding-right: 40px; border-right: 1px solid var(--line); }
.svc:nth-child(even) { padding-left: 40px; }
.svc h3 { font-size: 24px; color: #FFFFFF; display: flex; align-items: center; gap: 12px; }
.svc h3 svg { flex: none; }
.svc p { margin: 12px 0 0; color: var(--muted); }
.svc ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }

.dark { background: rgba(14, 28, 64, 0.75); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.who-grid div { padding: 28px 24px 8px 0; }
.who-grid h3 { font-size: 21px; color: var(--green); }
.who-grid p { margin: 8px 0 0; color: var(--muted); font-size: 17px; }

/* Products table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(10, 20, 48, 0.7); }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--panel); color: #FFFFFF; font-family: var(--font-head); font-size: 17px; }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; white-space: nowrap; color: var(--text); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.prose p { margin: 0 0 16px; color: var(--muted); max-width: 62ch; }

.note { background: rgba(61, 220, 106, 0.08); border: 1px solid rgba(61, 220, 106, 0.3); border-left: 4px solid var(--green); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; }
.note h3 { font-size: 22px; color: #FFFFFF; }
.note p { margin: 10px 0 18px; color: var(--muted); }

dl.details { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 14px 24px; }
dl.details dt { font-weight: 600; color: var(--blue); }
dl.details dd { margin: 0; color: var(--text); }

/* Contact form */
.form { display: grid; gap: 16px; }
.form label { font-weight: 600; display: block; margin-bottom: 6px; color: var(--text); }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border: 1.5px solid #2A3B66; border-radius: var(--radius);
  font: 400 17px var(--font-body); color: var(--text); background: var(--space-2);
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(111, 168, 255, 0.25); }
.form textarea { min-height: 140px; resize: vertical; }
.form .hint { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #03070F; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 24px; }
.site-footer h3 { color: #FFFFFF; font-size: 17px; margin-bottom: 10px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .legal { border-top: 1px solid var(--line); grid-column: 1 / -1; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--head-bg); border-bottom: 1px solid var(--head-line); padding: 8px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }
  .nav .call { margin-top: 8px; text-align: center; }
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(odd), .svc:nth-child(even) { padding: 28px 0; border-right: 0; }
  .who-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .who-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace, .pad { animation: none; stroke-dashoffset: 0; opacity: 1; }
}
