/* ═══════════════════════════════════════════════════════════════
   OximoAi — Shared Design System
   ═══════════════════════════════════════════════════════════════
   Fonts:  Nunito (body), Rubik (headings)
   Theme:  Dark, neon glow, glass morphism
   Bot:    https://t.me/oximoai_bot
   ═══════════════════════════════════════════════════════════════ */

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

/* ═══════ DESIGN TOKENS ═══════ */
:root {
  /* Background & Surfaces */
  --bg: #161A2E;
  --surface: #1E2340;
  --surface-up: #282E4E;

  /* Accent Colors */
  --primary: #66EAFF;       /* cyan — main accent */
  --secondary: #FF9944;     /* orange — CTA, buttons */
  --tertiary: #FFD94E;      /* yellow — highlights */
  --purple: #C87EFF;        /* purple — pills, decorative */
  --pink: #FF9DD4;          /* pink — gradient accent */
  --green: #55F0BB;         /* green — success, feature */

  /* Text */
  --text: #F8F7FF;          /* primary text */
  --text-dim: #C4C3D5;      /* secondary text */
  --text-muted: #8A89A0;    /* muted/caption text */

  /* Borders & Outlines */
  --outline: rgba(255,255,255,0.12);

  /* Spacing & Layout */
  --radius: 20px;
  --radius-lg: 28px;
  --max-w: 1140px;
  --header-h: 68px;

  /* Neon glow intensities (for reuse) */
  --glow-sm: 0.06;
  --glow-md: 0.15;
  --glow-lg: 0.25;
}

/* ═══════ BASE ═══════ */
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════ AMBIENT BACKGROUND ═══════ */
.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(200,126,255,0.28) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 5%, rgba(102,234,255,0.22) 0%, transparent 50%),
    radial-gradient(circle 600px at 50% 55%, rgba(255,153,68,0.14) 0%, transparent 50%),
    radial-gradient(circle 400px at 15% 80%, rgba(85,240,187,0.1) 0%, transparent 50%),
    radial-gradient(circle 300px at 80% 75%, rgba(200,126,255,0.08) 0%, transparent 50%);
}

/* ═══════ LAYOUT ═══════ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
section { padding: 120px 0; position: relative; }

/* ═══════ SCROLL REVEAL ═══════ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.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; }
.reveal-d5 { transition-delay: 0.40s; }

/* ═══════ ICONS (Material Symbols) ═══════ */
.material-symbols-outlined { font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24; }

/* ═══════ TYPOGRAPHY ═══════ */
h1, h2, h3 { font-family: 'Rubik', sans-serif; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(200,126,255,0.18); color: var(--purple);
  border: 1px solid rgba(200,126,255,0.25);
}

.section-head { text-align: center; margin-bottom: 72px; }
.section-head h2 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 18px; max-width: 500px; margin: 0 auto; line-height: 1.75; }

/* Page title (for inner pages) */
.page-title { text-align: center; padding-top: calc(var(--header-h) + 60px); padding-bottom: 40px; }
.page-title h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px; }
.page-title p { color: var(--text-dim); font-size: 18px; max-width: 600px; margin: 0 auto; line-height: 1.75; }

/* ═══════ BUTTONS ═══════ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 16px;
  text-decoration: none; border: none; cursor: pointer;
  padding: 16px 36px; border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden;
}
.btn-main {
  background: linear-gradient(135deg, var(--secondary), #FF9640, var(--tertiary));
  background-size: 200% auto; color: #1a0800;
  box-shadow: 0 6px 35px rgba(255,153,68,0.4);
}
.btn-main:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 50px rgba(255,153,68,0.5); background-position: right center; }
.btn-main .shine {
  position: absolute; inset: 0; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg) translateX(-150%); transition: transform 0.6s;
}
.btn-main:hover .shine { transform: skewX(-20deg) translateX(350%); }

.btn-soft {
  background: var(--surface-up); color: var(--text); border: 1px solid var(--outline);
}
.btn-soft:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

.btn-outline {
  background: transparent; color: var(--primary); border: 1px solid var(--primary);
}
.btn-outline:hover { background: rgba(102,234,255,0.08); transform: translateY(-2px); }

/* ═══════ CARDS (reusable neon glow pattern) ═══════ */
.card {
  padding: 44px 36px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--outline);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); }

/* Neon glow modifiers */
.card-glow-cyan:hover { border-color: rgba(102,234,255,0.55); box-shadow: 0 0 25px rgba(102,234,255,0.25), 0 0 60px rgba(102,234,255,0.15); }
.card-glow-orange:hover { border-color: rgba(255,153,68,0.55); box-shadow: 0 0 25px rgba(255,153,68,0.25), 0 0 60px rgba(255,153,68,0.15); }
.card-glow-yellow:hover { border-color: rgba(255,217,78,0.55); box-shadow: 0 0 25px rgba(255,217,78,0.25), 0 0 60px rgba(255,217,78,0.15); }
.card-glow-purple:hover { border-color: rgba(200,126,255,0.55); box-shadow: 0 0 25px rgba(200,126,255,0.25), 0 0 60px rgba(200,126,255,0.15); }
.card-glow-green:hover { border-color: rgba(85,240,187,0.55); box-shadow: 0 0 25px rgba(85,240,187,0.25), 0 0 60px rgba(85,240,187,0.15); }
.card-glow-pink:hover { border-color: rgba(255,157,212,0.55); box-shadow: 0 0 25px rgba(255,157,212,0.25), 0 0 60px rgba(255,157,212,0.15); }

