/* NexFibre — faithful rebuild of the Wix site. Dark navy + neon green + electric blue. */

:root {
  /* --- Dark (brand default) --- */
  --bg:         #060A14;
  --bg-2:       #080D1A;
  --header:     #0A1122;
  --header-bg:  rgba(10, 17, 34, 0.72);
  --header-bg-s:rgba(6, 10, 20, 0.95);
  --card:       #0D1526;
  --card-2:     #0B1220;
  --border:     rgba(47, 107, 255, 0.30);
  --border-2:   rgba(124, 255, 58, 0.35);
  --green:      #7CFF3A;
  --blue:       #2F6BFF;
  --blue-2:     #116DFF;
  --teal:       #24D9C9;
  --magenta:    #FF00C8;
  --white:      #F2F6FC;   /* foreground / headings */
  --text:       #AEB8C9;
  --muted:      #7A879E;
  --on-green:   #052B0A;   /* text on a green button */
  --solid-bg:   #EAFBF6;   /* .btn-white */
  --solid-fg:   #071427;
  --input-bg:   rgba(6, 10, 20, 0.7);
  --ring-track: #24382F;
  --ring-track-lg: #1E3B3A;
  --glow:       0.45;
  --logo-dark:  block;
  --logo-light: none;

  --heading:   'Montserrat', 'Segoe UI', system-ui, sans-serif;
  --body:      'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --wrap:      1200px;
  --radius:    14px;
}

/* --- Light --- */
:root[data-theme="light"] {
  --bg:         #F3F7FC;
  --bg-2:       #FFFFFF;
  --header:     #FFFFFF;
  --header-bg:  rgba(255, 255, 255, 0.82);
  --header-bg-s:rgba(255, 255, 255, 0.97);
  --card:       #FFFFFF;
  --card-2:     #F7FAFF;
  --border:     rgba(17, 109, 255, 0.22);
  --border-2:   rgba(46, 155, 0, 0.38);
  --green:      #2E9B00;
  --blue:       #0F5FE0;
  --blue-2:     #0F5FE0;
  --teal:       #0C8E85;
  --magenta:    #C7009A;
  --white:      #0A1330;
  --text:       #47546C;
  --muted:      #77839B;
  --on-green:   #FFFFFF;
  --solid-bg:   #0A1330;
  --solid-fg:   #FFFFFF;
  --input-bg:   #FFFFFF;
  --ring-track: #D8E3F0;
  --ring-track-lg: #D3E7E5;
  --glow:       0.16;
  --logo-dark:  none;
  --logo-light: block;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--green); }

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

.skip {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--green); color: var(--on-green); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(47, 107, 255, 0.12);
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled { background: var(--header-bg-s); border-bottom-color: rgba(47,107,255,0.22); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  color: var(--white); font-family: var(--heading); font-weight: 600; font-size: 16px;
  letter-spacing: .2px; position: relative; padding: 6px 0;
}
.nav a:hover { color: var(--green); }
.nav a.active { color: var(--white); }
.nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}
/* Logo swaps with theme */
.brand { display: inline-flex; align-items: center; }
.brand .logo-dark  { display: var(--logo-dark); }
.brand .logo-light { display: var(--logo-light); }

