/* FusionQS - hbquery.com globals.css'inden birebir tasindi (tasarim tokenlari,
   bilesen siniflari). FusionQS'e ozel eklemeler fqs.css'tedir. */
/* ── Design Tokens: Dark Industrial ────────────────────── */
:root {
  /* Surface hierarchy — carbon (#15171f base from liquid chrome plate) */
  --bg-dark: #0e0e0f;
  --bg-deepest: #08080a;
  --bg-card: #141416;
  --bg-container: #18181b;
  --bg-elevated: #1f1f22;
  --bg-input: #26262a;
  --bg-bright: #323236;

  /* Liquid chrome accent — oxidized steel var(--accent) with mauve highlight */
  --accent: #f2c200;
  --accent-hover: #ffd23f;
  --accent-deep: #c9a84a;
  --accent-text: #141416;
  --accent-glow: rgba(242, 194, 0, 0.16);
  --accent-subtle: rgba(242, 194, 0, 0.08);
  --accent-warm: #c9a84a;
  --accent-spec: #d9d4c7;

  /* Monochrome secondary */
  --secondary: #a0a0a0;
  --secondary-container: #2a2a2a;

  /* Semantic */
  --success: #22c55e;
  --success-deep: #16a34a;
  --danger: #ef4444;
  --danger-deep: #991b1b;
  --warn: #f59e0b;

  /* Text — tuned to read on liquid-chrome backdrop. Platinum-leaning
     so secondary copy stays legible over steel/mauve gradients. */
  --text-pri: #f4f3f0;       /* near-platinum */
  --text-sec: #cfccc6;       /* warm light grey, pops on chrome */
  --text-warm: #e4e1da;
  --text-muted: #9b988f;     /* visibly muted but still readable on chrome */

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.24);
  --border-ghost: rgba(255, 255, 255, 0.04);

  /* Surface tint */
  --surface-tint: #f2c200;

  /* Layout */
  --nav-h: 52px;
  --radius: 6px;
  --radius-sm: 2px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Typography — Inter for precision */
  --font-headline: 'Poppins', 'Inter', system-ui, sans-serif;
  --font-body: 'Poppins', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Transitions */
  --trans: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --trans-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — toned down, less "neon halo" */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 0 1px rgba(242, 194, 0, 0.18), 0 8px 24px rgba(242, 194, 0, 0.10);
  --shadow-copper: 0 0 20px rgba(242, 194, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-elev-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-elev-2: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 8px 24px rgba(0, 0, 0, 0.45);
  --ring-focus: 0 0 0 3px rgba(242, 194, 0, 0.28);

  /* Spacing scale (4-pt grid) */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;
  --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px;
  --space-16: 64px; --space-20: 80px;
}

/* ── Grain texture overlay ─────────────────────────────── */
html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.025;
}

/* ── Utility classes ───────────────────────────────────── */
.copper-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
}

