/* ==========================================================================
   Takin (תקין) — Apple / Linear Optical Precision Design System
   File: public/css/experience-main.css (Strictly <= 600 lines & < 42KB)
   Supports [data-theme="dark"] (Obsidian) & [data-theme="light"] (Alabaster)
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg-obsidian: #060911;
  --bg-surface: #0b101d;
  --bg-surface-alt: #101729;
  --bg-elevated: rgba(15, 23, 42, 0.74);
  --bg-glass: rgba(11, 16, 29, 0.68);
  --bg-glass-strong: rgba(6, 9, 17, 0.86);
  --bg-input: rgba(15, 23, 42, 0.82);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-titanium: #94a3b8;
  --text-muted: #94a3b8;

  --accent-emerald: #10b981;
  --accent-emerald-bright: #34d399;
  --accent-emerald-soft: rgba(16, 185, 129, 0.14);
  --accent-cyan: #0ea5e9;
  --accent-cyan-bright: #38bdf8;
  --accent-cyan-soft: rgba(14, 165, 233, 0.14);
  --accent-amber: #f59e0b;
  --accent-amber-soft: rgba(245, 158, 11, 0.15);
  --accent-coral: #f43f5e;
  --accent-indigo: #6366f1;

  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --border-emerald: rgba(16, 185, 129, 0.45);
  --border-amber: rgba(245, 158, 11, 0.42);

  --shadow-border-sheen-inset: inset 0 1px 0 0 rgba(255, 255, 255, 0.14);
  --shadow-ambient-card:
    0 2px 4px rgba(0, 0, 0, 0.24),
    0 8px 16px rgba(0, 0, 0, 0.28),
    0 20px 40px rgba(2, 6, 23, 0.42),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  --shadow-ambient-elevated:
    0 4px 8px rgba(0, 0, 0, 0.28),
    0 14px 28px rgba(0, 0, 0, 0.36),
    0 32px 64px rgba(2, 6, 23, 0.56),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16);
  --shadow-ambient-modal:
    0 8px 16px rgba(0, 0, 0, 0.36),
    0 24px 48px rgba(0, 0, 0, 0.48),
    0 48px 96px rgba(2, 6, 23, 0.72),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
  --shadow-ambient-glow-emerald:
    0 0 0 1px rgba(16, 185, 129, 0.38),
    0 8px 24px rgba(16, 185, 129, 0.22),
    0 24px 48px rgba(14, 165, 233, 0.14),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.22);

  --font-display: 'Frank Ruhl Libre', 'Rubik', Georgia, serif;
  --font-heading: 'Rubik', 'Assistant', system-ui, sans-serif;
  --font-body: 'Assistant', 'Rubik', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 4px;
}

[data-theme="light"] {
  --bg-obsidian: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --bg-elevated: rgba(255, 255, 255, 0.9);
  --bg-glass: rgba(255, 255, 255, 0.78);
  --bg-glass-strong: rgba(248, 250, 252, 0.94);
  --bg-input: #ffffff;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-titanium: #475569;
  --text-muted: #475569;

  --accent-emerald: #047857;
  --accent-emerald-bright: #047857;
  --accent-emerald-soft: rgba(16, 185, 129, 0.12);
  --accent-cyan: #0369a1;
  --accent-cyan-bright: #0ea5e9;
  --accent-cyan-soft: rgba(14, 165, 233, 0.11);
  --accent-amber: #b45309;
  --accent-amber-soft: rgba(217, 119, 6, 0.12);

  --border-subtle: rgba(15, 23, 42, 0.09);
  --border-strong: rgba(15, 23, 42, 0.18);
  --border-emerald: rgba(5, 150, 105, 0.42);
  --border-amber: rgba(217, 119, 6, 0.38);

  --shadow-border-sheen-inset: inset 0 1px 0 0 rgba(255, 255, 255, 0.92);
  --shadow-ambient-card:
    0 1px 3px rgba(15, 23, 42, 0.04),
    0 6px 14px rgba(15, 23, 42, 0.06),
    0 18px 36px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.92);
  --shadow-ambient-elevated:
    0 3px 6px rgba(15, 23, 42, 0.05),
    0 12px 24px rgba(15, 23, 42, 0.08),
    0 28px 56px rgba(15, 23, 42, 0.11),
    inset 0 1px 0 0 #ffffff;
  --shadow-ambient-modal:
    0 8px 16px rgba(15, 23, 42, 0.08),
    0 20px 44px rgba(15, 23, 42, 0.12),
    0 44px 88px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 0 #ffffff;
  --shadow-ambient-glow-emerald:
    0 0 0 1px rgba(5, 150, 105, 0.42),
    0 8px 20px rgba(16, 185, 129, 0.16),
    0 20px 40px rgba(14, 165, 233, 0.1),
    inset 0 1px 0 0 #ffffff;
}

select,
select option {
  background-color: #0f172a;
  color: #f8fafc;
}

[data-theme="light"] select,
[data-theme="light"] select option {
  background-color: #ffffff;
  color: #0f172a;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

body.exp-body {
  min-height: 100vh;
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(16, 185, 129, 0.13), transparent 65%),
    radial-gradient(ellipse 60% 45% at 85% 25%, rgba(14, 165, 233, 0.09), transparent 60%),
    radial-gradient(ellipse 60% 50% at 15% 75%, rgba(99, 102, 241, 0.07), transparent 60%);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

:focus-visible {
  outline: 2px solid var(--accent-emerald);
  outline-offset: 3px;
}

input, textarea, select, button {
  font-family: inherit;
  color: inherit;
}

html:not([dir="ltr"]) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html:not([dir="ltr"]) textarea,
html:not([dir="ltr"]) select {
  direction: rtl !important;
  text-align: right !important;
}

html[dir="ltr"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[dir="ltr"] textarea,
html[dir="ltr"] select {
  direction: ltr !important;
  text-align: left !important;
}

.exp-skip-link {
  position: absolute;
  top: -100px;
  right: 1.5rem;
  z-index: 9999;
  padding: 0.65rem 1.25rem;
  background: var(--accent-emerald);
  color: #04130d;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s ease;
}
.exp-skip-link:focus { top: 1rem; }

.exp-container {
  width: 100%;
  max-width: 1340px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.exp-section {
  position: relative;
  padding-block: clamp(1.65rem, 2.6vw, 2.35rem);
  border-bottom: 1px solid var(--border-subtle);
}

.exp-section-header {
  max-width: 820px;
  margin-bottom: clamp(0.95rem, 1.6vw, 1.35rem);
}

.exp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--accent-emerald-soft);
  border: 1px solid var(--border-emerald);
  color: var(--accent-emerald-bright);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-border-sheen-inset);
}
[data-theme="light"] .exp-kicker { color: var(--accent-emerald); }

.exp-title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.75vw, 2.35rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.exp-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.5vw, 4.1rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 1.1rem;
}

.exp-gradient-text {
  background: linear-gradient(135deg, var(--accent-emerald-bright) 0%, var(--accent-cyan-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.exp-subtitle {
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Floating Optical Glass Top Navbar */
.exp-nav {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: var(--bg-glass-strong);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-border-sheen-inset);
}

