/* ============================================================
   moberium — DESIGN TOKENS
   ============================================================ */
:root {
  --brand-50: #ecfeff;
  --brand-100: #cffafe;
  --brand-200: #a5f3fc;
  --brand-300: #67e8f9;
  --brand-400: #22d3ee;
  --brand-500: #06b6d4; /* ana */
  --brand-600: #0891b2;
  --brand-700: #0e7490;
  --brand-800: #155e75;
  --brand-900: #164e63;

  /* ikinci aksan (gradient ucu) */
  --accent-2: #14b8a6; /* teal */

  /* marka gradyanı */
  --grad-brand: linear-gradient(135deg, var(--brand-400) 0%, var(--accent-2) 100%);
  --grad-text: linear-gradient(120deg, var(--brand-300), var(--accent-2));

  /* Tipografi */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Sora', var(--font-sans);

  --fs-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8rem);
  --fs-sm: clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
  --fs-base: clamp(1rem, 0.96rem + 0.22vw, 1.0625rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem);
  --fs-xl: clamp(1.4rem, 1.25rem + 0.8vw, 1.85rem);
  --fs-2xl: clamp(1.9rem, 1.5rem + 2vw, 2.9rem);
  --fs-hero: clamp(2.6rem, 1.7rem + 4.4vw, 5rem);

  /* Ölçü / radius / spacing */
  --radius-sm: 0.5rem;
  --radius: 0.85rem;
  --radius-lg: 1.4rem;
  --radius-xl: 2rem;
  --radius-pill: 999px;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --maxw: 1200px;
  --maxw-prose: 68ch;

  /* Hareket */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur: 260ms;
  --dur-slow: 520ms;
}

/* ====================== DARK (default) ====================== */
:root,
[data-theme='dark'] {
  color-scheme: dark;

  --bg: #0a0c10;
  --bg-soft: #0f131a;
  --surface: #12161f;
  --surface-2: #171c27;
  --surface-glass: rgba(20, 25, 35, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f3f5f8;
  --text-muted: #aeb6c4;
  --text-faint: #6b7585;

  --brand: var(--brand-400);
  --on-brand: #042027;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(34, 211, 238, 0.12), 0 14px 50px -16px rgba(6, 182, 212, 0.45);

  --grid-line: rgba(255, 255, 255, 0.04);
}

/* ====================== LIGHT ====================== */
[data-theme='light'] {
  color-scheme: light;

  --bg: #d7dbe3;
  --bg-soft: #e0e4ea;
  --surface: #eef0f4;
  --surface-2: #e4e7ed;
  --surface-glass: rgba(231, 234, 240, 0.72);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);

  --text: #0c1220;
  --text-muted: #4a5568;
  --text-faint: #8a94a6;

  --brand: var(--brand-600);
  --on-brand: #ffffff;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 12px 30px -14px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 60px -24px rgba(15, 23, 42, 0.2);
  --glow: 0 0 0 1px rgba(6, 182, 212, 0.18), 0 14px 50px -18px rgba(6, 182, 212, 0.3);

  --grid-line: rgba(15, 23, 42, 0.05);
  --grad-text: linear-gradient(120deg, var(--brand-600), var(--accent-2));
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   moberium — GLOBAL STYLES
   ============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 80% -10%, rgba(6, 182, 212, 0.16), transparent 60%),
    radial-gradient(50% 40% at 0% 0%, rgba(20, 184, 166, 0.12), transparent 55%);
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--brand-400);
  color: var(--on-brand);
}

:focus-visible {
  outline: 2px solid var(--brand-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, var(--space-24));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

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

/* Buttons */
.btn {
  --_pad-y: 0.8rem;
  --_pad-x: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: var(--_pad-y) var(--_pad-x);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--grad-brand);
  color: var(--on-brand);
  box-shadow: var(--glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.25), 0 22px 60px -18px rgba(6, 182, 212, 0.6);
}