.glass-metal {
  background: rgba(26, 26, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.blueprint-grid {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: transparent;
  color: var(--text-pri);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  background: var(--bg-dark);
}

::selection {
  background: var(--accent);
  color: var(--accent-text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

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

button {
  cursor: pointer;
  font-family: inherit;
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ── Typography ────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-headline);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

p {
  color: var(--text-sec);
}

/* ── Layout helpers ────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: 80px 0;
}

@media (min-width: 1280px) {
  .section { padding: 96px 0; }
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-sec);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 60px;
}

/* ── UI Button component (components/ui/Button.jsx) ─────── */
.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  transition: background var(--trans-fast), border-color var(--trans-fast), color var(--trans-fast), box-shadow var(--trans-fast);
  border: 1px solid transparent;
  outline: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.ui-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.ui-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ui-btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
}

.ui-btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-glow);
}

.ui-btn-secondary {
  background: transparent;
  color: var(--text-pri);
  border-color: var(--border-bright);
}

.ui-btn-secondary:hover:not(:disabled) {
  border-color: var(--border-bright);
  background: var(--bg-elevated);
}

.ui-btn-ghost {
  background: transparent;
  color: var(--text-sec);
  border-color: transparent;
}

.ui-btn-ghost:hover:not(:disabled) {
  color: var(--text-pri);
  background: var(--bg-elevated);
}

.ui-btn-destructive {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.ui-btn-destructive:hover:not(:disabled) {
  opacity: 0.9;
}

.ui-btn-coming-soon {
  background: transparent;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  cursor: not-allowed;
}

.ui-btn-sm  { height: 28px; padding: 0 12px; font-size: 0.75rem; border-radius: var(--radius-sm); }
.ui-btn-md  { height: 36px; padding: 0 16px; font-size: 0.85rem; border-radius: var(--radius-md); }
.ui-btn-lg  { height: 44px; padding: 0 24px; font-size: 0.9rem;  border-radius: var(--radius-md); }
.ui-btn-xl  { height: 52px; padding: 0 32px; font-size: 1rem;    border-radius: var(--radius-lg); }

/* ── Buttons (modernised: sentence case, calmer hover) ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: background var(--trans-fast), color var(--trans-fast), border-color var(--trans-fast), box-shadow var(--trans-fast), transform var(--trans-fast);
  border: 1px solid transparent;
  outline: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn:focus-visible {
  box-shadow: var(--ring-focus);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--shadow-elev-1);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-elev-2);
  color: var(--accent-text);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-elev-1);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-pri);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--border-bright);
  color: var(--text-pri);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost {
  background: transparent;
  color: var(--text-sec);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text-pri);
  background: rgba(255, 255, 255, 0.04);
}

/* ── Glass Card (no hard border; elevation through layering) */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-ghost);
  border-radius: var(--radius-lg);
  transition: background var(--trans), border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}

.glass-card:hover {
  background: var(--bg-elevated);
  border-color: var(--border);
  box-shadow: var(--shadow-elev-1);
}

/* ── Form input (use `.input` for consistency) ────────── */
.input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-pri);
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.4;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast), background var(--trans-fast);
  outline: none;
}

.input::placeholder {
  color: var(--text-muted);
}

.input:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.input:focus,
.input:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--ring-focus);
  background: rgba(255, 255, 255, 0.03);
}

.input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-sec);
  margin-bottom: 6px;
  letter-spacing: 0;
}

/* ── Badge ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 14, 15, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(214, 212, 203, 0.28);
  color: var(--accent-spec);
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

/* ── Gradient text ──────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Divider ────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--trans), border-color var(--trans), box-shadow var(--trans);
}

.navbar.scrolled {
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.navbar-logo {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-text);
  font-weight: 900;
}

.navbar-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.navbar-links a {
  color: var(--text-sec);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  transition: color var(--trans-fast);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}

.navbar-links a:hover {
  color: var(--text-pri);
  background: transparent;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--trans-fast);
}

.navbar-links a:hover::after {
  transform: scaleX(1);
}

.navbar-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-pri);
  border-radius: 2px;
  transition: all var(--trans);
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(242, 194, 0, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(242, 194, 0, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Dot grid background */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px;
  align-items: center;
  padding: 20px 0; /* Reduced from 40px */
}

.hero-text {
  max-width: 580px;
}

.hero-badge {
  margin-bottom: 12px;
}

.hero-title {
  margin-bottom: 12px; /* Reduced from 20px */
}

.hero-title .line2 {
  display: block;
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 20px; /* Reduced from 36px */
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px; /* Reduced from 48px */
}

.hero-stats {
  display: flex;
  gap: 40px;
}

.stat-item strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-pri);
  line-height: 1;
}

.stat-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Code card */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 1000px;
  justify-self: end;
  z-index: 10;
}

.code-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(242, 194, 0, .08);
}

.code-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 16px;
  height: 36px;
  background: var(--bg-elevated);
}

.code-card-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--bg-elevated);
}

.screenshot-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(242, 194, 0, .15);
  position: relative;
}

.app-screenshot {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.95;
  transition: opacity 0.3s;
}

.screenshot-container:hover .app-screenshot {
  opacity: 1;
}

.code-card-toolbar {
  color: var(--text-sec);
}

.toolbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.toolbar-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-pri);
}

.code-card-main {
  display: flex;
  min-height: 280px;
}

