/* ===== IP Smart Player — landing styles ===================================
   Brand: Midnight Obsidian #0B0C10 · Electric Cyan #45F3FF · Vibrant Violet #7B2CBF
   Style: cinematic dark + glassmorphism. Outfit (display) + Inter (body).
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #0B0C10;
  --bg-2: #0e1018;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* brand */
  --cyan: #45f3ff;
  --violet: #7b2cbf;
  --violet-light: #9d4edd;
  --grad: linear-gradient(120deg, var(--cyan), var(--violet-light));

  /* text */
  --text: #eaf0f7;
  --muted: #9aa6b8;
  --muted-2: #6b7689;

  /* shape */
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px rgba(69, 243, 255, 0.25), 0 18px 50px -18px rgba(69, 243, 255, 0.35);

  /* layout */
  --maxw: 1180px;
  --gap: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient background */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 80% -5%, rgba(123, 44, 191, 0.22), transparent 60%),
    radial-gradient(700px 400px at 0% 10%, rgba(69, 243, 255, 0.12), transparent 55%),
    var(--bg);
}

h1, h2, h3 { font-family: "Outfit", sans-serif; line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.container.narrow { max-width: 820px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 1000;
  background: var(--cyan); color: #001016; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { left: 12px; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 22px; border-radius: var(--radius-pill);
  min-height: 48px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--grad); color: #04141a; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(69,243,255,.4), 0 22px 60px -16px rgba(69,243,255,.5); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--surface-2); border-color: var(--cyan); }
.btn-sm { padding: 10px 16px; min-height: 40px; font-size: 0.92rem; }
.btn-lg { padding: 16px 28px; min-height: 54px; font-size: 1.05rem; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), backdrop-filter 0.25s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(11, 12, 16, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Outfit"; font-weight: 800; font-size: 1.12rem; }
.brand-mark { display: grid; place-items: center; filter: drop-shadow(0 6px 14px rgba(123,44,191,.5)); }
.brand-name { letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a { padding: 10px 14px; color: var(--muted); font-weight: 500; font-size: 0.95rem; border-radius: 10px; transition: color 0.15s, background 0.15s; }
.nav > a:hover { color: var(--text); background: var(--surface); }
.nav .nav-cta { color: #04141a; margin-left: 8px; }
.nav .nav-cta:hover { color: #04141a; }

.nav-toggle { display: none; background: var(--surface); border: 1px solid var(--border); color: var(--text); width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; cursor: pointer; }

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(40px, 7vw, 88px) 0 56px; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: -1; pointer-events: none; }
.glow-cyan { width: 460px; height: 460px; background: rgba(69, 243, 255, 0.18); top: -120px; left: -100px; }
.glow-violet { width: 520px; height: 520px; background: rgba(123, 44, 191, 0.28); top: -80px; right: -140px; }

.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 0.86rem; letter-spacing: 0.02em; color: var(--cyan); background: rgba(69,243,255,.08); border: 1px solid rgba(69,243,255,.25); padding: 7px 14px; border-radius: var(--radius-pill); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; margin: 20px 0 18px; }
.lede { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-cta.center { justify-content: center; }
.hero-note { margin-top: 18px; color: var(--muted-2); font-size: 0.88rem; }

/* hero image */
.hero-visual { perspective: 1400px; }
.hero-img {
  width: 100%; height: auto;
  border-radius: var(--radius-lg); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  transform: rotateY(-9deg) rotateX(4deg); transition: transform 0.5s var(--ease);
}
.hero-visual:hover .hero-img { transform: rotateY(-4deg) rotateX(2deg); }

/* feature image */
.feature-img {
  width: 100%; height: auto;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature-img:hover { transform: translateY(-6px); box-shadow: 0 26px 60px -20px rgba(69, 243, 255, 0.25); }
.device-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(0,0,0,.25); }
.device-logo { display: inline-flex; align-items: center; gap: 8px; font-family: "Outfit"; font-weight: 700; font-size: 0.85rem; }
.device-chip { font-size: 0.66rem; font-weight: 700; letter-spacing: .08em; color: var(--cyan); border: 1px solid rgba(69,243,255,.35); padding: 4px 9px; border-radius: var(--radius-pill); }
.device-body { display: grid; grid-template-columns: 54px 1fr; min-height: 320px; }
.device-rail { display: flex; flex-direction: column; gap: 14px; padding: 18px 0; align-items: center; border-right: 1px solid var(--border); background: rgba(0,0,0,.18); }
.rail-item { width: 22px; height: 22px; border-radius: 7px; background: var(--surface-2); }
.rail-item.active { background: var(--grad); box-shadow: 0 0 14px rgba(69,243,255,.5); }
.device-content { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.row-label { width: 140px; height: 12px; border-radius: 6px; background: var(--surface-2); }
.row-label.short { width: 92px; }
.poster-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.poster { aspect-ratio: 2 / 3; border-radius: 12px; border: 1px solid var(--border); background-size: cover; }
.p1 { background: linear-gradient(150deg, #7b2cbf, #2a0d45); }
.p2 { background: linear-gradient(150deg, #0e7490, #032b33); }
.p3 { background: linear-gradient(150deg, #9d4edd, #45f3ff); }
.p4 { background: linear-gradient(150deg, #1f2937, #0b0c10); }
.p5 { background: linear-gradient(150deg, #45f3ff, #075985); }
.p6 { background: linear-gradient(150deg, #6d28d9, #1e1b4b); }
.p7 { background: linear-gradient(150deg, #be185d, #2a0a1c); }
.p8 { background: linear-gradient(150deg, #334155, #0b0c10); }

/* stats */
.stats { list-style: none; margin: 56px 0 0; padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); backdrop-filter: blur(10px); text-align: center; }
.stats li { display: flex; flex-direction: column; gap: 4px; }
.stats strong { font-family: "Outfit"; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats span { color: var(--muted); font-size: 0.85rem; }

/* ===== Sections ===== */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-head { max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.kicker { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.76rem; font-weight: 700; color: var(--cyan); margin-bottom: 12px; }
.section-head h2, .split-copy h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* feature cards */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.card { padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); backdrop-filter: blur(10px); transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease); }
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }
.card-icon { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px; background: rgba(69,243,255,.10); border: 1px solid rgba(69,243,255,.25); color: var(--cyan); }
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* split (power users) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.check-list svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--cyan); padding: 4px; border-radius: 50%; background: rgba(69,243,255,.1); border: 1px solid rgba(69,243,255,.3); }

.glass-panel { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); backdrop-filter: blur(12px); box-shadow: var(--shadow); display: grid; gap: 14px; }
.mini-row { display: flex; align-items: center; gap: 12px; }
.mini-ico { width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); flex: 0 0 30px; }
.mini-bar { height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(69,243,255,.5), rgba(123,44,191,.45)); }
.mini-bar.w40 { width: 40%; } .mini-bar.w50 { width: 50%; } .mini-bar.w55 { width: 55%; }
.mini-bar.w65 { width: 65%; } .mini-bar.w70 { width: 70%; } .mini-bar.w85 { width: 85%; }
.mini-tag { margin-left: auto; font-size: 0.62rem; font-weight: 700; letter-spacing: .08em; color: var(--cyan); border: 1px solid rgba(69,243,255,.35); padding: 3px 8px; border-radius: var(--radius-pill); }
.mini-progress { height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.mini-progress span { display: block; height: 100%; width: 62%; background: var(--grad); }

/* steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.step { padding: 30px 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); position: relative; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #04141a; font-family: "Outfit"; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; }
.step h3 { font-size: 1.16rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* platforms */
.platforms { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.platforms li { padding: 14px 24px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); font-weight: 600; color: var(--text); backdrop-filter: blur(8px); transition: border-color 0.2s, color 0.2s; }
.platforms li:hover { border-color: var(--cyan); color: var(--cyan); }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color 0.2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 1.04rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s var(--ease); flex: 0 0 12px; }
.faq details[open] .chev { transform: rotate(-135deg); border-color: var(--cyan); }
.faq p { padding: 0 22px 20px; color: var(--muted); }

/* cta band */
.cta-band { position: relative; padding: clamp(56px, 9vw, 96px) 0; overflow: hidden; text-align: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(123,44,191,.10), transparent); }
.cta-band .glow-cyan { left: 50%; top: 40%; transform: translateX(-50%); }
.cta-inner h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; }
.cta-inner p { color: var(--muted); margin: 14px auto 28px; max-width: 48ch; font-size: 1.06rem; }

/* footer */
.site-footer { padding: 56px 0 32px; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-tag { color: var(--muted); margin-top: 12px; font-size: 0.92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.footer-links a { color: var(--muted); font-weight: 500; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 0.84rem; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .device { transform: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 520px; }
  .lede { max-width: 52ch; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav { position: fixed; inset: 68px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 6px; padding: 14px; background: rgba(14,16,24,.96); border: 1px solid var(--border); border-radius: var(--radius-lg); backdrop-filter: blur(16px); box-shadow: var(--shadow); transform-origin: top; transform: scaleY(0.92); opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav > a { padding: 12px 14px; }
  .nav .nav-cta { margin-left: 0; text-align: center; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ===== Subpages (download, about, legal) ===== */
.page-hero { position: relative; padding: clamp(48px, 8vw, 88px) 0 8px; overflow: hidden; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
.page-hero .lede { margin: 16px auto 0; max-width: 60ch; }
.prose { max-width: 760px; margin: 0 auto; color: var(--muted); }
.prose h2 { color: var(--text); font-family: "Outfit"; font-size: 1.35rem; margin: 34px 0 10px; }
.prose h3 { color: var(--text); font-size: 1.05rem; margin: 22px 0 6px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.updated { color: var(--muted-2); font-size: 0.85rem; margin-top: 8px; }
.callout { border: 1px solid rgba(69,243,255,.25); background: rgba(69,243,255,.06); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; color: var(--text); }

/* download grid */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 8px; }
.dl-card { display: flex; flex-direction: column; gap: 8px; padding: 26px 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); backdrop-filter: blur(10px); transition: transform 0.2s var(--ease), border-color 0.2s var(--ease); }
.dl-card:hover { transform: translateY(-5px); border-color: var(--cyan); }
.dl-card .card-icon { margin-bottom: 6px; }
.dl-card h3 { font-size: 1.12rem; }
.dl-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.dl-card .btn { margin-top: 10px; justify-content: center; }
@media (max-width: 880px) { .dl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dl-grid { grid-template-columns: 1fr; } }

/* ===== Article pages (setup guides, comparisons) ===== */
.steps-ol { counter-reset: st; list-style: none; padding: 0; margin: 0 0 16px; }
.steps-ol > li { position: relative; padding: 0 0 18px 52px; }
.steps-ol > li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #04141a; font-family: "Outfit"; font-weight: 800; }
.steps-ol > li h3 { margin: 0 0 4px; }
.cmp-wrap { overflow-x: auto; margin: 18px 0; }
.cmp { width: 100%; border-collapse: collapse; min-width: 480px; }
.cmp th, .cmp td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.cmp thead th { color: var(--text); font-family: "Outfit"; }
.cmp tbody th { color: var(--muted); font-weight: 500; }
.cmp .col-us { color: var(--cyan); font-weight: 700; }
.cmp td .yes { color: var(--cyan); font-weight: 700; }
.cmp td .no { color: var(--muted-2); }