.btn-ghost {
  background: var(--surface-glass);
  color: var(--text);
  border-color: var(--border-strong);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  border-color: var(--brand-400);
  transform: translateY(-2px);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip to content link */
.skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: 0.6rem 1rem; background: var(--brand-400); color: var(--on-brand); border-radius: 0 0 var(--radius) 0; }
.skip:focus { left: 0; }

/* ============================================================
   moberium — COMPONENTS STYLES
   ============================================================ */

/* Header */
.hdr {
  position: sticky; top: 0; z-index: 50;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr[data-scrolled] {
  background: var(--surface-glass);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.hdr-in { display: flex; align-items: center; gap: 1rem; height: 4.6rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-mark {
  width: 1.6rem; height: 1.6rem; border-radius: 0.5rem;
  background: var(--grad-brand); box-shadow: var(--glow);
  position: relative;
}
.brand-mark::after { content:''; position:absolute; inset: 5px; border-radius: 0.25rem; background: var(--bg); opacity: .25; }
.nav { display: none; gap: 1.6rem; margin-inline-start: 1.2rem; font-weight: 500; color: var(--text-muted); }
.nav a { transition: color var(--dur) var(--ease); }
.nav a:hover { color: var(--text); }
.actions { display: flex; align-items: center; gap: 0.6rem; margin-inline-start: auto; }
.nav-cta { display: none; }
@media (min-width: 720px) { .nav { display: flex; } }
@media (min-width: 900px) { .nav-cta { display: inline-flex; } }

/* Language Switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.75rem; height: 2.6rem;
  background: var(--surface-glass); border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill); color: var(--text); cursor: pointer;
  font-size: var(--fs-sm); font-weight: 600; backdrop-filter: blur(12px);
  transition: border-color var(--dur) var(--ease);
}
.lang-btn:hover { border-color: var(--brand-400); }
.lang-btn svg { width: 1.1rem; height: 1.1rem; }
.chev { width: 0.9rem !important; opacity: 0.6; transition: transform var(--dur) var(--ease); }
.lang[data-open] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 60;
  min-width: 190px; list-style: none; padding: 0.4rem;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.lang-menu a {
  display: flex; flex-direction: column; gap: 0.05rem;
  padding: 0.55rem 0.7rem; border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease);
}
.lang-menu a:hover { background: var(--surface-2); }
.lang-menu a.active { background: var(--surface-2); color: var(--brand-400); }
.lang-menu strong { font-size: var(--fs-sm); }
.lang-menu span { font-size: var(--fs-xs); color: var(--text-faint); }

/* Theme Toggle */
.theme-toggle {
  position: relative; display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: var(--radius-pill);
  background: var(--surface-glass); border: 1px solid var(--border-strong);
  color: var(--text); cursor: pointer; backdrop-filter: blur(12px);
  transition: border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.theme-toggle:hover { border-color: var(--brand-400); transform: translateY(-1px); }
.theme-toggle svg { width: 1.2rem; height: 1.2rem; position: absolute; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.moon { opacity: 1; }
[data-theme='light'] .sun { opacity: 1; transform: none; }
[data-theme='light'] .moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

/* Footer */
.ft { border-top: 1px solid var(--border); margin-top: var(--space-16); padding-block: var(--space-16) var(--space-8); background: var(--bg-soft); }
.ft-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.ft-brand p { color: var(--text-muted); margin: 0.8rem 0 1.2rem; max-width: 34ch; }
.ft-col h3 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 0.9rem; font-family: var(--font-sans); }
.ft-col ul { list-style: none; display: grid; gap: 0.6rem; }
.ft-col a { color: var(--text-muted); transition: color var(--dur) var(--ease); }
.ft-col a:hover { color: var(--brand-400); }
.ft-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--text-faint); font-size: var(--fs-sm); }
.cookie-reopen { background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; }
.cookie-reopen:hover { color: var(--brand-400); }
@media (min-width: 640px) { .ft-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Social Links */
.socials { display: flex; gap: 0.55rem; list-style: none; }
.socials a {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease), background var(--dur) var(--ease);
}
.socials a:hover { color: var(--brand-400); border-color: var(--brand-400); transform: translateY(-2px); background: var(--surface); }
.socials svg { width: 1.15rem; height: 1.15rem; }

/* Store Badges */
.badges { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 1.05rem;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.badge:hover { transform: translateY(-2px); border-color: var(--brand-400); box-shadow: var(--shadow); }
.badge-glyph { width: 1.6rem; height: 1.6rem; flex: none; }
.badge-txt { display: flex; flex-direction: column; line-height: 1.05; }
.badge-txt small { font-size: 0.6rem; letter-spacing: 0.04em; color: var(--text-muted); text-transform: uppercase; }
.badge-txt strong { font-family: var(--font-display); font-size: 0.98rem; }
.sm .badge { padding: 0.4rem 0.8rem; }
.sm .badge-glyph { width: 1.3rem; height: 1.3rem; }
.sm .badge-txt strong { font-size: 0.82rem; }

/* Bottom CTA */
.cta-card {
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--border-strong); border-radius: var(--radius-xl);
  background:
    radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--brand-500) 16%, transparent), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-lg);
}
.cta-orb {
  position: absolute; z-index: -1; width: 30rem; height: 30rem; border-radius: 50%;
  background: var(--grad-brand); filter: blur(90px); opacity: 0.28;
  top: -16rem; left: 50%; transform: translateX(-50%);
}
.cta-card h2 { font-size: var(--fs-2xl); margin-bottom: 0.7rem; }
.cta-card p { color: var(--text-muted); max-width: 48ch; margin: 0 auto 1.8rem; font-size: var(--fs-lg); }
.cta-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

