* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f6f0;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-dark: #0b1012;
  --text: #11191f;
  --muted: #5f666b;
  --line: rgba(17, 25, 31, 0.08);
  --accent: #54d8a5;
  --accent-strong: #28c995;
  --accent-soft: rgba(84, 216, 165, 0.12);
  --shadow: 0 24px 70px rgba(12, 18, 24, 0.08);
  --shadow-soft: 0 12px 35px rgba(12, 18, 24, 0.05);
  --radius: 28px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(84, 216, 165, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(26, 42, 54, 0.06), transparent 24rem),
    linear-gradient(180deg, #f9f9f4 0%, var(--bg) 100%);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 25, 31, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 25, 31, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 78%);
}

.ambient {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(44px);
  opacity: 0.45;
  z-index: 0;
}

.ambient-a {
  width: 240px;
  height: 240px;
  top: -80px;
  left: -60px;
  background: rgba(84, 216, 165, 0.22);
}

.ambient-b {
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: 8%;
  background: rgba(54, 90, 115, 0.10);
}

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

.site-header,
.hero,
.section,
.contact,
.footer {
  width: min(1160px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 290px;
  max-width: 62vw;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.04));
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.54);
  border: 1px solid rgba(255,255,255,0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

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

.nav a:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.hero {
  margin-top: 48px;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 690px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  color: #1a8f6d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.subtitle {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.68;
  margin-bottom: 34px;
}

.actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #11191f, #18232b);
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(17, 25, 31, 0.16);
}

.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(17, 25, 31, 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  border-color: rgba(84, 216, 165, 0.4);
}

.hero-card {
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(11, 16, 18, 0.98), rgba(15, 26, 29, 0.98));
  padding: 26px;
  box-shadow: 0 28px 70px rgba(12, 18, 24, 0.14);
  border: 1px solid rgba(84, 216, 165, 0.12);
}

.code-window {
  min-height: 330px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(84, 216, 165, 0.22), transparent 18rem),
    linear-gradient(160deg, rgba(4, 12, 14, 0.96), rgba(10, 22, 23, 0.98));
  color: #e9fff7;
  padding: 24px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(84, 216, 165, 0.06);
}

.window-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 34px;
}

.window-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(84, 216, 165, 0.30);
}

.window-dots span:nth-child(2) {
  opacity: 0.58;
}

.window-dots span:nth-child(3) {
  opacity: 0.28;
}

pre {
  margin: 0;
  white-space: pre-wrap;
}

code {
  color: #e0fff4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.8;
}

.section {
  margin-top: 80px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.section h2,
.contact h2,
.about h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}

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

.service-card {
  min-height: 230px;
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.82);
  padding: 28px;
  box-shadow: var(--shadow);
}

.service-card h3 {
  font-size: 23px;
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}

.service-card p,
.about p,
.contact p {
  color: var(--muted);
  line-height: 1.72;
  font-size: 17px;
}

.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: start;
  padding: 42px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.about p {
  margin-bottom: 0;
}

.contact {
  margin-top: 90px;
  text-align: center;
  padding: 60px 34px;
  border-radius: 34px;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 0%, rgba(84, 216, 165, 0.22), transparent 24rem),
    linear-gradient(155deg, #0a1012, #0f1e22);
  box-shadow: 0 30px 80px rgba(12, 18, 24, 0.16);
  border: 1px solid rgba(84, 216, 165, 0.10);
}

.contact .eyebrow {
  color: #9ef1cf;
}

.contact p {
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.contact-actions {
  justify-content: center;
  margin-top: 26px;
}

.contact .btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #05241b;
  box-shadow: 0 18px 40px rgba(84, 216, 165, 0.20);
}

.footer {
  margin-top: 42px;
  padding: 28px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.footer a {
  font-weight: 700;
  color: var(--text);
}

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    margin-top: 28px;
  }

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

  .about {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .section,
  .contact,
  .footer {
    width: min(100% - 28px, 1160px);
  }

  .brand img {
    width: 220px;
    max-width: 72vw;
  }

  .hero {
    gap: 28px;
  }

  .hero-card {
    padding: 16px;
  }

  .code-window {
    min-height: 260px;
    padding: 18px;
  }
}
