/* Outback Jack LLC — site styles. No build step; served as-is. */

:root {
  color-scheme: dark;
  --bg: hsl(225, 65%, 7%);
  --brand: #21409a;
  --brand-bright: #4a6ee0;
  --accent: #6a9bff;
  --gold: #c8a84b;
  --text: #e8eeff;
  --text-2: rgba(220, 230, 255, 0.72);
  --text-dim: rgba(220, 230, 255, 0.45);
  --line: rgba(110, 145, 255, 0.18);
  --line-strong: rgba(110, 145, 255, 0.4);
  --panel: rgba(12, 22, 60, 0.55);
  --panel-solid: #0b1640;
  --radius: 14px;
  --mono: 'Share Tech Mono', ui-monospace, monospace;
  --display: 'Rajdhani', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.intro-lock, html.intro-lock body { overflow: hidden; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── Background canvas + scanlines ───────────────────── */
#bg-canvas { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; }
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 999; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0, rgba(0,0,0,0.04) 1px, transparent 1px, transparent 4px);
}

/* ── Intro overlay (cable plug-in) ───────────────────── */
#intro {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
#intro.done { display: none; }
#cable-svg {
  width: min(700px, 92vw);
  height: min(380px, 50vh);
  overflow: visible;
  transform-origin: 50% 50%;
}
#zoom-mask { position: fixed; inset: 0; z-index: 210; opacity: 0; pointer-events: none; }
#skip {
  position: fixed; bottom: 24px; right: 24px; z-index: 220;
  font: 11px/1 var(--mono); letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  background: none; border: 0; padding: 10px; cursor: pointer;
  transition: color 0.25s;
}
#skip:hover { color: rgba(255,255,255,0.85); }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100vw - var(--wrap)) / 2));
  background: rgba(5, 10, 30, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}
