/* ============================================================
   PerfectMyChat — Retro Cyberpunk / Retro-Wave Design System
   Art direction: Telegram AI bot → Retro-Tech Cyberpunk
   Palette: Deep Purple + Vibrant Orange + Cream + Black
   Typography: Space Grotesk (display) + Inter (body)
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
  /* Brand Colors */
  --clr-purple:        #5B2D8E;
  --clr-purple-deep:   #3A1260;
  --clr-purple-dark:   #2A0D44;
  --clr-orange:        #E8820C;
  --clr-orange-bright: #FF9B1A;
  --clr-orange-dark:   #C46A00;
  --clr-cream:         #F5F0DC;
  --clr-cream-dim:     #E8E0C0;
  --clr-black:         #0E0A1A;
  --clr-white:         #FFFFFF;

  /* Surfaces */
  --color-bg:           #0E0A1A;
  --color-surface:      #15102A;
  --color-surface-2:    #1C1635;
  --color-surface-3:    #231D40;
  --color-border:       rgba(232, 130, 12, 0.25);
  --color-border-dim:   rgba(232, 130, 12, 0.12);
  --color-divider:      rgba(255, 255, 255, 0.08);

  /* Text */
  --color-text:         #F5F0DC;
  --color-text-muted:   #B8A8D8;
  --color-text-faint:   #7060A0;
  --color-text-orange:  #FF9B1A;
  --color-text-inverse: #0E0A1A;

  /* Neon Glows */
  --glow-orange: 0 0 20px rgba(232, 130, 12, 0.6), 0 0 40px rgba(232, 130, 12, 0.3);
  --glow-purple: 0 0 20px rgba(91, 45, 142, 0.8), 0 0 40px rgba(91, 45, 142, 0.4);
  --glow-sm:     0 0 10px rgba(232, 130, 12, 0.4);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.8);

  /* Typography */
  --font-display: 'Space Grotesk', 'Courier New', monospace;
  --font-body:    'Inter', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(2.8rem,   1rem    + 5vw,    6rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Layout */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.4, 0, 1, 1);
  --t-fast:   150ms;
  --t-normal: 280ms;
  --t-slow:   450ms;
}

/* === BASE RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; line-height: 1.2; font-family: var(--font-display); }
p, li { text-wrap: pretty; max-width: 72ch; }
button { cursor: pointer; background: none; border: none; }
a { color: var(--color-text-orange); text-decoration: none; }
a:hover { text-decoration: underline; }
table { border-collapse: collapse; width: 100%; }

::selection { background: rgba(232, 130, 12, 0.3); color: var(--color-text); }
:focus-visible { outline: 2px solid var(--clr-orange); outline-offset: 3px; border-radius: var(--radius-sm); }

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

/* === NOISE TEXTURE OVERLAY === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* === HALFTONE PATTERN === */
.halftone-bg {
  background-image: radial-gradient(circle, rgba(232,130,12,0.15) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* === LAYOUT CONTAINERS === */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--narrow { max-width: var(--content-narrow); margin-inline: auto; padding-inline: var(--space-6); }
.container--default { max-width: var(--content-default); margin-inline: auto; padding-inline: var(--space-6); }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 10, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-3) 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid var(--clr-orange);
  box-shadow: var(--glow-sm);
  object-fit: cover;
}
.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.logo-text span { color: var(--clr-orange); }

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.site-nav a {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--t-fast) var(--ease-out), background var(--t-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--color-text); background: var(--color-surface-2); }
.site-nav a.active { color: var(--clr-orange); background: rgba(232,130,12,0.1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.lang-switcher {
  display: flex;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border-dim);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.lang-switcher a {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  transition: all var(--t-fast) var(--ease-out);
  text-decoration: none;
}
.lang-switcher a.active {
  background: var(--clr-orange);
  color: var(--clr-black);
}
.lang-switcher a:hover:not(.active) { color: var(--color-text); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--t-normal) var(--ease-out);
}

/* === FOOTER === */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) 0 var(--space-8);
  margin-top: var(--space-24);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
.footer-brand .logo-text { font-size: var(--text-base); }
.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
  max-width: 28ch;
}
.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-orange);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col ul li a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color var(--t-fast);
  text-decoration: none;
}
.footer-col ul li a:hover { color: var(--color-text); }
.footer-bottom {
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom p { font-size: var(--text-xs); color: var(--color-text-faint); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: all var(--t-normal) var(--ease-out);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--clr-orange);
  color: var(--clr-black);
  border-color: var(--clr-orange);
  box-shadow: var(--glow-sm);
}
.btn-primary:hover {
  background: var(--clr-orange-bright);
  border-color: var(--clr-orange-bright);
  box-shadow: var(--glow-orange);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--clr-black);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-secondary:hover {
  border-color: var(--clr-orange);
  color: var(--clr-orange);
  text-decoration: none;
}

