/* ============================================================
   ATOMOS — Design System
   L'intelligenza, atomo per atomo.
   ------------------------------------------------------------------
   Tema: cosmico / futuristico / AI-first
   Palette: blu profondo + ciano + viola neon
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Colori base */
  --bg:            #05060f;   /* spazio profondo                  */
  --bg-soft:       #0a0c1c;
  --surface:       #0d1023;
  --surface-2:     #12152b;
  --border:        rgba(148, 163, 184, 0.14);

  /* Accenti neon */
  --cyan:          #22d3ee;
  --violet:        #a855f7;
  --magenta:       #e879f9;
  --teal:          #2dd4bf;

  /* Gradienti */
  --grad-primary:  linear-gradient(135deg, var(--cyan) 0%, var(--violet) 100%);
  --grad-glow:     radial-gradient(circle at 50% 0%, rgba(34, 211, 238, 0.18), transparent 60%);

  /* Testo */
  --text:          #e6ecf7;
  --text-muted:    #9aa7bd;
  --text-dim:      #64748b;

  /* Tipografia */
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Layout */
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 26px;
  --container: 1160px;
  --nav-h:     72px;

  /* Shadow */
  --shadow-sm: 0 6px 24px rgba(2, 6, 23, 0.5);
  --shadow-glow: 0 0 0 1px rgba(34, 211, 238, 0.25),
                 0 20px 60px -20px rgba(168, 85, 247, 0.45);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }

::selection { background: rgba(168, 85, 247, 0.4); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--violet), var(--cyan)); border-radius: 20px; }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: '';
  width: 26px; height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

.section { position: relative; padding: 108px 0; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 18px 0 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 60px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--grad-primary); color: #05060f; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(168, 85, 247, 0.7); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(13, 16, 35, 0.5);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--cyan); box-shadow: var(--shadow-sm); }

.btn-lg { padding: 18px 38px; font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 15, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.logo-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad-primary);
  color: #05060f;
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.5);
  position: relative;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo span b { color: var(--cyan); }
.logo-top { display: flex; align-items: center; gap: 12px; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 0.96rem; color: var(--text-muted);
  position: relative; transition: color 0.3s;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--grad-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
  border-radius: 2px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .btn { padding: 11px 22px; font-size: 0.92rem; }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 110; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.35s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0;
  background: rgba(5, 6, 15, 0.97);
  backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 30px;
  z-index: 105;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; }
.mobile-menu a:hover { color: var(--cyan); }

