/* NeSecure Telecom — site styles. */

:root {
  /* The NE-WAN controller's palette (its Vuetify theme), so the site and the
     product look like one family. */
  --accent: #696CFF;          /* controller primary, dark theme */
  --accent-bright: #7F82FF;
  --accent-ink: #5F61E6;      /* accent for small text on white, for contrast */
  --accent-soft: #EDEDFF;
  --navy: #35456E;            /* controller primary, light theme */
  --info: #03C3EC;
  --ink: #232333;             /* controller background, dark */
  --ink-2: #2B2C40;           /* controller surface, dark */
  --ink-3: #33334B;
  --ink-deep: #1B1B28;
  --text: #32475C;            /* controller on-surface, light */
  --muted: #697A8D;
  --line: #E4E6EB;
  --paper: #FFFFFF;
  --paper-2: #F5F5F9;
  --on-dark: #DBDBEB;         /* controller on-surface, dark */
  --on-dark-muted: #A3A4C2;
  --ok: #4AB327;
  --warn: #FFAB00;
  --bad: #FF3E1D;
  --radius: 14px;
  --wrap: 1180px;
  --head: "Public Sans", system-ui, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; color: #233446; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; border-radius: 4px; }

.eyebrow {
  font: 600 .78rem/1 var(--body);
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent-ink);
  margin-bottom: 14px;
}
.lede { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff;
  border: 2px solid var(--accent); border-radius: 999px;
  padding: 12px 24px;
  font: 600 .95rem/1 var(--body);
  text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--accent-bright); border-color: var(--accent-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: transparent; color: var(--accent-bright); border-color: var(--accent-bright); }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(35, 35, 51, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  color: var(--on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: rgba(255, 255, 255, .08); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: block; color: #fff; }
.logo { display: block; width: 150px; height: auto; }
.logo .burst { fill: var(--accent-bright); }
.nav-menu { display: flex; align-items: center; gap: 26px; }
.nav-menu a:not(.btn) {
  text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--on-dark-muted);
  transition: color .15s;
}
.nav-menu a:not(.btn):hover, .nav-menu a.active { color: #fff; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer;
  flex-direction: column; gap: 6px;
}
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: #fff; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(105, 108, 255, .28), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(3, 195, 236, .10), transparent 60%),
    var(--ink);
  color: var(--on-dark);
  padding: 64px 0 56px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero .lede { color: var(--on-dark-muted); }
.hero .eyebrow { color: #A5A7FF; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-art { margin: 0; }
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-art text { font-family: var(--body); text-anchor: middle; }
.hero-art .ctl rect { fill: var(--ink-3); stroke: rgba(255, 255, 255, .18); }
.hero-art .ctl text { fill: #fff; font-size: 14px; font-weight: 600; }
.hero-art .ctl-links path { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; stroke-dasharray: 4 6; }
.hero-art .link { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 2; }
.hero-art .link.best { stroke: url(#g-overlay); stroke-width: 3; }
.hero-art .link.down { stroke: rgba(255, 255, 255, .12); stroke-dasharray: 3 7; }
.hero-art .link-labels text { fill: var(--on-dark-muted); font-size: 12.5px; }
.hero-art .link-labels .muted { fill: rgba(255, 255, 255, .32); }
.hero-art .pkt { fill: #fff; }
.hero-art .pkt.dim { fill: rgba(255, 255, 255, .5); }
.hero-art .node rect { fill: var(--ink-2); stroke: var(--accent-bright); stroke-width: 1.5; }
.hero-art .n-title { fill: #fff; font-size: 14px; font-weight: 600; }
.hero-art .n-sub { fill: var(--on-dark-muted); font-size: 11.5px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: 56px 0 0; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); overflow: hidden;
}
.stats div { background: var(--ink); padding: 22px 24px; }
.stats dt { font: 800 1.9rem/1.1 var(--head); color: #fff; }
.stats dd { margin: 4px 0 0; color: var(--on-dark-muted); font-size: .92rem; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--paper-2); }
.section.dark { background: var(--ink); color: var(--on-dark); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .lede, .section.dark p { color: var(--on-dark-muted); }
.section.dark .eyebrow { color: #A5A7FF; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* Cards */
.cards { display: grid; gap: 24px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card, .device, .plan {
  position: relative;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover, .device:hover, .plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -22px rgba(35, 35, 51, .30);
  border-color: #D5D8E0;
}
.card p { color: var(--muted); }
.tag {
  align-self: flex-start; font: 700 .75rem/1 var(--head); letter-spacing: .06em;
  color: var(--accent-ink); background: var(--accent-soft); padding: 6px 10px; border-radius: 6px; margin-bottom: 18px;
}
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 8px; font-size: .95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.more { margin-top: auto; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.more::after { content: " →"; transition: margin .2s; }
.more:hover::after { margin-left: 4px; }

/* NE-WAN */
.arch {
  list-style: none; padding: 0; margin: 0 0 56px; counter-reset: arch;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden;
}
.arch li { padding: 28px 26px; border-right: 1px solid var(--line); counter-increment: arch; }
.arch li:last-child { border-right: 0; }
.arch li::before {
  content: "0" counter(arch); display: block; font: 800 .85rem/1 var(--head); color: var(--accent-ink); margin-bottom: 14px;
}
.arch p { color: var(--muted); font-size: .94rem; margin: 0; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 32px; }
.feature { border-top: 2px solid var(--navy); padding-top: 18px; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }

/* NE-OS */
.os-points { list-style: none; padding: 0; margin: 28px 0 0; }
.os-points li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .08); color: var(--on-dark-muted); }
.os-points strong { color: #fff; font-weight: 600; }
.console {
  background: var(--ink-deep); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--radius);
  font: 400 .85rem/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  box-shadow: 0 30px 80px -40px rgba(105, 108, 255, .55);
  position: sticky; top: 100px; overflow: hidden;
}
.console-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.console-bar span { width: 10px; height: 10px; border-radius: 50%; background: #44445F; }
.console-bar p { margin: 0 0 0 10px; color: var(--on-dark-muted); font-size: .8rem; }
.console table { width: 100%; border-collapse: collapse; }
.console th, .console td { text-align: left; padding: 11px 16px; white-space: nowrap; }
.console th { color: #7E80A3; font-weight: 400; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.console td { color: var(--on-dark); border-top: 1px solid rgba(255, 255, 255, .05); }
.console-foot { padding: 14px 16px; margin: 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; }
.section.dark .console-foot { color: #9496B8; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; }
.pill.ok { background: rgba(74, 179, 39, .16); color: #71D150; }
.pill.warn { background: rgba(255, 171, 0, .16); color: #FFC04D; }
.pill.bad { background: rgba(255, 62, 29, .16); color: #FF7A63; }

/* Devices */
.device img { display: block; margin: 0 auto 18px; width: 220px; }
.device h3 { font-size: 1.5rem; margin-bottom: 2px; }
.device-role { color: var(--accent-ink); font-weight: 600; font-size: .92rem; }
.specs { list-style: none; padding: 0; margin: 4px 0 24px; font-size: .9rem; }
.specs li { display: grid; grid-template-columns: 76px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.specs span { color: var(--muted); }
.dl { margin-top: auto; font-weight: 600; color: var(--text); text-decoration: none; }
.dl::before { content: "↓ "; color: var(--accent); }
.dl:hover { color: var(--accent-ink); }
.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.featured:hover { border-color: var(--accent); }

/* NE-Mile */
.mile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.mile p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Use cases */
.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.use { padding: 24px; border-radius: var(--radius); background: var(--paper-2); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.use:hover { background: var(--paper); border-color: var(--line); }
.use p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Plans */
.plan .plan-for { color: var(--muted); margin-bottom: 20px; }
.plan h3 { font-size: 1.5rem; }
.plan .btn { margin-top: auto; }
.badge {
  position: absolute; top: -12px; left: 30px; background: var(--accent); color: #fff;
  font: 700 .72rem/1 var(--body); text-transform: uppercase; letter-spacing: .08em;
  padding: 7px 10px; border-radius: 6px;
}

/* Partners, company */
.benefits { list-style: none; padding: 0; margin: 0; counter-reset: b; }
.benefits li {
  counter-increment: b; position: relative; padding: 18px 0 18px 52px; border-bottom: 1px solid var(--line);
}
.benefits li::before {
  content: counter(b); position: absolute; left: 0; top: 16px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); font: 700 .9rem/1 var(--head);
}
.values { display: grid; gap: 16px; }
.value { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 22px 24px; }
.value p { color: var(--muted); margin: 0; }

/* Contact */
address { font-style: normal; margin-top: 32px; }
address a { color: #fff; }
.form {
  background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 30px;
}
.form label { display: block; font-size: .85rem; font-weight: 500; color: var(--on-dark); margin-bottom: 16px; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px;
  background: var(--ink); color: #fff;
  border: 1px solid #44445F; border-radius: 10px;
  padding: 11px 13px; font: inherit; font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(105, 108, 255, .3);
}
.form .invalid { border-color: #FF7A63; }
.form textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hp { position: absolute !important; left: -9999px; }
.form-status { margin: 14px 0 0; min-height: 1.5em; font-size: .92rem; }
.form-status.ok { color: #71D150; }
.form-status.err { color: #FF9A85; }
.form-status a { color: #fff; }

/* Footer */
.footer { background: var(--ink-deep); color: var(--on-dark-muted); padding: 64px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer .logo { width: 140px; margin-bottom: 16px; }
.footer p { margin-bottom: 12px; }
.footer nav p, .footer-grid > div:last-child p { color: #fff; font-weight: 600; }
.footer a:not(.brand) { display: block; text-decoration: none; margin-bottom: 8px; }
.footer a:not(.brand):hover { color: #fff; }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .07); font-size: .85rem; }
.footer-base p { margin: 0; }

/* Reveal on scroll — only once JS has marked the page, so nothing hides without it */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-art .pkt { display: none; }
}

/* Responsive */
@media (max-width: 1040px) {
  .features, .uses { grid-template-columns: repeat(2, 1fr); }
  .arch { grid-template-columns: repeat(2, 1fr); }
  .arch li:nth-child(2) { border-right: 0; }
  .arch li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 8px 24px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 1rem; }
  .nav-menu .btn { margin-top: 18px; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .cards.three { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .console { position: static; overflow-x: auto; }
  .section { padding: 72px 0; }
  .plans { gap: 32px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .features, .uses, .mile-grid, .arch, .row2, .footer-grid { grid-template-columns: 1fr; }
  .arch li { border-right: 0; border-bottom: 1px solid var(--line); }
  .arch li:last-child { border-bottom: 0; }
  .stats dt { font-size: 1.5rem; }
  .stats div { padding: 18px; }
  .card, .device, .plan, .form { padding: 22px; }
  .logo { width: 130px; }
}
