/* ============================================================
   AI GlobalG — Homepage Stylesheet
   Theme: LIGHT · Purple-Magenta accent #7C3AED on #F6F5FA
   ============================================================ */

:root {
  --bg: #F6F5FA;
  --bg-soft: #EFEEF7;
  --surface: #FFFFFF;
  --ink: #12101C;
  --ink-soft: #4B4763;
  --muted: #6B6783;
  --accent: #7C3AED;
  --accent-deep: #6D28D9;
  --accent-ink: #1E1B33;
  --accent-light: #C4B5FD;
  --accent-faint: #EDE9FE;
  --line: #E3E0EF;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px #E0DDF0;
  --shadow-md: 0 12px 34px #D8D3EC;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--accent);
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  font-weight: 800;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 92px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
}

/* ============================================================
   NEURAL NAVIGATION
   ============================================================ */

.neural-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.neural-nav.is-scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.neural-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.neural-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: block;
}

.nn-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-faint);
}

.nn-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-deep);
}

.nn-link {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--accent-light);
  transform-origin: 0 50%;
}

.nn-dot-1 { left: 19px; top: 4px; }
.nn-dot-2 { left: 34px; top: 11px; }
.nn-dot-3 { left: 32px; top: 29px; }
.nn-dot-4 { left: 6px; top: 29px; }
.nn-dot-5 { left: 2px; top: 10px; }

.nn-link-1 { width: 16px; transform: rotate(-90deg); }
.nn-link-2 { width: 18px; transform: rotate(-28deg); }
.nn-link-3 { width: 18px; transform: rotate(38deg); }
.nn-link-4 { width: 18px; transform: rotate(142deg); }
.nn-link-5 { width: 19px; transform: rotate(-152deg); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0 auto;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.98rem;
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--accent-deep);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-block;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 11px 20px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent-deep);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--accent-faint);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  padding: 0 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--accent-deep);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.neural-nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.neural-nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.neural-nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   AI BRAIN HERO
   ============================================================ */

.brain-hero {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
  padding: 88px 0 96px;
  overflow: hidden;
}

.brain-hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-faint);
  color: var(--accent-deep);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-kicker .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.brain-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.brain-hero h1 .grad {
  color: var(--accent-deep);
}

.hero-sub {
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 12px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 10px 26px #C4B5FD;
}

.btn-primary:hover {
  background: var(--accent-deep);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-ghost {
  background: #FFFFFF;
  color: var(--accent-deep);
  border: 2px solid var(--accent-light);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Brain visual */
.brain-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.brain-wrap {
  position: relative;
  width: 320px;
  height: 300px;
}

.brain-glow {
  position: absolute;
  inset: 40px 30px;
  background: var(--accent-faint);
  border-radius: 50%;
  filter: blur(40px);
}

.brain-lobe {
  position: absolute;
  top: 60px;
  width: 138px;
  height: 170px;
  background: linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-radius: 60px 60px 40px 40px;
}

.brain-lobe-left {
  left: 26px;
  border-radius: 60px 20px 40px 40px;
  transform: rotate(-4deg);
}

.brain-lobe-right {
  right: 26px;
  border-radius: 20px 60px 40px 40px;
  transform: rotate(4deg);
}

.brain-stem {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 30px;
  height: 44px;
  margin-left: -15px;
  background: linear-gradient(180deg, var(--accent-deep), var(--accent-ink));
  border-radius: 0 0 14px 14px;
}

.brain-divider {
  position: absolute;
  top: 70px;
  left: 50%;
  width: 3px;
  height: 150px;
  margin-left: -1.5px;
  background: var(--accent-ink);
  border-radius: 3px;
}

.sulcus {
  position: absolute;
  width: 46px;
  height: 30px;
  border: 3px solid var(--accent-light);
  border-color: var(--accent-light) transparent transparent transparent;
  border-radius: 50%;
}

.sulcus-1 { top: 96px; left: 44px; transform: rotate(-18deg); }
.sulcus-2 { top: 130px; left: 40px; transform: rotate(-30deg); }
.sulcus-3 { top: 100px; left: 60px; transform: rotate(14deg); }
.sulcus-4 { top: 96px; right: 44px; transform: rotate(18deg); }
.sulcus-5 { top: 132px; right: 40px; transform: rotate(30deg); }
.sulcus-6 { top: 104px; right: 60px; transform: rotate(-14deg); }

.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
}

.spark-1 { top: 34px; left: 40px; animation: float 3.4s ease-in-out infinite; }
.spark-2 { top: 52px; right: 30px; width: 7px; height: 7px; animation: float 4s ease-in-out infinite 0.4s; }
.spark-3 { bottom: 40px; left: 12px; width: 7px; height: 7px; animation: float 3.8s ease-in-out infinite 0.8s; }
.spark-4 { bottom: 56px; right: 6px; animation: float 4.4s ease-in-out infinite 1.1s; }
.spark-5 { top: 90px; left: 6px; width: 6px; height: 6px; animation: float 3.1s ease-in-out infinite 0.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ============================================================
   STATEMENT ROW (full width)
   ============================================================ */

.statement-section {
  background: var(--accent-ink);
  color: #FFFFFF;
  padding: 88px 0;
  text-align: center;
}

.statement-section .statement {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.25;
  max-width: 980px;
  margin: 0 auto 20px;
  color: #FFFFFF;
}

.statement-section .statement em {
  font-style: normal;
  color: var(--accent-light);
}

.statement-note {
  color: var(--accent-light);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================================
   STATS (big numerals)
   ============================================================ */

.stats-section {
  background: #FFFFFF;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.stat-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
}

.stat-num {
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--accent-deep);
  line-height: 1;
}

.stat-num .suffix {
  color: var(--accent);
}

.stat-label {
  margin-top: 12px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 1.02rem;
}

.stat-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================================================
   CAPABILITIES (horizontal scroll row)
   ============================================================ */

.capabilities-section {
  background: var(--bg-soft);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.tab-btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--accent-light);
  background: #FFFFFF;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.tab-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

.scroll-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 20px 4px 26px;
  scroll-snap-type: x mandatory;
  margin-top: 42px;
  -webkit-overflow-scrolling: touch;
}

.scroll-row::-webkit-scrollbar {
  height: 10px;
}

.scroll-row::-webkit-scrollbar-track {
  background: var(--accent-faint);
  border-radius: 10px;
}

.scroll-row::-webkit-scrollbar-thumb {
  background: var(--accent-light);
  border-radius: 10px;
}

.cap-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cap-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.cap-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  margin-bottom: 18px;
}