/* Cookie Consent */
.cookie { position: fixed; inset-inline: 0; bottom: 0; z-index: 80; padding: 1rem; display: flex; justify-content: center; animation: rise var(--dur-slow) var(--ease-out); }
.cookie[hidden] { display: none; }
.cookie-card { max-width: 640px; width: 100%; padding: 1.1rem 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; box-shadow: var(--shadow-lg); background: var(--surface); }
.cookie-card p { font-size: var(--fs-sm); color: var(--text-muted); margin: 0; flex: 1 1 280px; }
.cookie-card a { color: var(--brand-400); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 0.6rem; }
@keyframes rise { from { transform: translateY(120%); opacity: 0; } to { transform: none; opacity: 1; } }

/* App Card */
.appcard {
  position: relative; display: flex; flex-direction: column; gap: 0.55rem;
  padding: 1.4rem; overflow: hidden; isolation: isolate;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.appcard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border-strong)); box-shadow: var(--shadow-lg); }
.appcard-glow {
  position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(80% 60% at 50% -10%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%);
  transition: opacity var(--dur) var(--ease);
}
.appcard:hover .appcard-glow { opacity: 1; }
.appcard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.3rem; }
.appcard-cat { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); padding: 0.25rem 0.6rem; border: 1px solid var(--border); border-radius: var(--radius-pill); }
.appcard-name { font-size: var(--fs-lg); }
.appcard-slogan { font-weight: 600; color: color-mix(in srgb, var(--accent) 70%, var(--text)); font-size: var(--fs-base); }
.appcard-desc { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.55; }
.appcard-go {
  position: absolute; top: 1.4rem; right: 1.4rem; width: 2rem; height: 2rem;
  display: grid; place-items: center; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text-muted);
  opacity: 0; transform: translateX(-6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur-fast) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.appcard:hover .appcard-go { opacity: 1; transform: none; background: var(--accent); color: #fff; }
.appcard-go svg { width: 1.1rem; height: 1.1rem; }

/* App Icon */
.app-icon-img, .app-icon-svg {
  box-shadow: var(--shadow);
  flex: none;
}

/* ============================================================
   moberium — PAGE SPECIFIC STYLES
   ============================================================ */

/* Hero (Landing) */
.hero { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2rem, 5vw, 4rem); overflow: hidden; }
.hero-in { position: relative; z-index: 2; text-align: center; max-width: 880px; }
.hero .eyebrow { margin-inline: auto; padding: 0.4rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface-glass); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-400); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-400) 25%, transparent); }
.hero-title { font-size: var(--fs-hero); margin: 1.4rem 0 1rem; }
.hero-sub { font-size: var(--fs-lg); color: var(--text-muted); max-width: 56ch; margin-inline: auto; }
.hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; margin-top: 3.5rem; padding: 1.6rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-glass); backdrop-filter: blur(10px); }
.stats li { display: flex; flex-direction: column; gap: 0.2rem; }
.stats strong { font-family: var(--font-display); font-size: clamp(1.5rem, 1rem + 2vw, 2.2rem); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font-size: var(--fs-sm); color: var(--text-muted); }
.hero-orbs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; z-index: 1; }
.hero-orbs span:nth-child(1) { width: 32rem; height: 32rem; background: var(--brand-500); top: -14rem; right: -10rem; }
.hero-orbs span:nth-child(2) { width: 26rem; height: 26rem; background: var(--accent-2); bottom: -16rem; left: -8rem; opacity: 0.35; }

