/* css/style.css */
:root {
  --bg: #ffffff;
  --bg-soft: #f8f7fb;
  --surface: #ffffff;
  --surface-hover: #fdfcff;
  --border: #e8e5ee;
  --border-light: #d9d4e2;
  --text: #17141d;
  --text-soft: #403b49;
  --muted: #706a79;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --accent-dark: #5b21b6;
  --success: #61d6a2;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1160px;
  --radius: 8px;
  --radius-lg: 14px;
  --section-space: 96px;
  --shadow: 0 20px 60px rgba(34, 20, 54, 0.1);
  --transition: 220ms ease;
}

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

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: var(--section-space) 0;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: #cfc2e6;
  background: var(--surface-hover);
  box-shadow: 0 18px 44px rgba(43, 24, 70, 0.1);
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 17px;
  font-weight: 500;
  line-height: 1.2;
  transition: filter var(--transition), transform var(--transition), border-color var(--transition), background-color var(--transition);
}

.btn:hover {
  filter: brightness(1.14);
  transform: translateY(-1px);
}

.btn-primary {
  border-color: #8b5cf6;
  background: linear-gradient(180deg, #8448ed 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 8px 24px rgba(124, 58, 237, 0.2);
}

.btn-secondary {
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: #bdb5c9;
  background: #f8f6fb;
}

.btn-large {
  min-height: 51px;
  padding: 13px 21px;
}

.navbar {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.navbar::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), #d946ef, var(--accent), transparent);
  background-size: 200% 100%;
  content: "";
  animation: gradient-slide 5s linear infinite;
}

.navbar.scrolled,
.navbar.menu-active {
  border-color: rgba(46, 35, 59, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 40px rgba(43, 24, 70, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: inline-grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid rgba(167, 139, 250, 0.42);
  border-radius: 7px;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.16), rgba(124, 58, 237, 0.04));
  color: #6d28d9;
  font-size: 10px;
  letter-spacing: -0.03em;
}

.logo-accent {
  color: var(--accent-light);
}

.nav-toggle {
  display: flex;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:first-child {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-menu {
  position: absolute;
  top: 70px;
  right: 0;
  left: 0;
  display: flex;
  max-height: 0;
  overflow: hidden;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.98);
  opacity: 0;
  transition: max-height 300ms ease, opacity var(--transition), padding var(--transition), border-color var(--transition);
}

.nav-menu.open {
  max-height: 430px;
  padding: 14px 20px 20px;
  border-color: var(--border);
  opacity: 1;
}

.nav-menu > a:not(.btn) {
  padding: 12px 8px;
  color: var(--text-soft);
  font-size: 14px;
}

.nav-menu > a:not(.btn):hover {
  color: var(--text);
}

.nav-cta {
  margin-top: 8px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  overflow: hidden;
  align-items: center;
  padding: 130px 0 76px;
  border-bottom: 1px solid var(--border);
  background-image: radial-gradient(circle at center, rgba(68, 46, 91, 0.11) 1px, transparent 1px);
  background-size: 26px 26px;
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.2) 60%, var(--bg));
  content: "";
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero-glow-one {
  top: -120px;
  left: 50%;
  width: 500px;
  height: 350px;
  transform: translateX(-50%);
  background: rgba(124, 58, 237, 0.13);
}