/* ═══════ HEADER ═══════ */
header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h); z-index: 100; transition: all 0.4s;
}
header.scrolled {
  background: rgba(11,13,26,0.85); backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--outline);
}
header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: 'Rubik', sans-serif; font-weight: 800; font-size: 22px;
  color: var(--text);
}
.logo-icon {
  width: 38px; height: 38px; border-radius: 12px; overflow: hidden;
  background: var(--surface-up); border: 1px solid var(--outline);
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }

nav { display: flex; align-items: center; gap: 28px; }
nav a {
  color: var(--text-dim); text-decoration: none; font-size: 14px;
  font-weight: 600; transition: color 0.2s;
}
nav a:hover { color: var(--text); }
nav a.active { color: var(--text); }

.header-cta { display: none; }

.menu-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none; position: fixed; top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(11,13,26,0.97); backdrop-filter: blur(20px);
  z-index: 99; padding: 40px 24px; flex-direction: column; gap: 20px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--text); text-decoration: none; font-family: 'Rubik', sans-serif;
  font-size: 20px; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--outline);
}

/* ═══════ FOOTER ═══════ */
footer { border-top: 1px solid var(--outline); padding: 36px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ═══════ MASCOTS ═══════ */
.section-mascot {
  display: block; margin: 0 auto; object-fit: contain;
  filter: drop-shadow(0 10px 40px rgba(200,126,255,0.3));
  animation: float 5s ease-in-out infinite;
}
.section-mascot-sm { max-height: 160px; margin-bottom: 32px; }
.section-mascot-md { max-height: 340px; margin-bottom: 36px; }

.cta-mascot {
  display: block; margin: 0 auto 36px; max-height: 340px; object-fit: contain;
  filter: drop-shadow(0 10px 50px rgba(200,126,255,0.4));
}

/* ═══════ CTA BOTTOM (reusable) ═══════ */
.cta-bottom {
  text-align: center; padding: 100px 0; position: relative;
}
.cta-bottom::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 500px; height: 350px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,153,68,0.25) 0%, rgba(200,126,255,0.1) 40%, transparent 60%);
  pointer-events: none;
}
.cta-bottom h2 { font-size: clamp(26px, 5vw, 40px); font-weight: 800; margin-bottom: 12px; }
.cta-bottom p { color: var(--text-dim); font-size: 17px; margin-bottom: 32px; font-weight: 500; }

/* ═══════ FAQ (reusable) ═══════ */
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--outline);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item:hover { border-color: rgba(200,126,255,0.45); box-shadow: 0 0 20px rgba(200,126,255,0.15), 0 0 50px rgba(200,126,255,0.06); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; background: none; border: none; color: var(--text);
  font-family: 'Rubik', sans-serif; font-size: 16px; font-weight: 700;
  text-align: left; cursor: pointer; gap: 16px;
}
.faq-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); color: var(--text-dim); transition: all 0.3s;
}
.faq-item.open .faq-icon { background: rgba(168,85,247,0.15); color: var(--purple); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner { padding: 0 24px 24px; color: var(--text-dim); font-size: 15px; line-height: 1.8; font-weight: 500; letter-spacing: 0.01em; }

/* ═══════ EXPLAINER BOX (reusable) ═══════ */
.explainer {
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-lg);
  padding: 72px 48px; text-align: center; max-width: 820px; margin: 0 auto;
  position: relative; overflow: hidden;
  transition: box-shadow 0.4s, border-color 0.4s;
}
.explainer:hover { border-color: rgba(200,126,255,0.5); box-shadow: 0 0 30px rgba(200,126,255,0.2), 0 0 70px rgba(200,126,255,0.1); }
.explainer::before {
  content: ''; position: absolute; top: -80px; right: -80px; width: 250px; height: 250px;
  border-radius: 50%; background: rgba(200,126,255,0.12); filter: blur(80px); pointer-events: none;
}
.explainer h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; margin-bottom: 20px; letter-spacing: -0.02em; }
.explainer p { color: var(--text-dim); font-size: 17px; line-height: 1.85; max-width: 620px; margin: 0 auto; font-weight: 500; letter-spacing: 0.01em; }
.explainer p + p { margin-top: 20px; }

