/* iNAK Remote marketing site — palette and type scale mirror mobile/src/theme.js exactly. */

:root {
  --bg: #0B0E14;
  --surface: #151A24;
  --surface-alt: #1E2532;
  --border: #232A38;
  --pressed: #2A3342;
  --text: #F2F4F8;
  --muted: #8B94A7;
  --accent: #F5A524;
  --accent-soft: rgba(245, 165, 36, 0.1);
  --accent-glow: rgba(245, 165, 36, 0.28);
  --green: #3DD68C;
  --danger: #F2555A;

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --max-width: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 16px; }

/* Focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  max-width: none;
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  color: var(--text);
  white-space: nowrap;
}

.wordmark-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.wordmark-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.main-nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 6px 20px rgba(245, 165, 36, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(245, 165, 36, 0.38); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-small { padding: 9px 16px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 96px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  right: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(245, 165, 36, 0) 68%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(245, 165, 36, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 32px;
}

.badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.store-badge img { height: 52px; width: auto; }
.store-badge.soon { position: relative; opacity: 0.92; }
.store-badge .soon-pill {
  position: absolute;
  top: -10px;
  right: -8px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/11; }

/* ---------- Features ---------- */
.feature {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.feature .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.feature.reverse .container { direction: rtl; }
.feature.reverse .container > * { direction: ltr; }

.feature-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

.feature h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 16px;
}

.feature-lede {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 42ch;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}

.feature-list svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

.feature-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
}
.feature-note svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.feature-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.feature-media img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }

/* ---------- App showcase (phone mockups) ---------- */
.showcase { padding: 96px 0; border-top: 1px solid var(--border); position: relative; }

.showcase-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.showcase-head h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.showcase-head p { color: var(--muted); font-size: 17px; }

.phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.phone-block { text-align: center; width: 280px; }
.phone-caption {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.phone-caption span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 4px; }

.phone-frame {
  width: 280px;
  height: 572px;
  margin: 0 auto;
  border-radius: 46px;
  background: #05070c;
  border: 10px solid #05070c;
  box-shadow:
    0 0 0 2px #2b3244,
    0 30px 70px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 22px;
  background: #05070c;
  border-radius: 0 0 16px 16px;
  z-index: 5;
}

.phone-screen {
  position: absolute;
  inset: 0;
  background: var(--bg);
  padding: 34px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'Inter', sans-serif;
}

.app-row { display: flex; justify-content: space-between; gap: 8px; }
.app-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
}
.app-circle svg { width: 17px; height: 17px; }

.app-switch {
  align-self: center;
  display: flex;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 3px;
}
.app-switch-opt {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}
.app-switch-opt svg { width: 11px; height: 11px; }
.app-switch-opt.active { background: var(--accent); color: var(--bg); }

.app-mid { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }

.app-pill {
  width: 34px;
  height: 108px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
}
.app-pill svg { width: 12px; height: 12px; color: var(--muted); }
.app-pill span { font-size: 9px; font-family: 'Space Grotesk', sans-serif; color: var(--text); }

.app-dpad {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  position: relative;
  box-shadow: 0 3px 5px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.07);
}
.app-dpad svg { position: absolute; width: 15px; height: 15px; color: var(--muted); }
.app-dpad .d-up { top: 12px; left: 50%; transform: translateX(-50%); }
.app-dpad .d-down { bottom: 12px; left: 50%; transform: translateX(-50%); }
.app-dpad .d-left { left: 12px; top: 50%; transform: translateY(-50%); }
.app-dpad .d-right { right: 12px; top: 50%; transform: translateY(-50%); }
.app-ok {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--pressed);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.app-touchpad {
  width: 148px;
  height: 148px;
  border-radius: 26px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.app-touchpad-dots {
  position: absolute;
  inset: 16px;
  background-image: radial-gradient(var(--border) 1px, transparent 1.4px);
  background-size: 16px 16px;
}
.app-touchpad-label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-align: center;
  z-index: 1;
}
.app-touchpad-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); margin: 0 auto 6px; z-index: 1; }
.app-touchpad-switch {
  position: absolute;
  top: 7px;
  right: 7px;
  display: flex;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}
