:root {
  --bg: #080b0f;
  --bg2: #0d1117;
  --accent: #00e5a0;
  --accent2: #00b8ff;
  --text: #e8edf3;
  --muted: #6b7a8d;
  --border: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.03);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top right, rgba(0, 229, 160, 0.08), transparent 24%),
    radial-gradient(circle at bottom left, rgba(0, 184, 255, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg), var(--bg2) 60%, #0a1016);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.4;
  z-index: 1000;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--accent);
  color: #081019;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  backdrop-filter: blur(20px);
  background: rgba(8, 11, 15, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-logo span {
  color: var(--accent);
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

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

.hero,
.content-section {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding-right: 2rem;
  padding-left: 2rem;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 76px);
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.hero-glow,
.hero-glow2 {
  position: absolute;
  pointer-events: none;
}

.hero-glow {
  top: 18%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.07) 0%, transparent 70%);
}

.hero-glow2 {
  bottom: 8%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 184, 255, 0.05) 0%, transparent 70%);
}

.hero-eyebrow,
.section-label {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero h1,
.section-title,
.case-name,
.blog-title {
  font-family: "Syne", sans-serif;
}

.hero h1 {
  margin: 0 0 2rem;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.line-accent {
  display: block;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 580px;
  margin: 0 0 3rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.8;
}

.hero-sub strong {
  color: var(--text);
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 2rem;
}

.signal {
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(0, 229, 160, 0.18);
  border-radius: 999px;
  background: rgba(0, 229, 160, 0.06);
  color: #cfeee5;
  font-size: 0.82rem;
  font-weight: 500;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #080b0f;
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 229, 160, 0.3);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(0, 229, 160, 0.05);
}

.divider {
  width: min(1100px, calc(100% - 4rem));
  height: 1px;
  margin: 0 auto;
  background: var(--border);
}

.content-section {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.approach-section {
  position: relative;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.approach-card {
  min-height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
}

.approach-card h3 {
  margin: 0 0 0.75rem;
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.approach-card p {
  margin: 0;
  color: #b0bcc8;
}

.approach-step {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.section-title {
  margin: 0 0 3.5rem;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cases-grid {
  display: grid;
  gap: 1.5rem;
}

.case-card,
.stack-group,
.blog-card,
.blog-post-item {
  background: var(--card);
  border: 1px solid var(--border);
}

.case-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 2rem 2.5rem;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.case-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.case-card:hover,
.case-card.featured {
  border-color: rgba(0, 229, 160, 0.2);
}

.case-card:hover::before,
.case-card.featured::before {
  opacity: 1;
}

.case-card.featured {
  background: rgba(0, 229, 160, 0.03);
}

.case-tag,
.stack-group-title,
.blog-tag {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.case-tag,
.stack-group-title {
  color: var(--accent);
}

.blog-tag {
  color: var(--accent2);
}

.case-name {
  margin: 0 0 0.25rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.case-desc {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.case-body,
.blog-body,
.contact-body {
  color: #b0bcc8;
}

.case-body {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0 0 1.2rem;
}

.case-facts div {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.case-facts dt {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-facts dd {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.case-highlight {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1.25rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 229, 160, 0.2);
  border-radius: 4px;
  background: rgba(0, 229, 160, 0.1);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stack-group {
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.3s ease;
}

.stack-group:hover {
  border-color: rgba(0, 229, 160, 0.15);
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.blog-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  border-radius: 8px;
  padding: 3rem;
}

.blog-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 184, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.blog-title {
  margin: 0 0 1rem;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.blog-body {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.blog-posts {
  display: grid;
  gap: 1rem;
}

.blog-post-item {
  border-radius: 6px;
  padding: 1rem;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.blog-post-item:hover {
  border-color: rgba(0, 184, 255, 0.3);
  background: rgba(0, 184, 255, 0.03);
}

.blog-post-item-title {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.blog-post-item-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact-inner .section-title {
  margin-bottom: 1rem;
}

.contact-body {
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.contact-cta {
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .site-nav {
    padding: 1rem;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .content-section {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 3rem;
  }

  .content-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .blog-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .approach-grid,
  .case-facts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
