/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand — Hunger Logo Colors */
  --purple-900: #2D1150;
  --purple-800: #3E1A6E;
  --purple-700: #5B2D8E;
  --purple-600: #7B3FA0;
  --purple-500: #9153B8;
  --purple-400: #A76DC8;
  --orange-600: #E85D26;
  --orange-500: #F57C20;
  --orange-400: #F89838;
  --green-500: #2ECC40;
  --green-600: #27AE36;

  /* Backgrounds — WHITE THEME */
  --bg-body: #FFFFFF;
  --bg-section-alt: #F8F6FB;
  --bg-card: #FFFFFF;
  --bg-form-card: #1A1128;
  --bg-input: #2A1F3D;
  --bg-input-focus: #342850;
  --bg-footer: #0F0A1A;

  /* Text */
  --text-dark: #1A1128;
  --text-body: #444054;
  --text-muted: #8A839B;
  --text-light: #FFFFFF;
  --text-light-muted: #B0A8C4;

  /* Borders */
  --border-light: #E8E4F0;
  --border-card: rgba(255,255,255,0.08);

  /* Feedback */
  --error: #FF4D6A;
  --success: #2ECC40;

  /* Misc */
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 100px;
  --shadow-card: 0 8px 40px rgba(26,17,40,0.08);
  --shadow-form: 0 20px 60px rgba(26,17,40,0.15);
  --transition: 250ms ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition);
}

.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.header-logo { height: 48px; width: auto; }

.logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--purple-700);
  line-height: 1.1;
}

.logo-text small {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.nav { display: flex; gap: 32px; }

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-link:hover { color: var(--purple-700); }

.btn-header {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  background: var(--purple-700);
  color: var(--text-light);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.btn-header:hover { background: var(--purple-600); transform: translateY(-1px); }

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

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

/* ===== HERO ===== */
.hero {
  padding: 160px 0 80px;
  text-align: center;
  background: var(--bg-body);
}

.hero-inner { max-width: 900px; margin: 0 auto; }

.hero-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 24px;
}

.highlight { color: var(--orange-500); }

.hero-subtitle {
  font-size: 18px;
  color: var(--text-body);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-subtitle strong { color: var(--orange-600); }

/* ===== BUTTONS ===== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 48px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn-cta:hover { transform: translateY(-2px); }
.btn-cta:active { transform: translateY(0); }

.btn-green {
  background: var(--green-500);
  color: #fff;
  box-shadow: 0 4px 20px rgba(46,204,64,0.3);
}

.btn-green:hover { box-shadow: 0 8px 30px rgba(46,204,64,0.4); filter: brightness(1.05); }

.btn-orange {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-400));
  color: #fff;
  box-shadow: 0 4px 20px rgba(245,124,32,0.3);
}

.btn-orange:hover { box-shadow: 0 8px 30px rgba(245,124,32,0.4); filter: brightness(1.05); }

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

.form-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-form-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-form);
}

.form-left {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-title {
  font-size: 36px;
  font-weight: 900;
  color: var(--text-light);
  line-height: 1.15;
  margin-bottom: 32px;
}

.form-steps-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.step-line {
  width: 60px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.step-line.active { background: var(--orange-500); }

.form-step-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.form-step-info h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 8px;
}

.form-step-info p {
  font-size: 14px;
  color: var(--text-light-muted);
  line-height: 1.7;
}

/* Form Right */
.form-right {
  padding: 56px 48px;
  background: rgba(255,255,255,0.03);
  border-left: 1px solid rgba(255,255,255,0.06);
}

.form-group { margin-bottom: 16px; }

.form-group input,
.form-group select {
  width: 100%;
  padding: 18px 20px;
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder { color: var(--text-light-muted); }
.form-group select { color: var(--text-light-muted); cursor: pointer; }
.form-group select option { background: var(--bg-input); color: var(--text-light); }

.form-group input:focus,
.form-group select:focus {
  border-color: var(--purple-500);
  background: var(--bg-input-focus);
  box-shadow: 0 0 0 3px rgba(145,83,184,0.15);
}

/* Phone input with flag */
.phone-input {
  display: flex;
  align-items: stretch;
}

.phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: var(--bg-input);
  border: 1px solid rgba(255,255,255,0.08);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 14px;
  color: var(--text-light-muted);
  white-space: nowrap;
}

.flag { font-size: 20px; }

.phone-input input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important;
}

/* Validation */
.form-group.error input,
.form-group.error select,
.form-group.error .phone-prefix {
  border-color: var(--error) !important;
}

.form-group.success input,
.form-group.success select,
.form-group.success .phone-prefix {
  border-color: var(--success) !important;
}

.error-msg {
  display: block;
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  min-height: 16px;
  opacity: 0;
  transition: opacity 150ms ease;
}

.form-group.error .error-msg { opacity: 1; }

.btn-submit {
  width: 100%;
  margin-top: 8px;
  padding: 18px;
  font-size: 16px;
  border-radius: var(--radius-sm);
}

.spinner { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success */
.form-success {
  text-align: center;
  padding: 40px 0;
  animation: fadeIn 0.5s ease both;
}

.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(46,204,64,0.15);
  color: var(--success);
  font-size: 28px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.form-success h3 { color: var(--text-light); font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--text-light-muted); font-size: 14px; }

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

/* ===== STEP 2 SECTION ===== */
.step2-section {
  padding: 80px 0;
  background: var(--bg-section-alt);
  text-align: center;
}

.step2-inner { max-width: 600px; margin: 0 auto; }

.step2-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-700);
  background: rgba(91,45,142,0.08);
  border: 1px solid rgba(91,45,142,0.15);
  padding: 6px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.step2-section h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.step2-section > .container > p,
