/* =========================================================
   Instinct Brand — Style Sheet
   Dark theme | Cyan accent (#00e5ff) | Magenta secondary (#d946ef)
   Mobile-first responsive
   ========================================================= */

/* ----- RESET & BASE ----- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0f;
  --bg-2: #0f0f1a;
  --bg-3: #14141f;
  --surface: #1a1a2e;
  --text: #e8e8f0;
  --text-muted: #8a8aa0;
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.15);
  --accent-glow: rgba(0, 229, 255, 0.35);
  --secondary: #d946ef;
  --secondary-dim: rgba(217, 70, 239, 0.15);
  --secondary-glow: rgba(217, 70, 239, 0.3);
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-w: 1100px;
  --nav-h: 64px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ----- CONTAINER ----- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- SECTION TITLES ----- */
.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section__subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

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

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: #0a0a0f;
  padding: 14px 32px;
  font-size: 1rem;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.25);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--glow {
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.15), 0 0 60px rgba(217, 70, 239, 0.08);
}

.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--full { width: 100%; }

.btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ----- HEADER ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
}

.header__logo-icon {
  color: var(--accent);
  font-size: 1.3rem;
  text-shadow: 0 0 12px var(--accent-glow);
}

.header__logo-text span { color: var(--accent); }

.header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header__link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
  font-weight: 500;
  position: relative;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.header__link:hover {
  color: var(--text);
}

.header__link:hover::after {
  width: 100%;
}

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

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

.header__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.header__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ----- HERO ----- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero__bg-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 255, 0.15);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.1s ease both;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
  animation: fadeInUp 0.6s 0.2s ease both;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s 0.3s ease both;
}

.hero__stats {
  display: flex;
  gap: 28px;
}

.hero__stat {
  text-align: left;
}

.hero__stat-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ----- STEPS ----- */
.steps {
  padding: 80px 0;
  background: var(--bg-2);
}

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

.step-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.step-card:hover {
  border-color: rgba(0, 229, 255, 0.15);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.06);
}

.step-card__num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), var(--secondary-dim));
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ----- FORM ----- */
.form-section {
  padding: 80px 0;
}

.form {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
}

.form__group {
  margin-bottom: 24px;
}

.form__label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text);
}

.form__input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form__input::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form__input.error {
  border-color: #ff4d6d;
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.15);
}

.form__error {
  display: none;
  color: #ff4d6d;
  font-size: 0.8rem;
  margin-top: 6px;
}

.form__error.visible {
  display: block;
}

/* ----- RADIO CARDS ----- */
.form__radios {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form__radio-card {
  display: block;
  cursor: pointer;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: var(--transition);
  overflow: hidden;
}

.form__radio-card:hover {
  border-color: rgba(0, 229, 255, 0.2);
  background: rgba(10, 10, 15, 0.6);
}

.form__radio-card input {
  display: none;
}

.form__radio-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: 0 0 0 1px var(--accent);
}

.radio-card__content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.radio-card__icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
  color: var(--text-muted);
  transition: var(--transition);
}

.form__radio-card:has(input:checked) .radio-card__icon {
  color: var(--accent);
}

.radio-card__title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.radio-card__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ----- FORM SUBMIT ----- */
.form__submit {
  margin-top: 8px;
  position: relative;
  min-height: 54px;
}

.form__submit .btn__loader {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}

.form__submit.loading .btn__text { display: none; }
.form__submit.loading .btn__loader { display: flex; }

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

.spinner circle {
  stroke-dasharray: 31.4 31.4;
  stroke-dashoffset: 0;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes dash {
  0%   { stroke-dasharray: 31.4, 31.4; stroke-dashoffset: 0; }
  50%  { stroke-dasharray: 10, 60;     stroke-dashoffset: -10; }
  100% { stroke-dasharray: 31.4, 31.4; stroke-dashoffset: -62; }
}

/* ----- PRICING ----- */
.pricing {
  padding: 80px 0;
  background: var(--bg-2);
}

.pricing__card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.pricing__card:hover {
  border-color: rgba(217, 70, 239, 0.2);
  box-shadow: 0 12px 48px rgba(217, 70, 239, 0.06);
}

.pricing__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: #0a0a0f;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing__header {
  margin-bottom: 28px;
}

.pricing__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.pricing__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
}

.pricing__currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary);
}

.pricing__value {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing__note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pricing__features {
  text-align: left;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

/* ----- FAQ ----- */
.faq {
  padding: 80px 0;
}

.faq__list {
  max-width: 640px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq__item {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.faq__item[open] {
  border-color: rgba(0, 229, 255, 0.15);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  user-select: none;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:hover {
  color: var(--accent);
}

.faq__chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq__item[open] .faq__chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq__answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ----- CTA FINAL ----- */
.cta-final {
  padding: 0 0 80px;
}

.cta-final__card {
  text-align: center;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 32px;
  position: relative;
  overflow: hidden;
}

.cta-final__card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.cta-final__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-final__subtitle {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 1rem;
}

/* ----- FOOTER ----- */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.footer__brand span:nth-child(2) span { color: var(--accent); }

.footer__copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ----- BACK TO TOP ----- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 900px) {
  .steps__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    flex-direction: column;
    gap: 24px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  :root {
    --nav-h: 60px;
  }

  .header__nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px 20px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
  }

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

  .header__hamburger {
    display: flex;
  }

  .header__link {
    font-size: 1rem;
  }

  .hero {
    padding: 100px 0 40px;
  }

  .hero__title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .hero__stats {
    gap: 20px;
  }

  .form {
    padding: 24px 16px;
  }

  .pricing__card {
    padding: 32px 20px;
  }

  .pricing__value {
    font-size: 3rem;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  .cta-final__card {
    padding: 40px 20px;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 14px;
  }

  .btn--lg {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .radio-card__content {
    padding: 12px;
  }
}
