/* anelion — static site styles. Light theme (navy text, white cards, blue accents). */
:root {
  --bg-1: hsl(220 18% 93%);
  --bg-2: #ffffff;
  --bg-3: hsl(219 20% 89%);
  --bg-footer: hsl(220 45% 13%);
  --accent: hsl(214 90% 40%);
  --primary: hsl(214 85% 46%);
  --primary-dim: hsl(214 85% 38%);
  --text-body: hsl(220 30% 22%);
  --text-dim: hsl(220 20% 32%);
  --label: hsl(220 30% 28%);
  --card-bg: #ffffff;
  --card-border: hsl(216 30% 80%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: 'Inter', 'SF Pro Display', -apple-system, system-ui, sans-serif;
  background: var(--bg-1);
  color: hsl(222 47% 14%);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 72rem; margin: 0 auto; padding: 0 2rem; }

/* --- Navigation ----------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 2.25rem; display: block; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: hsl(220 45% 25% / 0.85); }
.nav.nav-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid hsl(214 40% 88%);
  box-shadow: 0 1px 2px rgba(20, 40, 80, 0.08);
}
.nav-toggle { display: none; background: none; border: none; color: hsl(220 45% 25%); cursor: pointer; padding: 4px; }
.nav-toggle svg { width: 2rem; height: 2rem; }
.nav-mobile { display: none; }

/* --- Hero ------------------------------------------------------------------ */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  background: linear-gradient(165deg, hsl(217 30% 88%) 0%, hsl(215 32% 82%) 60%, hsl(220 20% 94%) 100%);
}
.hero-inner { max-width: 56rem; margin: 0 auto; padding: 140px 0 80px; text-align: center; }
.hero-eyebrow {
  display: inline-flex;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  border: 1px solid hsl(214 85% 45% / 0.5);
  color: hsl(214 90% 36%);
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 2rem 0;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
}
.hero p { font-size: 1.25rem; color: var(--text-body); max-width: 42rem; margin: 0 auto; }

/* --- Paths (two-card fork) ------------------------------------------------- */
.paths { padding: 5rem 2rem; background: var(--bg-3); }
.paths-grid { max-width: 64rem; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.path-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: opacity 0.15s ease;
}
.path-card:hover { opacity: 0.9; text-decoration: none; }
.path-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.path-card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.75rem; }
.path-card p { color: var(--text-body); flex: 1; margin-bottom: 1.5rem; }
.path-cta { font-size: 0.875rem; font-weight: 600; color: var(--accent); }
.path-card:hover .path-cta { text-decoration: underline; }
.path-card img { height: 2rem; width: auto; align-self: flex-start; margin-bottom: 0.75rem; }

/* --- Sections -------------------------------------------------------------- */
.section { padding: 6rem 2rem; background: var(--bg-2); }
.section-title { text-align: center; font-size: 2.25rem; font-weight: 300; margin-bottom: 1rem; }
.section-subtitle { text-align: center; font-size: 1.125rem; color: var(--text-body); max-width: 48rem; margin: 0 auto 4rem; }
.section-label { text-align: center; font-size: 1.875rem; color: var(--label); margin-bottom: 3rem; font-weight: 400; }

/* --- Consulting ------------------------------------------------------------ */
.consulting-grid { max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.consulting-grid h3 { font-size: 1.5rem; font-weight: 300; margin-bottom: 1.5rem; }
.problem-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.problem-list li { display: flex; gap: 0.75rem; font-size: 1.125rem; color: var(--text-body); }
.problem-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #f87171;
  margin-top: 0.55rem;
}
.problem-detail { padding-top: 1.5rem; color: var(--text-dim); }
.solution-card { border-radius: 0.75rem; padding: 2rem; background: var(--card-bg); border: 1px solid var(--card-border); }
.solution-card > p { font-size: 1.125rem; color: var(--text-body); margin-bottom: 1.5rem; line-height: 1.6; }
.solution-highlight { font-size: 1.25rem; font-weight: 500; color: var(--accent); margin-bottom: 1.5rem; }
.benefit-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.benefit-list li { display: flex; gap: 0.75rem; color: var(--text-body); align-items: baseline; }
.benefit-list li::before { content: "\2713"; color: hsl(214 85% 50%); font-weight: 700; flex-shrink: 0; }

/* --- About / AI-first ------------------------------------------------------ */
.about-text { max-width: 48rem; margin: 0 auto; text-align: left; font-size: 1.25rem; font-weight: 300; line-height: 1.65; color: var(--text-body); }
.ai-first-card {
  max-width: 48rem;
  margin: 3rem auto 0;
  border-radius: 0.75rem;
  padding: 2.5rem;
  text-align: left;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}
