/* ================================================================
   ionet — Design Tokens
   Built from the official ionet brand palette.
     Logo:    pink #CC00FF, purple #8900FF, grey #3C4049
     Docs:    purple #4c1f9c (flat), dark blue #1e1e80, orange #cc9900
              + gradient #1e1e80 → #4c1f9c
   Orange is reserved for CTA buttons & key accents only.
   ================================================================ */
:root {
  --bg: #0c0a24;             /* deep ink derived from brand dark blue/purple */
  --bg-elev: #15123a;
  --surface: #1e1e80;        /* brand dark blue (used as section backing) */
  --surface-2: #4c1f9c;      /* brand flat purple */
  --surface-3: #5e2ab8;      /* slightly lighter for hover/highlight */

  --primary: #4c1f9c;        /* brand flat purple */
  --primary-2: #1e1e80;      /* brand dark blue */
  --primary-3: #6a2dc7;      /* lighter brand purple */

  --logo-pink: #CC00FF;
  --logo-purple: #8900FF;

  --accent: #cc9900;         /* brand orange */
  --accent-2: #ffb833;

  --brand-grey: #3C4049;

  --border: rgba(106, 45, 199, 0.25);
  --border-strong: rgba(106, 45, 199, 0.55);

  --text: #f5f0ff;
  --text-muted: #b8a8d6;
  --text-dim: #7c6e9c;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(106, 45, 199, 0.5);
  --shadow-glow-pink: 0 0 40px rgba(204, 0, 255, 0.35);
  --shadow-glow-gold: 0 0 30px rgba(204, 153, 0, 0.4);

  --font-heading: "Outfit", "Inter", "Helvetica", "Arial", sans-serif;
  --font-body: "Open Sans", "Arial", sans-serif;

  --container: 1200px;
  --header-h: 76px;
}

/* ================================================================
   Reset & base
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; color: var(--text-muted); }
.eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-3);
  margin-bottom: 1rem;
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Backdrop ambience — dominant purple radial glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(76, 31, 156, 0.55), transparent 60%),
    radial-gradient(800px 600px at 90% 10%, rgba(30, 30, 128, 0.5), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(76, 31, 156, 0.4), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ================================================================
   Header
   ================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  background: rgba(12, 10, 36, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(245, 240, 255, 0.06);
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(12, 10, 36, 0.88);
  border-bottom-color: var(--border);
}
.nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand img { height: 38px; width: auto; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-links a {
  display: inline-block;
  padding: 8px 16px;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent-2);
  background: rgba(106, 45, 199, 0.18);
}
/* The "Get in touch" button in the nav uses .btn-primary, but .nav-links a
   has higher specificity than .btn-primary — restore black text on the gold
   button explicitly. */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #000; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.2rem;
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-gold);
  color: #000;
}
.btn-secondary {
  background: linear-gradient(135deg, var(--primary-2), var(--primary-3));
  color: var(--text);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--text);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(106, 45, 199, 0.15);
  color: var(--text);
  border-color: var(--primary-3);
}

/* ================================================================
   Hero
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 40px);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-copy h1 {
  background: linear-gradient(180deg, #ffffff 0%, #d4c5ee 60%, #9b88c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy h1 .accent {
  background: linear-gradient(135deg, var(--logo-pink), var(--logo-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-stats .stat {
  border-left: 2px solid var(--primary-3);
  padding-left: 14px;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--text);
  font-weight: 700;
}
.hero-stats .stat span { font-size: 0.85rem; color: var(--text-muted); }

/* Earth visual */
.earth-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  margin-left: auto;
}
.earth-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.earth-stage::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(106, 45, 199, 0.35), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}
.earth-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(106, 45, 199, 0.45);
  animation: spin 60s linear infinite;
  pointer-events: none;
}
.earth-orbit.inner { inset: 12%; animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   Sections
   ================================================================ */
section { position: relative; z-index: 1; padding: 100px 0; }
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}
.section-head .eyebrow { display: inline-block; }
.section-head p { font-size: 1.05rem; }

