/* ==========================================================================
   AUSTRALIA AI TECHNOLOGY PTY LTD — Corporate Website
   Design system / custom layer on top of Tailwind CDN
   Palette: deep navy base + electric blue + cyan accent
   ========================================================================== */

:root {
  --navy-950: #04070f;
  --navy-900: #060b18;
  --navy-850: #08101f;
  --navy-800: #0b1526;
  --line: rgba(120, 168, 255, 0.14);
  --line-strong: rgba(120, 168, 255, 0.28);
  --blue: #2f7dff;
  --blue-bright: #4fa3ff;
  --cyan: #22d3ee;
  --teal: #06d6c4;
  --text: #e8eefc;
  --muted: #93a4c4;
  --grad: linear-gradient(120deg, #38a6ff 0%, #2563eb 48%, #06d6c4 100%);
  --grad-soft: linear-gradient(120deg, rgba(56, 166, 255, .16), rgba(6, 214, 196, .12));
  --radius: 18px;
  --shadow-glow: 0 0 60px -12px rgba(47, 125, 255, .55);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--text);
  font-family: Inter, "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(56, 166, 255, .35); }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--navy-950); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1e3a8a, #0e7490);
  border-radius: 99px;
  border: 2px solid var(--navy-950);
}

/* ---------- Ambient background ---------- */
.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(to right, rgba(120, 168, 255, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 168, 255, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 78%);
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  animation: orbFloat 18s ease-in-out infinite;
}
.orb-1 { width: 620px; height: 620px; top: -240px; left: -120px; background: radial-gradient(circle, rgba(37,99,235,.75), transparent 68%); }
.orb-2 { width: 520px; height: 520px; top: 120px; right: -160px; background: radial-gradient(circle, rgba(6,182,212,.55), transparent 68%); animation-delay: -6s; }
.orb-3 { width: 700px; height: 700px; bottom: -320px; left: 35%; background: radial-gradient(circle, rgba(56,166,255,.35), transparent 70%); animation-delay: -11s; }

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(30px, -40px, 0) scale(1.08); }
}

.noise {
  position: absolute;
  inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography helpers ---------- */
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8fc4ff;
}
.section-title {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
  margin: 0;
}
.section-sub {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 60ch;
}