.hero-glow-two {
  right: -180px;
  bottom: 0;
  width: 380px;
  height: 380px;
  background: rgba(88, 28, 135, 0.06);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  border: 1px solid #ded8e8;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.85);
  color: #625b6c;
  font-size: 12px;
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(97, 214, 162, 0.1);
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(45px, 11vw, 79px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.hero h1 span {
  background: linear-gradient(95deg, #211a2c 10%, #7540c7 65%, #7c3aed 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 690px;
  margin: 27px auto 0;
  color: #6f6978;
  font-size: 17px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 34px;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 42px;
}

.section-heading h2,
.why-intro h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(35px, 8vw, 52px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.07;
}

.section-heading > p:last-child {
  max-width: 530px;
  margin: 0;
  color: var(--muted);
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--accent-light);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.service-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  padding: 25px;
}

.service-card::after {
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 50%;
  content: "";
}

.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 44px;
  place-items: center;
  border: 1px solid #ddd3eb;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.09);
  color: #7c3aed;
}

.card-icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.service-card h3,
.why-card h3 {
  margin: 0 0 9px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.service-card p,
.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.card-number {
  position: absolute;
  top: 27px;
  right: 24px;
  color: #aaa3b2;
  font-family: monospace;
  font-size: 11px;
}

.packages-section {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.packages-grid {
  display: grid;
  gap: 14px;
}

.package-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(43, 24, 70, 0.04);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.package-card:hover {
  transform: translateY(-4px);
  border-color: #cfc2e6;
  box-shadow: 0 18px 44px rgba(43, 24, 70, 0.09);
}

.package-card.featured {
  border-color: rgba(124, 58, 237, 0.4);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.045), #fff 42%);
}

.package-label {
  margin: 0 0 27px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.package-card h3 {
  margin: 0 0 13px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.package-card > p:not(.package-label) {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.package-card ul {
  display: grid;
  gap: 11px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.package-card li {
  position: relative;
  padding-left: 21px;
  color: var(--text-soft);
  font-size: 13px;
}

.package-card li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--accent);
  content: "✓";
}

.package-card .text-link {
  margin-top: auto;
}

.section-heading.centered {
  align-items: center;
  text-align: center;
}

.section-heading.centered .section-kicker {
  margin-bottom: -8px;
}

.why-layout {
  display: grid;
  gap: 48px;
}

.why-intro {
  align-self: center;
}

.why-intro > p:not(.section-kicker) {
  max-width: 430px;
  margin: 23px 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6d28d9;
  font-size: 14px;
  font-weight: 500;
}

.text-link span {
  transition: transform var(--transition);
}

.text-link:hover span {
  transform: translateX(4px);
}

.why-grid {
  display: grid;
  gap: 12px;
}

.why-card {
  min-height: 205px;
  padding: 24px;
}

.why-icon {
  display: block;
  margin-bottom: 35px;
  color: var(--accent-light);
  font-size: 20px;
}

.contact-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at 0% 100%, rgba(124, 58, 237, 0.08), transparent 35%),
    #faf9fc;
}

.contact-layout {
  display: grid;
  gap: 44px;
}

.email-link {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.email-link a {
  color: #6d28d9;
  font-weight: 500;
}

.form-shell {
  min-height: 300px;
  border: 1px solid #e3deea;
  border-radius: var(--radius-lg);
  padding: 23px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.contact-form {
  display: grid;
  gap: 17px;
}

.honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-row {
  display: grid;
  gap: 17px;
}

.form-group {
  display: grid;
  gap: 7px;
}

.form-group label {
  color: #494250;
  font-size: 12px;
  font-weight: 500;
}

.form-group label span {
  color: var(--accent-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #dcd7e2;
  border-radius: 7px;
  outline: none;
  background: #ffffff;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input,
.form-group select {
  height: 45px;
  padding: 0 13px;
}

.form-group textarea {
  min-height: 115px;
  resize: vertical;
  padding: 11px 13px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa4b0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.form-group .invalid {
  border-color: #d65f70;
}

.submit-btn {
  width: 100%;
  min-height: 49px;
  margin-top: 2px;
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-error {
  margin: -5px 0 0;
  color: #b4233b;
  font-size: 12px;
  text-align: center;
}

.form-note {
  margin: -5px 0 0;
  color: #918b98;
  font-size: 10px;
  text-align: center;
}

.success-message {
  min-height: 460px;
  padding: 60px 20px;
  text-align: center;
}

.success-message:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid rgba(97, 214, 162, 0.35);
  border-radius: 50%;
  background: rgba(97, 214, 162, 0.08);
  color: var(--success);
  font-size: 21px;
}

.success-message h3 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 600;
}

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

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 90px;
}

.footer-inner {
  display: grid;
  gap: 30px;
}

.footer-brand p {
  max-width: 330px;
  margin: 13px 0 0;
  color: #7b7582;
  font-size: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px;
}

.footer-nav a {
  color: #706a79;
  font-size: 12px;
  transition: color var(--transition);
}

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

.copyright {
  margin: 0;
  color: #918b98;
  font-size: 11px;
}

.mobile-contact-btn {
  position: fixed;
  z-index: 900;
  right: 17px;
  bottom: 17px;
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  gap: 7px;
  border: 1px solid #8b5cf6;
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5), 0 6px 20px rgba(124, 58, 237, 0.28);
  font-size: 12px;
  font-weight: 500;
}

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

.js-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
}

.js-ready .reveal.is-visible {
  animation: fade-in-up 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gradient-slide {
  to {
    background-position: -200% 0;
  }
}

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

@media (min-width: 768px) {
  :root {
    --section-space: 120px;
  }

  .container {
    width: min(calc(100% - 64px), var(--container));
  }

  .hero {
    min-height: 790px;
    padding-top: 150px;
  }

  .hero-copy {
    font-size: 19px;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .section-heading:not(.centered) {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

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

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

  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-shell {
    padding: 32px;
  }

  .footer {
    padding-bottom: 48px;
  }

  .footer-inner {
    grid-template-columns: 1.2fr auto;
    align-items: center;
  }

  .copyright {
    grid-column: 1 / -1;
  }

  .mobile-contact-btn {
    display: none;
  }
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    max-height: none;
    overflow: visible;
    flex-direction: row;
    align-items: center;
    gap: 27px;
    border: 0;
    background: transparent;
    opacity: 1;
  }

  .nav-menu > a:not(.btn) {
    padding: 10px 0;
  }

  .nav-cta {
    margin: 0 0 0 5px;
  }

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

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

  .service-card {
    min-height: 270px;
    padding: 28px;
  }

  .card-icon {
    margin-bottom: 54px;
  }

  .why-layout {
    grid-template-columns: 0.85fr 1.3fr;
    gap: 90px;
  }

  .contact-layout {
    grid-template-columns: 0.78fr 1.22fr;
    gap: 90px;
  }

  .contact-copy {
    padding-top: 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto auto;
    gap: 50px;
  }

  .copyright {
    grid-column: auto;
  }
}

@media (min-width: 1280px) {
  :root {
    --section-space: 140px;
  }

  .hero {
    min-height: 820px;
  }

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

  .services-grid,
  .why-grid {
    gap: 14px;
  }

  .contact-layout {
    gap: 120px;
  }
}