.btn-ghost {
  background: rgba(232, 130, 12, 0.1);
  color: var(--clr-orange);
  border-color: rgba(232, 130, 12, 0.3);
}
.btn-ghost:hover {
  background: rgba(232, 130, 12, 0.2);
  border-color: var(--clr-orange);
  text-decoration: none;
}

.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); border-radius: var(--radius-lg); }

/* === SECTIONS === */
.section { padding: clamp(var(--space-12), 8vw, var(--space-24)) 0; }
.section-header { margin-bottom: var(--space-10); }
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--clr-orange);
  background: rgba(232, 130, 12, 0.1);
  border: 1px solid rgba(232, 130, 12, 0.3);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-3);
}
.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-4);
}
.section-title .accent { color: var(--clr-orange); }
.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
}

/* === CARDS === */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-dim);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--t-normal) var(--ease-out), box-shadow var(--t-normal) var(--ease-out), transform var(--t-normal) var(--ease-out);
}
.card:hover {
  border-color: rgba(232, 130, 12, 0.5);
  box-shadow: var(--shadow-md), 0 0 20px rgba(232,130,12,0.1);
  transform: translateY(-3px);
}
.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(232, 130, 12, 0.15);
  color: var(--clr-orange);
  margin-bottom: var(--space-4);
  font-size: 1.4rem;
}
.card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.card-body { font-size: var(--text-sm); color: var(--color-text-muted); }

/* === THICK BORDER BOX (retro style) === */
.retro-box {
  border: 3px solid var(--clr-orange);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  background: var(--color-surface);
  position: relative;
}
.retro-box::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(232, 130, 12, 0.2);
  border-radius: calc(var(--radius-lg) - 3px);
  pointer-events: none;
}

/* === CODE BLOCK === */
.code-block {
  background: #0A0714;
  border: 1px solid var(--color-border-dim);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: #E0D8FF;
  overflow-x: auto;
  position: relative;
}
.code-block .comment { color: #6060A0; }
.code-block .highlight { color: var(--clr-orange); }
.code-block .string { color: #9BCC8A; }

/* === BADGE === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.badge-orange { background: rgba(232,130,12,0.15); color: var(--clr-orange); border: 1px solid rgba(232,130,12,0.4); }
.badge-purple { background: rgba(91,45,142,0.3); color: #B088E0; border: 1px solid rgba(91,45,142,0.5); }
.badge-green  { background: rgba(34,197,94,0.15); color: #4ADE80; border: 1px solid rgba(34,197,94,0.4); }

/* === FAQ ACCORDION === */
.faq-section { padding: clamp(var(--space-10), 6vw, var(--space-20)) 0; }
.faq-section .section-header { text-align: center; }
.faq-section .section-desc { margin-inline: auto; text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: var(--space-3); max-width: 800px; margin-inline: auto; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t-normal);
}
.faq-item:hover { border-color: rgba(232,130,12,0.4); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  gap: var(--space-4);
}
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-orange);
  transition: transform var(--t-normal) var(--ease-out), background var(--t-normal);
  font-size: 14px;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(232,130,12,0.15); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--ease-out);
}
.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.faq-answer-inner code {
  background: rgba(232,130,12,0.1);
  color: var(--clr-orange);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* === STEPS === */
.steps-list { display: flex; flex-direction: column; gap: var(--space-6); counter-reset: steps; }
.step {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  counter-increment: steps;
}
.step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--clr-orange);
  color: var(--clr-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  box-shadow: var(--glow-sm);
}
.step-num::before { content: counter(steps); }
.step-content { padding-top: var(--space-2); }
.step-content h4 { font-size: var(--text-base); font-weight: 700; margin-bottom: var(--space-1); }
.step-content p { font-size: var(--text-sm); color: var(--color-text-muted); }
.step-content code {
  background: rgba(232,130,12,0.1);
  color: var(--clr-orange);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

/* === GRID LAYOUTS === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: var(--space-5); }

/* === TABLE === */
.data-table { width: 100%; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border-dim); }
.data-table th {
  background: var(--color-surface-2);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-orange);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}
.data-table td {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-divider);
  color: var(--color-text-muted);
  vertical-align: top;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }

/* === HERO SECTION (index) === */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-20) 0 var(--space-16);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero_bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(14,10,26,0.3) 0%, rgba(14,10,26,0.7) 70%, var(--color-bg) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.hero-content {}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(232,130,12,0.12);
  border: 1px solid rgba(232,130,12,0.35);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--clr-orange);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-5);
}
.hero-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clr-orange);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.hero-title {
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
}
.hero-title .line2 { color: var(--clr-orange); display: block; }
.hero-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 44ch;
  margin-bottom: var(--space-8);
  line-height: 1.6;
}
.hero-cta { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-robot {
  width: 100%;
  max-width: 420px;
  filter: drop-shadow(0 0 40px rgba(232,130,12,0.3));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.hero-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 2px solid rgba(232,130,12,0.15);
  animation: spin-ring 20s linear infinite;
}
.hero-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-orange);
  box-shadow: var(--glow-orange);
  transform: translateX(-50%);
}
@keyframes spin-ring { to { transform: rotate(360deg); } }

