/* ═══════════════════════════════════════════════════════
   SayPartner.com — Design System & Styles
   ═══════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────── */
:root {
  --bg:           #070707;
  --bg-alt:       #0c0c18;
  --bg-card:      rgba(254, 253, 239, 0.03);
  --bg-card-hover:rgba(254, 253, 239, 0.06);
  --border:       rgba(254, 253, 239, 0.08);
  --border-hover: rgba(170, 1, 89, 0.3);

  --text:         #fefdef;
  --text-60:      rgba(254, 253, 239, 0.6);
  --text-40:      rgba(254, 253, 239, 0.4);
  --text-20:      rgba(254, 253, 239, 0.2);

  --accent:       #aa0159;
  --accent-light: rgba(170, 1, 89, 0.15);
  --accent-glow:  rgba(170, 1, 89, 0.3);
  --green:        #10b981;

  --radius:       0.75rem;
  --radius-lg:    1.5rem;
  --radius-xl:    2rem;
  --radius-full:  9999px;

  --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --container:    1200px;
  --section-py:   6rem;

  --ease:         cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::selection { background: var(--accent); color: var(--text); }

/* ── Container ──────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Utilities ──────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-accent { color: var(--accent); }
.check { color: var(--green); margin-right: .5rem; font-weight: 700; }

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}
@keyframes pulse-slow {
  0%, 100% { opacity: .6; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.05); }
}
@keyframes blink {
  50% { opacity: 0; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp .8s var(--ease) both;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all .3s var(--ease);
}
.navbar--scrolled {
  background: rgba(7, 7, 7, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.navbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.navbar__mobile-bottom {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
  margin-top: .5rem;
}
.navbar__brand {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.navbar__logo {
  height: 32px;
  width: auto;
  filter: invert(1);
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar__links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-60);
  transition: color .2s;
  position: relative;
}
.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.navbar__links a:hover { color: var(--accent); }
.navbar__links a:hover::after { width: 100%; }

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.navbar__burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s var(--ease);
}
.navbar__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.navbar__mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(7, 7, 7, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}
.navbar__mobile.open { display: flex; }
.navbar__mobile a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-60);
  padding: .5rem 0;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font);
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn--sm { font-size: .875rem; padding: .625rem 1.5rem; border-radius: var(--radius-full); }
.btn--lg { font-size: 1rem; padding: 1rem 2rem; border-radius: var(--radius-lg); }
.btn--xl { font-size: 1.125rem; padding: 1.25rem 2.5rem; border-radius: var(--radius-lg); }
.btn--full { width: 100%; }

.btn--primary {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px rgba(170, 1, 89, 0.4);
}
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--outline:hover {
  background: rgba(254, 253, 239, 0.05);
  border-color: var(--accent);
}
.btn--glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--glass:hover {
  background: var(--bg-card-hover);
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  overflow: hidden;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
}
.hero__orb--1 {
  top: -10%; left: 20%;
  width: 500px; height: 500px;
  background: rgba(170, 1, 89, 0.1);
  animation: pulse-slow 6s ease-in-out infinite;
}
.hero__orb--2 {
  bottom: -10%; right: 15%;
  width: 400px; height: 400px;
  background: rgba(59, 130, 246, 0.05);
  animation: float 8s ease-in-out infinite;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__content { max-width: 640px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(170, 1, 89, 0.3);
  background: rgba(170, 1, 89, 0.08);
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.5rem;
}
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
}
.badge__dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .5;
  animation: pulse-slow 2s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}
.hero__abbr {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--accent);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: .8;
}
.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-60);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Chat Mockup ────────────────────────────────────── */
.hero__demo { position: relative; }
.chat-mock {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: 0 25px 60px rgba(0,0,0,.4);
  transform: rotate(1deg);
  transition: transform .7s var(--ease);
}
.chat-mock:hover { transform: rotate(0deg); }

.chat-mock__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .5rem;
}
.chat-mock__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .875rem;
  color: var(--accent);
}
.chat-mock__name { font-size: .875rem; font-weight: 700; }
.chat-mock__status {
  font-size: .65rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 600;
}
.chat-mock__body {
  height: 420px;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  border-radius: var(--radius-lg);
  background: rgba(0,0,0,.3);
}
.chat-mock__glow {
  position: absolute;
  top: -1.5rem; right: -1.5rem;
  width: 100px; height: 100px;
  background: var(--accent-glow);
  filter: blur(60px);
  border-radius: 50%;
  pointer-events: none;
}

