/* ============================================================
   Inference Vision — Design System
   Dark luxury · violet/gold accents · Inter + Playfair Display
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* palette */
  --accent: #7C6AFF;
  --accent-light: #9B8CFF;
  --accent-glow: rgba(124, 106, 255, 0.18);
  --gold: #D4A574;
  --green: #34D399;
  --blue: #60A5FA;
  --pink: #F472B6;
  --red: #FB7185;

  /* surfaces */
  --bg: #0A0A0A;
  --bg-soft: #0E0E0E;
  --bg-card: #141414;
  --bg-card-2: #111111;
  --text: #F0F0F0;
  --text-muted: #8A8A8A;
  --text-dim: #555;
  --border: #222;
  --border-soft: rgba(255, 255, 255, 0.06);

  /* type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* motion */
  --dur: 280ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-scale */
  --z-nav: 100;
  --z-overlay: 200;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }

/* ---------- NAV ---------- */
nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-logo { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px; }
.nav-logo .mark { width: 22px; height: 22px; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.3px; transition: color var(--dur) var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { background: var(--accent); color: #fff !important; padding: 8px 18px; border-radius: 8px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--accent-light); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { stroke: var(--text); width: 24px; height: 24px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; font-size: 14px; font-weight: 600;
  border-radius: 10px; cursor: pointer; border: none;
  font-family: var(--font); transition: all var(--dur) var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 10px 34px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); transform: translateY(-2px); }
.btn-store { background: #fff; color: #000; }
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(255,255,255,0.12); }
.btn-gold { background: var(--gold); color: #1a1208; }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(212,165,116,0.25); }

/* ---------- LAYOUT ---------- */
section { padding: 100px 24px; }
.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 760px; margin: 0 auto; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -1px; line-height: 1.2; margin-bottom: 16px; }
.section-sub { font-size: 17px; color: var(--text-muted); }

/* ---------- HERO ---------- */
.hero {
  min-height: 92vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 150px 24px 100px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border: 1px solid var(--border); border-radius: 100px;
  font-size: 12px; font-weight: 500; color: var(--accent); letter-spacing: 0.5px;
  margin-bottom: 32px; background: rgba(124, 106, 255, 0.05);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.hero h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 700; line-height: 1.06; letter-spacing: -2px; margin-bottom: 24px; max-width: 880px; }
