/* TealKey — Bamboo Teal theme (shadcn/ui, by Serafim), hand-translated to plain CSS */

:root {
  --background: oklch(0.181 0.008 181.919);
  --foreground: oklch(0.941 0.003 197.102);
  --card: oklch(0.216 0.009 184.301);
  --card-foreground: oklch(0.941 0.003 197.102);
  --popover: oklch(0.216 0.009 184.301);
  --popover-foreground: oklch(0.941 0.003 197.102);
  --primary: oklch(0.69 0.061 188.984);
  --primary-foreground: oklch(0 0 0);
  --secondary: oklch(0.285 0.017 183.826);
  --secondary-foreground: oklch(0.941 0.003 197.102);
  --muted: oklch(0.254 0.016 189.311);
  --muted-foreground: oklch(0.708 0.02 192.636);
  --accent: oklch(0.462 0.024 184.671);
  --accent-foreground: oklch(0.941 0.003 197.102);
  --destructive: oklch(0.718 0.149 15.897);
  --destructive-foreground: oklch(0.181 0.008 181.919);
  --border: oklch(0.339 0.02 191.201);
  --input: oklch(0.216 0.009 184.301);
  --ring: oklch(0.69 0.061 188.984);

  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-lg: calc(var(--radius) + 4px);
  --radius-xl: calc(var(--radius) + 8px);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --glow-accent: #2dd4bf;

  --shadow-color: #000000;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

/* Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--background) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--foreground);
}

.brand-logo {
  height: 46px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--foreground);
  padding: 8px 10px;
  cursor: pointer;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--primary) 60%, transparent);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px -6px color-mix(in oklab, var(--primary) 70%, transparent);
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero */

.hero {
  padding: 140px 0 110px;
  position: relative;
  overflow: hidden;
  background: #050707;
}

.hero-sparkles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-glow-line {
  position: relative;
  height: 2px;
  width: 100%;
  max-width: 340px;
  margin: 8px 0 28px;
  background: var(--glow-accent);
  box-shadow:
    0 0 10px 2px color-mix(in oklab, var(--glow-accent) 95%, transparent),
    0 0 36px 6px color-mix(in oklab, var(--glow-accent) 75%, transparent),
    0 0 90px 16px color-mix(in oklab, var(--glow-accent) 45%, transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--primary);
  background: color-mix(in oklab, var(--primary) 14%, transparent);
  border: 1px solid color-mix(in oklab, var(--primary) 30%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero h1 .accent-text {
  background: linear-gradient(90deg, var(--glow-accent), color-mix(in oklab, var(--glow-accent) 45%, white));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: var(--muted-foreground);
  margin: 0 0 36px;
  max-width: 560px;
}

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

/* Section shell */

section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 620px;
  margin: 0 0 48px;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--muted-foreground);
  font-size: 1.05rem;
  margin: 0;
}

/* Cards / grid */

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: color-mix(in oklab, var(--primary) 50%, var(--border));
  transform: translateY(-3px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--primary) 16%, transparent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

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

/* Process steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 28px 20px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.step p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-grid p {
  color: var(--muted-foreground);
  font-size: 1.02rem;
}

.pill-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pill-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--foreground);
  font-size: 0.96rem;
}

.pill-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--primary);
  flex: none;
}

/* Case studies placeholder */

.placeholder-card {
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  color: var(--muted-foreground);
  background: color-mix(in oklab, var(--card) 60%, transparent);
}

/* Contact */

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 56px;
  text-align: center;
}

.contact-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.contact-card p {
  color: var(--muted-foreground);
  margin: 0 0 32px;
  font-size: 1.05rem;
}

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

/* Footer */

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  padding: 96px 0 32px;
  background: #050707;
  --glow-intensity: 0.25;
}

.footer-glow {
  position: absolute;
  left: 50%;
  bottom: -35%;
  width: 130%;
  aspect-ratio: 1.6 / 1;
  transform: translateX(-50%);
  background: radial-gradient(
    closest-side,
    color-mix(in oklab, var(--glow-accent) calc(var(--glow-intensity) * 90%), transparent),
    transparent 72%
  );
  opacity: calc(0.4 + var(--glow-intensity) * 0.6);
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
  animation: footer-glow-breathe 6s ease-in-out infinite;
}

@keyframes footer-glow-breathe {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.06); }
}

.footer-key-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  perspective: 700px;
  margin-bottom: 28px;
}

.footer-key {
  width: 34px;
  height: auto;
  filter: drop-shadow(0 0 14px color-mix(in oklab, var(--glow-accent) 70%, transparent));
  animation: footer-key-float-spin 5s ease-in-out infinite;
  will-change: transform;
}

@keyframes footer-key-float-spin {
  0%   { transform: perspective(700px) translateY(0) rotateY(0deg); }
  25%  { transform: perspective(700px) translateY(-10px) rotateY(90deg); }
  50%  { transform: perspective(700px) translateY(0) rotateY(180deg); }
  75%  { transform: perspective(700px) translateY(10px) rotateY(270deg); }
  100% { transform: perspective(700px) translateY(0) rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-key {
    animation: none;
  }
  .footer-glow {
    animation: none;
  }
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted-foreground);
  font-size: 0.88rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-mark {
  height: 16px;
  width: auto;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted-foreground);
}

.footer-links a:hover {
  color: var(--foreground);
}

/* Reveal-on-scroll */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .nav-links.nav-links-open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .nav-cta .btn-outline {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .grid-3,
  .steps {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 96px 0 64px;
  }
  .contact-card {
    padding: 36px 24px;
  }
}
