/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0f;
  --surface:   #12121a;
  --surface2:  #1a1a28;
  --accent:    #7c3aed;
  --accent2:   #a855f7;
  --text:      #f8fafc;
  --muted:     #94a3b8;
  --border:    rgba(124, 58, 237, 0.25);
  --radius:    16px;
  --nav-h:     68px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

img, svg { display: block; }

/* ── Container ── */
.container {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px rgba(124, 58, 237, .4);
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(168, 85, 247, .5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,.18);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.06);
  transform: translateY(-2px);
}

.btn-sm { padding: .55rem 1.2rem; font-size: .875rem; }
.btn-full { width: 100%; }

/* ── NAV ── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background .3s, backdrop-filter .3s, border-bottom .3s;
}
#nav.scrolled {
  background: rgba(10, 10, 15, .85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #fff 30%, var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite alternate;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,.55) 0%, transparent 70%);
  top: -160px; left: -180px;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,.35) 0%, transparent 70%);
  bottom: -120px; right: -120px;
  animation-delay: -4s;
}
@keyframes pulse {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.15) translate(30px, -20px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 6rem 5rem;
}

.badge {
  display: inline-block;
  background: rgba(124, 58, 237, .18);
  border: 1px solid var(--border);
  color: var(--accent2);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent2) 0%, #c084fc 50%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── SERVICES ── */
#services {
  padding-block: 6rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.eyebrow {
  display: inline-block;
  color: var(--accent2);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 0 32px rgba(124, 58, 237, .25);
}

.card-icon {
  width: 48px; height: 48px;
  background: rgba(124, 58, 237, .15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--accent2);
}
.card-icon svg { width: 22px; height: 22px; }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .6rem;
  letter-spacing: -.01em;
}
.service-card p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

/* ── CONTACT ── */
#contact {
  padding-block: 6rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
}

/* Form */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.field label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
}
.field input,
.field textarea {
  background: var(--surface2);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  padding: .8rem 1rem;
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder { color: #475569; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,.2);
}
.field input.invalid,
.field textarea.invalid {
  border-color: #ef4444;
}
.field-error {
  font-size: .8rem;
  color: #f87171;
  min-height: 1rem;
}

.form-success {
  text-align: center;
  color: #4ade80;
  font-weight: 600;
  font-size: .95rem;
  padding: .75rem 1rem;
  background: rgba(74, 222, 128, .1);
  border: 1px solid rgba(74, 222, 128, .3);
  border-radius: 8px;
}

/* Contact meta */
.contact-meta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: .5rem;
  min-width: 220px;
}
.contact-meta p {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--muted);
  font-size: .95rem;
}
.contact-meta svg { color: var(--accent2); flex-shrink: 0; }
.contact-meta a { color: var(--muted); transition: color .2s; }
.contact-meta a:hover { color: var(--accent2); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: var(--muted);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-meta { flex-direction: row; flex-wrap: wrap; gap: 1rem; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 2.75rem; }
}