/* Section variants */
.bg-purple {
  background:
    linear-gradient(180deg, transparent, rgba(30, 30, 128, 0.55) 30%, rgba(30, 30, 128, 0.55) 70%, transparent);
}
.bg-purple-strong {
  background:
    radial-gradient(800px 500px at 50% 0%, rgba(106, 45, 199, 0.35), transparent 60%),
    linear-gradient(180deg, var(--primary), var(--surface-2));
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-points {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.about-points li {
  position: relative;
  padding-left: 32px;
  color: var(--text);
}
.about-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-2), var(--primary-3));
  box-shadow: 0 0 12px rgba(106, 45, 199, 0.6);
}
.about-points li::after {
  content: "✓";
  position: absolute;
  left: 4px; top: 6px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

/* About page hero */
.page-hero {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  background: linear-gradient(180deg, #ffffff 0%, #d4c5ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero p { max-width: 720px; margin: 0 auto; font-size: 1.1rem; }

/* Stats trio (used on About) */
.stat-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.stat-card {
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(76, 31, 156, 0.35), rgba(12, 10, 36, 0.5));
}
.stat-card .num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.4rem;
  background: linear-gradient(135deg, var(--primary-3), var(--text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-card .label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(76, 31, 156, 0.32), rgba(12, 10, 36, 0.55));
  transition: transform .25s ease, border-color .25s ease, box-shadow .3s ease;
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at var(--mx, 50%) var(--my, 0%), rgba(106, 45, 199, 0.25), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.service:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.service:hover::before { opacity: 1; }
.service .icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(106, 45, 199, 0.18);
  border: 1px solid var(--border);
  color: var(--primary-3);
  margin-bottom: 18px;
}
.service h3 { color: var(--text); margin-bottom: 8px; }
.service p { font-size: 0.95rem; margin: 0; }

/* ================================================================
   Australia map section
   ================================================================ */
.australia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.australia-grid p strong { color: var(--text); }
.australia-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 400px at 50% 50%, rgba(76, 31, 156, 0.4), transparent 65%),
    linear-gradient(180deg, rgba(30, 30, 128, 0.35), rgba(12, 10, 36, 0.6));
  border: 1px solid var(--border);
  padding: 28px;
  overflow: hidden;
}

/* ================================================================
   Feature deep-dive (cybersecurity / automation / ICN)
   ================================================================ */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.feature-split.reverse > :first-child { order: 2; }
.feature-split.reverse > :last-child { order: 1; }
.capability-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.capability-list li {
  position: relative;
  padding: 14px 18px 14px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(76, 31, 156, 0.18), rgba(12, 10, 36, 0.4));
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.5;
}
.capability-list li strong { color: var(--text); display: inline-block; margin-right: 4px; }
.capability-list li::before {
  content: "";
  position: absolute;
  left: 14px; top: 50%;
  width: 16px; height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--logo-pink), var(--logo-purple));
  box-shadow: 0 0 10px rgba(204, 0, 255, 0.4);
}
.capability-list li::after {
  content: "";
  position: absolute;
  left: 18px; top: 50%;
  width: 7px; height: 4px;
  margin-top: -3px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
}

/* ================================================================
   Stat callout (toned-down, replaces the giant $55K banner)
   ================================================================ */
.stat-callout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 28px 36px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent-2);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(76, 31, 156, 0.32), rgba(30, 30, 128, 0.32));
}

/* Philosophy */
.philosophy {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  padding: 80px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 400px at 0% 0%, rgba(106, 45, 199, 0.45), transparent 60%),
    linear-gradient(180deg, rgba(30, 30, 128, 0.55), rgba(12, 10, 36, 0.7));
}
.philosophy h2 { margin-bottom: 0.6em; }
.philosophy blockquote {
  margin: 0;
  padding: 30px;
  border-left: 3px solid var(--primary-3);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info p { margin-bottom: 1.2em; }
.contact-info .info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: rgba(30, 30, 128, 0.35);
}
.contact-info .info-row .icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(106, 45, 199, 0.22);
  color: var(--primary-3);
  flex-shrink: 0;
}
.contact-info .info-row strong { display: block; color: var(--text); font-size: 0.95rem; }
.contact-info .info-row span { color: var(--text-muted); font-size: 0.9rem; }
.reveal-phone {
  appearance: none;
  background: rgba(106, 45, 199, 0.18);
  border: 1px solid var(--border);
  color: var(--accent-2);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.reveal-phone:hover {
  background: rgba(106, 45, 199, 0.3);
  border-color: var(--border-strong);
}

form.contact-form {
  display: grid;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(30, 30, 128, 0.4);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 6px; }
.form-field label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: rgba(12, 10, 36, 0.7);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--primary-3);
  box-shadow: 0 0 0 3px rgba(106, 45, 199, 0.25);
}
.form-status {
  font-size: 0.9rem;
  color: var(--accent-2);
  min-height: 1.2em;
}

/* CTA strip */
.cta-strip {
  text-align: center;
  padding: 80px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(106, 45, 199, 0.45), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--primary));
}
.cta-strip h2 { margin-bottom: 1rem; }
.cta-strip p { max-width: 600px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(245, 240, 255, 0.08);
  background: rgba(12, 10, 36, 0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 36px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--primary-3);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(245, 240, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .philosophy, .contact-grid,
  .australia-grid, .feature-split,
  .stat-callout { grid-template-columns: 1fr; gap: 40px; }
  .feature-split.reverse > :first-child { order: 1; }
  .feature-split.reverse > :last-child { order: 2; }
  .stat-callout { gap: 20px; padding: 24px 26px; }
  .philosophy, .cta-strip { padding: 40px 28px; }
  .services-grid, .stat-trio { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .earth-stage { max-width: 420px; margin: 0 auto; }
  section { padding: 70px 0; }
}
@media (max-width: 640px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(12, 10, 36, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
  .services-grid, .stat-trio { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