.cap-icon svg {
  width: 26px;
  height: 26px;
}

.cap-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.cap-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ============================================================
   PROCESS (numbered list)
   ============================================================ */

.process-section {
  background: #FFFFFF;
}

.process-list {
  position: relative;
  margin-top: 48px;
  max-width: 860px;
}

.process-list::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--accent-light);
}

.process-item {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 22px;
  padding: 0 0 44px 0;
}

.process-item:last-child {
  padding-bottom: 0;
}

.process-num {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px #FFFFFF, 0 0 0 8px var(--accent-light);
}

.process-body h3 {
  font-size: 1.28rem;
  margin-bottom: 8px;
}

.process-body p {
  color: var(--muted);
  max-width: 640px;
}

/* ============================================================
   COMPARISON TABLE (engagement models)
   ============================================================ */

.engagement-section {
  background: var(--bg-soft);
}

.compare-table-wrap {
  margin-top: 44px;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.compare-table th,
.compare-table td {
  padding: 20px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table thead th {
  background: var(--accent-ink);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
}

.compare-table thead th.highlight-col {
  background: var(--accent);
}

.compare-table tbody th {
  color: var(--ink);
  font-weight: 700;
  background: var(--bg);
}

.compare-table td {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.compare-table td .yes {
  color: var(--accent-deep);
  font-weight: 700;
}

.compare-table td .no {
  color: var(--muted);
}

/* ============================================================
   CONTACT
   ============================================================ */

.contact-section {
  background: #FFFFFF;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 44px;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-detail .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-faint);
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail .icon svg {
  width: 22px;
  height: 22px;
}

.contact-detail strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.contact-detail a,
.contact-detail span {
  color: var(--ink-soft);
  font-weight: 600;
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #FFFFFF;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-faint);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================================
   SPLIT CTA BAND
   ============================================================ */

.cta-band {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

.cta-band h2 {
  color: #FFFFFF;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin-bottom: 12px;
}

.cta-band p {
  color: var(--accent-light);
  font-size: 1.05rem;
}

.cta-band .btn {
  justify-self: end;
}

.cta-band .btn-primary {
  background: #FFFFFF;
  color: var(--accent-deep);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: var(--accent-light);
  color: var(--accent-ink);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--accent-ink);
  color: #FFFFFF;
  border-top: 4px solid var(--accent);
  margin-top: 92px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 56px 0 40px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer-col p {
  color: var(--accent-light);
  font-size: 0.95rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--accent-light);
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: #FFFFFF;
}

.footer-col .contact-line {
  margin-bottom: 12px;
  color: var(--accent-light);
  font-size: 0.95rem;
}

.footer-col .contact-line a {
  color: #FFFFFF;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid #3A3557;
  padding: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  color: var(--accent-light);
  font-size: 0.88rem;
}

.footer-bottom a {
  color: var(--accent-light);
}

.footer-bottom a:hover {
  color: #FFFFFF;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .brain-hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .brain-visual {
    order: -1;
    min-height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-band .btn {
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
    padding: 8px 24px 20px;
  }

  .neural-nav.open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section {
    padding: 64px 0;
  }
}