.chat-msg {
  max-width: 80%;
  padding: .75rem 1rem;
  border-radius: var(--radius-lg);
  font-size: .875rem;
  line-height: 1.5;
  animation: slideUp .4s var(--ease) both;
}
.chat-msg--user {
  align-self: flex-end;
  background: rgba(254, 253, 239, 0.1);
  border-bottom-right-radius: 4px;
  font-family: var(--font-mono);
  font-size: .8rem;
}
.chat-msg--ai {
  align-self: flex-start;
  background: var(--accent);
  border-bottom-left-radius: 4px;
}

/* ═══════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════ */
.section {
  padding: var(--section-py) 0;
}
.section--dark { background: var(--bg); }
.section--alt  { background: rgba(254, 253, 239, 0.02); }
.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section__header h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.section__sub {
  font-size: 1.125rem;
  color: var(--text-60);
  max-width: 640px;
  margin: 1rem auto 0;
  line-height: 1.7;
}

/* ── Grid ───────────────────────────────────────────── */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ── Cards ──────────────────────────────────────────── */
.card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  transition: all .35s var(--ease);
}
.card--glass {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}
.card--glass:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(170, 1, 89, 0.1);
}
.card--highlight { border-color: rgba(170, 1, 89, 0.2); }
.card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  transition: transform .3s var(--ease);
}
.card:hover .card__icon { transform: scale(1.1); }
.card__svg {
  width: 28px !important;
  height: 28px !important;
  max-width: 28px;
  max-height: 28px;
  filter: brightness(0) saturate(100%) invert(10%) sepia(95%) saturate(6000%) hue-rotate(322deg) brightness(90%) contrast(105%);
}
.arch__svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px;
  max-height: 22px;
  display: inline-block;
  vertical-align: middle;
  filter: brightness(0) invert(1);
}
.arch__node--primary .arch__svg {
  filter: brightness(0) invert(1);
}
.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .75rem;
}
.card p {
  color: var(--text-40);
  font-size: .9rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   COMPARISON TABLE
   ═══════════════════════════════════════════════════════ */
.comparison {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  background: rgba(0,0,0,.3);
}
.comparison table { width: 100%; border-collapse: collapse; }
.comparison thead tr { background: rgba(254, 253, 239, 0.03); }
.comparison th {
  padding: 1.25rem 1.5rem;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .15em;
  text-align: left;
}
.comparison__old { color: var(--text-40); }
.comparison__new { color: var(--accent); font-weight: 700; }
.comparison td {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .9rem;
}
.comparison tbody td:first-child { font-weight: 600; }
.comparison tbody .comparison__old { color: var(--text-40); }
.comparison tbody .comparison__new { color: var(--text); font-weight: 700; }

/* ═══════════════════════════════════════════════════════
   FLOW ANIMATION
   ═══════════════════════════════════════════════════════ */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.particle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  opacity: 0;
}

/* ── Nodes ── */
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}
.flow-node__circle {
  width: 120px; height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all .5s var(--ease);
}
.flow-node--project .flow-node__circle {
  background: rgba(59,130,246,0.1);
  border: 2px solid rgba(59,130,246,0.3);
  box-shadow: 0 0 40px rgba(59,130,246,0.1);
}
.flow-node--sayp .flow-node__circle {
  background: rgba(170,1,89,0.15);
  border: 2px solid rgba(170,1,89,0.4);
  box-shadow: 0 0 60px var(--accent-glow);
  width: 140px; height: 140px;
}
.flow-node--whatsapp .flow-node__circle {
  background: rgba(16,185,129,0.1);
  border: 2px solid rgba(16,185,129,0.3);
  box-shadow: 0 0 40px rgba(16,185,129,0.1);
}
.flow-node__circle::before,
.flow-node__circle::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid;
  opacity: 0;
}
.flow-node--project .flow-node__circle::before { border-color: rgba(59,130,246,0.3); }
.flow-node--sayp .flow-node__circle::before { border-color: rgba(170,1,89,0.3); }
.flow-node--whatsapp .flow-node__circle::before { border-color: rgba(16,185,129,0.3); }
.flow-node--project .flow-node__circle::after { border-color: rgba(59,130,246,0.15); inset: -16px; }
.flow-node--sayp .flow-node__circle::after { border-color: rgba(170,1,89,0.15); inset: -16px; }
.flow-node--whatsapp .flow-node__circle::after { border-color: rgba(16,185,129,0.15); inset: -16px; }