/* Section head */
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.sec-head .eyebrow { justify-content: center; }
.sec-head h2 { font-size: var(--fs-2xl); margin: 0.5rem 0 0.6rem; }
.sec-sub { color: var(--text-muted); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.chip { padding: 0.45rem 1rem; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; transition: all var(--dur) var(--ease); }
.chip:hover { color: var(--text); border-color: var(--brand-400); }
.chip.is-active { background: var(--grad-brand); color: var(--on-brand); border-color: transparent; }

/* Grid (Landing) */
.grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.grid > div { display: flex; }
.grid > div > .appcard { width: 100%; }
.grid > div[hidden] { display: none; }

/* About (Landing) */
.about-in { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }
.about-text { color: var(--text-muted); margin: 1rem 0 1.6rem; max-width: 52ch; }
.about-badge { display: grid; place-items: center; }
.brand-mark-lg { width: clamp(7rem, 20vw, 11rem); aspect-ratio: 1; border-radius: var(--radius-xl); background: var(--grad-brand); box-shadow: var(--glow); position: relative; }
.brand-mark-lg::after { content:''; position: absolute; inset: 22%; border-radius: var(--radius-lg); background: var(--bg); opacity: 0.2; }

@media (min-width: 560px) { .stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 680px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } .about-in { grid-template-columns: 1.5fr 1fr; } }

/* App Detail Page */
.app { position: relative; padding-top: clamp(1.5rem, 4vw, 3rem); }
.app-bg { position: absolute; inset: 0 0 auto; height: 60vh; z-index: -1;
  background: radial-gradient(60% 70% at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.back { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--text-muted); font-weight: 600; font-size: var(--fs-sm); padding: 0.4rem 0.7rem 0.4rem 0.4rem; border-radius: var(--radius-pill); transition: color var(--dur) var(--ease); }
.back:hover { color: var(--text); }
.back svg { width: 1.2rem; height: 1.2rem; }

.app-hero { max-width: 760px; margin-top: 1.5rem; }
.app-hero-main { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.app-cat { display: inline-block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--accent) 75%, var(--text-muted)); margin-bottom: 0.4rem; }
.app-name { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); }
.app-slogan { font-size: var(--fs-xl); font-weight: 600; margin-top: 0.4rem; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 90%, white), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-desc { font-size: var(--fs-lg); color: var(--text-muted); margin-top: 1.5rem; line-height: 1.6; max-width: 60ch; }

.app-get, .app-social, .app-web { margin-top: 2rem; }
.app-get-label { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 0.8rem; }
.web-i { width: 1.15rem; height: 1.15rem; }
.web-ext { width: 0.95rem; height: 0.95rem; opacity: 0.6; }
.web-btn:hover { border-color: var(--accent); color: color-mix(in srgb, var(--accent) 85%, var(--text)); }
.web-btn.is-disabled { cursor: not-allowed; opacity: 0.55; }
.web-btn.is-disabled:hover { transform: none; border-color: var(--border-strong); }
.soon-tag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-faint); margin-inline-start: 0.2rem; }

