/* =========================================================
   AI MINDS INC. — DESIGN TOKENS (Blue theme)
   ========================================================= */
:root {
  --navy: #0A1F44;
  --navy-soft: #10285A;
  --indigo: #123A75;
  --blue: #2E6FF2;
  --blue-bright: #4C86FF;
  --sky: #6FD1FF;
  --bg: #F5F8FC;
  --panel: #FFFFFF;
  --ink: #101828;
  --muted: #5B6478;
  --line: rgba(16, 31, 68, 0.10);
  --line-dark: rgba(111, 209, 255, 0.16);

  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1180px;
  --section-pad: 120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

::selection { background: var(--blue); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 8px;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  box-shadow: 0 8px 20px -8px rgba(46, 111, 242, 0.55);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(10, 31, 68, 0.5);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(-2px);
}

.arrow { transition: transform 0.3s var(--ease); display: inline-block; }
.btn-primary:hover .arrow { transform: translateX(4px); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 248, 252, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 248, 252, 0.92);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.4s var(--ease);
}
.nav.scrolled .nav-inner { padding: 14px 24px; }

.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--blue), var(--navy));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 9px;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.logo-text em { font-style: normal; color: var(--blue); }

.nav-links { display: flex; gap: 32px; }
.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--ink);
  position: relative;
  padding-bottom: 3px;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}
.nav-link:hover::after { width: 100%; }

.nav-cta { flex-shrink: 0; padding: 11px 22px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  flex-shrink: 0;
}
.nav-toggle span {
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 80px;
  overflow: hidden;
  background: var(--bg);
}

.hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(46,111,242,0.14) 0%, rgba(111,209,255,0.06) 45%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 24px;
}
.dot {
  width: 7px; height: 7px;
  background: var(--blue);
  border-radius: 50%;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46,111,242,0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(46,111,242,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.6vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 500px;
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--indigo);
  background: rgba(46,111,242,0.08);
  border: 1px solid rgba(46,111,242,0.18);
  padding: 7px 12px;
  border-radius: 20px;
}

/* ---------- Orbit diagram ---------- */
.hero-orbit {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(46,111,242,0.28);
}
.ring-1 { width: 46%; height: 46%; }
.ring-2 { width: 70%; height: 70%; border-color: rgba(46,111,242,0.2); }
.ring-3 { width: 94%; height: 94%; border-color: rgba(46,111,242,0.13); }

.orbit-core {
  position: relative;
  z-index: 3;
  width: 108px; height: 108px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--blue), var(--navy));
  display: grid;
  place-items: center;
  box-shadow: 0 20px 45px -12px rgba(10,31,68,0.45);
}
.orbit-core span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.78rem;
  color: #fff;
  text-align: center;
  letter-spacing: 0.03em;
}

.orbit-spin {
  position: absolute;
  inset: 0;
  animation: spin linear infinite;
}
.spin-1 { width: 46%; height: 46%; inset: 27%; animation-duration: 18s; }
.spin-2 { width: 46%; height: 46%; inset: 27%; animation-duration: 22s; animation-direction: reverse; }
.spin-3 { width: 70%; height: 70%; inset: 15%; animation-duration: 28s; }
.spin-4 { width: 70%; height: 70%; inset: 15%; animation-duration: 32s; animation-direction: reverse; }
.spin-5 { width: 94%; height: 94%; inset: 3%; animation-duration: 40s; }
.spin-6 { width: 94%; height: 94%; inset: 3%; animation-duration: 46s; animation-direction: reverse; }

@keyframes spin { to { transform: rotate(360deg); } }

.orbit-node {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%) rotate(0deg);
  display: inline-block;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--indigo);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 16px;
  box-shadow: 0 8px 18px -8px rgba(16,31,68,0.25);
  animation: counterSpin linear infinite;
  animation-duration: inherit;
}
.spin-1 .orbit-node { animation-duration: 18s; }
.spin-2 .orbit-node { animation-duration: 22s; animation-direction: reverse; }
.spin-3 .orbit-node { animation-duration: 28s; }
.spin-4 .orbit-node { animation-duration: 32s; animation-direction: reverse; }
.spin-5 .orbit-node { animation-duration: 40s; }
.spin-6 .orbit-node { animation-duration: 46s; animation-direction: reverse; }

.node-c, .node-d { top: auto; bottom: -14px; }

@keyframes counterSpin { to { transform: translateX(-50%) rotate(-360deg); } }
.spin-2 .orbit-node, .spin-4 .orbit-node, .spin-6 .orbit-node { animation-name: counterSpinReverse; }
@keyframes counterSpinReverse { to { transform: translateX(-50%) rotate(360deg); } }

