:root {
  --bg-1: #16092f;
  --bg-2: #132a53;
  --text: #edf3ff;
  --muted: #c2ccf2;
  --line: rgba(255, 188, 103, 0.28);
  --accent-1: #f857a6;
  --accent-2: #7b61ff;
  --accent-3: #fdbb2d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 0%, rgba(251, 99, 193, 0.42) 0%, rgba(0, 0, 0, 0) 50%),
    radial-gradient(circle at 100% 15%, rgba(255, 192, 98, 0.28) 0%, rgba(0, 0, 0, 0) 40%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2) 58%, #070a1f);
  line-height: 1.55;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 5vw;
  backdrop-filter: blur(14px);
  background: rgba(12, 9, 33, 0.75);
  border-bottom: 1px solid rgba(255, 178, 111, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo {
  width: 42px;
  height: 42px;
}

.ring {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 5;
  stroke-linecap: round;
}

.ring-main {
  stroke-dasharray: 210;
  animation: spin 6.5s linear infinite;
  transform-origin: center;
}

.ring-secondary {
  stroke-dasharray: 100;
  animation: spinReverse 8s linear infinite;
  transform-origin: center;
}

.logo-path {
  fill: none;
  stroke: #eef7ff;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(125, 201, 255, 0.58));
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinReverse {
  to {
    transform: rotate(-360deg);
  }
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  transition: color 150ms ease, background 150ms ease;
}

nav a:hover {
  color: var(--text);
  background: rgba(248, 87, 166, 0.18);
}

main,
.footer {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.hero {
  padding: 6.5rem 0 4rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: #ffc885;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1.08;
  max-width: 900px;
}

.lead,
.section-lead {
  color: var(--muted);
  max-width: 900px;
}

.lead {
  margin: 1.2rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.9rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 13px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.1rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn.primary {
  color: #031127;
  background: linear-gradient(130deg, var(--accent-1), var(--accent-3));
  box-shadow: 0 12px 32px rgba(248, 87, 166, 0.28);
}

.btn.ghost {
  color: var(--text);
  background: rgba(123, 97, 255, 0.22);
  border: 1px solid rgba(255, 186, 118, 0.3);
}

.hero-stats {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.hero-stats li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.02);
}

.hero-stats strong {
  display: block;
  margin-bottom: 0.3rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.95rem;
}

.content {
  padding: 3.2rem 0;
}

.content h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
}

.grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.95rem;
}

.cards,
.portfolio-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards article,
.project-card,
.process-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
}

.cards p,
.process-grid p,
.project-card p {
  color: var(--muted);
}

.process-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.process-grid article span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  margin-bottom: 0.7rem;
  color: #8fc8ff;
  font-size: 0.84rem;
  font-weight: 700;
}

.project-card {
  text-decoration: none;
  color: var(--text);
  transition: transform 150ms ease, border-color 150ms ease;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(248, 87, 166, 0.8);
}

.project-card span {
  color: #ffc888;
  font-weight: 600;
}

.project-card.muted {
  opacity: 0.85;
}

.footer {
  margin-top: 3.3rem;
  padding: 2rem 0 2.4rem;
  border-top: 1px solid rgba(160, 186, 255, 0.2);
}

.footer h2 {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
}

.mail {
  margin-top: 0.62rem;
  display: inline-block;
  text-decoration: none;
  color: #ffc888;
  font-weight: 600;
}

.legal-links {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.legal-links a {
  color: var(--muted);
  text-decoration: none;
}

.copyright {
  margin-top: 1.1rem;
  color: #aeb3e1;
}

.contact-form-wrap {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
}

.contact-form-wrap h3 {
  margin-bottom: 0.9rem;
}

.contact-form {
  display: grid;
  gap: 0.62rem;
  max-width: 680px;
}

.contact-form label {
  font-size: 0.92rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  border: 1px solid rgba(255, 186, 118, 0.35);
  background: rgba(10, 10, 30, 0.58);
  color: var(--text);
  border-radius: 10px;
  padding: 0.64rem 0.72rem;
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(248, 87, 166, 0.55);
  outline-offset: 1px;
}

.contact-form .hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.contact-status {
  min-height: 1.2rem;
  color: #ffd18f;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 760px) {
  .topbar {
    padding: 0.9rem 4vw;
  }

  nav {
    gap: 0.2rem;
  }

  nav a {
    font-size: 0.9rem;
  }
}