/* ---------- Neural canvas ---------- */
.neural-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-glow), radial-gradient(circle at 80% 90%, rgba(168, 85, 247, 0.16), transparent 55%);
  z-index: 0;
  pointer-events: none;
}
.hero-grid { position: absolute; inset: 0; z-index: 0; opacity: 0.5; pointer-events: none;
  background-image:
    linear-gradient(rgba(148,163,184,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px;
  border-radius: 60px;
  border: 1px solid var(--border);
  background: rgba(13, 16, 35, 0.6);
  backdrop-filter: blur(6px);
  font-size: 0.86rem; color: var(--text-muted);
  margin-bottom: 30px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.hero h1 .static { display: block; color: var(--text); }
.hero-typing {
  display: inline-flex; align-items: baseline; min-height: 1.1em;
}
.hero-typing .typed { color: transparent; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; }
.hero-typing .caret { width: 3px; height: 0.9em; background: var(--cyan); margin-left: 6px; animation: blink 0.85s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 38px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-metrics {
  display: flex; flex-wrap: wrap; gap: 34px;
  margin-top: 66px; padding-top: 34px;
  border-top: 1px solid var(--border);
}
.metric .num { font-family: var(--font-display); font-size: 2rem; font-weight: 700; }
.metric .num em { font-style: normal; color: var(--cyan); }
.metric .label { font-size: 0.86rem; color: var(--text-dim); margin-top: 4px; }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--text-dim); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint .wheel { width: 26px; height: 40px; border: 2px solid var(--text-dim); border-radius: 14px; position: relative; }
.scroll-hint .wheel::after { content: ''; position: absolute; top: 7px; left: 50%; width: 3px; height: 7px; border-radius: 3px; background: var(--cyan); transform: translateX(-50%); animation: scroll 1.6s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.marquee-track { display: flex; gap: 0; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 40px;
  padding: 0 40px; white-space: nowrap;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.marquee-item .sep { color: var(--violet); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ---------- About / Manifesto ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-copy p { color: var(--text-muted); margin-bottom: 20px; }
.about-copy p strong { color: var(--text); }
.about-list { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-muted); }
.about-list .tick { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: rgba(45, 212, 191, 0.12); color: var(--teal); display: grid; place-items: center; margin-top: 2px; }
.about-list .tick svg { width: 15px; height: 15px; }

/* Atom visual */
.atom-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.atom-visual .atom-core {
  position: relative; z-index: 2;
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: var(--grad-primary);
  display: grid; place-items: center;
  color: #05060f; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.6);
  animation: core-glow 4s ease-in-out infinite;
}
@keyframes core-glow { 0%,100% { box-shadow: 0 0 40px rgba(168,85,247,0.5);} 50% { box-shadow: 0 0 90px rgba(34,211,238,0.7);} }
.atom-orbit { position: absolute; inset: 0; border: 1px solid rgba(148,163,184,0.18); border-radius: 50%; }
.atom-orbit.o1 { transform: rotate(30deg) scale(0.95); border-color: rgba(34,211,238,0.35); animation: spin 16s linear infinite; }
.atom-orbit.o2 { transform: rotate(90deg); border-color: rgba(168,85,247,0.35); animation: spin-rev 22s linear infinite; }
.atom-orbit.o3 { transform: rotate(150deg) scale(0.8); border-color: rgba(232,121,249,0.3); animation: spin 28s linear infinite; }
@keyframes spin { to { transform: rotate(0deg) scale(0.95); } }
@keyframes spin-rev { to { transform: rotate(0deg); } }
.electron { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.electron.e1 { top: -8px; left: 50%; margin-left: -8px; }
.atom-orbit.o2 .electron { background: var(--violet); box-shadow: 0 0 18px var(--violet); width: 12px; height: 12px; right: -6px; left: auto; top: 50%; margin-top: -6px; }
.atom-orbit.o3 .electron { background: var(--magenta); box-shadow: 0 0 18px var(--magenta); }
.atom-visual::after { content:''; position:absolute; inset: 12%; border-radius:50%; background: radial-gradient(circle, rgba(34,211,238,0.08), transparent 70%); filter: blur(4px); }

/* ---------- Services / Capabilities ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative;
  padding: 34px 30px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service-card:hover { transform: translateY(-8px); border-color: rgba(34,211,238,0.4); box-shadow: var(--shadow-glow); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(168,85,247,0.12);
  color: var(--violet);
  border: 1px solid rgba(168,85,247,0.25);
}
.service-icon.cyan { background: rgba(34,211,238,0.1); color: var(--cyan); border-color: rgba(34,211,238,0.25); }
.service-icon.teal { background: rgba(45,212,191,0.1); color: var(--teal); border-color: rgba(45,212,191,0.25); }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 0.96rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { font-size: 0.74rem; padding: 5px 11px; border-radius: 40px; border: 1px solid var(--border); color: var(--text-dim); letter-spacing: 0.03em; }

/* ---------- Stats band ---------- */
.stats-band {
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 70px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat h3 { font-size: clamp(2rem, 4vw, 3rem); }
.stat p { color: var(--text-dim); margin-top: 8px; font-size: 0.92rem; }

/* ---------- Playground preview ---------- */
.playground {
  position: relative;
  background: linear-gradient(180deg, transparent, rgba(168,85,247,0.06), transparent);
}
.playground-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.playground-demo {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(13,16,35,0.7);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.demo-bar .c { width: 12px; height: 12px; border-radius: 50%; }
.demo-bar .c.r { background: #f87171; } .demo-bar .c.y { background: #fbbf24; } .demo-bar .c.g { background: #34d399; }
.demo-title { margin-left: 10px; font-size: 0.8rem; color: var(--text-dim); font-family: var(--font-display); }
.demo-body { padding: 22px; display: grid; gap: 16px; min-height: 220px; }
.bubble { max-width: 82%; padding: 13px 17px; border-radius: 16px; font-size: 0.92rem; line-height: 1.5; }
.bubble.user { justify-self: end; background: var(--grad-primary); color: #05060f; border-bottom-right-radius: 4px; }
.bubble.ai { justify-self: start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.bubble.ai .dot-anim { display: inline-flex; gap: 4px; align-items: center; }
.bubble.ai .dot-anim span { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); animation: blink 1s infinite; }
.bubble.ai .dot-anim span:nth-child(2){ animation-delay: .2s;} .bubble.ai .dot-anim span:nth-child(3){ animation-delay: .4s;}

/* ---------- Quotes carousel ---------- */
.quotes { text-align: center; }
.quote-slide { display: none; max-width: 800px; margin: 0 auto; padding: 10px; }
.quote-slide.active { display: block; animation: fadeIn 0.6s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px);} to { opacity: 1; transform: none;} }
.quote-slide blockquote { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 600; line-height: 1.4; margin-bottom: 22px; }
.quote-slide .attr { color: var(--text-dim); font-size: 0.92rem; }
.quote-slide .attr b { color: var(--cyan); }
.quote-nav { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.quote-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-dim); opacity: 0.4; transition: 0.3s; cursor: pointer; }
.quote-dot.active { opacity: 1; background: var(--grad-primary); width: 28px; border-radius: 10px; }

/* ---------- CTA ---------- */
.cta { text-align: center; position: relative; }
.cta-box {
  padding: 70px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(168,85,247,0.3);
  background: radial-gradient(circle at 50% 0%, rgba(168,85,247,0.18), transparent 65%), var(--surface);
  overflow: hidden; position: relative;
}
.cta-box::before { content:''; position:absolute; inset:0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M50 0v100M0 50h100' stroke='%23a855f7' stroke-opacity='.06'/%3E%3C/svg%3E"); }
.cta-box h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 18px; position: relative; }
.cta-box p { color: var(--text-muted); max-width: 560px; margin: 0 auto 34px; position: relative; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; position: relative; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 70px 0 40px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand p { color: var(--text-dim); max-width: 320px; margin-top: 16px; font-size: 0.92rem; }
.footer h4 { font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.02em; }
.footer-col { display: grid; gap: 12px; }
.footer-col a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.3s; width: fit-content; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding-top: 28px; border-top: 1px solid var(--border);
  color: var(--text-dim); font-size: 0.85rem;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); display: grid; place-items: center;
  color: var(--text-muted); transition: 0.3s;
}
.socials a:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }

/* ============================================================
   PAGES: Vision / Playground / Contact
   ============================================================ */

/* Page hero (subpages) */
.page-hero { position: relative; padding: calc(var(--nav-h) + 90px) 0 70px; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 20px 0 18px; }
.page-hero p { color: var(--text-muted); max-width: 640px; font-size: 1.1rem; }

/* Vision — timeline */
.timeline { position: relative; max-width: 720px; margin: 0 auto; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 12px; top: 0; bottom: 0; width: 2px; background: var(--grad-primary); border-radius: 2px; }
.timeline-item { position: relative; margin-bottom: 44px; }
.timeline-item .tl-dot { position: absolute; left: -40px; top: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); border: 3px solid var(--cyan); box-shadow: 0 0 0 0 rgba(34,211,238,0.5); }
.timeline-item h3 { font-size: 1.4rem; margin-bottom: 10px; }
.timeline-item p { color: var(--text-muted); }
.timeline-item.principles h3 { display: inline-block; margin-right: 10px; }

/* Principle cards */
.principles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.principle { padding: 30px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: 0.35s; }
.principle:hover { border-color: var(--violet); transform: translateY(-4px); }
.principle .p-num { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; color: var(--cyan); letter-spacing: 0.2em; }
.principle h3 { font-size: 1.2rem; margin: 12px 0 8px; }
.principle p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Playground page ---------- */
.chat-shell {
  max-width: 900px; margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(13,16,35,0.75);
  backdrop-filter: blur(10px);
  overflow: hidden;
  height: min(640px, 72vh);
  display: flex; flex-direction: column;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.chat-head .status { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-muted); }
.chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.chat-head .spacer { flex: 1; }
.chip { font-size: 0.74rem; padding: 5px 11px; border-radius: 40px; border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; transition: 0.3s; }
.chip:hover { border-color: var(--cyan); color: var(--cyan); }
.chat-body { flex: 1; overflow-y: auto; padding: 26px 22px; display: flex; flex-direction: column; gap: 16px; }
.message { max-width: 78%; padding: 13px 17px; border-radius: 16px; font-size: 0.95rem; line-height: 1.55; white-space: pre-wrap; }
.message.ai { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.message.user { align-self: flex-end; background: var(--grad-primary); color: #05060f; border-bottom-right-radius: 4px; }
.message.typing { display: inline-flex; gap: 5px; }
.message.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); animation: blink 1s infinite; }
.message.typing span:nth-child(2){ animation-delay:.2s;} .message.typing span:nth-child(3){ animation-delay:.4s;}
.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 22px 8px; }
.chat-input { display: flex; gap: 12px; padding: 16px 22px; border-top: 1px solid var(--border); }
.chat-input textarea {
  flex: 1; resize: none; height: 52px; padding: 15px 18px;
  border-radius: 14px; border: 1px solid var(--border); outline: none;
  background: rgba(255,255,255,0.03); color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem; transition: border-color 0.3s;
}
.chat-input textarea:focus { border-color: var(--cyan); }
.chat-send { width: 52px; height: 52px; border-radius: 14px; background: var(--grad-primary); color: #05060f; display: grid; place-items: center; transition: 0.3s; flex-shrink: 0; }
.chat-send:hover { box-shadow: 0 0 24px rgba(168,85,247,0.6); transform: translateY(-2px); }
.chat-send svg { width: 22px; height: 22px; }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.chat-gdpr { text-align: center; color: var(--text-dim); font-size: 0.78rem; margin-top: 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(2rem,4vw,2.8rem); margin: 18px 0 18px; }
.contact-info p { color: var(--text-muted); margin-bottom: 30px; }
.contact-methods { display: grid; gap: 20px; }
.method { display: flex; gap: 16px; align-items: flex-start; }
.method .icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(34,211,238,0.1); color: var(--cyan); display: grid; place-items: center; flex-shrink: 0; border: 1px solid rgba(34,211,238,0.2); }
.method .icon svg { width: 20px; height: 20px; }
.method b { display: block; font-family: var(--font-display); margin-bottom: 3px; }
.method span { color: var(--text-dim); font-size: 0.92rem; }

.form { padding: 34px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.form-row { display: grid; gap: 18px; margin-bottom: 18px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
.field label { display: block; font-size: 0.86rem; color: var(--text-muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--border); outline: none;
  background: rgba(255,255,255,0.03); color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem; transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,0.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.field select option { background: var(--surface); }
.form-status { font-size: 0.9rem; margin-top: 14px; min-height: 24px; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #f87171; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-primary { display: none; }
  .burger { display: flex; }
  .about-grid, .playground-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .principles-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
  .form-row.two { grid-template-columns: 1fr; }
  .hero-metrics { gap: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 74px 0; }
}

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