.exp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.exp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
}

.exp-brand-seal {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-cyan));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #03120c;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow-ambient-glow-emerald);
}

.exp-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  padding: 0.28rem;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.exp-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.88rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.exp-nav-link:hover,
.exp-nav-link.is-active {
  color: var(--text-primary);
  background: var(--accent-emerald-soft);
}

.exp-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.exp-lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.exp-lang-btn,
[data-lang-btn] {
  border: none;
  background: transparent;
  color: var(--text-titanium);
  padding: 0.3rem 0.62rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.exp-lang-btn.is-active,
[data-lang-btn].is-active,
[data-lang-btn][aria-pressed="true"] {
  background: var(--accent-emerald);
  color: #03150e;
}

.exp-theme-btn,
#themeToggleBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-border-sheen-inset);
  transition: all 0.2s ease;
}

#themeToggleBtn:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.exp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-cyan) 100%);
  color: #02130c;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-ambient-glow-emerald);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.exp-btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

[data-theme="light"] .exp-btn-primary {
  background: #047857;
  color: #ffffff;
  border-color: #047857;
}

.exp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-glass);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-border-sheen-inset);
  transition: all 0.2s ease;
}

.exp-btn-secondary:hover,
.exp-btn-secondary.is-active {
  border-color: var(--accent-emerald);
  background: var(--accent-emerald-soft);
  color: var(--text-primary);
}

