/* Base */
:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --card: rgba(30, 41, 59, 0.7);
  --text: #f8fafc;
  --muted: #94a3b8;
  --brand: #38bdf8;
  --brand-2: #818cf8;
  --accent: #34d399;
  --ring: rgba(56, 189, 248, 0.5);
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --glass: rgba(30, 41, 59, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
}

:root.light {
  --bg: #ffffff;
  --bg-soft: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #0284c7;
  --brand-2: #6366f1;
  --accent: #059669;
  --ring: rgba(2, 132, 199, 0.4);
  --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --glass: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto
}

.section {
  padding: 96px 0;
  position: relative;
}

.section.tinted {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.03))
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 48px;
  letter-spacing: -0.02em;
  text-align: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border)
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 0
}

.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center
}

.nav a {
  padding: 8px 16px;
  border-radius: 99px;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .06)
}

.icon-btn {
  background: none;
  border: 1px solid var(--glass-border);
  color: var(--text);
  padding: 8px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.2s;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--brand);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Light header overrides */
:root.light .site-header {
  background: rgba(255, 255, 255, .85)
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 30%, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

:root.light .hero h1 {
  background: linear-gradient(135deg, #0f172a 30%, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 20px;
  margin-bottom: 32px;
  max-width: 540px;
}

.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 32px 0 0;
  padding: 0;
  list-style: none
}

.badges li {
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 99px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.hero-media {
  position: relative;
}

.hero-media img {
  box-shadow: 0 0 100px rgba(56, 189, 248, 0.2);
  border: 1px solid var(--glass-border);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

.grid-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(129, 140, 248, 0.08), transparent 25%);
  pointer-events: none
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  cursor: pointer;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  font-weight: 600;
  font-size: 16px;
}

.btn-sm {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-primary {
  background: var(--text);
  border: 0;
  color: var(--bg);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

:root.light .btn-primary {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.site-header .nav .btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .06);
  border-color: var(--glass-border);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, .06);
  border-color: var(--text);
}

/* Cards & grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--brand);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.card h3 {
  margin: 16px 0 12px;
  font-size: 20px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 8px;
  display: inline-block;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  aspect-ratio: 16/10;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(0.4, 0, 0.2, 1)
}

.portfolio-item:hover img {
  transform: scale(1.05)
}

.portfolio-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  opacity: 0;
  transition: 0.3s;
}

.portfolio-item:hover .portfolio-caption {
  opacity: 1;
}

.portfolio-caption h4 {
  margin: 0 0 8px;
  font-size: 24px;
}

.portfolio-caption p {
  margin: 0;
  color: #cbd5e1;
  font-size: 16px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 24px;
  position: relative;
}

.steps li span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--brand);
  font-weight: 800;
  font-size: 20px;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.steps p {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
}

.price-card .price {
  font-size: 48px;
  font-weight: 800;
  margin: 24px 0;
  letter-spacing: -0.02em;
}

.price-card .price span {
  font-size: 18px;
  color: var(--muted);
  font-weight: 500;
}

.price-card ul {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-card ul li {
  display: flex;
  gap: 12px;
  color: var(--muted);
  align-items: center;
}

.price-card ul li::before {
  content: "✓";
  color: var(--brand);
  font-weight: bold;
}

.price-card .ribbon {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--brand);
  color: #000;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.price-card.popular {
  border-color: var(--brand);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.1);
  transform: scale(1.05);
  z-index: 1;
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px
}

blockquote {
  margin: 0;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
}

blockquote p {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.5;
  font-style: italic;
}

blockquote cite {
  color: var(--text);
  font-weight: 600;
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 12px;
}

blockquote cite::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--brand);
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.stat {
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  text-align: center
}

.stat span {
  display: block;
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.stat {
  font-size: 14px;
  color: var(--muted);
}

/* Forms */
.contact-form {
  background: var(--card);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 48px;
  box-shadow: var(--shadow)
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px
}

.form-grid .full {
  grid-column: 1/-1
}

label span {
  display: block;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  outline: none;
  transition: 0.2s;
  font-family: inherit;
}

:root.light input,
:root.light textarea {
  background: #f8fafc;
  border-color: #cbd5e1;
}

input:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
  background: rgba(0, 0, 0, 0.3);
}

.form-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  justify-content: space-between;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 300px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 64px 0 32px;
  background: rgba(0, 0, 0, 0.2)
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  margin-bottom: 48px;
}

.footer-brand .logo {
  font-size: 24px;
  margin-bottom: 12px;
  display: inline-block;
}

.footer-brand p {
  color: var(--muted);
  max-width: 300px;
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  color: var(--muted);
  transition: 0.2s;
}

.footer-nav a:hover {
  color: var(--brand);
}

.footer-copy {
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--glass-border);
  padding-top: 32px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .badges {
    justify-content: center;
  }

  .hero-media {
    order: -1;
    max-width: 600px;
    margin: 0 auto;
  }

  .grid-3,
  .portfolio-grid,
  .pricing,
  .steps,
  .testimonials,
  .stats {
    grid-template-columns: 1fr;
  }

  .price-card.popular {
    transform: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  /* Mobile menu logic exists in JS */
  .burger {
    display: flex
  }

  .section-title {
    font-size: 36px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .form-note {
    max-width: none;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity .3s;
  backdrop-filter: blur(10px);
}

.lightbox.open {
  opacity: 1
}

.lightbox-content {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 16px
}

.lightbox img {
  max-height: 80vh;
  width: auto;
  align-self: center;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
  color: #e5e7eb;
  text-align: center;
  font-size: 18px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 24px;
  transition: 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
}