/* ═══════ BLOG CARDS (for blog.html) ═══════ */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
.blog-card {
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--outline);
  overflow: hidden; transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
  text-decoration: none; color: inherit; display: block;
}
.blog-card:hover { transform: translateY(-6px); border-color: rgba(102,234,255,0.4); box-shadow: 0 0 25px rgba(102,234,255,0.15), 0 0 60px rgba(102,234,255,0.08); }
.blog-card-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.blog-card-body { padding: 28px 32px; }
.blog-card-tag {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 12px;
  border-radius: 100px; background: rgba(200,126,255,0.15); color: var(--purple);
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.05em;
}
.blog-card-body h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.blog-card-body p { color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.blog-card-meta { display: flex; gap: 16px; margin-top: 16px; font-size: 13px; color: var(--text-muted); }

@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

/* ═══════ ARTICLE (for post.html) ═══════ */
.article-content {
  max-width: 720px; margin: 0 auto; padding: 0 28px;
}
.article-content h2 { font-size: 28px; font-weight: 800; margin: 48px 0 16px; letter-spacing: -0.02em; }
.article-content h3 { font-size: 22px; font-weight: 700; margin: 36px 0 12px; }
.article-content p { color: var(--text-dim); font-size: 17px; line-height: 1.85; margin-bottom: 20px; }
.article-content p strong { color: var(--text); }
.article-content ul, .article-content ol { color: var(--text-dim); font-size: 17px; line-height: 1.85; margin-bottom: 20px; padding-left: 24px; }
.article-content li { margin-bottom: 8px; }
.article-content img { width: 100%; border-radius: var(--radius); margin: 32px 0; }
.article-content blockquote {
  border-left: 3px solid var(--purple); padding: 16px 24px; margin: 28px 0;
  background: rgba(200,126,255,0.06); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-dim); font-style: italic;
}
.article-content code {
  font-family: 'JetBrains Mono', monospace; font-size: 14px;
  background: var(--surface-up); padding: 2px 8px; border-radius: 6px; color: var(--primary);
}
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--text); }
.article-content a.btn { text-decoration: none; color: #1a0800; }
.article-content a.btn:hover { color: #1a0800; }

/* Inline mascot (appears mid-article) */
.article-mascot {
  display: block; margin: 48px auto; max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 10px 40px rgba(200,126,255,0.3));
  animation: float 5s ease-in-out infinite;
}

/* Table of contents */
.toc {
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 48px;
}
.toc-title { font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 14px; margin-bottom: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.toc a { display: block; color: var(--text-dim); text-decoration: none; font-size: 15px; padding: 6px 0; transition: color 0.2s; }
.toc a:hover { color: var(--primary); }

/* ═══════ CONTACT (for contacts.html) ═══════ */
.contact-card {
  background: var(--surface); border: 1px solid var(--outline); border-radius: var(--radius-lg);
  padding: 48px; display: flex; align-items: center; gap: 24px;
  transition: border-color 0.3s, box-shadow 0.3s;
  text-decoration: none; color: inherit;
}
.contact-card:hover { border-color: rgba(102,234,255,0.4); box-shadow: 0 0 25px rgba(102,234,255,0.15); }
.contact-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(102,234,255,0.1); color: var(--primary); flex-shrink: 0;
}
.contact-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.contact-card p { color: var(--text-dim); font-size: 15px; }

/* ═══════ PAGINATION (for blog) ═══════ */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 60px; }
.pagination a, .pagination span {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Rubik', sans-serif; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: all 0.2s;
  background: var(--surface); border: 1px solid var(--outline); color: var(--text-dim);
}
.pagination a:hover { background: var(--surface-up); color: var(--text); }
.pagination .active { background: var(--primary); color: var(--bg); border-color: var(--primary); }

/* ═══════ BREADCRUMBS ═══════ */
.breadcrumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-bottom: 32px; }
.breadcrumbs a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs span { color: var(--text-muted); }

/* ═══════ ANIMATIONS ═══════ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes pop-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.05); }
}
@keyframes chip-bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

/* ═══════ GRADIENT TEXT (reusable) ═══════ */
.pop {
  background: linear-gradient(135deg, var(--secondary), var(--tertiary), var(--pink));
  background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; animation: pop-flow 4s linear infinite;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 767px) {
  nav { display: none; }
  .header-cta { display: none !important; }
  .section-mascot { max-height: 160px !important; height: 160px !important; }
  .cta-mascot { max-height: 180px; }
  section { padding: 80px 0; }
  .section-head { margin-bottom: 48px; }
  .explainer { padding: 48px 24px; }
  .contact-card { flex-direction: column; text-align: center; padding: 36px 24px; }
  .article-content { padding: 0 20px; }
  .article-content h2 { font-size: 24px; margin-top: 36px; }
}
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  nav { display: flex; }
  .header-cta { display: inline-flex !important; }
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

/* ═══════ UTILITIES ═══════ */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-tertiary { color: var(--tertiary); }
.text-purple { color: var(--purple); }
.text-green { color: var(--green); }
.text-pink { color: var(--pink); }
.text-dim { color: var(--text-dim); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.gap-12 { gap: 12px; }
.gap-24 { gap: 24px; }
