/* ============================================================
   EON AI Lab — style.css
   Light warm theme with magenta accents and dark feature bands
   (per "EON AI Lab — landing page [progress] 01" design)
   ============================================================ */

:root {
  --bg: #f8f7f5;            /* warm off-white page */
  --bg-alt: #f0ece6;        /* beige band (capabilities, footer) */
  --surface: #f9f8f6;       /* card surface */
  --dark: #0a0a0a;          /* near-black band (about) */
  --navy: #0a0f1e;          /* deep navy (CTA, buttons, icon tiles) */
  --line: #dcd8d0;
  --text: #0a0f1e;
  --text-dim: #5b6070;
  --on-dark: #ffffff;
  --on-dark-dim: #a3a6ae;
  --accent: #e21cf0;        /* magenta */
  --accent-2: #8a1f9e;      /* deep purple */
  --accent-soft: #e48bf0;   /* light magenta for text on dark */
  --grad: linear-gradient(135deg, #e81cff 0%, #c21ad8 50%, #8a1f9e 100%);
  --grad-v: linear-gradient(180deg, #e81cff, #6a1f88);
  --radius: 16px;
  --container: 1160px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 500;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, video { max-width: 100%; display: block; }

/* ---------- shared bits ---------- */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 14px;
}

.grad { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(226, 28, 240, 0.35);
}
.btn-ghost {
  background: var(--navy);
  color: #fff;
}
.btn-ghost:hover { box-shadow: 0 10px 30px rgba(10, 15, 30, 0.3); }
.btn-small { padding: 10px 22px; font-size: 0.88rem; }
.btn-lg { padding: 18px 42px; font-size: 1.05rem; }

.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

.section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 24px;
}

.section-intro {
  color: var(--text-dim);
  font-size: 1.12rem;
  max-width: 700px;
  margin-bottom: 20px;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 247, 245, 0.88);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo-mark {
  height: 26px;
  width: auto;
  padding-right: 12px;
  margin-right: 10px;
  box-sizing: content-box;
  border-right: 1px solid var(--text);
}
.logo-sub {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 400;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.nav-ext { color: var(--accent); }
.nav-links a.nav-ext:hover { text-decoration: underline; }

/* ---------- hamburger (small screens) ---------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- language switch ---------- */

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--bg-alt);
}
.lang-switch button {
  border: 0;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  background: transparent;
  transition: color 0.15s, background 0.15s;
}
.lang-switch button:hover { color: var(--accent); }
.lang-switch button.active {
  color: #fff;
  background: var(--navy);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 70px 0 0;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: end;
}

.hero-copy { align-self: center; padding: 40px 0 90px; }

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.9rem);
  font-weight: 500;
  max-width: 640px;
}

.lead {
  margin-top: 26px;
  font-size: 1.12rem;
  color: var(--text-dim);
  max-width: 680px;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-media {
  position: relative;
  align-self: end;
}
.hero-media img {
  width: 100%;
  height: auto;
  max-width: 400px;
  margin: 0 auto;
}

/* magenta "glitch" bars around the hero photo */
.glitch {
  position: absolute;
  height: 10px;
  background: var(--accent);
}
.glitch::before {
  content: "";
  position: absolute;
  background: var(--accent);
}
.g1 { top: 40%; right: -6%; width: 30%; }
.g1::before { left: -14px; top: 10px; width: 14px; height: 12px; }
.g2 { top: 51%; left: 4%; width: 18%; height: 6px; }
.g2::before { left: -20px; top: 5px; width: 20px; height: 6px; }
.g3 { top: 87%; right: -8%; width: 50%; height: 5px; }
.g3::before { right: 0; top: -4px; width: 40%; height: 5px; }

/* ---------- about (dark band) ---------- */

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark);
  padding-bottom: 0;
}
.section-dark .eyebrow { color: var(--accent-soft); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
  margin-top: 10px;
}

.lead-left {
  font-size: 1.12rem;
  color: var(--on-dark-dim);
}

