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

:root {
  --indigo: #4f46e5;
  --violet: #7c3aed;
  --cyan: #06b6d4;
  --sky: #0ea5e9;
  --coral: #f97316;
  --pink: #ec4899;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --gradient-brand: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 45%, var(--cyan) 100%);
  --gradient-accent: linear-gradient(90deg, var(--coral) 0%, var(--pink) 50%, var(--violet) 100%);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max-width: 680px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

a {
  color: var(--indigo);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--pink);
}

/* Scroll progress */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  background: rgba(226, 232, 240, 0.5);
}

.scroll-progress-bar {
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--coral), var(--pink), var(--violet), var(--cyan));
  background-size: 200% 100%;
  animation: border-flow 3s linear infinite;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.5);
}

/* Background effects */

.bg-effects {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora {
  position: absolute;
  inset: -50%;
  background:
    conic-gradient(from 180deg at 50% 50%,
      rgba(79, 70, 229, 0.12),
      rgba(6, 182, 212, 0.1),
      rgba(236, 72, 153, 0.08),
      rgba(124, 58, 237, 0.12),
      rgba(79, 70, 229, 0.12));
  animation: aurora-spin 30s linear infinite;
  filter: blur(60px);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
  animation: orb-drift 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.55), transparent 70%);
  top: -10%;
  left: -8%;
  animation-duration: 22s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.5), transparent 70%);
  top: 28%;
  right: -10%;
  animation-duration: 16s;
  animation-delay: -4s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 70, 229, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  animation: grid-pulse 6s ease-in-out infinite alternate;
}

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

@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(40px, -30px) scale(1.08); }
  66%  { transform: translate(-30px, 35px) scale(0.92); }
  100% { transform: translate(20px, 15px) scale(1.05); }
}

@keyframes grid-pulse {
  from { opacity: 0.35; }
  to   { opacity: 0.85; }
}

@keyframes border-flow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Header */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 3px;
  z-index: 10;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.1);
}

.logo {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--text) 40%, var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: transform 0.2s ease, background 0.3s ease;
  display: inline-block;
}

.logo:hover {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
}

nav {
  display: flex;
  gap: 1.75rem;
}

nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  transition: transform 0.2s ease, color 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 8px rgba(236, 72, 153, 0.5);
}

nav a:hover {
  color: var(--indigo);
}

nav a:hover::after {
  width: 100%;
}

/* Main */

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 2rem 6rem;
  position: relative;
  z-index: 1;
}

/* Hero */

.hero {
  text-align: center;
  margin-bottom: 5.5rem;
}

.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 2.75rem;
}

.hero-logo {
  display: block;
  position: relative;
  max-width: min(440px, 94vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 8px 24px rgba(79, 70, 229, 0.15));
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  text-align: left;
  max-width: 44ch;
  margin: 0 auto;
  padding: 2rem 0 0;
  line-height: 1.85;
  position: relative;
}

.hero-lead::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--coral), var(--pink), var(--violet), var(--cyan), var(--coral));
  background-size: 200% 100%;
  animation: border-flow 3s linear infinite;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.4);
}

/* Expertise */

.expertise {
  margin-bottom: 5rem;
}

.expertise h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 2rem;
  font-weight: 700;
}

.expertise h2::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--gradient-accent);
  flex-shrink: 0;
  animation: border-flow 3s linear infinite;
  background-size: 200% 100%;
}

.expertise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.expertise-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 0.15rem 1rem;
  padding: 1.5rem 1.75rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(15, 23, 42, 0.04),
    0 8px 32px rgba(79, 70, 229, 0.06);
}

.expertise-list li::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(6, 182, 212, 0.08));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.expertise-list li::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transition: left 0.6s ease;
}

.expertise-list li:hover {
  border-color: rgba(79, 70, 229, 0.3);
  box-shadow:
    0 8px 32px rgba(79, 70, 229, 0.15),
    0 0 0 1px rgba(79, 70, 229, 0.1);
}

.expertise-list li:hover::before {
  opacity: 1;
}

.expertise-list li:hover::after {
  left: 120%;
}

.expertise-icon {
  grid-row: 1 / 3;
  align-self: center;
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.35;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.expertise-list li:hover .expertise-icon {
  opacity: 0.7;
  transform: scale(1.1);
}

.expertise-title {
  font-size: 1rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 1;
  grid-column: 2;
}

.expertise-list li:hover .expertise-title {
  background: linear-gradient(90deg, var(--indigo), var(--pink), var(--cyan), var(--indigo));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 2s linear infinite;
}

.expertise-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  grid-column: 2;
}

/* Contact form */

.contact-section h1 {
  font-size: 1.625rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}

.contact-intro {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.06);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea {
  font: inherit;
  font-size: 0.9375rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

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

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-submit {
  align-self: flex-start;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient-brand);
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.75rem;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.form-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.form-notice {
  list-style: none;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.form-notice--success {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: #0e7490;
}

.form-notice--error {
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.25);
  color: #be185d;
}

.form-notice--error li + li {
  margin-top: 0.35rem;
}

/* Legal page */

.legal h1 {
  font-size: 1.625rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
}

.legal section {
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.legal p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal-list {
  list-style: none;
  font-size: 0.9375rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.legal-list strong {
  color: var(--text);
  font-weight: 600;
}

/* Footer */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.site-footer a {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--indigo);
  display: inline-block;
  transition: transform 0.2s ease;
}

.site-footer a:hover {
  color: var(--pink);
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .orb, .grid-overlay, .aurora, .scroll-progress {
    display: none;
  }
}

/* Responsive */

@media (max-width: 480px) {
  .site-header,
  main,
  .site-footer {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  main {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .logo {
    font-size: 0.8125rem;
  }

  nav {
    gap: 1.25rem;
  }

  .orb {
    opacity: 0.35;
  }

  .expertise-list li {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .expertise-icon {
    grid-row: 1;
    grid-column: 1;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }

  .expertise-title,
  .expertise-desc {
    grid-column: 1;
  }
}