.app-touchpad-switch div { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.app-touchpad-switch div.active { background: var(--accent); }
.app-touchpad-switch svg { width: 10px; height: 10px; color: var(--muted); }
.app-touchpad-switch div.active svg { color: var(--bg); }

.app-media-row { display: flex; justify-content: center; align-items: center; gap: 14px; }
.app-media-row .app-circle { width: 34px; height: 34px; }
.app-media-row .app-circle.play { width: 44px; height: 44px; background: var(--accent-soft); }
.app-media-row .app-circle.play svg { color: var(--accent); }
.app-media-row svg { width: 14px; height: 14px; color: var(--muted); }

.app-keys-row { display: flex; justify-content: space-evenly; }
.app-key {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 7.5px;
  font-weight: 700;
  color: var(--muted);
  box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.app-tile {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 7px 9px;
  height: 34px;
}
.app-tile-badge {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}
.app-tile span { font-size: 10px; font-weight: 600; color: var(--text); }

/* ---------- Trust strip ---------- */
.trust {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at center, rgba(245, 165, 36, 0.07), transparent 70%);
  text-align: center;
}

.trust-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 165, 36, 0.3);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  color: var(--accent);
}

.trust h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  max-width: 20ch;
  margin: 0 auto 14px;
}

.trust p {
  color: var(--muted);
  font-size: 16px;
  max-width: 52ch;
  margin: 0 auto;
}

.trust-points {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.trust-point {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.trust-point svg { color: var(--green); }

/* ---------- Download section ---------- */
.download {
  padding: 100px 0;
  text-align: center;
}
.download h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.download p { color: var(--muted); font-size: 17px; margin-bottom: 36px; }
.download .badge-row { justify-content: center; }
.download .store-badge img { height: 58px; }

/* ---------- Contact ---------- */
.contact {
  padding: 96px 0 104px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 165, 36, 0.3);
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  color: var(--accent);
}
.contact h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 14px; }
.contact p { color: var(--muted); font-size: 17px; max-width: 46ch; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copy { color: var(--muted); font-size: 13.5px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Legal pages ---------- */
.legal-main { padding: 56px 0 96px; }
.legal-header { max-width: 720px; margin: 0 auto 48px; }
.legal-header h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.legal-header .updated { color: var(--muted); font-size: 14px; }

.legal-highlights {
  max-width: 720px;
  margin: 0 auto 48px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  list-style: none;
}
.legal-highlights li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
  padding: 8px 0;
}
.legal-highlights li svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.legal-body { max-width: 720px; margin: 0 auto; }
.legal-section { padding: 22px 0; border-top: 1px solid var(--border); }
.legal-section:first-child { border-top: none; }
.legal-section h2 { font-size: 18px; margin-bottom: 12px; }
.legal-section p, .legal-section li { color: var(--muted); font-size: 15px; line-height: 1.65; }
.legal-section p + p { margin-top: 12px; }
.legal-section ul { margin: 8px 0 0; padding-left: 20px; }
.legal-section li + li { margin-top: 8px; }
.legal-section .intro { color: var(--text); margin-bottom: 8px; }
.legal-section .outro { margin-top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .feature .container { grid-template-columns: 1fr; }
  .feature.reverse .container { direction: ltr; }
  .feature-media { order: -1; }
}

@media (max-width: 760px) {
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 4px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; }
  .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .main-nav .btn { margin-top: 10px; align-self: flex-start; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 40px 0 64px; }
  .feature { padding: 64px 0; }
  .showcase { padding: 64px 0; }
  .phones { gap: 36px; }
  .trust-points { gap: 24px; }
}
