/* ─── TokioAI Website — Dark Cybersecurity Theme ─── */

:root {
  --bg: #0a0a0f;
  --bg2: #0d0f18;
  --card: rgba(255, 255, 255, 0.04);
  --card2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.10);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.65);
  --muted2: rgba(255, 255, 255, 0.45);
  --accent: #00ffc8;
  --accent2: #7b5ea7;
  --accent3: #00d4ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --radius: 16px;
  --radius2: 22px;
  --maxw: 1180px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(0, 255, 200, 0.06), transparent 55%),
    radial-gradient(900px 600px at 85% 15%, rgba(123, 94, 167, 0.08), transparent 55%),
    radial-gradient(900px 600px at 30% 90%, rgba(0, 212, 255, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  padding: 0.15em 0.4em;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--accent);
}

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

/* ─── SPIRAL LOGO ─── */
.spiral-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spiral-logo .glow-bg {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 200, 0.08) 0%, transparent 70%);
  animation: sp-pulse 3s ease-in-out infinite;
}

.spiral-lg { width: 240px; height: 240px; }
.spiral-lg .glow-bg { width: 240px; height: 240px; }
.spiral-lg svg { width: 240px; height: 240px; }

.spiral-md { width: 80px; height: 80px; }
.spiral-md .glow-bg { width: 80px; height: 80px; }
.spiral-md svg { width: 80px; height: 80px; }

.spiral-sm { width: 40px; height: 40px; }
.spiral-sm .glow-bg { width: 40px; height: 40px; }
.spiral-sm svg { width: 40px; height: 40px; }

.spiral-xs { width: 28px; height: 28px; }
.spiral-xs .glow-bg { width: 28px; height: 28px; }
.spiral-xs svg { width: 28px; height: 28px; }

@keyframes sp-pulse { 0%, 100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.15); opacity: 1; } }
.ring-1 { animation: sp-cw 8s linear infinite; transform-origin: 100px 100px; }
.ring-2 { animation: sp-ccw 12s linear infinite; transform-origin: 100px 100px; }
.ring-3 { animation: sp-cw 6s linear infinite; transform-origin: 100px 100px; }
.ring-4 { animation: sp-ccw 16s linear infinite; transform-origin: 100px 100px; }
.ring-5 { animation: sp-cw 10s linear infinite; transform-origin: 100px 100px; }
.spiral-path { animation: sp-cw 5s linear infinite; transform-origin: 100px 100px; }
.core { animation: core-pulse 2s ease-in-out infinite; transform-origin: 100px 100px; }
.orbit-dot { animation: sp-cw 4s linear infinite; transform-origin: 100px 100px; }
.orbit-dot-2 { animation: sp-ccw 6s linear infinite; transform-origin: 100px 100px; }
.orbit-dot-3 { animation: sp-cw 9s linear infinite; transform-origin: 100px 100px; }

@keyframes sp-cw { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes sp-ccw { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes core-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: .7; } }

/* ─── TOPBAR ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 15, 0.75);
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
}

.brand:hover { background: var(--card); }

.brand__name {
  font-weight: 750;
  letter-spacing: 0.5px;
  color: var(--accent);
}

.nav {
  display: none;
  gap: 8px;
  align-items: center;
}

.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 150ms, background 150ms;
}

.nav a:hover { color: var(--accent); background: var(--card); }

@media (min-width: 960px) { .nav { display: flex; } }

.topbar__cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.lang {
  display: inline-flex;
  gap: 6px;
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  user-select: none;
  font-size: 0.94rem;
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); background: var(--card2); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 6px 10px; font-size: 0.85rem; }
.btn--lg { padding: 14px 24px; font-size: 1rem; }
.btn--active { border-color: rgba(0, 255, 200, 0.5); background: rgba(0, 255, 200, 0.1); }
.btn--primary { border-color: rgba(0, 255, 200, 0.4); background: linear-gradient(180deg, rgba(0, 255, 200, 0.18), rgba(0, 255, 200, 0.08)); color: var(--accent); }
.btn--primary:hover { border-color: rgba(0, 255, 200, 0.6); background: linear-gradient(180deg, rgba(0, 255, 200, 0.25), rgba(0, 255, 200, 0.12)); }
.btn--ghost { background: transparent; }

/* ─── HERO ─── */
.hero { padding: 80px 0 40px; }

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 980px) {
  .hero__inner { grid-template-columns: 1.2fr 0.8fr; }
}