/* Downloads */
.dl { list-style: none; display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.6rem; padding: 1rem 1.4rem; width: fit-content; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-glass); }
.dl li { display: flex; flex-direction: column; }
.dl strong { font-family: var(--font-display); font-size: var(--fs-xl); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dl span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }

.more-title { font-size: var(--fs-xl); margin-bottom: 1.4rem; }
.more-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 680px) { .more-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .more-grid { grid-template-columns: repeat(3, 1fr); } }

/* Legal Main Pages */
.legal-main { padding-block: clamp(2rem, 5vw, 4rem); }
.legal-main .card { padding: clamp(1.8rem, 4vw, 3rem); background: var(--surface); border-color: var(--border); box-shadow: var(--shadow-lg); }
.legal-meta { font-size: var(--fs-sm); color: var(--text-faint); display: block; margin-top: 0.5rem; }
.legal-doc { margin-top: 2rem; max-width: var(--maxw-prose); }
.legal-doc section { margin-bottom: 1.8rem; }
.legal-doc h2 { font-size: var(--fs-lg); margin-bottom: 0.6rem; color: var(--text); }
.legal-doc p { color: var(--text-muted); line-height: 1.62; font-size: var(--fs-base); }
.legal-doc p + p { margin-top: 0.8rem; }

/* --- Linga Chat Footer Extras --- */
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-inline-start: auto;
}
@media (max-width: 900px) {
  .footer-bottom-right {
    margin-inline-start: 0;
    width: 100%;
    justify-content: center;
    margin-top: var(--space-4);
  }
}

.footer-seo {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 12px;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .footer-seo {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }
}
.footer-seo a, .footer-seo button, .footer-seo span {
  font-size: var(--fs-sm) !important;
  font-weight: 600 !important;
  color: var(--text-faint) !important;
  transition: color var(--dur);
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
}
.footer-seo a:hover, .footer-seo button:hover {
  color: var(--brand-400) !important;
}

/* Mobile Handoff QR Code Tooltip */
.footer-qr-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.footer-qr-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.footer-qr-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  margin-bottom: 14px;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 140px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: 100;
  pointer-events: none;
}
.footer-qr-container:hover .footer-qr-popup {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.footer-qr-code-wrapper {
  padding: 6px;
  background: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-qr-img {
  display: block;
}
.footer-qr-desc {
  font-size: 10.5px;
  color: var(--text);
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
}
.footer-qr-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--border-strong);
}

