﻿:root {
  --bg: #060914;
  --bg-2: #0a1127;
  --surface: rgba(16, 20, 35, 0.86);
  --surface-strong: #101426;
  --text: #eef2ff;
  --muted: #b7bfd6;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #2f69ff;
  --primary-2: #7c5cff;
  --success: #49c781;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

html[data-theme="light"] {
  --bg: #f4f7ff;
  --bg-2: #eaf0ff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --text: #101429;
  --muted: #4d5772;
  --line: rgba(16, 20, 41, 0.14);
  --primary: #2458e6;
  --primary-2: #6a50f1;
  --success: #1f9157;
  --shadow: 0 18px 36px rgba(18, 34, 70, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  transition: background-color 0.45s ease, color 0.45s ease, opacity 0.22s ease, transform 0.22s ease;
}

body.page-leave {
  opacity: 0;
  transform: translateY(6px);
}

body.theme-transition,
body.theme-transition * {
  transition: background-color 0.45s ease, color 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease !important;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% 6%, rgba(48, 105, 255, 0.34), transparent 48%),
    radial-gradient(circle at 90% 28%, rgba(41, 111, 255, 0.26), transparent 36%),
    radial-gradient(circle at 58% 58%, rgba(115, 91, 255, 0.12), transparent 33%),
    linear-gradient(130deg, var(--bg-2), var(--bg));
  transition: background 0.45s ease;
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-radial-gradient(circle at 28% 24%, transparent 0, transparent 92px, rgba(255, 255, 255, 0.04) 94px, transparent 95px);
  opacity: 0.18;
}

.container {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.section {
  padding: 5.4rem 0;
}

.section-slim {
  padding: 1rem 0 0;
}

.section-title {
  text-align: center;
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 2.2vw, 2.35rem);
  line-height: 1.25;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 0 2rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header.scrolled {
  background: rgba(7, 11, 25, 0.78);
  border-color: var(--line);
}

html[data-theme="light"] .header.scrolled {
  background: rgba(244, 247, 255, 0.8);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.03em;
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
}

.logo span {
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 6px auto;
  background: var(--text);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.22rem 0.34rem;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  min-width: 98px;
  justify-content: center;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.theme-track {
  width: 50px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(47, 105, 255, 0.12);
  position: relative;
  transition: background-color 0.35s ease, border-color 0.35s ease;
}

.theme-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  position: absolute;
  left: 2px;
  top: 2px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
  box-shadow: 0 6px 16px rgba(47, 105, 255, 0.35);
}

.theme-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.theme-icon {
  font-size: 0.85rem;
  line-height: 1;
  opacity: 0.5;
  transform: scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

html[data-theme="dark"] .theme-icon.moon,
html[data-theme="light"] .theme-icon.sun {
  opacity: 1;
  transform: scale(1);
}

html[data-theme="light"] .theme-knob {
  transform: translateX(24px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--primary), #2660ff 55%, var(--primary-2));
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.84rem 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav a.btn,
.nav a.btn:hover,
.nav a.btn:focus-visible {
  color: #ffffff;
}

html[data-theme="light"] .btn {
  color: #ffffff;
}

html[data-theme="light"] .btn-ghost {
  color: var(--text);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(36, 88, 230, 0.45);
  filter: brightness(1.08);
}

.btn-sm {
  padding: 0.66rem 1.1rem;
  font-size: 0.92rem;
}

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

.hero {
  padding: 6.4rem 0 6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.6rem;
  align-items: center;
}

.hero-copy {
  max-width: 700px;
  width: 100%;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.05rem, 3.8vw, 3.35rem);
  line-height: 1.34;
  max-width: 19ch;
}

.hero p {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.24vw, 1.13rem);
  line-height: 1.7;
  max-width: 62ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.mini-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.08rem;
}

.mini-proof span {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.83rem;
}

.hero-visual {
  position: relative;
  min-height: 390px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 8%, rgba(46, 114, 255, 0.2), transparent 58%),
    linear-gradient(160deg, rgba(16, 20, 39, 0.94), rgba(8, 11, 22, 0.96));
  overflow: hidden;
}

.code-card {
  position: absolute;
  inset: 22% 17% 16% 17%;
  border-radius: 14px;
  border: 1px solid rgba(47, 105, 255, 0.5);
  background: rgba(0, 10, 35, 0.55);
  padding: 1rem;
}

.code-line {
  height: 7px;
  margin: 12px 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(37, 128, 255, 0.2), rgba(44, 120, 255, 0.95), rgba(121, 93, 255, 0.4));
}

