@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --ink: #0b1220;
  --ink-2: #141c2e;
  --paper: #f7f1e9;
  --paper-2: #fff8f0;
  --accent: #2dd4bf;
  --accent-2: #f97316;
  --accent-3: #60a5fa;
  --muted: #6b7280;
  --line: #e7dfd5;
  --card: #ffffff;
  --shadow: 0 20px 60px rgba(11, 18, 32, 0.15);
  --radius: 18px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 80% -10%, rgba(45, 212, 191, 0.2), transparent),
    radial-gradient(900px 500px at 10% 10%, rgba(96, 165, 250, 0.18), transparent),
    linear-gradient(180deg, #fdf9f4 0%, #f4ede4 45%, #f8f3ea 100%);
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.6;
  color: var(--ink-2);
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(253, 249, 244, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231, 223, 213, 0.7);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-mark {
  height: 52px;
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 20px rgba(11, 18, 32, 0.16));
}

.nav-links {
  display: flex;
  gap: 22px;
  font-weight: 500;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a.active,
.nav-links a:hover {
  background: var(--ink);
  color: var(--paper);
}

.hero {
  padding: 90px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  line-height: 1.05;
  margin: 18px 0;
}

.hero p {
  font-size: 1.1rem;
  max-width: 520px;
}

.button-row {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.button {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button.primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.button.secondary {
  border-color: var(--ink);
  background: transparent;
}

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

.hero-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.35), transparent 70%);
  top: -30px;
  right: -20px;
}

.hero-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 12px;
  font-weight: 500;
}

.section {
  padding: 70px 0;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 620px;
  margin-bottom: 30px;
}

.cards {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(11, 18, 32, 0.08);
  position: relative;
}

.card h4 {
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 14px;
}

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

.feature {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.feature h5 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.banner {
  background: linear-gradient(120deg, var(--ink), #1f2937);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: center;
}

.banner p {
  color: #e5e7eb;
}

.banner .button.secondary {
  border-color: var(--paper);
  color: var(--paper);
}

.footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer .logo .logo-mark {
  height: 38px;
}

.footer-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.contact-list {
  list-style: none;
  display: grid;
  gap: 10px;
  font-weight: 500;
}

.form {
  display: grid;
  gap: 16px;
}

.form input,
.form textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-family: inherit;
  background: var(--paper-2);
}

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

.cookie-banner {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 92vw);
  background: var(--ink);
  color: var(--paper);
  border-radius: 18px;
  padding: 18px 22px;
  display: none;
  gap: 16px;
  z-index: 30;
  box-shadow: var(--shadow);
}

.cookie-banner.active {
  display: grid;
}

.cookie-banner p {
  color: #e5e7eb;
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-actions .button.cookie-accept {
  font-size: 0.9rem;
  padding: 10px 20px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cookie-actions .button.cookie-accept:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-actions .cookie-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 4px;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: inherit;
}

.cookie-actions .cookie-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.cookie-panel {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 12px 14px;
  border-radius: 12px;
  display: none;
}

.cookie-panel.active {
  display: block;
}

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

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

/* Hamburger button (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 25;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger animation when open */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 720px) {
  /* Show hamburger */
  .nav-toggle {
    display: flex;
  }

  /* Mobile nav menu */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(253, 249, 244, 0.98);
    backdrop-filter: blur(16px);
    padding: 16px 4vw;
    gap: 8px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    border-radius: 12px;
  }

  /* Reduce section padding */
  .hero {
    padding: 50px 0 40px;
  }

  .section {
    padding: 50px 0;
  }

  /* Improve touch targets */
  .button {
    padding: 14px 22px;
    min-height: 44px;
  }

  .form input,
  .form textarea {
    padding: 14px;
    min-height: 44px;
  }

  /* Cookie banner mobile layout */
  .cookie-banner {
    bottom: 12px;
    padding: 16px;
  }

  .cookie-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
  }

  .cookie-actions .button.cookie-accept {
    width: auto;
    text-align: center;
  }

  .cookie-actions .cookie-link {
    width: auto;
  }

  /* Smaller hero decorative element */
  .hero-card::after {
    width: 90px;
    height: 90px;
  }

  /* Footer spacing */
  .footer {
    padding: 30px 0 40px;
  }

  /* Banner section mobile */
  .banner {
    padding: 28px 20px;
    text-align: center;
  }

  .banner .button-row {
    justify-content: center;
  }
}