.code-card-sidebar {
  width: 44px;
  border-right: 1px solid var(--border);
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 12px;
  gap: 16px;
  color: var(--text-muted);
}

.sidebar-icon {
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s;
}

.sidebar-icon:hover, .sidebar-icon.active {
  color: var(--accent);
}

.code-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.win-controls {
  display: flex;
  height: 100%;
}

.win-btn {
  width: 46px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all 0.2s;
  cursor: pointer;
}

.win-btn:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-pri);
}

.win-close:hover {
  background: #E81123 !important;
  color: white !important;
}

.code-card-title {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.02em;
}

.code-card-body {
  padding: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.8;
}

.code-line {
  display: flex;
  gap: 16px;
}

.ln {
  color: var(--text-muted);
  min-width: 20px;
  text-align: right;
  user-select: none;
}

.kw {
  color: #ff7b72;
}

/* keyword */
.fn {
  color: #d2a8ff;
}

/* function */
.str {
  color: #a5d6ff;
}

/* string  */
.cm {
  color: var(--text-muted);
  font-style: italic;
}

.ty {
  color: #ffa657;
}

/* type */

/* Results table */
.result-table {
  margin-top: 12px;
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}

.result-table th {
  background: var(--bg-input);
  color: var(--text-muted);
  padding: 6px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.result-table td {
  padding: 5px 12px;
  color: var(--text-sec);
  border-bottom: 1px solid rgba(48, 54, 61, .5);
}

.result-table tr:last-child td {
  border-bottom: none;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--bg-input);
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.status-ok {
  color: var(--success);
}

/* Floating glow orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.orb-1 {
  width: 300px;
  height: 300px;
  background: rgba(242, 194, 0, 0.08);
  top: -80px;
  right: -80px;
}

.orb-2 {
  width: 200px;
  height: 200px;
  background: rgba(242, 194, 0, 0.04);
  bottom: 0;
  left: -60px;
}

/* ── Features ───────────────────────────────────────────── */
.features {
  background: transparent;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px 28px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  background: var(--bg-input);
  border: 1px solid var(--border);
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing {
  background: transparent;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
  max-width: 1280px;
  margin: 0 auto;
}

.pricing-card {
  padding: 36px 32px;
  position: relative;
}

.pricing-card.popular {
  border-color: rgba(242, 194, 0, 0.55);
  background: linear-gradient(180deg, rgba(242, 194, 0, 0.05) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 0 1px rgba(242, 194, 0, 0.18), 0 24px 48px rgba(0, 0, 0, 0.35);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-pri);
  line-height: 1;
}

.price-currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-sec);
  align-self: flex-start;
  margin-top: 6px;
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plan-desc {
  font-size: 0.88rem;
  margin-bottom: 28px;
  min-height: 44px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-sec);
}

.check-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(63, 185, 80, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.plan-btn {
  width: 100%;
  justify-content: center;
}

.plan-btn.primary {
  background: var(--accent);
  color: var(--accent-text);
}

.plan-btn.primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-elev-2);
}

.plan-btn.outline {
  border: 1px solid var(--border);
  color: var(--text-pri);
  background: rgba(255, 255, 255, 0.02);
}

.plan-btn.outline:hover {
  border-color: var(--border-bright);
  color: var(--text-pri);
  background: rgba(255, 255, 255, 0.04);
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq {
  background: transparent;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-ghost);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: background var(--trans), border-color var(--trans);
}

.faq-item:hover {
  background: var(--bg-elevated);
}

.faq-item.open {
  background: var(--bg-elevated);
  border-color: rgba(242, 194, 0, 0.32);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--text-pri);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  gap: 16px;
  cursor: pointer;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--trans);
}

.faq-item.open .faq-chevron {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--text-sec);
  line-height: 1.7;
}

/* ── CTA ─────────────────────────────────────────────────── */
.cta {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-inner h2 {
  margin-bottom: 16px;
}

.cta-inner p {
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.platform-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: rgba(14, 14, 15, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  justify-self: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-pri);
}

.footer-copy {
  justify-self: end;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--trans);
}