.flow-node.active .flow-node__circle::before { animation: pulse-ring-flow 2s ease-out infinite; }
.flow-node.active .flow-node__circle::after { animation: pulse-ring-flow 2s ease-out infinite .5s; }

@keyframes pulse-ring-flow {
  0% { opacity: .6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* Node active glow */
.flow-node.active.flow-node--project .flow-node__circle {
  box-shadow: 0 0 60px rgba(59,130,246,0.3);
  border-color: rgba(59,130,246,0.6);
}
.flow-node.active.flow-node--sayp .flow-node__circle {
  box-shadow: 0 0 80px var(--accent-glow);
  border-color: rgba(170,1,89,0.7);
  animation: sayp-pulse .8s ease-in-out;
}
.flow-node.active.flow-node--whatsapp .flow-node__circle {
  box-shadow: 0 0 60px rgba(16,185,129,0.3);
  border-color: rgba(16,185,129,0.6);
}
@keyframes sayp-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Node icons */
.flow-node__icon {
  width: 48px !important; height: 48px !important;
  max-width: 48px; max-height: 48px;
}
.flow-node--sayp .flow-node__icon {
  width: 56px !important; height: 56px !important;
  max-width: 56px; max-height: 56px;
}
.flow-node--project .flow-node__icon {
  filter: brightness(0) invert(45%) sepia(80%) saturate(2000%) hue-rotate(200deg);
}
.flow-node--sayp .flow-node__icon {
  filter: brightness(0) saturate(100%) invert(10%) sepia(95%) saturate(6000%) hue-rotate(322deg) brightness(90%) contrast(105%);
}
.flow-node--whatsapp .flow-node__icon {
  filter: brightness(0) invert(70%) sepia(50%) saturate(1000%) hue-rotate(100deg) brightness(95%);
}
.flow-node__label {
  font-weight: 700;
  font-size: .9rem;
  text-align: center;
  white-space: nowrap;
}
.flow-node__sublabel {
  font-size: .7rem;
  color: var(--text-40);
  font-family: var(--font-mono);
  text-align: center;
}

/* ── Beams ── */
.flow-beam {
  width: 140px; height: 4px;
  position: relative;
  z-index: 1;
  margin: 0 -10px;
}
.flow-beam__track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.flow-beam__glow {
  position: absolute;
  width: 60px; height: 100%;
  border-radius: 4px;
  left: -60px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.flow-beam.active .flow-beam__glow {
  animation: beam-travel 1.5s ease-in-out forwards;
}
@keyframes beam-travel {
  0% { left: -60px; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: calc(100% + 10px); opacity: 0; }
}

/* ── Messages ── */
.flow-messages {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-height: 160px;
}
.msg-bubble {
  padding: .75rem 1.25rem;
  border-radius: 1rem;
  font-size: .85rem;
  max-width: 440px;
  opacity: 0;
  transform: translateY(20px);
  transition: all .5s var(--ease);
  display: flex;
  align-items: center;
  gap: .5rem;
  line-height: 1.5;
}
.msg-bubble.visible {
  opacity: 1;
  transform: translateY(0);
}
.msg-bubble--user {
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.2);
  align-self: flex-start;
}
.msg-bubble--sayp {
  background: rgba(170,1,89,0.12);
  border: 1px solid rgba(170,1,89,0.2);
  align-self: center;
  font-family: var(--font-mono);
  font-size: .75rem;
}
.msg-bubble--whatsapp {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.2);
  align-self: flex-end;
}
.msg-bubble__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.msg-bubble--user .msg-bubble__dot { background: #3b82f6; }
.msg-bubble--sayp .msg-bubble__dot { background: var(--accent); }
.msg-bubble--whatsapp .msg-bubble__dot { background: var(--green); }

/* ── Controls ── */
.flow-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.scenario-indicator {
  display: flex;
  gap: .5rem;
}
.scenario-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all .3s;
}
.scenario-dot.active {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.flow-restart {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-40);
  padding: .5rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: .8rem;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.flow-restart:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ═══════════════════════════════════════════════════════
   ARCHITECTURE
   ═══════════════════════════════════════════════════════ */
.arch__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.arch__info h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 2rem;
}
.arch__items { display: flex; flex-direction: column; gap: 1.25rem; }
.arch__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.arch__item-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.arch__item-icon .material-symbols-outlined { color: var(--accent); font-size: 1.25rem; }
.arch__item h4 { font-weight: 700; font-size: .95rem; margin-bottom: .25rem; }
.arch__item p { font-size: .825rem; color: var(--text-40); }

.arch__diagram {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.arch__diagram::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(170, 1, 89, 0.03);
  pointer-events: none;
}
.arch__labels {
  display: flex;
  justify-content: space-between;
  font-size: .65rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--text-40);
  margin-bottom: 1.5rem;
}
.arch__flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.arch__node {
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
  width: 80%;
  max-width: 280px;
}
.arch__node--outline {
  border: 1px solid var(--border);
  background: rgba(0,0,0,.4);
}
.arch__node--primary {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.arch__arrow {
  color: var(--text-20);
}

/* ═══════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════ */
.feature-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .35s var(--ease);
  transform-origin: left;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 32px rgba(0,0,0,.3);
}
.feature-card__icon {
  color: var(--accent);
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.feature-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.feature-card p {
  font-size: .825rem;
  color: var(--text-40);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   INTEGRATION TABS
   ═══════════════════════════════════════════════════════ */
.tabs { max-width: 800px; margin: 0 auto; }
.tabs__buttons {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 2rem;
}
.tabs__btn {
  font-family: var(--font);
  font-size: .875rem;
  font-weight: 700;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.tabs__btn:hover { background: rgba(254, 253, 239, 0.05); }
.tabs__btn--active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.tabs__content {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  min-height: 260px;
}
.tabs__panel { display: none; }
.tabs__panel--active { display: block; }
.tabs__panel h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: .75rem;
}
.tabs__panel p {
  color: var(--text-60);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.tabs__list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.tabs__list li {
  color: var(--text-60);
  padding-left: 1.25rem;
  position: relative;
}
.tabs__list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-60);
  line-height: 1.8;
  overflow-x: auto;
}
.code-block__method { color: var(--accent); font-weight: 700; }
.code-block__comment { color: var(--text-40); font-style: italic; }
.code-block__fn { color: var(--green); }
.code-block__str { color: #f59e0b; }

/* ═══════════════════════════════════════════════════════
   USE CASES
   ═══════════════════════════════════════════════════════ */
.usecase {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all .35s var(--ease);
}
.usecase:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.usecase__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.usecase__icon .material-symbols-outlined { color: var(--accent); }
.usecase h4 { font-weight: 700; margin-bottom: .5rem; }
.usecase__cmd {
  font-size: .8rem;
  color: var(--text-40);
  margin-bottom: .75rem;
  font-style: italic;
  line-height: 1.5;
}
.usecase__result {
  background: rgba(0,0,0,.4);
  border-radius: var(--radius);
  padding: .625rem .875rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   METRICS
   ═══════════════════════════════════════════════════════ */
.metrics {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.metric__value {
  display: block;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: .5rem;
}
.metric__label {
  font-size: .75rem;
  color: var(--text-40);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════════════════ */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}
.pricing__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing__card--popular {
  border-color: var(--accent);
  background: rgba(170, 1, 89, 0.05);
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(170, 1, 89, 0.15);
  z-index: 1;
}
.pricing__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--text);
  padding: .25rem 1rem;
  border-radius: var(--radius-full);
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.pricing__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.pricing__price {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 2rem;
}
.pricing__price span {
  font-size: .875rem;
  font-weight: 400;
  color: var(--text-40);
}
.pricing__features {
  flex: 1;
  margin-bottom: 2rem;
}
.pricing__features li {
  padding: .625rem 0;
  color: var(--text-60);
  font-size: .875rem;
  padding-left: 1.5rem;
  position: relative;
}
.pricing__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s var(--ease);
}
.faq-item:hover {
  border-color: var(--border-hover);
}
.faq-item[open] {
  border-color: rgba(170, 1, 89, 0.3);
  background: var(--bg-card-hover);
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text);
  list-style: none;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '+';
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary::before {
  content: '−';
  transform: rotate(180deg);
}
.faq-item summary:hover { color: var(--accent); }
.faq-item p {
  padding: 0 1.5rem 1.25rem 3.5rem;
  color: var(--text-60);
  font-size: .9rem;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════ */
.cta {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.cta__glow {
  position: absolute;
  inset: 0;
  background: rgba(170, 1, 89, 0.04);
  pointer-events: none;
}
.cta__inner {
  text-align: center;
  position: relative;
  z-index: 1;
}
.cta h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
}
.cta p {
  font-size: 1.125rem;
  color: var(--text-60);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}
.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  padding: 4rem 0 0;
  border-top: 1px solid var(--border);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer__logo-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.footer__logo-img {
  height: 28px;
  filter: invert(1);
}
.footer__tagline {
  color: var(--text-40);
  font-size: .875rem;
  font-style: italic;
  margin-bottom: .5rem;
}
.footer__copy {
  color: var(--text-20);
  font-size: .75rem;
}
.footer__col h5 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: .75rem; }
.footer__col a {
  font-size: .875rem;
  color: var(--text-40);
  transition: color .2s;
}
.footer__col a:hover { color: var(--text); }
.footer__col li { font-size: .875rem; color: var(--text-40); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  font-size: .75rem;
  color: var(--text-20);
}
.footer__legal {
  display: flex;
  gap: 1.5rem;
}
.footer__legal a {
  color: var(--text-20);
  transition: color .2s;
}
.footer__legal a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__demo { max-width: 420px; margin: 0 auto; }
  .arch__grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 420px; }
  .pricing__card--popular { transform: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --section-py: 4rem; }

  .navbar__links { display: none; }
  .navbar__actions .btn--sm { display: none; }
  .navbar__burger { display: flex; }

  .hero { min-height: auto; padding: 7rem 0 3rem; }
  .hero__title { font-size: 2rem; }
  .hero__subtitle { font-size: 1rem; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }

  .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }

  /* Flow responsive */
  .flow { flex-direction: column; }
  .flow-beam {
    width: 4px; height: 80px;
    margin: -10px 0;
  }
  .flow-beam__track { width: 4px; }
  .flow-beam__glow {
    width: 100%; height: 40px;
    left: auto; top: -40px;
  }
  .flow-beam.active .flow-beam__glow {
    animation: beam-travel-v 1.5s ease-in-out forwards;
  }
  @keyframes beam-travel-v {
    0% { top: -40px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: calc(100% + 10px); opacity: 0; }
  }
  .flow-node__circle { width: 100px; height: 100px; }
  .flow-node--sayp .flow-node__circle { width: 120px; height: 120px; }
  .flow-node__icon { width: 40px !important; height: 40px !important; max-width: 40px; max-height: 40px; }
  .flow-node--sayp .flow-node__icon { width: 48px !important; height: 48px !important; max-width: 48px; max-height: 48px; }
  .flow-messages { padding: 0 1rem; }
  .msg-bubble { max-width: 100%; font-size: .8rem; }

  .comparison th,
  .comparison td { padding: .875rem 1rem; font-size: .8rem; }

  .tabs__buttons { flex-wrap: wrap; }
  .tabs__content { padding: 1.5rem; }

  .metrics__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer__bottom { flex-direction: column; gap: .75rem; text-align: center; }
}

/* ═══════════════════════════════════════════════════════
   LANGUAGE TOGGLE
   ═══════════════════════════════════════════════════════ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-60);
  font-family: var(--font);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.pricing__per {
  font-size: .875rem;
  font-weight: 400;
  color: var(--text-40);
}
