/* ─── Tokens ─── */
:root {
  --bg: #0a0a0f;
  --bg-elevated: #111118;
  --bg-card: rgba(255, 255, 255, 0.02);

  --text: #e8e8ed;
  --text-dim: #ccc;
  --text-muted: #999;
  --text-faint: #888;
  --text-fainter: #777;
  --text-faintest: #666;
  --text-ghost: #555;
  --text-bg: #444;

  --border: rgba(255, 255, 255, 0.06);
  --border-soft: rgba(255, 255, 255, 0.04);
  --border-input: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);

  --accent: oklch(0.7 0.18 305);
  --accent-dim: oklch(0.45 0.12 305);
  --accent-soft: oklch(0.7 0.18 305 / 0.15);
  --accent-quiet: oklch(0.7 0.18 305 / 0.08);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-w: 1100px;
  --gutter: 40px;
}

/* ─── Reset / base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: oklch(0.7 0.18 305 / 0.4); }
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
}

/* ─── Shared ─── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head { margin-bottom: 60px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 500px;
}

/* ─── NAV ─── */
/* Outer .nav handles fixed full-width background; .nav-inner constrains content to --max-w so it lines up with sections below */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand img { height: 36px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; text-decoration: none; }

.nav-cta {
  color: #fff !important;
  background: var(--accent);
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; text-decoration: none; }

/* ─── HERO ─── */
/* Bounded to --max-w so it aligns with every other section. Page bg behind it is the same color, so visually nothing changes outside the container. */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px var(--gutter) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}
.hero-accent { color: var(--accent); }

.hero-sub {
  font-size: 20px;
  line-height: 1.65;
  color: #8a8a99;
  max-width: 560px;
  margin-bottom: 44px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── BADGES ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 32px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
/* News callout — replaces the simple badge in the hero. Reads as a "latest news" item — pulsing dot, "Latest" tag, claim + CTA. */
.news-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.22);
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.08);
  max-width: 760px;
  flex-wrap: wrap;
}
.news-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(52, 211, 153, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.35);
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgb(110, 230, 175);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.news-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgb(52, 211, 153);
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.7);
  animation: news-pulse 2s ease-in-out infinite;
}
@keyframes news-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
.news-text {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  flex: 1 1 280px;
  margin: 0;
}
.news-text strong {
  color: var(--text);
  font-weight: 600;
}
.news-link {
  color: rgb(110, 230, 175);
  font-weight: 600;
  white-space: nowrap;
  margin-left: 4px;
}
.news-link:hover { opacity: 0.85; text-decoration: none; }

/* Featured-on-ChatGPT callout: more prominent than the standard badge */
.chatgpt-feature {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 10px 18px;
  border-radius: 100px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.3);
  align-self: flex-start;
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.12);
}
.chatgpt-star {
  font-size: 16px;
  color: rgb(52, 211, 153);
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.7));
}
.chatgpt-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: rgb(110, 230, 175);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover { opacity: 0.9; }
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border-strong);
  font-weight: 500;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); }

/* ─── STATS ─── */
.stats {
  padding: 0 var(--gutter) 80px;
  display: flex;
  gap: 1px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.stat {
  flex: 1;
  padding: 32px 24px;
  background: var(--bg-card);
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faintest);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── SERVICES ─── */
.services {
  padding: 100px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.service {
  padding: 36px;
  background: var(--bg);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}
.service:hover { background: #0f0f18; }
.service-icon {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.7;
}
.service h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.service p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-fainter);
  flex: 1;
}

/* ─── SHOWCASE ─── */
.showcase {
  padding: 100px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.showcase-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 420px;
}
.showcase-info {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.showcase-info h3 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.showcase-info > p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-faint);
  margin-bottom: 28px;
}
.tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.tag {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.link-arrow:hover { gap: 10px; text-decoration: none; }
.showcase-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-self: flex-start;
}

.showcase-visual {
  background: linear-gradient(135deg, var(--accent-quiet), var(--accent-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.phone-mock {
  width: 280px;
  height: 500px;
  border-radius: 32px;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.msg {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.5;
}
.msg-user {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}
.msg-bot {
  background: var(--accent-soft);
  color: var(--text-dim);
  margin-left: 20px;
}
.phone-spacer { flex: 1; }
.phone-input {
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-ghost);
}

/* ─── TECHNOLOGIES ─── */
/* Bounded to --max-w like every other section. Dark panel, lifted slightly from the page bg so it reads as a distinct surface; each sublist sits in its own bordered card. */
.technologies {
  background: var(--bg-elevated);
  padding: 100px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  border-radius: 16px;
}

.tech-grid {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.tech-row { display: grid; gap: 24px; }
.tech-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tech-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tech-col-head {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #b8b8c2;
  padding: 18px 20px;
  border-radius: 10px;
}
.tech {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #2a2a32;
  transition: color 0.2s;
}
.tech:hover { color: #0a0a0f; }
.tech-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.tech:hover .tech-logo { transform: scale(1.12); }

/* ─── APPROACH ─── */
.approach {
  padding: 100px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.step { padding: 32px 0; }
.step-num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.12);
  margin-bottom: 16px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-fainter);
}

/* ─── TESTIMONIALS ─── */
.testimonials {
  padding: 100px var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.testimonial {
  padding: 32px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.quote-mark {
  font-size: 28px;
  color: var(--accent);
  opacity: 0.4;
  font-family: Georgia, serif;
  margin-bottom: 12px;
  line-height: 1;
}
.testimonial p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 24px;
}
.testimonial-author .name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}
.testimonial-author .role {
  font-size: 12px;
  color: var(--text-faintest);
}

/* ─── CONTACT ─── */
.contact {
  padding: 100px var(--gutter);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.contact-head { margin-bottom: 48px; }
.contact-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.contact-sub {
  font-size: 17px;
  color: var(--text-fainter);
  max-width: 500px;
  margin: 0 auto;
}

.contact-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-info {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 14px;
  color: var(--text-faintest);
}
.contact-info a { color: var(--text-faint); }
.contact-info a:hover { color: var(--accent); }

/* ─── FOOTER ─── */
.footer {
  padding: 40px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-w);
  margin: 60px auto 0;
}
.footer-logo { height: 24px; opacity: 0.5; }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-bg);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .nav-links { gap: 20px; font-size: 13px; }
  .hero { padding: 120px var(--gutter) 60px; }
  .stats { flex-direction: column; gap: 1px; padding: 0 var(--gutter) 60px; }
  .stat + .stat { border-left: none; border-top: 1px solid var(--border); }
  .services { padding: 80px var(--gutter); }
  .services-grid { grid-template-columns: 1fr; }
  .showcase { padding: 80px var(--gutter); }
  .showcase-card { grid-template-columns: 1fr; min-height: 0; }
  .showcase-info { padding: 40px 28px; }
  .showcase-visual { padding: 40px; min-height: 480px; }
  .approach { padding: 80px var(--gutter); }
  .approach-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .technologies { padding: 80px var(--gutter); }
  .tech-row-3, .tech-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .testimonials { padding: 80px var(--gutter); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact { padding: 80px var(--gutter); }
  .footer { flex-direction: column; gap: 16px; padding: 32px var(--gutter); text-align: center; }
}

@media (max-width: 540px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .approach-grid { grid-template-columns: 1fr; }
  .tech-row-3, .tech-row-4 { grid-template-columns: 1fr; }
  .contact-info { flex-direction: column; gap: 8px; }
  .contact-info span { display: none; }
}
