:root {
  --bg: #07070d;
  --bg-alt: rgba(16, 16, 28, 0.95);
  --text: #f4f7ff;
  --text-muted: #b8c2ff;
  --border: rgba(255, 255, 255, 0.12);
  --button-bg: linear-gradient(135deg, #72d6ff 0%, #a67cff 100%);
  --button-text: #07070d;
  --button-alt: rgba(255, 255, 255, 0.08);
  --shadow: 0 35px 120px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top left, rgba(114, 214, 255, 0.16), transparent 18%),
    radial-gradient(circle at 20% 80%, rgba(166, 124, 255, 0.14), transparent 20%),
    linear-gradient(180deg, #07070d 0%, #0f1120 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  padding-top: 72px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(114, 214, 255, 0.08), transparent 18%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05), transparent 20%);
  pointer-events: none;
}

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

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  background: linear-gradient(180deg, rgba(7, 7, 13, 0.96), rgba(7, 7, 13, 0.82));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 50;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.topbar.scrolled {
  background: rgba(5, 7, 15, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  border-bottom-color: rgba(114, 214, 255, 0.12);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(120deg, #72d6ff, #c48bff 60%, #f9faff);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.nav-toggle {
  display: none;
  width: 45px;
  height: 45px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 999px;
  position: absolute;
  left: 0;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.nav-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span::before {
  top: -12px;
}

.nav-toggle span::after {
  top: 12px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.nav-links a,
.nav-links .button-small {
  transition: color 0.2s ease, transform 0.2s ease, opacity 0.25s ease;
  opacity: 0.95;
}

.nav-links a:hover,
.nav-links .button-small:hover {
  color: #72d6ff;
  transform: translateY(-1px);
  opacity: 1;
}

.nav-links a:hover,
.nav-links .button-small:hover {
  color: #72d6ff;
  transform: translateY(-1px);
}

.nav-open .nav-links {
  display: flex;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }

  .nav-links a,
  .nav-links .button-small {
    width: 100%;
    text-align: left;
    padding: 0.9rem 0;
  }

  .nav-open .nav-links {
    display: flex;
  }

  .hero-actions,
  .nav-links {
    justify-content: center;
  }

  .nav-open .nav-toggle span {
    background: transparent;
  }

  .nav-open .nav-toggle span::before {
    transform: translateY(12px) rotate(45deg);
  }

  .nav-open .nav-toggle span::after {
    transform: translateY(-12px) rotate(-45deg);
  }
}

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, rgba(10, 12, 25, 0.96) 0%, rgba(10, 12, 25, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(114, 214, 255, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(166, 124, 255, 0.08), transparent 22%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(114, 214, 255, 0.18), transparent 60%);
  filter: blur(60px);
  pointer-events: none;
  animation: floatGlow 12s ease-in-out infinite;
}

.hero h1 {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, #ffffff, #c6e8ff, #d4b4ff);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
}

.hero-small {
  padding: 4rem 0 3rem;
}

.hero .button {
  animation: glowPulse 6s ease-in-out infinite alternate;
}

.brand {
  position: relative;
  overflow: hidden;
}

.brand::after {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 80px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-25deg);
  animation: brandShimmer 3s ease-in-out infinite;
}

@keyframes brandShimmer {
  0% { left: -30%; }
  100% { left: 130%; }
}

@keyframes glowPulse {
  from { box-shadow: 0 24px 45px rgba(114, 214, 255, 0.15); }
  to { box-shadow: 0 32px 65px rgba(114, 214, 255, 0.25); transform: translateY(-1px); }
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-12px, 10px); }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  max-width: 800px;
  margin-bottom: 1.2rem;
}

.hero-text {
  color: var(--text-muted);
  max-width: 760px;
  margin-bottom: 2rem;
}

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

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.floating-contact {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #1ebe5b);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  animation: pulseFloat 3.8s ease-in-out infinite alternate;
}

@keyframes pulseFloat {
  0% { transform: translateY(0); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); }
  100% { transform: translateY(-4px); box-shadow: 0 34px 80px rgba(0, 0, 0, 0.28); }
}

.floating-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  opacity: 0.95;
}

.button,
.button-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--button-bg);
  color: var(--button-text);
  font-weight: 700;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 24px 45px rgba(114, 214, 255, 0.15);
}

.button-small {
  padding: 0.9rem 1.4rem;
  font-size: 0.95rem;
}

.button:hover,
.button-small:hover {
  transform: translateY(-2px) scale(1.02);
  opacity: 0.95;
}

.button-alt {
  background: var(--button-alt);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.button-alt:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(114, 214, 255, 0.3);
}

.button,
.button-small {
  background-size: 220% 220%;
}

.button:hover,
.button-small:hover {
  background-position: 100% 0;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

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

.section {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(114, 214, 255, 0.08), transparent 22%),
    radial-gradient(circle at 85% 80%, rgba(166, 124, 255, 0.06), transparent 20%);
  pointer-events: none;
  opacity: 0.8;
  transform: translate3d(0, 0, 0);
  animation: driftSection 20s ease-in-out infinite;
}

.dark-section {
  background: var(--bg-alt);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

@keyframes driftSection {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(18px, -18px); }
}

.section h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  position: relative;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 4rem;
  height: 3px;
  background: linear-gradient(90deg, #72d6ff, #a67cff, #ff8bce);
  border-radius: 999px;
}

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

.card,
.feature,
.case-card,
.cta-box {
  background: rgba(20, 24, 44, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.card:hover,
.case-card:hover,
.cta-box:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(114, 214, 255, 0.24);
  box-shadow: 0 46px 140px rgba(114, 214, 255, 0.12);
}

.card h3,
.feature h3,
.case-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.15rem;
}

.card p,
.feature p,
.case-card p {
  color: var(--text-muted);
}

.price-card {
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(114, 214, 255, 0.1), transparent 28%);
  pointer-events: none;
}

.price-card h3 {
  position: relative;
  z-index: 1;
}

.price {
  margin: 0.75rem 0 0.25rem;
  font-size: 2rem;
  font-weight: 800;
  color: #72d6ff;
  position: relative;
  z-index: 1;
}

.price-note {
  margin: 0 0 1rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.price-card ul {
  position: relative;
  z-index: 1;
}

.card a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #72d6ff;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.card a:hover {
  color: #a67cff;
  transform: translateX(3px);
}

.card a::before {
  content: "📲";
  display: inline-block;
  font-size: 1rem;
}

.how-section {
  background: #111111;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
}

.how-text {
  color: var(--text-muted);
  max-width: 800px;
}

.cta-section {
  padding: 4rem 0 6rem;
}

.cta-box {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(114, 214, 255, 0.08), rgba(166, 124, 255, 0.06));
  pointer-events: none;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.contact-form {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

label {
  display: grid;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

label.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

input,
textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 14, 26, 0.96);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

input:hover,
textarea:hover {
  transform: translateY(-1px);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(114, 214, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(114, 214, 255, 0.1);
  background: rgba(16, 19, 40, 0.98);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.testimonial-author {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

.footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-alt);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

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

.footer a {
  color: var(--text);
}

.faq-list {
  display: grid;
  gap: 1rem;
}

#portfolio .card {
  min-height: 150px;
}

#faq .card {
  background: #111111;
  border: 1px solid var(--border);
}

.error-section {
  padding: 6rem 0 5rem;
}

.error-section .cta-box {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.status-message {
  margin-top: 1rem;
  color: #d1e8ff;
  font-size: 0.95rem;
  opacity: 0.95;
}

@media (max-width: 860px) {
  .nav-container {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions,
  .nav-links {
    justify-content: center;
  }
}