/* === FEATURES GRID === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--space-5);
}

/* === PRICING CARDS === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  align-items: start;
}
.pricing-card {
  background: var(--color-surface);
  border: 2px solid var(--color-border-dim);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  transition: all var(--t-normal) var(--ease-out);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(232,130,12,0.1);
}
.pricing-card.featured {
  border-color: var(--clr-orange);
  background: linear-gradient(135deg, var(--color-surface), rgba(232,130,12,0.07));
  box-shadow: var(--glow-sm);
}
.pricing-card.featured::before {
  content: attr(data-label);
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-orange);
  color: var(--clr-black);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pricing-name { font-size: var(--text-sm); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); }
.pricing-price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  line-height: 1;
  color: var(--color-text);
}
.pricing-price .stars { color: var(--clr-orange); font-size: 0.75em; }
.pricing-price .period { font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 400; }
.pricing-desc { font-size: var(--text-sm); color: var(--color-text-muted); }
.pricing-models { display: flex; flex-direction: column; gap: var(--space-2); }
.model-tag {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
}
.model-tag.new { border-color: rgba(232,130,12,0.3); background: rgba(232,130,12,0.05); color: var(--color-text); }
.model-tag .dot-sm {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.dot-gray  { background: #6060A0; }
.dot-blue  { background: #5B9BD5; }
.dot-green { background: #4ADE80; }
.dot-gold  { background: var(--clr-orange); }

/* === PROMPT EXAMPLE === */
.prompt-card {
  background: #070512;
  border: 1px solid var(--color-border-dim);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface-2);
  border-bottom: 1px solid var(--color-border-dim);
}
.prompt-header h3 { font-size: var(--text-base); font-weight: 700; }
.prompt-body { padding: var(--space-6); }
.prompt-body pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  white-space: pre-wrap;
  word-break: break-word;
  color: #C8BEF0;
  line-height: 1.7;
}
.prompt-body pre .kw { color: var(--clr-orange); font-weight: 700; }
.prompt-body pre .val { color: #9BCC8A; }
.prompt-body pre .comment { color: #5060A0; font-style: italic; }
.prompt-meta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
}

/* === SCROLL ANIMATIONS === */
.fade-in { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}
@keyframes reveal-fade { to { opacity: 1; } }

.reveal-up { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .reveal-up {
    opacity: 0;
    clip-path: inset(30% 0 0 0);
    animation: reveal-clip linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}
@keyframes reveal-clip { to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* === SCAN LINE EFFECT === */
.scanline {
  position: relative;
  overflow: hidden;
}
.scanline::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.07) 3px,
    rgba(0,0,0,0.07) 4px
  );
  pointer-events: none;
  z-index: 1;
}

/* === DIVIDER WITH CIRCUIT PATTERN === */
.circuit-divider {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--clr-orange), var(--clr-purple), transparent);
  margin: var(--space-8) 0;
  position: relative;
}
.circuit-divider::before {
  content: '●';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-bg);
  padding: 0 var(--space-3);
  color: var(--clr-orange);
  font-size: 8px;
}

/* === CALLOUT BOX === */
.callout {
  background: rgba(232,130,12,0.07);
  border: 1px solid rgba(232,130,12,0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.callout-icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.3; }
.callout-body { font-size: var(--text-sm); color: var(--color-text-muted); }
.callout-body strong { color: var(--color-text); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-robot { max-width: 260px; }
  .hero-ring { display: none; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .site-nav { display: none; flex-direction: column; position: fixed; inset: 0; background: rgba(14,10,26,0.98); z-index: 99; align-items: center; justify-content: center; gap: var(--space-4); }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: var(--text-lg); }
  .nav-toggle { display: flex; z-index: 101; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .container, .container--default, .container--narrow { padding-inline: var(--space-4); }
  .data-table { font-size: var(--text-xs); }
  .data-table td, .data-table th { padding: var(--space-2) var(--space-3); }
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-orange { color: var(--clr-orange); }
.text-muted { color: var(--color-text-muted); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* === GLOW PULSE ANIMATION === */
@keyframes glow-pulse {
  0%, 100% { box-shadow: var(--glow-sm); }
  50% { box-shadow: var(--glow-orange); }
}
.glow-pulse { animation: glow-pulse 3s ease-in-out infinite; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  background: var(--clr-orange);
  color: var(--clr-black);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-weight: 700;
  z-index: 200;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--space-4); }