.hero__logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero__label {
  font-size: 1.1rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  animation: fade-label 3s ease-in-out infinite;
}

.hero__sublabel {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted2);
}

@keyframes fade-label { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.kicker {
  color: var(--accent);
  font-size: 0.95rem;
  margin: 0 0 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.hero__title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.8px;
}

.hero__subtitle {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 255, 200, 0.04);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.3px;
}

/* ─── STATS BAR ─── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 255, 200, 0.02);
  padding: 24px 0;
}

.stats-bar__inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}

.stat { text-align: center; }
.stat__num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.stat__label { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 4px; }

/* ─── SECTIONS ─── */
.section { padding: 60px 0; }

.section--alt {
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
  letter-spacing: -0.4px;
}

.lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
}

/* ─── GRID ─── */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

@media (min-width: 700px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: 1fr 1fr 1fr; } }

/* ─── CARDS ─── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 200ms, transform 200ms;
}

.card:hover { border-color: rgba(0, 255, 200, 0.2); transform: translateY(-2px); }

.card--glow:hover {
  box-shadow: 0 0 30px rgba(0, 255, 200, 0.06);
}

.card__icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.card h3 { margin: 0 0 10px; font-size: 1.05rem; color: var(--text); }
.card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.94rem; }

/* ─── FEATURE LIST ─── */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.feature-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.feature-list li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

.feature-list li:last-child { border-bottom: none; }

/* ─── PIPELINE / TIMELINE ─── */
.pipeline, .timeline { display: grid; gap: 12px; }

.pipeline__step, .timeline__item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 200ms;
}

.pipeline__step:hover, .timeline__item:hover {
  border-color: rgba(0, 255, 200, 0.2);
}

.pipeline__num, .timeline__num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: rgba(0, 255, 200, 0.1);
  border: 1px solid rgba(0, 255, 200, 0.25);
  color: var(--accent);
}

.pipeline__body h3, .timeline__body h3 { margin: 0 0 6px; font-size: 1.05rem; }
.pipeline__body p, .timeline__body p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 0.94rem; }

/* ─── STEPS (quickstart) ─── */
.steps { display: grid; gap: 20px; }

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.step__num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  background: rgba(0, 255, 200, 0.12);
  border: 2px solid rgba(0, 255, 200, 0.3);
  color: var(--accent);
}

.step__body h3 { margin: 0 0 10px; font-size: 1.1rem; }

/* ─── PANEL (code blocks) ─── */
.panel {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.panel__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.panel__title { margin-left: 8px; color: var(--muted2); font-size: 0.88rem; }

.dot { width: 10px; height: 10px; border-radius: 999px; }
.dot--r { background: #ef4444; }
.dot--y { background: #f59e0b; }
.dot--g { background: #22c55e; }

.panel__code {
  margin: 0;
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  overflow-x: auto;
}

.code-comment { color: var(--muted2); }

/* ─── CALLOUT ─── */
.callout {
  margin-top: 28px;
  padding: 20px;
  border-radius: var(--radius2);
  border: 1px solid rgba(0, 255, 200, 0.25);
  background: linear-gradient(180deg, rgba(0, 255, 200, 0.06), rgba(0, 0, 0, 0.1));
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .callout { grid-template-columns: 1fr auto; align-items: center; }
}

.callout h3 { margin: 0 0 8px; }
.callout p { margin: 0; color: var(--muted); }

/* ─── LINK ─── */
.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 200, 0.3);
  text-underline-offset: 4px;
}

.link:hover { text-decoration-color: var(--accent); }

/* ─── FOOTER ─── */
.footer {
  padding: 24px 0 36px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--accent);
}

.muted { color: var(--muted); }
.small { font-size: 0.88rem; }

/* ─── TECH LIST ─── */
.tech-list {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ─── SMOOTH SCROLL ─── */
html { scroll-behavior: smooth; }

/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {
  .hero { padding: 50px 0 30px; }
  .section { padding: 40px 0; }
  .hero__title { font-size: 1.8rem; }
  .stats-bar__inner { gap: 20px; }
  .step { grid-template-columns: 1fr; }
  .step__num { margin-bottom: 8px; }
}