.nav:not(.visible) { visibility: hidden; transition: transform 0.35s ease, visibility 0s 0.35s; }
.nav.visible { transform: none; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.nav-brand img { width: 30px; height: 30px; }
.nav-brand span { font: 700 18px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 22px; list-style: none; }
.nav-links a {
  font: 13px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 16px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase;
  color: #fff; text-decoration: none;
  background: linear-gradient(180deg, #3358c8, var(--brand));
  border: 1px solid rgba(140, 170, 255, 0.55);
  border-radius: 999px;
  padding: 15px 30px;
  cursor: pointer;
  box-shadow: 0 6px 28px rgba(33, 64, 154, 0.55), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.12); box-shadow: 0 10px 34px rgba(50, 90, 220, 0.6), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-sm { font-size: 13px; padding: 10px 18px; }

/* ── Hero ────────────────────────────────────────────── */
main, footer { position: relative; z-index: 1; }
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 88px 16px 96px;
  position: relative;
}
#logo-halo {
  position: absolute; top: 50%; left: 50%;
  width: clamp(300px, 55vw, 620px); aspect-ratio: 1;
  translate: -50% -58%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,20,70,0.6) 0%, rgba(10,20,70,0.25) 45%, transparent 72%);
  opacity: 0; pointer-events: none;
}
#logo-img {
  position: relative; z-index: 1;
  width: clamp(180px, 30vw, 340px); height: auto;
  filter:
    drop-shadow(0 6px 24px rgba(15,30,120,0.85))
    drop-shadow(0 2px 8px rgba(10,20,90,0.70))
    drop-shadow(0 0 48px rgba(33,64,154,0.40));
}
.logo-tagline {
  position: relative; z-index: 1;
  font: 700 clamp(30px, 5.6vw, 68px)/1.05 var(--display);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 22px;
  text-shadow: 0 2px 16px rgba(15,30,120,0.7);
}
.logo-tagline::before, .logo-tagline::after {
  content: attr(data-text);
  position: absolute; inset: 0; opacity: 0;
}
.logo-tagline::before { color: #ff4a6e; clip-path: polygon(0 20%,100% 20%,100% 40%,0 40%); animation: glitch1 9s infinite 1.5s; }
.logo-tagline::after  { color: #6af;    clip-path: polygon(0 62%,100% 62%,100% 76%,0 76%); animation: glitch2 9s infinite 1.9s; }
@keyframes glitch1 { 0%,92%,100% { transform: translate(0); opacity: 0; } 93% { transform: translate(-3px,1px); opacity: .7; } 94% { transform: translate(3px,-1px); opacity: .7; } 95% { transform: translate(0); opacity: 0; } }
@keyframes glitch2 { 0%,92%,100% { transform: translate(0); opacity: 0; } 93% { transform: translate(3px,-1px); opacity: .55; } 94% { transform: translate(-2px,2px); opacity: .55; } 95% { transform: translate(0); opacity: 0; } }
.logo-sub {
  position: relative; z-index: 1;
  font: clamp(10px, 1.1vw, 12px)/1 var(--mono);
  color: var(--text-dim); letter-spacing: 0.5em; text-transform: uppercase;
  margin-top: 14px;
}
.hero-lede {
  position: relative; z-index: 1;
  max-width: 560px; margin-top: 26px;
  color: var(--text-2); font-size: clamp(16px, 1.8vw, 19px);
}
.hero-cta { position: relative; z-index: 1; margin-top: 30px; }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; justify-content: center;
}
.scroll-cue {
  font: 11px/1 var(--mono); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue::after { content: ''; width: 1px; height: 26px; background: linear-gradient(var(--text-dim), transparent); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(0.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }
#replay-btn {
  position: absolute; right: max(16px, calc((100vw - var(--wrap)) / 2)); bottom: 24px; z-index: 2;
  font: 10px/1 var(--mono); letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(33,64,154,0.18); border: 1px solid rgba(33,64,154,0.5);
  padding: 9px 14px; cursor: pointer; border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
#replay-btn:hover { color: #fff; background: rgba(33,64,154,0.5); }

/* Hero reveal states (set by intro.js) */
.reveal-item { opacity: 0; transform: translateY(14px); }
.hero.revealed .reveal-item { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.hero #logo-img.reveal-item { transform: scale(0.7); }
.hero.revealed #logo-img.reveal-item { transform: none; transition: opacity 0.7s ease, transform 0.95s cubic-bezier(0.16,1,0.3,1); }
.hero.revealed #logo-img.breathing { animation: logoBreathe 5.5s ease-in-out infinite; }
.hero.revealed #logo-halo { opacity: 1; animation: haloBreathe 5.5s ease-in-out infinite; transition: opacity 0.8s; }
.hero.revealed .d1 { transition-delay: 0.05s; }
.hero.revealed .d2 { transition-delay: 0.45s; }
.hero.revealed .d3 { transition-delay: 0.7s; }
.hero.revealed .d4 { transition-delay: 0.95s; }
.hero.revealed .d5 { transition-delay: 1.15s; }
@keyframes haloBreathe { 0%,100% { opacity: .75; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes logoBreathe {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* ── Sections ────────────────────────────────────────── */
.section { padding: 110px 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.eyebrow {
  font: 12px/1 var(--mono); letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section h2 {
  font: 700 clamp(34px, 5vw, 54px)/1.02 var(--display);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.section-lede { color: var(--text-2); max-width: 640px; margin-top: 16px; font-size: 18px; }
.section-head { margin-bottom: 44px; }

/* Services */
.rate {
  display: inline-flex; align-items: baseline; gap: 10px;
  margin-top: 22px; padding: 10px 18px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(33,64,154,0.2);
}
.rate b { font: 700 26px/1 var(--display); letter-spacing: 0.02em; }
.rate span { font: 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(33,64,154,0.35); border: 1px solid var(--line-strong);
  color: var(--accent); margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font: 700 24px/1.1 var(--display); letter-spacing: 0.02em; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 16px; }
.card ul { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.card li { font-size: 15px; color: var(--text-2); padding-left: 18px; position: relative; }
.card li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand-bright); }
.card-foot {
  margin-top: auto; padding-top: 20px;
  font: 12px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim);
}

/* About */
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.about-copy p { color: var(--text-2); font-size: 18px; margin-top: 18px; }
.about-copy p:first-of-type { margin-top: 0; }
.about-copy a { color: var(--accent); text-decoration-color: rgba(106,155,255,0.4); text-underline-offset: 3px; }
.facts { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.fact { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 22px; border-top: 1px solid var(--line); }
.fact:first-child { border-top: 0; }
.fact dt { font: 11px/1.8 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.fact dd { font-size: 15.5px; }

/* Apps */
.app-feature {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center;
  border: 1px solid var(--line); border-radius: 22px; background: var(--panel);
  padding: 44px;
}
.badge {
  display: inline-block;
  font: 11px/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(200,168,75,0.5); background: rgba(200,168,75,0.08);
  padding: 7px 12px; border-radius: 999px; margin-bottom: 16px;
}
.app-feature h3 { font: 700 clamp(30px, 4vw, 42px)/1.05 var(--display); letter-spacing: 0.02em; }
.app-feature .lede { color: var(--text-2); margin-top: 14px; font-size: 18px; }
.app-points { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
.app-points li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--text-2); font-size: 16px; }
.app-points b { color: var(--text); font-weight: 600; }
.app-points .ico { font-size: 20px; line-height: 1.3; }
.app-note { margin-top: 24px; font: 12px/1.6 var(--mono); letter-spacing: 0.08em; color: var(--text-dim); }

/* Device mockups (pure CSS, illustrative) */
.devices { position: relative; padding: 0 22% 16% 0; }
.ipad {
  aspect-ratio: 4 / 3;
  background: #05070f; border: 10px solid #1c2236; border-radius: 26px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);
  padding: 7%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6%;
}
.tile {
  border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font: 700 clamp(14px, 1.6vw, 20px)/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.18);
}
.tile i { font-style: normal; font-size: clamp(22px, 3vw, 36px); }
.tile.watch  { background: linear-gradient(160deg, #ff6b6b, #e0405a); }
.tile.listen { background: linear-gradient(160deg, #ffc44d, #f29a1f); }
.tile.read   { background: linear-gradient(160deg, #4fd1a5, #1fa37a); }
.tile.play   { background: linear-gradient(160deg, #7aa2ff, #4a6ee0); }
.phone {
  position: absolute; right: 0; bottom: 0;
  width: 30%; aspect-ratio: 9 / 19; container-type: inline-size;
  background: #0a0f22; border: 7px solid #1c2236; border-radius: 28px;
  box-shadow: 0 24px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
  display: flex;
  font-family: var(--body);
}
.phone .screen { flex: 1; display: flex; flex-direction: column; gap: 6cqw; padding: 22cqw 8cqw 10cqw; }
.phone .rc {
  background: rgba(74,110,224,0.16); border: 1px solid rgba(106,155,255,0.3);
  border-radius: 7cqw; padding: 6cqw 7cqw;
  font-size: 8.5cqw; line-height: 1.3; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.phone .rc b { display: block; color: #fff; font-size: 1.1em; }
.phone .rc .bar { height: 2.5cqw; border-radius: 2cqw; background: rgba(255,255,255,0.12); margin-top: 4cqw; overflow: hidden; }
.phone .rc .bar::before { content: ''; display: block; height: 100%; width: var(--p, 40%); background: var(--accent); }
.phone .sync {
  margin-top: auto; text-align: center;
  background: var(--brand-bright); color: #fff; border-radius: 999px; padding: 5cqw 4cqw;
  font: 700 9cqw/1.1 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
}
.phone .sync small { display: block; font: 400 0.8em/1.4 var(--mono); letter-spacing: 0.04em; text-transform: none; opacity: 0.8; margin-top: 3px; }

/* Contact */
.contact {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start;
}
.contact-copy p { color: var(--text-2); font-size: 18px; margin-top: 16px; }
.form {
  border: 1px solid var(--line); border-radius: 22px; background: var(--panel);
  padding: 32px; display: grid; gap: 18px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row.wide-2 { grid-template-columns: 1fr 1.35fr; }
.field { display: grid; gap: 8px; }
.field label { font: 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); }
.field input, .field select, .field textarea {
  font: 16px/1.4 var(--body); color: var(--text);
  background: rgba(3, 8, 28, 0.7);
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 12px 14px; width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(106,155,255,0.2); }
.form .btn { justify-self: start; }
.form-status { font: 13px/1.5 var(--mono); color: var(--gold); min-height: 1.5em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-status.ok { color: #5fe0a0; }
.form-status.err { color: #ff8a8a; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 30px 16px 40px;
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
footer p, footer a { font: 12px/1.6 var(--mono); letter-spacing: 0.12em; color: var(--text-dim); text-decoration: none; }
footer a:hover { color: var(--text); }

/* Scroll-in */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16,1,0.3,1); }
.fade-up.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .about-grid, .app-feature, .contact { grid-template-columns: 1fr; gap: 36px; }
  .app-feature { padding: 28px 22px; }
  .devices { max-width: 560px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav-brand span { font-size: 15px; }
  .section { padding: 80px 16px; }
  .form { padding: 22px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; gap: 4px; padding: 14px 18px; }
  #replay-btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-up, .reveal-item { opacity: 1 !important; transform: none !important; }
}