.ai-first-card h3 { font-size: 1.5rem; font-weight: 300; margin-bottom: 1rem; }
.ai-first-card p { font-size: 1.125rem; font-weight: 300; line-height: 1.65; color: var(--text-body); }

/* --- Team ------------------------------------------------------------------ */
.team-grid { max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card { border-radius: 0.75rem; padding: 2rem; background: var(--card-bg); border: 1px solid var(--card-border); }
.team-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 1rem; }
.team-card p { color: var(--text-body); line-height: 1.6; }
.team-creds { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid hsl(214 40% 88%); display: flex; flex-wrap: wrap; gap: 0.5rem; }
.team-creds span {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: hsl(220 15% 45%);
}

/* --- Contact ---------------------------------------------------------------- */
.contact-box { max-width: 42rem; margin: 0 auto; }
.contact-card { border-radius: 1rem; padding: 2rem; background: var(--card-bg); border: 1px solid var(--card-border); }
.form-field { margin-bottom: 1.5rem; }
.form-field label { display: block; font-size: 0.875rem; color: hsl(220 35% 22%); margin-bottom: 0.5rem; }
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: hsl(222 47% 14%);
  background: #ffffff;
  border: 1px solid hsl(214 40% 80%);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: hsl(220 15% 65%); }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid hsl(214 85% 55% / 0.5); outline-offset: -1px; }
