:root {
  --bg: #0b1020;
  --bg-soft: #111833;
  --text: #e8ecff;
  --muted: #9eb0d8;
  --line: rgba(181, 195, 240, 0.2);
  --accent: #21d4a5;
  --accent-2: #0ea5e9;
  --card: rgba(17, 24, 51, 0.72);
  --shadow: 0 24px 64px rgba(7, 11, 26, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(33, 212, 165, 0.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.18), transparent 45%),
    linear-gradient(180deg, #080d1b 0%, #0d1328 55%, #0a1021 100%);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.6;
  animation: float 12s ease-in-out infinite;
}

.blob-1 {
  width: 400px;
  height: 400px;
  top: -10px;
  left: -150px;
  background: linear-gradient(45deg, rgba(33, 212, 165, 0.35), rgba(14, 165, 233, 0.1));
}

.blob-2 {
  width: 450px;
  height: 450px;
  bottom: 5%;
  right: -150px;
  background: linear-gradient(45deg, rgba(14, 165, 233, 0.35), rgba(33, 212, 165, 0.1));
  animation-delay: 2s;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(166, 180, 225, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(166, 180, 225, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 85%);
}

.topbar,
.hero,
.main-content,
.footer {
  position: relative;
  z-index: 1;
}

.topbar {
  width: min(1120px, calc(100% - 3rem));
  margin: 1.25rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 16, 33, 0.6);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
}

.brand-mark {
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-size: 1.3rem;
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

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

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

.nav-links a.active {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}

.hero, .main-content {
  width: min(1120px, calc(100% - 3rem));
  margin: 4rem auto 3rem;
  animation: reveal 700ms ease-out both;
}

.kicker {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  margin: 0 0 1.2rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

h1 span {
  color: #7ee5ff;
  background: linear-gradient(to right, #7ee5ff, var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  margin: 1.5rem 0 0;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 65ch;
}

/* Services Grid Layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 212, 165, 0.4);
}

.service-icon {
  font-family: "JetBrains Mono", monospace;
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  display: inline-block;
  background: rgba(33, 212, 165, 0.1);
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
}

.service-card h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.3rem;
  font-weight: 600;
}

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

/* Forms / Contact Page */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info h2 {
  font-size: 2rem;
  margin-top: 0;
}

.contact-method {
  margin-top: 2rem;
}

.contact-method h4 {
  margin: 0 0 0.5rem 0;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
}

.contact-method p {
  margin: 0;
  font-size: 1.1rem;
}

.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(7, 11, 26, 0.5);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Buttons */
.cta-row {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0bc5ea);
  color: #03221a;
  box-shadow: 0 10px 22px rgba(10, 208, 174, 0.2);
}

.btn-secondary {
  border: 1px solid rgba(126, 229, 255, 0.3);
  color: #d9f7ff;
  background: rgba(12, 23, 44, 0.5);
}

/* Footer */
.footer {
  width: min(1120px, calc(100% - 3rem));
  margin: auto auto 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  color: #a8b7df;
  font-size: 0.87rem;
}

.footer p {
  margin: 0;
}

.footer p:nth-child(2) {
  text-align: center;
}

.footer p:nth-child(3) {
  text-align: right;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(12px) translateX(8px); }
}

@media (max-width: 768px) {
  .topbar, .hero, .main-content, .footer {
    width: calc(100% - 1.5rem);
  }

  .topbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 0.5rem;
  }

  .footer p:nth-child(2), .footer p:nth-child(3) {
    text-align: left;
  }
}