/* ── AI page specific ───────────────────────────── */

@keyframes ai-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glow-pulse {
  0%, 100% { opacity: .5; }
  50%       { opacity: 1; }
}
@keyframes orbit-inner {
  from { transform: rotate(0deg)   translateX(110px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
}
@keyframes orbit-outer {
  from { transform: rotate(0deg)   translateX(160px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(160px) rotate(-360deg); }
}
@keyframes grid-scroll {
  from { background-position: 0 0; }
  to   { background-position: 40px 40px; }
}

/* Hero */
.ai-hero {
  background-color: var(--black);
  position: relative;
  overflow: hidden;
  padding: 160px 5% 120px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.ai-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125,255,149,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,255,149,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: grid-scroll 8s linear infinite;
}
.ai-hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,255,149,.12) 0%, transparent 70%);
  animation: glow-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
.ai-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(125,255,149,.4);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: var(--inter);
  font-size: 12px;
  font-weight: 500;
  color: var(--pastel-green);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: ai-fade-up .7s ease both;
}
.ai-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pastel-green);
  animation: glow-pulse 2s ease-in-out infinite;
}
.ai-hero h1 {
  font-family: var(--fraunces);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin: 0 0 28px;
  animation: ai-fade-up .7s .1s ease both;
}
.ai-hero h1 em {
  font-style: normal;
  color: var(--pastel-green);
}
.ai-hero-sub {
  font-family: var(--inter);
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 0 48px;
  animation: ai-fade-up .7s .2s ease both;
}
.ai-hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: ai-fade-up .7s .3s ease both;
}
.ai-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pastel-green);
  color: var(--black);
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.ai-btn-primary:hover { background: #a5ffb5; transform: translateY(-2px); }
.ai-btn-secondary {
  font-family: var(--inter);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.ai-btn-secondary:hover { color: #fff; border-color: #fff; }

/* Terminal block */
.ai-terminal {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 24px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  animation: ai-fade-up .8s .4s ease both;
  backdrop-filter: blur(12px);
}
.ai-terminal-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.ai-terminal-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.ai-terminal-dot:nth-child(1) { background: #ff5f57; }
.ai-terminal-dot:nth-child(2) { background: #febc2e; }
.ai-terminal-dot:nth-child(3) { background: #28c840; }
.ai-terminal-line { color: rgba(255,255,255,.4); line-height: 2; }
.ai-terminal-line.cmd { color: var(--pastel-green); }
.ai-terminal-line.out { color: rgba(255,255,255,.75); }
.ai-terminal-cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--pastel-green);
  vertical-align: middle;
  animation: glow-pulse .8s step-end infinite;
}

/* Stats band */
.ai-stats {
  background: var(--black-gray);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 48px 5%;
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}
.ai-stat {
  text-align: center;
}
.ai-stat-num {
  font-family: var(--fraunces);
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.ai-stat-num span { color: var(--pastel-green); }
.ai-stat-label {
  font-family: var(--inter);
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-top: 8px;
  letter-spacing: .04em;
}

/* Services */
.ai-services {
  background: var(--alabaster);
  padding: 100px 5%;
}
.ai-section-label {
  font-family: var(--inter);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(0,0,0,.4);
  margin-bottom: 16px;
}
.ai-section-title {
  font-family: var(--fraunces);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--black);
  line-height: 1.1;
  max-width: 580px;
  margin: 0 0 64px;
}
.ai-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(0,0,0,.1);
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 20px;
  overflow: hidden;
}
.ai-service-card {
  background: var(--alabaster);
  padding: 36px 32px;
  transition: background .25s;
}
.ai-service-card:hover { background: var(--white); }
.ai-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 20px;
}
.ai-service-title {
  font-family: var(--fraunces);
  font-size: 20px;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 10px;
}
.ai-service-desc {
  font-family: var(--inter);
  font-size: 14px;
  color: rgba(0,0,0,.55);
  line-height: 1.65;
  margin: 0;
}

/* Dark feature section */
.ai-feature {
  background: var(--black);
  padding: 100px 5%;
  overflow: hidden;
}
.ai-feature-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.ai-feature-label { color: rgba(125,255,149,.7); }
.ai-feature h2 {
  font-family: var(--fraunces);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 24px;
}
.ai-feature h2 em { font-style: normal; color: var(--pastel-green); }
.ai-feature-body {
  font-family: var(--inter);
  font-size: 16px;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin: 0 0 40px;
}
.ai-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ai-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--inter);
  font-size: 15px;
  color: rgba(255,255,255,.75);
}
.ai-feature-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pastel-green);
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%23000' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Orbit visual */
.ai-orbit-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ai-orbit-core {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pastel-green), var(--lindworm-green));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 60px rgba(125,255,149,.3);
}
.ai-orbit-core img {
  display: block;
  width: 52px;
  height: auto;
  opacity: .3;
}
.ai-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
}
.ai-orbit-ring:nth-child(2) { width: 220px; height: 220px; }
.ai-orbit-ring:nth-child(3) { width: 320px; height: 320px; border-color: rgba(255,255,255,.05); }
.ai-orbit-ring:nth-child(4) { width: 420px; height: 420px; border-color: rgba(255,255,255,.03); }
.ai-orbit-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  margin-left: -18px;
  border-radius: 10px;
  background: var(--black-gray);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