.form-field textarea { min-height: 8rem; resize: none; }
.form-error { color: #f87171; font-size: 0.8125rem; margin-top: 0.375rem; display: none; }
.contact-submit {
  display: block;
  width: 200px;
  margin: 0 auto;
  padding: 0.75rem;
  border: none;
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  cursor: pointer;
}
.contact-submit:hover { text-decoration: underline; }
.contact-submit:disabled { opacity: 0.5; cursor: default; }
.contact-success { text-align: center; padding: 2rem; display: none; }
.contact-success .check {
  width: 5rem; height: 5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  font-size: 2.5rem;
  display: flex; align-items: center; justify-content: center;
}
.contact-success h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
.contact-success p { color: var(--text-body); }

/* --- Footer ----------------------------------------------------------------- */
.footer { padding: 3rem 2rem; background: var(--bg-footer); border-top: 1px solid hsl(214 40% 85%); text-align: center; }
.footer-social { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.footer-social a { color: var(--label); font-size: 0.875rem; }
.footer p { font-size: 0.875rem; color: hsl(220 15% 50%); margin-top: 0.75rem; }

/* --- Chat widget (aw- = anelion widget) -------------------------------------- */
.aw-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.aw-fab:hover { background: var(--primary-dim); transform: translateY(-2px); }
.aw-fab svg { width: 26px; height: 26px; fill: #fff; }
.aw-fab-open { background: var(--primary-dim); }

.aw-panel[hidden] { display: none; }
.aw-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 90;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border: 1px solid hsl(214 40% 85%);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(20, 40, 80, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.aw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--primary);
  color: #fff;
}
.aw-head-text { display: flex; flex-direction: column; gap: 1px; }
.aw-head-text strong { font-size: 16px; }
.aw-head-text span { font-size: 12px; opacity: 0.85; }
.aw-close { border: none; background: none; color: #fff; font-size: 16px; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.aw-close:hover { background: rgba(255, 255, 255, 0.15); }
.aw-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.aw-msg { max-width: 85%; padding: 10px 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.aw-bot { align-self: flex-start; background: hsl(220 18% 93%); color: hsl(220 40% 25%); border-radius: 16px 16px 16px 6px; }
.aw-user { align-self: flex-end; background: var(--primary); color: #fff; border-radius: 16px 16px 6px 16px; }
.aw-bot a { color: var(--accent); word-break: break-all; }
.aw-user a { color: #fff; }
.aw-typing span {
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: hsl(214 25% 60%);
  animation: aw-blink 1.2s infinite;
}
.aw-typing span:nth-child(2) { animation-delay: 0.2s; }
.aw-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes aw-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.aw-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid hsl(214 40% 88%); }
.aw-input input {
  flex: 1;
  font: inherit;
  font-size: 14px;
  color: hsl(222 47% 14%);
  background: hsl(220 18% 93%);
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
}
.aw-input input:focus { outline: 2px solid hsl(214 85% 55% / 0.5); outline-offset: -1px; }
.aw-input button {
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  background: var(--primary);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.aw-input button:hover { background: var(--primary-dim); }
.aw-input button svg { width: 18px; height: 18px; fill: #fff; }
.aw-foot { padding: 8px 16px 12px; font-size: 12px; color: hsl(220 18% 38%); }
.aw-foot a { color: var(--accent); }

/* --- Responsive --------------------------------------------------------------- */
@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; }
  .consulting-grid { grid-template-columns: 1fr; }
  .paths-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-mobile.open {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
    text-align: right;
    padding: 1rem;
    margin: 0 0 0 auto;
    width: 200px;
    background: var(--bg-1);
    border-top: 1px solid hsl(214 40% 88%);
  }
  .nav-mobile a { font-size: 1.125rem; font-weight: 500; color: hsl(220 45% 25%); }
  .section { padding: 4rem 1.5rem; }
}

/* Team LinkedIn links */
.team-card h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; }
.team-linkedin { font-size: 0.75rem; font-weight: 500; color: var(--accent); white-space: nowrap; }

/* Testimonials */
.testimonials-list { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
.testimonial { text-align: center; }
.testimonial-quote { font-size: 1.0625rem; font-weight: 300; font-style: italic; color: var(--text-body); margin-bottom: 1.25rem; line-height: 1.6; }
.testimonial-author { font-weight: 600; color: hsl(222 47% 14%); }
.testimonial-title { color: hsl(220 18% 38%); margin-top: 0.25rem; }

/* Client list */
.clients-list { max-width: 48rem; margin: 0 auto; text-align: center; font-size: 1.375rem; font-weight: 400; color: hsl(220 35% 20%); line-height: 1.6; }

/* Blog */
.blog-list, .blog-article { max-width: 56rem; margin: 0 auto; padding: 8rem 2rem 5rem; }
.blog-list h1 { font-size: 2.25rem; font-weight: 400; color: #626d84; margin-bottom: 1rem; }
.blog-list-sub { font-size: 1.125rem; color: var(--text-body); margin-bottom: 4rem; }
.blog-items { display: flex; flex-direction: column; gap: 3rem; }
.blog-item { display: flex; gap: 1.5rem; padding-bottom: 3rem; border-bottom: 1px solid hsl(214 40% 88%); }
.blog-item:last-child { border-bottom: none; }
.blog-item-img img { width: 12rem; height: 12rem; object-fit: cover; border-radius: 0.375rem; display: block; }
.blog-item-text h2 { font-size: 1.5rem; font-weight: 500; margin-bottom: 0.5rem; }
.blog-meta { font-size: 0.875rem; color: hsl(220 18% 38%); margin-bottom: 0.75rem; }
.blog-item-excerpt { color: var(--text-body); line-height: 1.6; }
.blog-back { margin-bottom: 2rem; font-size: 0.875rem; }
.blog-back a { color: var(--accent); }
.blog-article h1 { font-size: 2.25rem; font-weight: 500; line-height: 1.2; margin-bottom: 1rem; }
.blog-hero-img { width: 100%; max-width: 28rem; border-radius: 0.75rem; margin: 1.5rem 0; display: block; }
.blog-content { color: var(--text-body); font-size: 1.0625rem; line-height: 1.7; }
.blog-content h2 { font-size: 1.5rem; font-weight: 400; color: hsl(222 47% 14%); margin: 3rem 0 1rem; }
.blog-content p { margin-bottom: 1rem; }
.blog-content a { color: var(--accent); }
@media (max-width: 640px) {
  .blog-item { flex-direction: column; }
  .blog-item-img img { width: 100%; height: auto; }
}

/* How We Work */
.how-steps { max-width: 48rem; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; }
.how-step { display: flex; gap: 1.5rem; }
.how-step-num {
  flex-shrink: 0;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: #ffffff;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.125rem;
  display: flex; align-items: center; justify-content: center;
}
.how-step h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 0.75rem; }
.how-step p { font-size: 1.0625rem; color: var(--text-body); line-height: 1.65; }


/* ---- Light theme extras ---- */
/* Section rhythm (dark inline backgrounds are stripped in index-light.html) */
#about { background: hsl(219 20% 89%); }
#how-we-work { background: hsl(219 20% 89%); }
.clients { background: hsl(219 20% 89%); }
.testimonials { background: #ffffff; }
/* White cards need real elevation on light backgrounds */
.path-card, .solution-card, .team-card, .ai-first-card, .contact-card {
  box-shadow: 0 1px 3px rgba(15, 30, 60, 0.1), 0 6px 24px rgba(15, 30, 60, 0.09);
}
.path-card:hover { box-shadow: 0 4px 20px rgba(20, 40, 80, 0.12); opacity: 1; }
.team-creds span { background: hsl(220 18% 93%); }
.how-step-num { background: #ffffff; box-shadow: 0 1px 3px rgba(20, 40, 80, 0.1); }
.nav-mobile.open { border-top: 1px solid hsl(214 40% 88%); }
.nav-mobile a { color: hsl(220 45% 25%); }


/* Contrast pass: dark navy footer anchors the light page */
.footer { background: hsl(220 45% 13%); border-top: none; }
.footer p { color: rgba(255, 255, 255, 0.55); }
.footer a { color: rgba(255, 255, 255, 0.75); }
.footer-social a { color: rgba(255, 255, 255, 0.55); }

/* Hero background art (light theme) */
.hero { position: relative; }
.hero-inner { position: relative; z-index: 1; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-art .ha-ring, .section-art .ha-ring { fill: none; stroke: hsl(220 45% 25% / 0.07); stroke-width: 1.5; }
.hero-art .ha-line, .section-art .ha-line { stroke: hsl(220 45% 25% / 0.15); stroke-width: 1.5; }
.hero-art .ha-node, .section-art .ha-node { fill: none; stroke: hsl(220 45% 25% / 0.28); stroke-width: 1.5; }
.hero-art .ha-node-fill, .section-art .ha-node-fill { fill: hsl(214 85% 45% / 0.4); }

/* Site-wide graphic accents (light theme) */
.section-title::after, .section-label::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  border-radius: 2px;
  background: hsl(214 85% 46%);
  margin: 1rem auto 0;
}
.how-steps { position: relative; }
.how-step { position: relative; }
.how-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(1.5rem - 1px);
  top: 3.25rem;
  bottom: -2.75rem;
  width: 2px;
  background: hsl(216 25% 78%);
}
.testimonial::before {
  content: "\201C";
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  line-height: 0.6;
  color: hsl(214 85% 46% / 0.45);
  margin-bottom: 0.75rem;
}
.ai-core { width: 3rem; height: 3rem; display: block; margin-bottom: 1rem; }
.ai-core .core-ring { fill: none; stroke: hsl(220 45% 25% / 0.35); stroke-width: 2; }
.ai-core .core-dot { fill: hsl(214 85% 46%); }

/* AI-first icon sits beside the heading */
.ai-first-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.ai-first-head .ai-core { margin-bottom: 0; flex-shrink: 0; }
.ai-first-card .ai-first-head h3 { margin-bottom: 0; }

/* Section background art (same family as the hero network) */
.section { position: relative; overflow: hidden; }
.section > *:not(.section-art) { position: relative; z-index: 1; }
.section-art { position: absolute; top: 2rem; width: 580px; height: 900px; pointer-events: none; z-index: 0; }
.section-art-right { right: 0; }
.section-art-left { left: 0; }
@media (max-width: 1500px) {
  .section-art { width: 420px; height: 650px; }
}
@media (max-width: 1100px) {
  .section-art { display: none; }
}

/* Selected AI Work */
.work-grid { max-width: 64rem; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.work-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 1px 3px rgba(15, 30, 60, 0.1), 0 6px 24px rgba(15, 30, 60, 0.09);
  transition: box-shadow 0.15s ease;
}
.work-card:hover { box-shadow: 0 4px 20px rgba(15, 30, 60, 0.15); text-decoration: none; }
.work-card:hover h3 { text-decoration: underline; }
.work-card h3 { font-size: 1.375rem; font-weight: 600; margin-bottom: 0.75rem; }
.work-card p { color: var(--text-body); flex: 1; margin-bottom: 1.25rem; line-height: 1.6; }
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* Footer AI note */
.footer-ai-note { font-style: italic; margin-bottom: 1rem; }

/* Legal pages */
.legal-page { max-width: 48rem; margin: 0 auto; padding: 8rem 2rem 5rem; }
.legal-page h1 { font-size: 2.25rem; font-weight: 500; margin-bottom: 0.5rem; }
.legal-date { color: var(--text-dim); font-size: 0.875rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.375rem; font-weight: 500; margin: 2.5rem 0 0.75rem; }
.legal-page p { color: var(--text-body); line-height: 1.65; margin-bottom: 1rem; }
.legal-page a { color: var(--accent); }
.legal-fine { font-size: 0.875rem; color: var(--text-dim); margin-top: 2.5rem; }