.scroll-cue {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.scroll-line {
  width: 1px; height: 34px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--blue);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* =========================================================
   SECTION TAGS / TITLES (shared)
   ========================================================= */
.section-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-tag.light { color: var(--sky); }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.16;
  color: var(--navy);
  margin-bottom: 18px;
}
.section-title.light { color: #fff; }

.section-sub {
  max-width: 560px;
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 56px;
}

/* =========================================================
   SERVICES — ACCORDION
   ========================================================= */
.accordion {
  border-top: 1px solid var(--line);
}

.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 8px;
  text-align: left;
  transition: background 0.3s var(--ease);
}
.accordion-head:hover { background: rgba(46,111,242,0.04); }

.acc-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--blue);
  flex-shrink: 0;
  width: 30px;
}

.acc-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.acc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
}
.acc-sub {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--muted);
}

.acc-chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  position: relative;
}
.acc-chevron::before, .acc-chevron::after {
  content: '';
  position: absolute;
  background: var(--blue);
  border-radius: 2px;
  top: 50%; left: 50%;
}
.acc-chevron::before { width: 12px; height: 2px; transform: translate(-50%,-50%); }
.acc-chevron::after { width: 2px; height: 12px; transform: translate(-50%,-50%); transition: transform 0.3s var(--ease); }
.accordion-item.is-open .acc-chevron::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease);
}
.accordion-item.is-open .accordion-panel {
  max-height: 900px;
}

.accordion-panel-inner {
  padding: 4px 8px 34px 50px;
}

.acc-lead {
  font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 640px;
}
.acc-lead-secondary {
  margin-top: 22px;
  font-weight: 600;
  color: var(--indigo);
}

.acc-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
  list-style: none;
  margin-bottom: 18px;
}
.acc-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}
.acc-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--sky);
  border-radius: 50%;
}

.acc-outcome {
  font-size: 0.94rem;
  color: var(--navy);
  background: rgba(46,111,242,0.06);
  border-left: 2px solid var(--blue);
  padding: 10px 16px;
  border-radius: 0 6px 6px 0;
  margin-top: 6px;
}
.acc-outcome span { font-weight: 700; color: var(--blue); }

/* =========================================================
   WHY US
   ========================================================= */
.why { background: var(--navy); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 40px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
}
.why-check {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: rgba(111,209,255,0.14);
  color: var(--sky);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}
.why-item p { color: rgba(255,255,255,0.85); font-size: 0.98rem; }

/* =========================================================
   APPROACH / CTA BANNER
   ========================================================= */
.approach {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
}
.approach-inner { text-align: center; padding-top: 100px; padding-bottom: 100px; }
.approach .section-tag { color: rgba(255,255,255,0.85); justify-content: center; }
.approach-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}
.approach-text {
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 1.02rem;
}
.approach .btn-primary {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.approach .btn-primary:hover {
  background: var(--navy-soft);
  color: #fff;
  border-color: var(--navy-soft);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
}

.contact-details { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }
.detail { display: flex; flex-direction: column; gap: 4px; }
.detail-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.detail-value { font-size: 1rem; color: var(--navy); font-weight: 600; }
.detail-link { transition: color 0.3s var(--ease); }
.detail-link:hover { color: var(--blue); }

.contact-form {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 32px 32px;
  background: var(--panel);
  box-shadow: 0 24px 60px -30px rgba(16,31,68,0.25);
}

.form-row { margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
}
.form-row input, .form-row textarea, .form-row select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 8px;
  resize: vertical;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,111,242,0.14);
}
.form-row input.invalid, .form-row textarea.invalid {
  border-color: #D64545;
}
.field-error {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #D64545;
  min-height: 14px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  position: relative;
  margin-top: 6px;
}
.btn-loader {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
}
.form-submit.loading .btn-text { opacity: 0.6; }
.form-submit.loading .btn-loader {
  display: inline-block;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-status {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  min-height: 18px;
  color: var(--blue);
}
.form-status.success { color: #1E9E6B; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--navy); color: rgba(255,255,255,0.6); border-top: 1px solid var(--line-dark); }
.footer-inner {
  padding-top: 40px;
  padding-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer .logo-text { color: #fff; }
.footer-copy { font-family: var(--font-mono); font-size: 0.76rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-family: var(--font-body); font-size: 0.86rem; }
.footer-links a:hover { color: var(--sky); }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-orbit { order: -1; max-width: 320px; margin: 0 auto 10px; }
  .contact-inner { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .acc-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --section-pad: 80px; }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px 26px;
    gap: 18px;
  }
  .nav-cta.mobile-open {
    display: inline-flex;
    position: absolute;
    top: calc(100% + 190px);
    left: 24px;
  }

  .hero { padding-top: 120px; }
  .accordion-panel-inner { padding-left: 30px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.1rem; }
  .btn { padding: 13px 22px; font-size: 0.85rem; }
  .contact-form { padding: 32px 20px 24px; }
  .acc-title { font-size: 1rem; }
}