/* Inner ring — 3 nodes, 120° apart via negative delay */
.ai-orbit-node:nth-child(5)  { animation: orbit-inner 14s linear  0s infinite; }
.ai-orbit-node:nth-child(6)  { animation: orbit-inner 14s linear -4.67s infinite; }
.ai-orbit-node:nth-child(7)  { animation: orbit-inner 14s linear -9.33s infinite; }
/* Outer ring — 3 nodes, 120° apart */
.ai-orbit-node:nth-child(8)  { animation: orbit-outer 20s linear  0s infinite; }
.ai-orbit-node:nth-child(9)  { animation: orbit-outer 20s linear -6.67s infinite; }
.ai-orbit-node:nth-child(10) { animation: orbit-outer 20s linear -13.33s infinite; }

/* Steps */
.ai-steps {
  background: var(--white);
  padding: 100px 5%;
}
.ai-steps-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.ai-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
}
.ai-step {
  padding: 40px 36px;
  border-top: 2px solid var(--black);
  position: relative;
}
.ai-step-num {
  font-family: var(--fraunces);
  font-size: 72px;
  font-weight: 700;
  color: rgba(0,0,0,.06);
  line-height: 1;
  margin-bottom: 16px;
}
.ai-step-title {
  font-family: var(--fraunces);
  font-size: 22px;
  font-weight: 600;
  color: var(--black);
  margin: 0 0 12px;
}
.ai-step-desc {
  font-family: var(--inter);
  font-size: 14px;
  color: rgba(0,0,0,.55);
  line-height: 1.65;
  margin: 0;
}

/* Models / stack */
.ai-stack {
  background: var(--alabaster);
  padding: 80px 5%;
  text-align: center;
}
.ai-stack-inner { max-width: 900px; margin: 0 auto; }
.ai-stack-desc {
  font-family: var(--inter);
  font-size: 15px;
  color: rgba(0,0,0,.5);
  margin: 16px 0 48px;
}
.ai-stack-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.ai-pill {
  font-family: var(--inter);
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 100px;
  padding: 10px 20px;
  letter-spacing: .02em;
  transition: background .2s, border-color .2s;
}
.ai-pill:hover { background: var(--black); color: var(--pastel-green); border-color: var(--black); }
.ai-pill.highlight { background: var(--black); color: var(--pastel-green); border-color: var(--black); }

/* CTA */
.ai-cta {
  background: var(--lindworm-green);
  padding: 100px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ai-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(125,255,149,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125,255,149,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.ai-cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.ai-cta h2 {
  font-family: var(--fraunces);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin: 0 0 20px;
}
.ai-cta h2 em { font-style: normal; color: var(--pastel-green); }
.ai-cta p {
  font-family: var(--inter);
  font-size: 16px;
  color: rgba(255,255,255,.6);
  margin: 0 0 40px;
  line-height: 1.6;
}

/* Responsive */
@media screen and (max-width: 991px) {
  .ai-terminal { display: none; }
  .ai-feature-inner { grid-template-columns: 1fr; gap: 48px; }
  .ai-orbit-container { max-width: 340px; margin: 0 auto; }
  .ai-services-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-steps-grid { grid-template-columns: 1fr; }
  .ai-stats { gap: 40px; }
}
@media screen and (max-width: 479px) {
  .ai-hero { padding: 120px 5% 80px; min-height: auto; }
  .ai-services-grid { grid-template-columns: 1fr; }
  .ai-stats { gap: 32px; }
  .ai-stat-num { font-size: 36px; }
}