/* Hero Section */
.exp-hero-section {
  padding-block: clamp(2.25rem, 4.5vw, 4.25rem);
  border-bottom: 1px solid var(--border-subtle);
}

.exp-hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 5fr) minmax(380px, 7fr);
  gap: clamp(1.75rem, 3vw, 2.75rem);
  align-items: center;
}

.exp-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.exp-domain-quickbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.55rem;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-ambient-card);
  backdrop-filter: blur(18px);
}

.exp-domain-quickbar input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.exp-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.exp-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  background: var(--bg-elevated);
  border: none;
  border-right: 3px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Footer & Legal Disclaimers (Section 11 & Section 20) */
.exp-footer {
  padding-block: 3rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-titanium);
  font-size: 0.88rem;
}

.exp-legal-box {
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.65;
  margin-top: 1rem;
}

/* Responsive Breakpoints (Tablet & 390px Mobile) */
@media (max-width: 1080px) {
  .exp-hero-grid { grid-template-columns: 1fr; }
  .exp-nav-links { display: none; }
}

@media (max-width: 640px) {
  .exp-nav-inner { min-height: 56px; padding-block: 0.35rem; gap: 0.4rem; }
  #themeToggleLabel,
  .exp-nav-actions .exp-btn-primary,
  .exp-brand [data-i18n="brandSub"] { display: none; }
  button,
  .exp-brand,
  .exp-lang-btn,
  [data-lang-btn],
  #themeToggleBtn,
  .takin-btn,
  .takin-banner-close,
  .takin-legal-link,
  .exp-footer a {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .exp-hero-section { padding-block: 1rem 1.4rem; }
  .exp-hero-copy { gap: 0.7rem; }
  .exp-hero-title { font-size: clamp(1.6rem, 6.2vw, 2.1rem); margin-bottom: 0.45rem; }
  .exp-subtitle { font-size: 0.92rem; line-height: 1.48; }
  .exp-domain-quickbar { flex-direction: column; padding: 0.45rem; gap: 0.45rem; }
  .exp-domain-quickbar .exp-btn-primary { width: 100%; min-height: 44px; }
}

@media (max-width: 380px) {
  .exp-container { padding-inline: 0.55rem; }
  .exp-nav-inner { gap: 0.35rem; min-height: 52px; }
  .exp-brand { gap: 0.35rem; font-size: 1.02rem; min-width: auto; }
  .exp-brand-seal { width: 30px; height: 30px; font-size: 0.82rem; }
  .exp-nav-actions { gap: 0.28rem; }
  .exp-lang-switch { padding: 0.15rem; }
  .exp-lang-btn, [data-lang-btn] { min-width: 30px; min-height: 36px; padding: 0.22rem 0.42rem; font-size: 0.7rem; }
  #themeToggleBtn { min-width: 36px; min-height: 36px; padding: 0.25rem 0.48rem; font-size: 0.72rem; }
  .exp-hero-title { font-size: clamp(1.38rem, 6vw, 1.85rem); overflow-wrap: anywhere; }
  .exp-kicker, .exp-trust-pill { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
}