.step2-inner > p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 28px;
}

.step2-question {
  display: inline-block;
  padding: 16px 32px;
  background: var(--purple-700);
  color: var(--text-light);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
}

.step2-question strong { color: var(--orange-400); }

/* ===== SERVICES ===== */
.services-section {
  padding: 80px 0;
  background: var(--bg-body);
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--purple-400);
}

.service-icon { font-size: 28px; flex-shrink: 0; }

.service-card p {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
}

/* ===== CTA FINAL ===== */
.cta-final-section {
  padding: 80px 0;
  background: var(--bg-section-alt);
}

.cta-final-card {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 56px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.cta-final-card h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.3;
}

.cta-final-card p {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 28px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-footer);
  padding: 48px 0 36px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo { height: 44px; width: auto; }

.footer-logo-text {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-light);
  line-height: 1.1;
}

.footer-logo-text small {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-light-muted);
}

.footer-back-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-back-top:hover { color: var(--orange-400); }

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-light-muted);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: var(--text-light-muted);
  transition: color var(--transition);
}

.footer-social a:hover { color: var(--orange-400); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .form-card {
    grid-template-columns: 1fr;
  }
  .form-left { padding: 40px 32px 24px; }
  .form-right { padding: 24px 32px 40px; border-left: none; border-top: 1px solid rgba(255,255,255,0.06); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .btn-header { display: none; }
  .mobile-toggle { display: flex; }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-light);
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .hero { padding: 120px 0 60px; }
  .hero-title { font-size: 30px; }
  .hero-subtitle { font-size: 15px; }
  .btn-cta { padding: 16px 32px; font-size: 15px; }

  .form-title { font-size: 26px; }
  .form-left, .form-right { padding: 28px 20px; }

  .section-title { font-size: 24px; }

  .cta-final-card { padding: 36px 24px; }
  .cta-final-card h2 { font-size: 22px; }

  .footer-top, .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 26px; }
  .form-title { font-size: 22px; }
  .step2-section h3 { font-size: 20px; }
}

/* ===== SCROLL REVEAL ===== */
.form-card, .service-card, .cta-final-card, .step2-inner {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.form-card.visible, .service-card.visible, .cta-final-card.visible, .step2-inner.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(2) { transition-delay: 0.05s; }
.service-card:nth-child(3) { transition-delay: 0.1s; }
.service-card:nth-child(4) { transition-delay: 0.15s; }
.service-card:nth-child(5) { transition-delay: 0.2s; }
.service-card:nth-child(6) { transition-delay: 0.25s; }
.service-card:nth-child(7) { transition-delay: 0.3s; }