.w-95 { width: 95%; }
.w-90 { width: 90%; }
.w-85 { width: 85%; }
.w-70 { width: 70%; }
.w-65 { width: 65%; }
.w-50 { width: 50%; }

.float-icon {
  position: absolute;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(16, 20, 35, 0.92);
  color: #eaf0ff;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: float 5.8s ease-in-out infinite;
}

.i1 { top: 8%; left: 10%; animation-delay: 0.4s; }
.i2 { top: 10%; right: 8%; animation-delay: 1s; }
.i3 { right: 12%; bottom: 17%; animation-delay: 2s; }
.i4 { left: 14%; bottom: 12%; animation-delay: 2.4s; }
.i5 { top: 38%; right: 42%; animation-delay: 1.5s; }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.proof-item {
  text-align: center;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0.9rem;
  border-radius: 14px;
  font-weight: 600;
}

.grid-4,
.portfolio-grid,
.video-grid,
.pricing-grid,
.footer-grid {
  display: grid;
  gap: 1rem;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.project-card,
.video-card,
.price-card,
.contact-box,
.about-wrap {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.35rem;
}

.icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(36, 88, 230, 0.15);
}

.card h3 {
  margin: 0.9rem 0 0.35rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-cta {
  margin-top: 1.35rem;
  display: flex;
  justify-content: center;
}

.project-card {
  overflow: hidden;
}

.project-image {
  height: 174px;
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.p1 { background: linear-gradient(145deg, #0a1127 25%, #2f69ff 140%); }
.p2 { background: linear-gradient(145deg, #101226 15%, #7c5cff 130%); }
.p3 { background: linear-gradient(145deg, #091523 15%, #2580ff 120%); }
.p4 { background: linear-gradient(145deg, #100f28 20%, #2f69ff 120%); }
.p5 { background: linear-gradient(145deg, #121222 15%, #7b58fc 100%); }
.p6 { background: linear-gradient(145deg, #071425 15%, #2875ff 120%); }
.p7 { background: linear-gradient(145deg, #111226 10%, #5c72ff 120%); }
.p8 { background: linear-gradient(145deg, #081327 20%, #6f57fc 130%); }

.project-copy {
  padding: 1rem;
}

.project-copy h3 {
  margin: 0;
}

.project-copy p {
  margin: 0.45rem 0 1rem;
  color: var(--muted);
}

.video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-card {
  padding: 1rem;
}

.video-thumb {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: #0a1127;
  box-shadow: var(--shadow);
}

.video-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.yt-badge {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  width: 48px;
  height: 34px;
  border-radius: 10px;
  background: #ff0033;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
}

.yt-badge svg {
  width: 20px;
  height: 20px;
}

.video-card h3 {
  margin: 0.8rem 0 0;
  font-size: 1rem;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
  padding: 1.2rem;
  position: relative;
}

.price-card h3 {
  margin: 0;
}

.price {
  margin: 0.45rem 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #9bb7ff;
}

.price-card ul {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.price-card li {
  margin: 0.34rem 0;
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.45;
}

.price-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 0.65rem;
  background: var(--primary);
}

.featured {
  border-color: rgba(47, 105, 255, 0.65);
  background:
    radial-gradient(circle at 20% -10%, rgba(47, 105, 255, 0.28), transparent 50%),
    var(--surface);
}

.badge {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: rgba(47, 105, 255, 0.22);
  border: 1px solid rgba(47, 105, 255, 0.45);
  color: #d9e4ff;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.about-wrap {
  padding: 2rem;
  text-align: center;
}

.about-wrap p {
  margin: 0 auto;
  color: var(--muted);
  max-width: 70ch;
}

.contact-box {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background:
    linear-gradient(140deg, rgba(47, 105, 255, 0.14), transparent 52%),
    var(--surface);
}

.contact-box h2 {
  margin-top: 0;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.2;
}

.contact-box p {
  color: var(--muted);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.contact-form {
  border: 1px solid var(--line);
  background: var(--surface-strong);
  border-radius: 14px;
  padding: 1rem;
}

.contact-form label {
  display: block;
  margin: 0.55rem 0 0.3rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0.75rem;
  font: inherit;
}

html[data-theme="light"] .contact-form input,
html[data-theme="light"] .contact-form textarea {
  background: #f5f8ff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(47, 105, 255, 0.45);
  border-color: transparent;
}

.contact-form button {
  margin-top: 0.95rem;
  width: 100%;
}

.contact-form button:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.form-status {
  min-height: 1.35rem;
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-status.success {
  color: #5ad08e;
}

.form-status.error {
  color: #ff6c7f;
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 3.5rem;
  padding: 3rem 0 1.6rem;
}

.footer-grid {
  grid-template-columns: 1.3fr 1fr 1fr;
}

.footer p {
  color: var(--muted);
}

.footer h4 {
  margin: 0 0 0.55rem;
}

.footer a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin: 0.22rem 0;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--text);
}

.socials {
  display: flex;
  gap: 0.55rem;
}

.socials a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.socials a svg {
  width: 16px;
  height: 16px;
}

.socials a:hover,
.socials a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(47, 105, 255, 0.55);
  background: rgba(47, 105, 255, 0.12);
}

.social-facebook {
  color: #1877f2 !important;
}

.social-whatsapp {
  color: #25d366 !important;
}

.social-email {
  color: #ea4335 !important;
}

.footer-bottom {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-hero {
  padding-top: 8rem;
}

.page-hero .section-title {
  margin-bottom: 0.6rem;
}

.page-subtitle {
  text-align: center;
  margin: 0 auto;
  max-width: 64ch;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes float {
  0%,
  100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 1020px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .contact-box,
  .footer-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 320px;
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    left: 4vw;
    right: 4vw;
    top: 76px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    background: var(--surface-strong);
    border-radius: 14px;
    padding: 0.8rem;
    gap: 0.55rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-7px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav .btn {
    width: 100%;
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .theme-switch {
    justify-content: flex-start;
    min-width: 0;
    width: 100%;
    padding: 0.4rem 0.5rem;
  }
}

@media (max-width: 620px) {
  .section {
    padding: 4.2rem 0;
  }

  .proof-grid,
  .grid-4,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 4.2rem 0 3.6rem;
  }

  .hero .container {
    width: 100%;
    padding-inline: 12px;
  }

  .hero-grid {
    gap: 0.95rem;
  }

  .hero h1 {
    max-width: 21ch;
    margin-inline: auto;
    font-size: clamp(1.56rem, 6.7vw, 1.9rem);
    line-height: 1.32;
    text-wrap: balance;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-copy {
    width: 100%;
    margin-inline: auto;
    padding: 1.35rem 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 14, 32, 0.72);
    text-align: center;
  }

  html[data-theme="light"] .hero-copy {
    background: rgba(255, 255, 255, 0.88);
  }

  .hero p {
    margin: 0.95rem auto 0;
    font-size: 0.94rem;
    line-height: 1.6;
    max-width: 35ch;
    text-wrap: pretty;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-cta {
    margin-top: 1.35rem;
    gap: 0.45rem;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn:first-child {
    width: 100%;
    border-radius: 12px;
    background: linear-gradient(120deg, #2d65f8, #3e70ff);
    box-shadow: 0 10px 22px rgba(47, 105, 255, 0.28);
    padding-block: 0.78rem;
  }

  .hero-cta .hero-link {
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #9fb4ff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    box-shadow: none;
  }

  .hero-cta .hero-link:hover,
  .hero-cta .hero-link:focus-visible {
    transform: none;
    filter: none;
    color: #c7d6ff;
  }

  .mini-proof {
    margin-top: 0.9rem;
    gap: 0;
    justify-content: center;
  }

  .mini-proof span {
    display: none;
  }

  .mini-proof span:last-child {
    display: inline-flex;
    opacity: 0.85;
  }

  .hero-visual {
    min-height: 250px;
  }
}