.footer-links a:hover {
  color: var(--text-sec);
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 40px rgba(242, 194, 0, 0.35);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.float-anim {
  animation: float 4s ease-in-out infinite;
}

@keyframes shake-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(-0.5deg);
  }
  50% {
    transform: translateY(-15px) rotate(0deg);
  }
  75% {
    transform: translateY(-7px) rotate(0.5deg);
  }
}

.shake-float {
  animation: shake-float 4.5s ease-in-out infinite;
}

/* ── Mobile download notice (hidden by default, shown on mobile via media query) ── */
.mobile-download-notice {
  display: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1279px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .navbar-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 16px;
  }
  
  .footer-brand, .footer-copy {
    justify-self: center;
  }

  .section {
    padding: 70px 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .pricing-card {
    padding: 28px 20px;
  }
}

/* ── Horizontal Slider Layout ────────────────────────────── */

/* 1) Root: full-viewport column stack */
.slider-root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  background: transparent;
}

/* 2) The viewport that holds exactly ONE slide at a time */
.slide-viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  margin-top: var(--nav-h);
  /* push below sticky navbar */
}

/* 3) Each slide panel fills the viewport */
.slide-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 4) Generic slide inner — centres content, fills panel */
.slide-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background: transparent;
  overflow-y: auto;
  position: relative;
}

/* 5) Scrollable slides (Features, Pricing, FAQ) can overflow vertically */
.slide-scrollable {
  align-items: flex-start;
  flex-direction: column;
  overflow-y: auto;
}

/* Hero slide special: keep background decoration */
.slide-inner .hero-bg {
  position: absolute;
}

/* ── Dot indicators ─────────────────────────────────────── */
.slide-dots {
  position: fixed;
  bottom: 80px;
  /* above footer */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 90;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--trans);
}

.slide-dot.active {
  background: var(--accent);
  transform: scale(1.35);
  box-shadow: 0 0 8px var(--accent-glow);
}

.slide-dot:hover:not(.active) {
  background: var(--text-sec);
}

/* ── Arrow buttons ──────────────────────────────────────── */
.slide-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-sec);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--trans);
  padding: 0 0 2px;
}

