/* ===== Variables ===== */
:root {
  --bg: #0a0b0d;
  --bg-elevated: #111215;
  --text: #e8e9eb;
  --text-muted: #8b8d92;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.15);
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", "DM Sans", system-ui, sans-serif;
  --space: 1.5rem;
  --max-width: 720px;
  --header-height: 72px;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ===== Background: noise ===== */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  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)'/%3E%3C/svg%3E");
}

/* ===== Background: gradient orbs ===== */
.orb-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.gradient-orb--1 {
  width: 80vmax;
  height: 80vmax;
  top: -30%;
  left: -20%;
  background: radial-gradient(circle at center, rgba(0, 212, 170, 0.5) 0%, rgba(0, 212, 170, 0.2) 30%, rgba(0, 212, 170, 0.05) 55%, transparent 70%);
  filter: blur(60px);
  animation: orb-float 18s ease-in-out infinite, orb-breathe 7s ease-in-out infinite;
}

.gradient-orb--2 {
  width: 70vmax;
  height: 70vmax;
  top: 30%;
  right: -25%;
  background: radial-gradient(circle at center, rgba(100, 180, 255, 0.45) 0%, rgba(100, 180, 255, 0.15) 30%, rgba(100, 180, 255, 0.04) 55%, transparent 70%);
  filter: blur(60px);
  animation: orb-float 22s ease-in-out infinite 2s, orb-breathe 7s ease-in-out 1.5s infinite;
}

.gradient-orb--3 {
  width: 65vmax;
  height: 65vmax;
  bottom: -25%;
  left: 20%;
  background: radial-gradient(circle at center, rgba(160, 100, 255, 0.4) 0%, rgba(160, 100, 255, 0.12) 30%, rgba(160, 100, 255, 0.03) 55%, transparent 70%);
  filter: blur(60px);
  animation: orb-float 20s ease-in-out infinite 4s, orb-breathe 7s ease-in-out 3s infinite;
}

.gradient-orb--mouse {
  width: 50vmax;
  height: 50vmax;
  top: 50%;
  left: 50%;
  margin: -25vmax 0 0 -25vmax;
  background: radial-gradient(circle at center, rgba(255, 200, 100, 0.35) 0%, rgba(255, 180, 80, 0.12) 30%, rgba(255, 160, 60, 0.02) 55%, transparent 70%);
  filter: blur(50px);
  transform: translate(0, 0);
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, -5%) scale(1.06); }
  66% { transform: translate(-3%, 4%) scale(0.97); }
}

@keyframes orb-breathe {
  0%, 100% { opacity: 0.92; }
  50% { opacity: 1; }
}

/* ===== Layout ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space);
  z-index: 10;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--text-muted); font-weight: 500; }

.nav {
  display: flex;
  gap: 1.75rem;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--accent); }

main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--header-height) + 2rem) var(--space) 4rem;
}

/* ===== Hero ===== */
.hero {
  padding: 3rem 0 4rem;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__label {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero__title-line { display: block; }

.hero__title-line--accent {
  background: linear-gradient(135deg, var(--accent), #00a88a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-glow 4s ease-in-out infinite;
}

@keyframes title-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 32ch;
  margin: 0 0 2rem;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: fit-content;
}
.hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-dim);
}

/* ===== Scroll-in animation ===== */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Services ===== */
.services { padding: 4rem 0; }

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
  color: var(--text);
}

.services__grid { display: grid; gap: var(--space); }

.card {
  padding: 1.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  border-color: rgba(0, 212, 170, 0.2);
  box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.1);
}

.card__icon {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.card p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* ===== Contact ===== */
.contact { padding: 4rem 0; }

.contact__intro { color: var(--text-muted); margin: 0 0 1.5rem; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
}

.contact-form label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.contact-form .required { color: var(--accent); }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.btn-submit {
  margin-top: 0.5rem;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-dim);
}
.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contact-form__feedback {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}
.contact-form__feedback--success { color: var(--accent); }
.contact-form__feedback--error { color: #e87070; }

.contact__note { margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); }

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 2rem var(--space);
  text-align: center;
  border-top: 1px solid var(--border);
}
.footer p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .gradient-orb { animation: none; opacity: 0.35; }
  .hero__title-line--accent { animation: none; }
  .animate-in { transition: none; }
}
