/* ── Variables ── */
:root {
  --primary:      #7c6af7;
  --bright-tint:  #9d8df9;
  --light-tint:   #b8acff;
  --deep-shade:   #5a48e0;
  --dark-shade:   #3d32a8;
  --bg-dark:      #1a1428;
  --bg-alt:       #14101f;
  --bg-card:      #201934;
  --bg-light:     #f0eeff;
  --text:         #e8e0ff;
  --text-muted:   #9d8df9;
  --border:       rgba(124, 106, 247, 0.18);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:       12px;
  --radius-sm:    8px;
  --max-width:    1140px;
  --section-pad:  96px;
}

/* ── Logo ── */
.logo-img {
  display: block;
  flex-shrink: 0;
}
.logo-img--nav    { height: 38px; width: auto; }
.logo-img--footer { height: 22px; width: auto; }
.logo-img--hero   {
  height: 240px;
  width: auto;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(124,106,247,0.35));
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: 680px; }

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

.accent { color: var(--primary); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--bright-tint);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(124, 106, 247, 0.35);
}
.btn--outline {
  background: transparent;
  color: var(--light-tint);
  border: 1.5px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn--ghost {
  background: rgba(124, 106, 247, 0.1);
  color: var(--light-tint);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  background: rgba(124, 106, 247, 0.18);
  border-color: var(--primary);
}
.btn--large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 20, 40, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav__logo:hover { color: var(--bright-tint); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
}
.nav__links a:hover { color: var(--text); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── Hero ── */
.hero {
  padding-top: calc(68px + 80px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 106, 247, 0.12) 0%, transparent 65%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}
.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.hero__text h1 { margin-bottom: 20px; }
.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}
.hero__scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll-hint span {
  display: block;
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  margin: auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1; transform: scaleY(1.1); }
}

/* ── Section Divider ── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  opacity: 0.3;
}

/* ── Sections ── */
.section {
  padding-block: var(--section-pad);
  background: var(--bg-dark);
}
.section--alt {
  background: var(--bg-alt);
}
.section--contact {
  text-align: center;
}
.section--contact p {
  color: var(--text-muted);
  margin-block: 16px 32px;
  font-size: 1.05rem;
}
.section__header {
  margin-bottom: 16px;
}
.section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(124, 106, 247, 0.1);
  border: 1px solid rgba(124, 106, 247, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
}
.section__lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-top: 12px;
  margin-bottom: 48px;
  line-height: 1.7;
}
.section h2 { margin-top: 8px; }

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(124, 106, 247, 0.45);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(124, 106, 247, 0.12);
}
.card__icon {
  width: 44px;
  height: 44px;
  background: rgba(124, 106, 247, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--bright-tint);
}
.card h3 {
  margin-bottom: 10px;
  color: var(--text);
}
.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
  background: var(--bg-alt);
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy {
  font-size: 0.82rem;
  color: rgba(157, 141, 249, 0.5);
}

/* ── Contact Form ── */
.contact-form {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-form__field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--light-tint);
}
.contact-form__field input,
.contact-form__field textarea {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  resize: none;
}
.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: rgba(157, 141, 249, 0.35);
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 106, 247, 0.15);
}
.contact-form__field input.invalid,
.contact-form__field textarea.invalid {
  border-color: #e05a5a;
}
.contact-form__submit { align-self: flex-start; }
.contact-form__btn-sending { display: none; }
.contact-form--sending .contact-form__btn-text { display: none; }
.contact-form--sending .contact-form__btn-sending { display: inline; }
.contact-form--sending button { opacity: 0.7; pointer-events: none; }

.contact-form__success {
  margin-top: 36px;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid rgba(124, 106, 247, 0.25);
  border-radius: var(--radius);
  text-align: center;
}
.contact-form__success svg {
  width: 48px;
  height: 48px;
  stroke: var(--primary);
  margin: 0 auto 16px;
}
.contact-form__success h3 {
  margin-bottom: 8px;
  color: var(--text);
}
.contact-form__success p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { max-width: 100%; }
  .hero__cta { justify-content: center; }
  .hero__graphic { display: none; }
  .section__lead { max-width: 100%; }
}

@media (max-width: 640px) {
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-form__submit { width: 100%; justify-content: center; }
  :root { --section-pad: 64px; }
  .cards { grid-template-columns: 1fr; }
  .nav__links { display: none; flex-direction: column; gap: 0; }
  .nav--open .nav__links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
  }
  .nav--open .nav__links li { padding-block: 10px; }
  .nav__toggle { display: flex; }
  .footer__inner { flex-direction: column; text-align: center; }
}

/* ── Nav Dropdown ── */
.nav__item--dropdown { position: relative; }
.nav__dropdown-trigger {
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: color 0.15s;
}
.nav__dropdown-trigger:hover,
.nav__dropdown-trigger[aria-expanded="true"] { color: var(--text); }
.nav__dropdown-trigger .chevron {
  width: 14px; height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s;
  stroke: currentColor;
  fill: none;
}
.nav__dropdown-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  padding: 8px;
  min-width: 220px;
  z-index: 200;
}
.nav__dropdown-trigger[aria-expanded="true"] + .nav__dropdown-menu { display: block; }
.nav__dropdown-menu a,
.nav__dropdown-item--disabled {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  gap: 12px;
}
.nav__dropdown-menu a { color: var(--text-muted); transition: background 0.15s, color 0.15s; }
.nav__dropdown-menu a:hover { background: rgba(124,106,247,0.1); color: var(--text); }
.nav__dropdown-item--disabled { color: rgba(157,141,249,0.3); cursor: default; }
.badge--soon {
  font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(124,106,247,0.08);
  border: 1px solid rgba(124,106,247,0.15);
  color: rgba(157,141,249,0.45);
  padding: 2px 7px; border-radius: 100px;
  white-space: nowrap; flex-shrink: 0;
}

/* ── Card extras ── */
.card__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  transition: color 0.15s;
}
.card__link:hover { color: var(--bright-tint); }
.card__coming-soon {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(157,141,249,0.3);
}

/* ── Gallery ── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.gallery__item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(157,141,249,0.3);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.gallery__placeholder svg { width: 28px; height: 28px; stroke: rgba(157,141,249,0.2); }

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.step__number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(124,106,247,0.15);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; color: var(--text); }
.step p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.65; }

/* ── Form extras (select, number) ── */
.contact-form__field select {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 40px 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239d8df9' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}
.contact-form__field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124,106,247,0.15);
}
.contact-form__field select option { background: var(--bg-card); }
.contact-form__field input[type="number"] { -moz-appearance: textfield; }
.contact-form__field input[type="number"]::-webkit-inner-spin-button,
.contact-form__field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(124,106,247,0.06);
  border: 1px solid rgba(124,106,247,0.12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  line-height: 1.6;
}
.form-note a { color: var(--primary); text-underline-offset: 2px; }
.form-note a:hover { color: var(--bright-tint); }

/* ── Hero page variant ── */
.hero--page { text-align: center; }
.hero--page .hero__cta { justify-content: center; }
.hero--page .hero__sub { max-width: 560px; margin-inline: auto; }

/* ── Responsive additions ── */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .nav__dropdown-trigger .chevron { display: none; }
  .nav--open .nav__dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    background: none;
    padding: 0 0 4px 12px;
    min-width: 0;
  }
  .nav--open .nav__dropdown-menu li { padding-block: 0; }
  .nav--open .nav__dropdown-menu a,
  .nav--open .nav__dropdown-item--disabled { padding-block: 8px; font-size: 0.85rem; }
}