.slide-arrow:hover {
  background: var(--bg-input);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.slide-arrow-left {
  left: 20px;
}

.slide-arrow-right {
  right: 20px;
}

/* Footer pinned at bottom, not inside slide */
.slide-footer {
  flex-shrink: 0;
}

/* ── Navbar always on top ──────────────────────────────── */
.navbar {
  z-index: 200;
}

/* Slider: always show navbar background to separate from slide */
.slider-root .navbar {
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* ── Responsive adjustments for slider ─────────────────── */
@media (max-width: 768px) {
  .slide-arrow {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .slide-arrow-left {
    left: 8px;
  }

  .slide-arrow-right {
    right: 8px;
  }

  .slide-dots {
    bottom: 72px;
  }

  .slide-dot {
    position: relative;
  }

  .slide-dot::after {
    content: '';
    position: absolute;
    inset: -18px;
  }
}

/* ── Mobile navbar fixes ──────────────────────────────── */
@media (max-width: 768px) {
  .navbar-inner {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .navbar-cta {
    gap: 8px;
  }

  .nav-toggle {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .btn-download-cta {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .btn-signin-cta {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .lang-selector-desktop {
    display: none;
  }

  .slide-inner {
    align-items: flex-start;
    padding-top: 16px;
  }

  .desktop-download-info {
    display: none;
  }

  .mobile-download-notice {
    display: block;
  }

  .container {
    padding: 0 16px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-inner {
    gap: 12px;
    padding: 8px 0;
  }
}

@media (max-width: 480px) {
  .navbar-logo span {
    display: none;
  }

  .btn-download-cta {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .btn-portal-cta .portal-cta-label {
    display: none;
  }

  .btn-portal-cta {
    padding: 8px 10px;
  }
}

/* ── RTL Fixes ─────────────────────────────────────────── */
[dir="rtl"] .ltr-only,
[dir="rtl"] .code-card,
[dir="rtl"] .result-table,
[dir="rtl"] .status-bar,
[dir="rtl"] .code-card-body {
  direction: ltr !important;
  text-align: left !important;
  unicode-bidi: embed;
}

/* Force standard LTR for technical elements globally */
.code-card,
.result-table,
.status-bar,
.code-card-body {
  direction: ltr;
  text-align: left;
}

/* ── Dashboard Responsive ─────────────────────────────── */
.dashboard-stats-grid {
  grid-template-columns: repeat(2, 1fr);
}

.sheet-mobile-notice {
  display: none;
}

.sheet-desktop-content {
  display: flex;
}

@media (max-width: 768px) {
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .dashboard-header-row > button {
    align-self: flex-start;
  }

  .expired-license-card {
    flex-direction: column;
    gap: 8px;
  }

  .expired-license-card > div:last-child {
    text-align: left;
  }

  .sheet-desktop-content {
    display: none;
  }

  .sheet-mobile-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 24px;
    text-align: center;
    gap: 16px;
  }

  .admin-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .admin-desktop-table {
    display: none;
  }
}

@media (min-width: 769px) {
  .admin-mobile-cards {
    display: none;
  }
}

/* ── Feature Page (Showcase) ──────────────────────────── */
.features-page-header {
  padding: 100px 0 48px;
  text-align: center;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(242, 194, 0, 0.08) 0%, transparent 80%);
}
.features-page-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  margin-bottom: 20px;
  color: var(--text-pri);
  letter-spacing: -0.035em;
  font-weight: 700;
}
.features-page-header p {
  font-size: 1.2rem;
  color: var(--text-sec);
  max-width: 680px;
  margin: 0 auto;
}

.feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 100px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.feature-row:last-child {
  border-bottom: none;
}
.feature-row.reversed {
  flex-direction: row-reverse;
}
.feature-row-text {
  width: 35%;
}
.feature-row-img {
  width: 60%;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .5), 0 0 0 1px rgba(242, 194, 0, .12);
  background: var(--bg-card);
}
.feature-row-text h2 {
  font-size: 1.9rem;
  margin-bottom: 16px;
  color: var(--text-pri);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.feature-row-text p {
  font-size: 1rem;
  color: var(--text-sec);
  line-height: 1.7;
  margin-bottom: 24px;
}
.feature-row-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0.95;
  transition: opacity 0.4s, transform 0.4s;
}
.feature-row-img:hover img {
  opacity: 1;
  transform: scale(1.02);
}

@media (max-width: 900px) {
  .features-page-header {
    padding: 80px 0 32px;
  }
  .feature-row {
    flex-direction: column;
    gap: 30px;
    padding: 50px 0;
  }
  .feature-row.reversed {
    flex-direction: column;
  }
  .feature-row-text, .feature-row-img {
    width: 100%;
  }
  .feature-row-text h2 {
    font-size: 1.5rem;
  }
}

/* ── Feature Page — 6-card overview grid ─────────────── */
.fp-overview {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border-ghost);
}

.fp-overview-header {
  margin-bottom: 40px;
}

.fp-overview-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.fp-overview-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-pri);
  line-height: 1.15;
}

.fp-overview-title span {
  color: var(--accent);
}

.fp-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.fp-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  transition: border-color var(--trans), background var(--trans);
  cursor: default;
  overflow: hidden;
}

.fp-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-elevated);
}

.fp-card-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

.fp-card h3 {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-pri);
  margin-bottom: 8px;
  line-height: 1.3;
}

.fp-card p {
  font-size: 0.82rem;
  color: var(--text-sec);
  line-height: 1.6;
}

/* Accent underline on hover */
.fp-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--trans);
}

.fp-card:hover::after {
  transform: scaleX(1);
}

/* Scroll indicator */
.fp-scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  opacity: 0.35;
}

.fp-scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.fp-scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ── Feature Page — compact "And Much More" banner ───── */
.fp-more-banner {
  padding: 64px 0 100px;
  text-align: center;
}

.fp-more-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  margin-bottom: 20px;
}

.fp-more-pill span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.fp-more-banner h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-pri);
  margin-bottom: 12px;
}

.fp-more-banner p {
  font-size: 0.9rem;
  color: var(--text-sec);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Feature Page responsive ─────────────────────────── */
@media (max-width: 768px) {
  .fp-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 480px) and (max-width: 900px) {
  .fp-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