.hero h1 .grad { background: linear-gradient(135deg, var(--accent), var(--pink), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: clamp(16px, 2.5vw, 20px); font-weight: 300; color: var(--text-muted); max-width: 580px; margin-bottom: 44px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- APPS GRID ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.app-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; transition: all var(--dur) var(--ease);
  display: flex; flex-direction: column; cursor: pointer;
}
.app-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-5px); box-shadow: 0 24px 48px rgba(0,0,0,0.4); }
.app-art {
  height: 190px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.app-art svg { width: 64px; height: 64px; opacity: 0.95; position: relative; z-index: 1; }
.app-art::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(255,255,255,0.08), transparent 60%);
}
.art-ecrin    { background: linear-gradient(135deg, #1a1208, #2a1f10 50%, #0D0D0D); }
.art-doglife  { background: linear-gradient(135deg, #0D1A0D, #162016 50%, #0a0a0a); }
.art-purrly   { background: linear-gradient(135deg, #0a0a1a, #141428 50%, #0a0a0a); }
.art-nutrisnap{ background: linear-gradient(135deg, #071a14, #0d2119 50%, #071a14); }
.art-safecycle{ background: linear-gradient(135deg, #1a0810, #2a1018 50%, #150a0d); }
.art-sanora   { background: linear-gradient(135deg, #071828, #0d2235 50%, #071828); }
.app-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.tag-live { background: rgba(52,211,153,0.12); color: var(--green); }
.tag-soon { background: rgba(244,114,182,0.12); color: var(--pink); }
.tag-ai   { background: rgba(96,165,250,0.12); color: var(--blue); }
.tag-gold { background: rgba(212,165,116,0.12); color: var(--gold); }
.app-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.5px; }
.app-desc { font-size: 15px; color: var(--text-muted); flex: 1; }
.app-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--accent); transition: gap var(--dur) var(--ease); }
.app-card:hover .app-link { gap: 11px; }
.app-link svg { width: 14px; height: 14px; }

/* ---------- BLOG CARDS ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.post-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: all var(--dur) var(--ease);
}
.post-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-5px); box-shadow: 0 24px 48px rgba(0,0,0,0.4); }
.post-cover { height: 170px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.post-cover svg { width: 52px; height: 52px; opacity: 0.9; z-index: 1; }
.cover-edge   { background: linear-gradient(135deg, #0b1226, #131a3a 55%, #090a16); }
.cover-vision { background: linear-gradient(135deg, #1a1208, #241808 55%, #0d0a06); }
.cover-slm    { background: linear-gradient(135deg, #07221b, #0a2a20 55%, #07150f); }
.cover-agent  { background: linear-gradient(135deg, #1a0a1f, #260f2e 55%, #0f0712); }
.post-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.post-meta .cat { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.post-title { font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; letter-spacing: -0.3px; }
.post-excerpt { font-size: 14px; color: var(--text-muted); flex: 1; }
.post-link { margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; transition: gap var(--dur) var(--ease); }
.post-card:hover .post-link { gap: 11px; }

/* ---------- STUDIO / FEATURES ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature { padding: 28px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; transition: border-color var(--dur) var(--ease); }
.feature:hover { border-color: rgba(255,255,255,0.1); }
.feature-ic { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(124,106,255,0.1); margin-bottom: 16px; }
.feature-ic svg { width: 22px; height: 22px; stroke: var(--accent); }
.feature h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 24px; margin-top: 48px; }
.stat .num { font-size: clamp(30px, 5vw, 44px); font-weight: 700; font-family: var(--font-display); background: linear-gradient(135deg, var(--accent), var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .lbl { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ---------- APP DETAIL ---------- */
.app-hero { padding: 160px 24px 80px; position: relative; overflow: hidden; }
.app-hero-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.app-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; letter-spacing: -1.5px; line-height: 1.08; margin: 18px 0 20px; }
.app-hero .lead { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; line-height: 1.7; }
.app-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.app-mock {
  aspect-ratio: 9 / 16; max-height: 460px; margin: 0 auto;
  border-radius: 28px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.app-mock svg { width: 96px; height: 96px; opacity: 0.92; z-index: 1; }
.crumbs { font-size: 13px; color: var(--text-dim); }
.crumbs a:hover { color: var(--text-muted); }
.detail-section h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 700; letter-spacing: -0.8px; margin-bottom: 32px; text-align: center; }
.price-card {
  max-width: 460px; margin: 0 auto; padding: 36px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
}
.price-card .price { font-size: 44px; font-weight: 700; font-family: var(--font-display); }
.price-card .price small { font-size: 16px; color: var(--text-muted); font-family: var(--font); font-weight: 400; }
.price-card .price-note { font-size: 13px; color: var(--text-dim); margin: 8px 0 24px; }
.price-actions { display: flex; flex-direction: column; gap: 10px; }
.price-actions .btn { justify-content: center; }

/* ---------- ARTICLE ---------- */
.article { padding: 150px 24px 80px; }
.article-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.article-head h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 700; letter-spacing: -1.2px; line-height: 1.12; margin: 18px 0 20px; }
.article-body { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.8; color: #cfcfcf; }
.article-body h2 { font-size: 26px; font-weight: 700; color: var(--text); margin: 48px 0 16px; letter-spacing: -0.5px; }
.article-body h3 { font-size: 20px; font-weight: 600; color: var(--text); margin: 32px 0 12px; }
.article-body p { margin-bottom: 20px; }
.article-body ul { margin: 0 0 20px 22px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 28px 0; color: var(--text-muted); font-style: italic; }
.article-body code { background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-size: 14px; font-family: 'SF Mono', ui-monospace, monospace; }
.pill-list { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.pill { font-size: 12px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 100px; color: var(--text-muted); }

/* ---------- CTA STRIP ---------- */
.cta-strip { text-align: center; }
.cta-box {
  max-width: 800px; margin: 0 auto; padding: 64px 32px;
  background: linear-gradient(135deg, rgba(124,106,255,0.1), rgba(212,165,116,0.06));
  border: 1px solid var(--border); border-radius: 24px;
}
.cta-box h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -1px; margin-bottom: 16px; }
.cta-box p { font-size: 17px; color: var(--text-muted); margin-bottom: 32px; }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--border); padding: 64px 24px 40px; }
.footer-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); max-width: 280px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: 1100px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-dim); }

/* ---------- SCROLL REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .app-hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .app-hero-actions { justify-content: center; }
  .app-mock { order: -1; max-height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  section { padding: 72px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- LAUNCH BANNER ---------- */
.launch-banner {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: calc(var(--z-nav) + 1);
  display: flex; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(90deg, #1F3A2E 0%, #2A4A3C 50%, #1F3A2E 100%);
  color: #F7F4ED;
  padding: 12px 24px;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.2px;
  border-bottom: 1px solid rgba(110, 231, 183, 0.15);
  transition: filter var(--dur) var(--ease);
}
nav { top: 44px !important; }
@media (max-width: 720px) { nav { top: 64px !important; } }
.launch-banner:hover { filter: brightness(1.08); }
.launch-banner strong { font-weight: 700; }
.launch-banner .lb-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6EE7B7;
  box-shadow: 0 0 14px rgba(110, 231, 183, 0.65);
  animation: pulse 2s infinite;
  flex: 0 0 8px;
}
.launch-banner .lb-sub { color: rgba(247, 244, 237, 0.75); }
.launch-banner .lb-cta {
  margin-left: 6px;
  color: #6EE7B7; font-weight: 600;
}
@media (max-width: 720px) {
  .launch-banner { font-size: 12px; padding: 10px 14px; gap: 10px; flex-wrap: wrap; text-align: center; }
  .launch-banner .lb-sub { display: none; }
}

/* ---------- HERO PROOF STRIP ---------- */
.hero-proof {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 28px;
  font-size: 13px; color: var(--text-muted);
  letter-spacing: 0.3px;
}
.hero-proof .dot-sep { color: var(--text-dim); }

/* ---------- FEATURED APP CARD ---------- */
.app-card-featured {
  position: relative;
  border-color: rgba(124, 106, 255, 0.3) !important;
  box-shadow: 0 0 0 1px rgba(124, 106, 255, 0.18), 0 10px 50px rgba(124, 106, 255, 0.12);
}
.app-card-featured::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(124, 106, 255, 0.35), rgba(251, 113, 133, 0.18));
  z-index: -1; filter: blur(20px); opacity: 0.6;
  pointer-events: none;
}

/* ---------- TAG: NEW ---------- */
.tag-new {
  background: linear-gradient(90deg, rgba(110, 231, 183, 0.18), rgba(52, 211, 153, 0.10));
  color: #6EE7B7;
  border: 1px solid rgba(110, 231, 183, 0.4);
}

/* ---------- FOOTER PILL ---------- */
.footer-pill {
  display: inline-block; margin-left: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  background: rgba(110, 231, 183, 0.16); color: #6EE7B7;
  padding: 2px 7px; border-radius: 999px;
  vertical-align: middle;
}

/* ---------- COMPARE TABLE ---------- */
.compare-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  overflow-x: auto;
}
.compare-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.compare-table th { font-weight: 600; color: var(--text-muted); font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; }
.compare-table th:nth-child(2) { color: var(--accent); }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table td.ok { color: #6EE7B7; font-weight: 600; }
.compare-table td.bad { color: #FB7185; font-weight: 600; }
.compare-table td:nth-child(2) { background: rgba(124, 106, 255, 0.05); }
.compare-note { margin-top: 16px; font-size: 12px; color: var(--text-muted); text-align: center; }
.compare-note a { color: var(--accent); text-decoration: underline; }

/* ---------- PRICE FEATURE LIST ---------- */
.price-feat {
  list-style: none; padding: 0;
  margin: 24px 0;
  display: grid; gap: 10px;
  text-align: left;
}
.price-feat li {
  position: relative; padding-left: 28px;
  color: var(--text-muted); font-size: 14px;
}
.price-feat li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(110, 231, 183, 0.15);
  color: #6EE7B7; font-weight: 700; font-size: 12px;
  display: grid; place-items: center;
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
  transition: border-color var(--dur) var(--ease);
}
.faq-list details[open] { border-color: var(--accent); }
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none; position: relative; padding-right: 28px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 22px; color: var(--accent); font-weight: 300;
  transition: transform var(--dur) var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p {
  margin-top: 12px; color: var(--text-muted); font-size: 15px; line-height: 1.7;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
