:root {
  --bg: #050814;
  --bg-alt: #0b1026;
  --card: #101633;
  --text: #f2f4ff;
  --muted: #9ca3c4;
  --accent: #f4c84c;
  --accent-2: #8a2ae3;
  --border: rgba(255, 255, 255, 0.1);
  --focus: #fdf6c3;
}

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

body {
  margin: 0;
  font-family: "Inter", "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 5vw;
  background: rgba(5, 8, 20, 0.9);
  backdrop-filter: blur(12px);
}

.logo {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
}

.primary-nav {
  display: flex;
  gap: 1rem;
}

.primary-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.primary-nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 200ms ease;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--card);
  padding: 1rem 5vw 2rem;
  position: relative;
  z-index: 9;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 0.4rem 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

main {
  padding: 2rem 5vw 4rem;
}

.hero-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.hero-content .eyebrow,
.section-heading .eyebrow {
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin-bottom: 1rem;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
}

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

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f24;
  box-shadow: 0 12px 24px rgba(138, 42, 227, 0.3);
}

.btn.secondary {
  background: rgba(244, 200, 76, 0.1);
  color: var(--text);
  border: 1px solid var(--accent);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.hero-metrics article {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: rgba(15, 21, 53, 0.7);
}

.hero-metrics h3 {
  margin: 0;
  font-size: 1.8rem;
  color: var(--accent);
}

.hero-visual {
  position: relative;
  padding: 2rem;
  border-radius: 24px;
  background: radial-gradient(ellipse at top, rgba(244, 200, 76, 0.15), transparent),
    #070c1d;
  border: 1px solid var(--border);
  overflow: hidden;
}

.hero-photo {
  border-radius: 18px;
  margin-bottom: 1.2rem;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.hero-grid {
  opacity: 0.35;
  margin-bottom: 1rem;
  mix-blend-mode: screen;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.case-slider {
  position: relative;
}

.slider-panels {
  position: relative;
  min-height: 280px;
  margin-bottom: 2.5rem;
}

.case-card {
  position: absolute;
  inset: 0;
  padding: 1.25rem;
  background: rgba(9, 14, 34, 0.85);
  border-radius: 16px;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 240ms ease, transform 240ms ease;
  display: flex;
  flex-direction: column;
}

.case-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.case-card.active {
  opacity: 1;
  transform: translateY(0);
}

.case-card h4 {
  margin: 0.5rem 0;
  font-size: 1.2rem;
  color: var(--text);
}

.case-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.case-label {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.slider-controls {
  position: absolute;
  bottom: -2rem;
  left: 0;
  display: flex;
  gap: 0.6rem;
  z-index: 2;
}

.slider-controls button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: transparent;
  cursor: pointer;
}

.slider-controls button.active {
  background: var(--accent);
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.insights-block,
.stack-section,
.growth-section,
.security-section,
.blueprint-section,
.qa-section,
.contact-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

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

.insight-grid article,
.growth-grid article,
.blueprint-grid article,
.qa-content article {
  background: var(--card);
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.stack-content {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.stack-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stack-content li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.stack-card {
  background: linear-gradient(160deg, rgba(244, 200, 76, 0.2), rgba(138, 42, 227, 0.15));
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(244, 200, 76, 0.3);
}

.security-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.security-section ul {
  padding-left: 1rem;
}

.accordions {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
}

.accordion {
  width: 100%;
  text-align: left;
  padding: 1rem;
  background: var(--card);
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 260ms ease;
  background: #070c1d;
  padding: 0 1rem;
}

.accordion[aria-expanded="true"] + .accordion-panel {
  max-height: 200px;
  padding: 1rem;
}

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

.contact-section .contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--card);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #050b21;
  color: var(--text);
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 140px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form button:focus,
.nav-toggle:focus,
.accordion:focus,
.slider-controls button:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 3rem 5vw;
  background: #030713;
  border-top: 1px solid var(--border);
}

.site-footer h3 {
  margin-top: 0;
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  max-width: 320px;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(5, 8, 20, 0.95);
  border: 1px solid var(--border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 20;
}

.cookie-banner button {
  align-self: flex-start;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  cursor: pointer;
}

.cookie-banner.hidden {
  display: none;
}

.policy-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 5vw 4rem;
}

.policy-page h1,
.policy-page h2,
.policy-page h3,
.policy-page h4 {
  color: var(--accent);
}

.policy-page ul {
  padding-left: 1.2rem;
}

.thanks-wrapper {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

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

@media (max-width: 960px) {
  .primary-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .stack-content {
    grid-template-columns: 1fr;
  }

  .hero-block {
    padding-top: 2rem;
  }
}

@media (max-width: 600px) {
  main {
    padding: 1.5rem 1.5rem 3rem;
  }

  .site-header {
    padding: 1rem 1.5rem;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
  }
}