/* Global Share Tooltip */
.footer-share-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.footer-share-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.footer-share-popup {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  margin-bottom: 14px;
  padding: 20px;
  background: var(--surface-2) !important;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  z-index: 1000;
  pointer-events: none;
}
.footer-share-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.share-popup-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
}
.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 10px;
}
.share-grid-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  text-align: center;
}
.share-grid-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}
.share-grid-opt:hover .share-grid-icon {
  transform: scale(1.08);
}
.share-grid-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}
.share-grid-icon.ws { background: #E8F8F0; color: #25D366; }
.share-grid-icon.x { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.share-grid-icon.fb { background: #E8F4FF; color: #1877F2; }
.share-grid-icon.ln { background: #E8F4FF; color: #0A66C2; }
.share-grid-icon.mail { background: #FFE8E8; color: #E53E3E; }
.share-grid-icon.copy { background: #F3E8FF; color: #9333EA; }
.share-grid-icon.native { background: #FFF2E8; color: #EA580C; }

.share-grid-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.2;
}
.footer-share-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--border-strong);
}

/* Toast Notification */
.deck-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translate(-50%, 100px);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 13.5px;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease);
}
.deck-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ==================== SITE-MAP STYLING ==================== */
.sitemap-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  width: 100%;
  margin: 0 auto;
}
.sitemap-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.sitemap-col:hover {
  border-color: var(--brand-400);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 900px) {
  .sitemap-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .sitemap-grid-3 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sitemap-col {
    gap: 20px;
    padding: 20px;
  }
}
.sm-group h2 { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.sm-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sm-group a { color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.sm-group a:hover { color: var(--brand-400); }
.sitemap-section { padding-bottom: 24px !important; }
.sm-xml { text-align: center; margin-top: 30px; padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: var(--fs-xs); font-weight: 600; color: var(--text-faint); }
.sm-xml a { color: var(--brand-400); text-decoration: none; }

/* ==================== STATS STYLING ==================== */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 14px;
  text-align: center;
  flex: 1 1 150px;
  max-width: 220px;
  position: relative;
}
.kpi-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  border-radius: 11px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.kpi-icon svg { width: 19px; height: 19px; display: block; stroke: var(--text-muted); }
.kpi-record .kpi-icon { background: rgba(255, 255, 255, .18); }
.kpi-record .kpi-icon svg { stroke: #fff; }
.kpi-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.kpi-lbl {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.kpi.kpi-record {
  background: var(--grad-brand);
  border-color: transparent;
}
.kpi-record .kpi-num,
.kpi-record .kpi-lbl,
.kpi-record .kpi-sub {
  color: var(--on-brand);
}
.kpi-sub {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-faint);
}
.kpi-online .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse-dot 1.6s infinite;
}
@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
}
.stats-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 760px) {
  .stats-panels {
    grid-template-columns: 1fr;
  }
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.panel h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}
.panel-sub {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--text-muted);
  margin: -11px 0 16px;
}
#s-recg svg, #s-hourly svg {
  display: block;
}
.panel.full {
  grid-column: 1 / -1;
}
.trend {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 150px;
}
.trend .bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
}
.trend .bar i {
  width: 100%;
  max-width: 34px;
  background: var(--grad-brand);
  border-radius: 6px 6px 0 0;
  min-height: 3px;
  transition: height .6s ease;
}
.trend .bar span {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-faint);
  white-space: nowrap;
}
.rows {
  display: grid;
  gap: 12px;
}
.row-item {
  display: grid;
  grid-template-columns: 1.4fr 3fr auto;
  align-items: center;
  gap: 10px;
}
.row-item .rl {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.row-item .rb {
  height: 9px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.row-item .rb i {
  display: block;
  height: 100%;
  background: var(--grad-brand);
  border-radius: 999px;
  transition: width .6s ease;
}
.row-item .rv {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.stats-since {
  margin: 12px 0 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-faint);
}
.stats-since b {
  color: var(--brand-400);
  font-weight: 700;
}
.live-stream-container {
  overflow-x: auto;
}
.live-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--fs-sm);
}
.live-table th, .live-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
.live-table th {
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.live-table td {
  color: var(--text-muted);
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
}
.live-badge.human {
  background: rgba(34, 197, 94, .1);
  color: #22c55e;
}
.live-badge.bot {
  background: rgba(239, 68, 68, .1);
  color: #ef4444;
}

/* ==================== STYLES FOR KEYWORDS/TAG CLOUD ==================== */
.kw-actions {
  display: flex;
  justify-content: center;
  margin: 4px 0 30px;
}
.kw-refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 14px;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.kw-refresh:hover {
  color: var(--brand-400);
  border-color: var(--brand-400);
}
.kw-refresh svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}
.kw-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 940px;
  margin: 0 auto;
}
.kw-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.kw-chip:hover,
.kw-chip:focus-visible {
  transform: translateY(-2px);
  color: var(--brand-400);
  border-color: var(--brand-400);
}
.kw-chip.kw-lg {
  font-size: 15.5px;
  padding: 11px 22px;
}
.kw-foot {
  text-align: center;
  margin-top: 34px;
  font-weight: 500;
  font-size: 12.5px;
  color: var(--text-faint);
}
@media (prefers-reduced-motion: reduce) {
  .kw-chip {
    transition: none;
  }
  .kw-chip:hover {
    transform: none;
  }
}