.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.point h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--on-dark);
}
.point h3::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.4L13 6.3' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    var(--grad);
}
.point p { color: var(--on-dark-dim); font-size: 0.92rem; }

/* Animated EON motion circle (circle.js). The canvas is square and the band
   shows only its upper part, so the ring rises out of the section's bottom
   edge like a dome. Sized by viewport width so it scales down on phones. */
.about-wave {
  position: relative;
  width: min(1000px, 112vw);
  aspect-ratio: 1 / 0.34;       /* top 30% of the ring (half would be 2 / 1) */
  margin: 20px 0 0;
  left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 14%);
}
.about-wave canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1;
  display: block;
}

/* ---------- capabilities ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 30px;
}

.cap {
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.cap:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.cap-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  margin-bottom: 22px;
  transition: background 0.2s ease;
}
.cap-ico svg { width: 28px; height: 28px; }
.cap:hover .cap-ico { background: var(--grad); }
.cap h3 {
  font-family: var(--font-body);
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.cap p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- portfolio projects ---------- */

#portfolio h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }

.project {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 30px;
}

.project-rev .project-media { order: 2; }
.project-rev .project-body { order: 1; }

.project-num {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--accent);
  letter-spacing: 0.15em;
}

.project h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 8px 0 6px;
}

.project-tag {
  color: var(--text);
  font-weight: 400;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.project-body > p { color: var(--text-dim); margin-bottom: 14px; }

.ai-note {
  position: relative;
  background: var(--bg-alt);
  border-radius: 0 10px 10px 0;
  padding: 14px 20px;
  font-size: 0.92rem;
}
.ai-note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--grad-v);
}
.ai-note strong { color: var(--text); font-weight: 600; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.tags span {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  white-space: nowrap;
}

/* ---------- video slot ---------- */

.video-slot {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fbfaf8;
  box-shadow: 0 24px 60px rgba(10, 15, 30, 0.08);
}

.video-slot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* placeholder shown behind/until the real video file is added;
   the <video> paints over it once a source loads */
.video-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #a3a6ae;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.video-placeholder .play {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 1.1rem;
  padding-left: 4px;
}

/* ---------- CTA ---------- */

.cta {
  background: var(--navy);
  color: var(--on-dark);
}
.cta .eyebrow { color: var(--accent-soft); }

.cta-inner {
  text-align: center;
  max-width: 860px;
}
.cta h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.cta .lead { margin: 20px auto 40px; color: var(--on-dark-dim); }
.cta-alt { margin-top: 20px; color: var(--on-dark-dim); font-size: 0.95rem; }
.cta-alt a { color: var(--accent-soft); }

/* ---------- footer ---------- */

.footer { padding: 70px 0 30px; background: var(--bg-alt); }

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr;
  gap: 40px;
}

.footer-tag { margin-top: 18px; color: var(--text-dim); font-size: 0.9rem; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-col p { color: var(--text-dim); font-size: 0.92rem; }
.footer-col a { color: var(--text-dim); }
.footer-col a:hover { color: var(--accent); }
.footer-col:last-child a { color: var(--accent); font-weight: 600; }

.footer-bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid #6b6e76;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 400;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .section { padding: 70px 0; }
  .section-dark { padding-bottom: 0; }
  .hero { padding: 40px 0 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 20px 0 70px; }
  .hero-media { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-wave { margin-top: 10px; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .project {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 60px;
  }
  .project-rev .project-media { order: 0; }
  .project-rev .project-body { order: 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .lang-switch { margin-left: auto; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(10, 15, 30, 0.08);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .cap-grid { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-inner { gap: 8px; padding: 0 16px; }
  .nav-links { padding: 8px 16px 20px; }
  .logo-mark { height: 18px; padding-right: 6px; margin-right: 6px; }
  .logo-sub { font-size: 0.8rem; white-space: nowrap; }
  .lang-switch button { padding: 4px 7px; }
  .nav-inner > .btn-small { padding: 7px 10px; font-size: 0.75rem; white-space: nowrap; }
  .nav-toggle { width: 32px; padding: 0 6px; }
}