/* ---------- Surfaces ---------- */
.glass {
  background: linear-gradient(160deg, rgba(15, 27, 48, .86), rgba(7, 13, 26, .72));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(15, 27, 48, .8), rgba(7, 13, 26, .6));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), border-color .35s, box-shadow .35s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(79, 163, 255, .16), transparent 62%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 60px -30px rgba(47, 125, 255, .7);
}
.card:hover::after { opacity: 1; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.5rem;
  border-radius: 999px;
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn-primary {
  color: #04070f;
  background: var(--grad);
  box-shadow: 0 12px 34px -14px rgba(47, 125, 255, .95);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 46px -14px rgba(56, 166, 255, 1); }
.btn-ghost {
  color: var(--text);
  background: rgba(120, 168, 255, .06);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(120, 168, 255, .14); transform: translateY(-2px); }
.btn-sm { padding: .55rem 1rem; font-size: .84rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background .35s, border-color .35s, backdrop-filter .35s, padding .35s;
  border-bottom: 1px solid transparent;
  padding: .9rem 0;
}
.nav.scrolled {
  background: rgba(4, 7, 15, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding: .55rem 0;
}
.nav-link {
  position: relative;
  color: #b9c8e4;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  padding: .35rem 0;
  transition: color .25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transition: width .3s;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

.logo-lockup { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: none;
  box-shadow: 0 8px 26px -10px rgba(47, 125, 255, .9);
}
.logo-name {
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.15;
  color: #fff;
}
.logo-sub {
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #6f8ab5;
}

/* ---------- Hero ---------- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .9rem .4rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(120, 168, 255, .07);
  font-size: .78rem;
  color: #b8cdf0;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(6, 214, 196, .7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(6, 214, 196, .7); }
  70%  { box-shadow: 0 0 0 10px rgba(6, 214, 196, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 214, 196, 0); }
}

.hero-title {
  font-size: clamp(2.3rem, 5.6vw, 4.35rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: 0;
}

.stat-num {
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.counter { display: inline-block; }

/* ---------- Terminal / code window ---------- */
.terminal {
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(9, 17, 32, .96), rgba(4, 8, 17, .96));
  box-shadow: 0 40px 90px -40px rgba(47, 125, 255, .8), inset 0 1px 0 rgba(255,255,255,.04);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem .95rem;
  border-bottom: 1px solid var(--line);
  background: rgba(120, 168, 255, .05);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-body {
  margin: 0;
  padding: 1.15rem 1.25rem;
  font-family: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;
  font-size: .8rem;
  line-height: 1.85;
  overflow-x: auto;
  color: #c6d6f2;
}
.tok-key { color: #7dd3fc; }
.tok-str { color: #6ee7b7; }
.tok-fn  { color: #93c5fd; }
.tok-com { color: #64748b; }
.tok-num { color: #fca5a5; }
.tok-var { color: #e9d5ff; }

.caret::after {
  content: "▌";
  color: var(--cyan);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Model chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .34rem .72rem;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 500;
  color: #c4d4f0;
  border: 1px solid var(--line);
  background: rgba(120, 168, 255, .06);
  white-space: nowrap;
}
.chip .dot-s { width: 7px; height: 7px; border-radius: 50%; flex: none; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Architecture flow ---------- */
.flow-node {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(16, 30, 54, .9), rgba(7, 13, 26, .7));
  text-align: center;
  min-width: 0;
}
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3f6bb5;
}
.flow-pipe {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(79,163,255,.7), transparent);
  position: relative;
}
.flow-pipe::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px 3px rgba(34, 211, 238, .85);
  animation: travel 3.4s linear infinite;
}
@keyframes travel {
  0%   { left: 0%; opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

/* ---------- Control-plane metrics ---------- */
.meter {
  background: var(--grad);
  box-shadow: 0 0 18px -2px rgba(56, 166, 255, .8);
}

.metric {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .78rem;
}
.metric-name {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: 0 0 8.6rem;
  color: #c4d4f0;
  white-space: nowrap;
}
.metric-bar {
  position: relative;
  flex: 1 1 auto;
  height: 5px;
  min-width: 2rem;
  border-radius: 999px;
  background: rgba(120, 168, 255, .12);
  overflow: hidden;
}
.metric-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 12px -1px rgba(56, 166, 255, .75);
}
.metric-val {
  flex: 0 0 3.6rem;
  text-align: right;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: .72rem;
  color: #93a4c4;
}
.metric-tag {
  flex: 0 0 4.4rem;
  text-align: center;
  padding: .12rem .35rem;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.metric-tag.ok { color: #6ee7b7; background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .25); }
.metric-tag.warn { color: #fcd34d; background: rgba(251, 191, 36, .12); border: 1px solid rgba(251, 191, 36, .25); }

/* ---------- Delivery / engagement ---------- */
.featured {
  display: flex;
  flex-direction: column;
  border-color: rgba(79, 163, 255, .55);
  background: linear-gradient(165deg, rgba(20, 40, 78, .92), rgba(7, 13, 26, .8));
  box-shadow: var(--shadow-glow);
}
.featured-tag {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
  color: #04070f;
  background: var(--grad);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .88rem;
  color: #adc0de;
  line-height: 1.55;
}
.check svg { flex: none; margin-top: .18rem; color: var(--teal); }

/* ---------- Contact ---------- */
.field {
  width: 100%;
  padding: .8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(6, 12, 24, .8);
  color: var(--text);
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field::placeholder { color: #5f7396; }
.field:focus {
  outline: none;
  border-color: rgba(79, 163, 255, .7);
  background: rgba(9, 17, 32, .95);
  box-shadow: 0 0 0 4px rgba(47, 125, 255, .13);
}
.label {
  display: block;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8ba1c4;
  margin-bottom: .45rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer-link {
  color: #8ea3c6;
  font-size: .87rem;
  text-decoration: none;
  transition: color .25s;
}
.footer-link:hover { color: #fff; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.mobile-menu.open { max-height: 420px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   LEGAL PAGES — privacy-policy.html / cookie-policy.html / terms-of-service.html
   ========================================================================== */

.toc-link {
  display: block;
  padding: .3rem .6rem;
  border-left: 2px solid rgba(120, 168, 255, .16);
  font-size: .8rem;
  line-height: 1.45;
  color: #8ea3c6;
  text-decoration: none;
  transition: color .22s, border-color .22s, background .22s;
}
.toc-link:hover {
  color: #fff;
  border-left-color: var(--blue-bright);
  background: rgba(120, 168, 255, .06);
}

.legal {
  max-width: 78ch;
  color: #b6c6e2;
  font-size: .95rem;
  line-height: 1.8;
}
.legal h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
  color: #fff;
}
.legal-meta {
  margin: 1rem 0 0;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: .74rem;
  letter-spacing: .04em;
  color: #6f8ab5;
}
.legal h2 {
  margin: 3rem 0 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fff;
  scroll-margin-top: 100px;
}
.legal h3 {
  margin: 2rem 0 .7rem;
  font-size: .98rem;
  font-weight: 600;
  color: #e2ebfb;
}
.legal p { margin: 0 0 1.05rem; }
.legal ul { margin: 0 0 1.15rem; padding-left: 0; list-style: none; }
.legal ul li {
  position: relative;
  margin-bottom: .55rem;
  padding-left: 1.25rem;
}
.legal ul li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-bright);
  box-shadow: 0 0 8px 0 rgba(79, 163, 255, .8);
}
.legal a {
  color: var(--blue-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(79, 163, 255, .3);
  transition: border-color .22s, color .22s;
}
.legal a:hover { color: #fff; border-bottom-color: #fff; }
.legal strong { color: #e8eefc; font-weight: 600; }
.legal em { color: #cbd8ef; font-style: italic; }

.legal table {
  width: 100%;
  margin: 0 0 1.4rem;
  border-collapse: collapse;
  font-size: .86rem;
}
.legal thead th {
  text-align: left;
  padding: .65rem .8rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8ba1c4;
  background: rgba(120, 168, 255, .06);
  border-bottom: 1px solid var(--line-strong);
}
.legal tbody td {
  padding: .7rem .8rem;
  vertical-align: top;
  color: #adc0de;
  border-bottom: 1px solid var(--line);
  line-height: 1.6;
}

.legal-note {
  margin: 2rem 0 0;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(79, 163, 255, .32);
  border-left-width: 3px;
  background: linear-gradient(150deg, rgba(20, 40, 78, .7), rgba(7, 13, 26, .55));
  font-size: .88rem;
  line-height: 1.75;
  color: #c3d3ee;
}
.legal-note strong { color: #8fc4ff; }

.legal-contact {
  display: grid;
  gap: 1.1rem;
  margin: 1.2rem 0 0;
  padding: 1.3rem 1.4rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(9, 17, 32, .6);
}
.legal-contact p { margin: 0; font-size: .88rem; line-height: 1.7; }

.legal-foot {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.legal-foot p { font-size: .85rem; }
.legal-disclaimer {
  margin-top: .8rem !important;
  color: #6f8ab5 !important;
  font-size: .78rem !important;
  line-height: 1.7;
}

@media (min-width: 1024px) {
  .legal-contact { grid-template-columns: 1fr 1fr; align-items: start; }
}

@media (max-width: 640px) {
  .legal { font-size: .9rem; }
  .legal table, .legal thead, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal tbody tr {
    margin-bottom: 1rem;
    padding: .8rem .9rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(9, 17, 32, .55);
  }
  .legal tbody td {
    padding: .25rem 0;
    border-bottom: 0;
  }
  .legal tbody td:first-child {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8ba1c4;
  }
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 640px) {
  .card { padding: 1.35rem; }
  .terminal-body { font-size: .72rem; padding: .9rem; }
  .logo-name { font-size: .82rem; }
  .logo-sub { letter-spacing: .2em; font-size: .54rem; }
  .metric { font-size: .72rem; gap: .5rem; }
  .metric-name { flex-basis: 6.4rem; }
  .metric-val { flex-basis: 3rem; }
  .metric-tag { flex-basis: 3.6rem; font-size: .55rem; }
}