/* Theme toggle */
.header-actions { display: flex; align-items: center; gap: 6px; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  background: transparent; border: 1px solid var(--border); border-radius: 50%;
  color: var(--white); cursor: pointer; transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.theme-toggle:hover { color: var(--green); border-color: var(--green); background: rgba(47,107,255,.08); }
.theme-toggle svg { grid-area: 1 / 1; }
.theme-toggle .icon-sun  { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: block; }

.nav-close, .nav-toggle { display: none; }
.nav-toggle { background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--heading); font-weight: 700; font-size: 15px; letter-spacing: .3px;
  padding: 14px 30px; border-radius: 40px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-green { background: var(--green); color: var(--on-green); box-shadow: 0 6px 24px rgba(124,255,58,calc(var(--glow) * .55)); }
.btn-green:hover { color: var(--on-green); box-shadow: 0 10px 30px rgba(124,255,58,.4); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 24px rgba(47,107,255,.3); }
.btn-blue:hover { color: #fff; box-shadow: 0 10px 30px rgba(47,107,255,.45); }
.btn-white { background: var(--solid-bg); color: var(--solid-fg); }
.btn-white:hover { color: var(--solid-fg); background: var(--solid-bg); filter: brightness(1.12); }
.btn-outline { border-color: var(--border); color: var(--white); background: rgba(47,107,255,.06); }
.btn-outline:hover { color: var(--white); border-color: var(--green); }

/* ---------- Shared section bits ---------- */
section { position: relative; }
.eyebrow {
  font-family: var(--heading); font-weight: 700; letter-spacing: .35em; text-transform: uppercase;
  font-size: 13px; color: var(--teal); margin: 0 0 18px;
}
.eyebrow.green { color: var(--green); }
.section-pad { padding: 96px 0; }
.section-title {
  font-family: var(--heading); font-weight: 900; color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.5px;
}
.section-title .teal { color: var(--teal); }
.section-title .green { color: var(--green); }
.section-title .blue { color: var(--blue); }
.center { text-align: center; }
.lead { font-size: 1.12rem; max-width: 720px; color: var(--text); }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 70px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(47,107,255,.16), transparent 70%),
    radial-gradient(40% 40% at 80% 20%, rgba(124,255,58,.08), transparent 70%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--heading); font-weight: 900; letter-spacing: -1px;
  font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: .98; margin: 0 0 14px; color: var(--white);
  text-transform: uppercase;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .subhead {
  font-family: var(--heading); font-weight: 900; text-transform: none;
  font-size: clamp(2rem, 6vw, 4rem); line-height: 1.02; margin: 34px 0 0; color: var(--white);
}
.hero .subhead .green { color: var(--green); }
.hero .subhead .blue { color: var(--blue); }

/* Stat row + gauge */
.stats {
  display: flex; align-items: center; justify-content: center; gap: clamp(26px, 6vw, 80px);
  flex-wrap: wrap; margin: 46px 0 10px;
}
.stat { text-align: center; }
.stat .num { font-family: var(--heading); font-weight: 800; font-size: 1.9rem; color: var(--green); line-height: 1; }
.stat .lbl { font-family: var(--heading); font-weight: 600; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
/* Animated gauge — dot orbits the ring, trailing a short arc */
.gauge-ring {
  --gauge-size: 118px;
  position: relative; width: var(--gauge-size); height: var(--gauge-size);
  display: grid; place-items: center; flex: 0 0 auto;
}
.gauge-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gauge-ring .g-track { fill: none; stroke: var(--ring-track); stroke-width: 7; }
/* r=82 -> circumference 2*pi*82 = 515.22 */
.gauge-ring .g-arc {
  fill: none; stroke: var(--blue); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 515.22;
  stroke-dashoffset: 515.22;
  animation: gauge-draw 3.6s linear infinite;
}
.gauge-ring .g-dot { fill: var(--green); filter: drop-shadow(0 0 10px rgba(124,255,58,calc(var(--glow) + .2))); }
.gauge-ring .g-orbit {
  transform-box: view-box; transform-origin: 100px 100px;
  animation: gauge-spin 3.6s linear infinite;
}
/* Same duration + linear on both, so the dot stays on the arc's leading edge. */
@keyframes gauge-draw { from { stroke-dashoffset: 515.22; } to { stroke-dashoffset: 0; } }
@keyframes gauge-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.gauge-text { position: relative; text-align: center; line-height: 1.1; }
.gauge-ring .g-num { font-family: var(--heading); font-weight: 900; color: var(--green); font-size: 1.7rem; line-height: 1; }
.gauge-ring .g-lbl { font-family: var(--heading); font-weight: 700; font-size: .52rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-top: 5px; }
.gauge-ring .g-top { font-family: var(--heading); font-weight: 600; font-size: .5rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text); margin-bottom: 5px; }

/* Large variant (Solutions page) */
.gauge-ring.lg { --gauge-size: min(340px, 72vw); }
.gauge-ring.lg .g-track { stroke: var(--ring-track-lg); stroke-width: 5; }
.gauge-ring.lg .g-arc { stroke: var(--teal); stroke-width: 5; }
.gauge-ring.lg .g-num { font-size: 3.6rem; color: var(--teal); }
.gauge-ring.lg .g-lbl { font-size: .8rem; letter-spacing: .05em; text-transform: none; color: var(--muted); font-weight: 500; }
.gauge-ring.lg .g-top { font-size: .78rem; letter-spacing: .3em; color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .gauge-ring .g-orbit { animation: none; }
  .gauge-ring .g-arc { animation: none; stroke-dashoffset: 386; } /* static 25% arc */
}

/* ---------- Solution cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.sol-card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; position: relative; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.sol-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: 0 18px 44px rgba(0,0,0,.35); }
.sol-num { font-family: var(--heading); font-weight: 600; letter-spacing: .18em; font-size: .78rem; color: var(--muted); text-transform: uppercase; }
.sol-card h3 { font-family: var(--heading); font-weight: 800; font-size: 1.7rem; color: var(--green); margin: 16px 0 14px; line-height: 1.1; }
.sol-card p { margin: 0 0 18px; }
.sol-card ul { list-style: none; padding: 0; margin: 0 0 26px; }
.sol-card li { position: relative; padding-left: 18px; margin: 8px 0; font-size: .98rem; }
.sol-card li::before { content: "•"; color: var(--green); position: absolute; left: 0; }
.sol-card .card-cta { margin-top: auto; align-self: flex-start; }
.milo-pill {
  position: absolute; top: 18px; right: 18px;
  background: var(--magenta); color: #fff; font-family: var(--heading); font-weight: 700; font-size: .72rem;
  padding: 7px 14px; border-radius: 30px; box-shadow: 0 4px 16px rgba(255,0,200,.35);
}
.milo-pill.inline { position: static; display: inline-block; margin-top: 6px; }

/* ---------- Tech section (solutions) ---------- */
.tech { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.tech h2 {
  font-family: var(--heading); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; color: var(--teal); margin: 0 0 22px; letter-spacing: -1px;
}
.tech h2 .hl { color: var(--white); text-shadow: 0 0 26px rgba(124,255,58,.45); }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; max-width: 420px; }
.tech-cell { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.tech-cell .t-num { font-family: var(--heading); font-weight: 800; color: var(--teal); font-size: 1.5rem; }
.tech-cell .t-lbl { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.tech-visual { display: grid; place-content: center; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.plan {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--border); border-radius: 18px; padding: 40px 34px; position: relative;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,.4); }
.plan.featured { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 24px 60px rgba(36,217,201,.14); }
.plan .tier { font-family: var(--heading); font-weight: 800; color: var(--teal); font-size: 1.5rem; }
.plan .price { font-family: var(--heading); font-weight: 900; color: var(--white); font-size: 2.9rem; line-height: 1; margin: 10px 0 4px; }
.plan .price span { font-size: 1.1rem; color: var(--muted); font-weight: 700; }
.plan hr { border: 0; border-top: 1px solid var(--border); margin: 26px 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; }
.plan li { padding-left: 16px; position: relative; margin: 14px 0; color: var(--white); }
.plan li::before { content: "•"; color: var(--teal); position: absolute; left: 0; }
.plan .btn { margin-top: auto; width: 100%; }
.badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: var(--on-green); font-family: var(--heading); font-weight: 800; font-size: .72rem;
  letter-spacing: .1em; padding: 8px 18px; border-radius: 8px; text-transform: uppercase; text-align: center; line-height: 1.15;
}
.plans-note { text-align: center; margin-top: 40px; }
.plans-note a { color: var(--white); text-decoration: underline; }
.plans-note a:hover { color: var(--green); }

/* ---------- About ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 20px; }
.value { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 30px; }
.value h4 { font-family: var(--heading); font-weight: 800; color: var(--white); margin: 0 0 10px; font-size: 1.15rem; }
.sectors { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 20px; }
.sector { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 26px; }
.sector h4 { font-family: var(--heading); font-weight: 800; color: var(--green); margin: 0 0 8px; font-size: 1.05rem; }
.sector p { margin: 0; font-size: .95rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-left h1 { font-family: var(--heading); font-weight: 900; font-size: clamp(2.2rem,5vw,3.4rem); line-height: 1.02; color: var(--white); margin: 0 0 24px; }
.contact-left h1 .green { color: var(--green); }
.contact-left .hl { color: var(--white); text-shadow: 0 0 24px rgba(124,255,58,.4); }
.contact-info a { display: inline-block; font-family: var(--heading); font-weight: 700; font-size: 1.15rem; color: var(--green); margin: 8px 0; text-decoration: underline; }
.contact-info a:hover { color: var(--white); }
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 40px; }
.form-card h2 { font-family: var(--heading); font-weight: 800; color: var(--green); margin: 0 0 8px; font-size: 1.6rem; }
.form-card > p { margin: 0 0 26px; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: .85rem; color: var(--text); margin-bottom: 8px; font-weight: 500; }
label .req { color: var(--green); }
input, select, textarea {
  width: 100%; background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; color: var(--white); font-family: var(--body); font-size: 1rem; transition: border-color .2s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); }
textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-note { margin-top: 16px; font-size: .9rem; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 22px; font-size: .95rem; }
.alert-ok { background: rgba(124,255,58,.1); border: 1px solid var(--border-2); color: var(--green); }
.alert-err { background: rgba(255,0,200,.08); border: 1px solid rgba(255,0,200,.4); color: #ff86e2; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; background: linear-gradient(180deg, transparent, rgba(47,107,255,.06)); border-top: 1px solid rgba(47,107,255,.14); }
.cta-band h2 { font-family: var(--heading); font-weight: 900; color: var(--white); font-size: clamp(1.8rem,4vw,2.8rem); margin: 0 0 14px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h1 { font-family: var(--heading); font-weight: 900; color: var(--white); font-size: 2.4rem; margin: 0 0 8px; }
.prose h2 { font-family: var(--heading); font-weight: 800; color: var(--green); font-size: 1.4rem; margin: 40px 0 12px; }
.prose h3 { font-family: var(--heading); font-weight: 700; color: var(--white); font-size: 1.1rem; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--text); }
.prose .updated { color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(47,107,255,.14); padding: 54px 0; background: var(--bg-2); text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-inner .brand img { height: 44px; }
.footer-contact { font-family: var(--heading); letter-spacing: .12em; font-size: .9rem; color: var(--text); margin: 0; }
.footer-contact a { color: var(--text); }
.footer-contact a:hover { color: var(--green); }
.footer-contact .sep { color: var(--muted); margin: 0 10px; }
.footer-copy { color: var(--muted); font-size: .85rem; margin: 0; }
.footer-copy a { color: var(--muted); text-decoration: underline; }
.footer-copy a:hover { color: var(--green); }

/* ---------- Reveal animation ---------- */
/* Only hide when JS is running, so content is never stranded invisible. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-2, .plans, .tech, .split, .contact-grid, .values { grid-template-columns: 1fr; }
  .tech-visual { order: -1; }
  .section-pad { padding: 68px 0; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 82vw); flex-direction: column; align-items: flex-start;
    background: var(--header); padding: 90px 32px; gap: 22px; transform: translateX(100%); transition: transform .28s ease;
    border-left: 1px solid var(--border); z-index: 120;
  }
  .nav.open { transform: none; }
  .nav-toggle { display: block; z-index: 130; }
  .nav-close { display: block; position: absolute; top: 20px; right: 24px; background: none; border: 0; color: var(--white); font-size: 34px; cursor: pointer; line-height: 1; }
  .nav a { font-size: 1.15rem; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .sol-card, .plan, .form-card { padding: 28px 24px; }
  .stats { gap: 22px; }
  .btn { width: 100%; }
  .sol-card .card-cta, .cta-actions .btn { width: auto; }
}
