:root {
  --bg: #08090D;
  --surface: #101218;
  --surface-elevated: #151821;
  --surface-hover: #1b1e29;
  --border: #242833;
  --border-focus: rgba(220, 38, 38, 0.5);
  --text-primary: #F5F7FA;
  --text-secondary: #9298A6;
  --muted: #5c6070;
  --accent: #DC2626;
  --accent-secondary: #F43F5E;
  --accent-gradient: linear-gradient(135deg, #DC2626 0%, #F43F5E 100%);
  --accent-soft: rgba(220, 38, 38, 0.12);
  --success: #34D399;
  --success-soft: rgba(52, 211, 153, 0.12);
  --danger: #F87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --warning: #FBBF24;
  --warning-soft: rgba(251, 191, 36, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(220, 38, 38, 0.25), 0 0 40px rgba(220, 38, 38, 0.28), 0 0 90px rgba(244, 63, 94, 0.14);
  --shadow-glow-soft: 0 0 24px rgba(220, 38, 38, 0.18);
  --transition-fast: 180ms ease;
  --transition-base: 220ms ease;
  --max-width: 1100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

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

button, input, textarea, select {
  font-family: inherit;
  outline: none;
}

button {
  cursor: pointer;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: rgba(220, 38, 38, 0.35);
}

:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 2px;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 9, 13, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 9px;
}

.logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast), border-color var(--transition-base), color var(--transition-base);
  white-space: nowrap;
  padding: 0 18px;
  height: 44px;
  letter-spacing: -0.1px;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
}

.btn-primary:hover {
  box-shadow: 0 0 24px rgba(220, 38, 38, 0.45);
}

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

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--accent-secondary);
}

.btn-sm {
  height: 36px;
  font-size: 13px;
  padding: 0 14px;
}

.btn-lg {
  height: 50px;
  font-size: 15.5px;
  padding: 0 28px;
}

.btn-full {
  width: 100%;
}

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

.hero {
  padding: 90px 24px 70px;
  background:
    radial-gradient(ellipse 65% 55% at 50% 0%, rgba(220, 38, 38, 0.22), transparent 70%),
    radial-gradient(ellipse 45% 40% at 80% 10%, rgba(244, 63, 94, 0.12), transparent 70%);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 28px;
  box-shadow: var(--shadow-glow-soft);
}

.badge svg {
  color: var(--accent-secondary);
  flex-shrink: 0;
}

.headline {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #C7CBD6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(220, 38, 38, 0.25));
}

.subheadline {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.how-it-works {
  padding: 0 0 20px;
  position: relative;
  z-index: 1;
}

.confess-section {
  padding: 20px 24px 100px;
  position: relative;
  z-index: 1;
}

.form-wrapper {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-header {
  margin-bottom: 28px;
}

.form-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 5px;
}

.form-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.wa-status-banner {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--warning-soft);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--warning);
  margin-bottom: 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.field-group {
  margin-bottom: 22px;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  letter-spacing: 0.1px;
}

.field-optional {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.char-counter {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition-fast);
}

.char-counter.near-limit {
  color: var(--warning);
}

.char-counter.at-limit {
  color: var(--danger);
}

.input {
  width: 100%;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  padding: 12px 14px;
  height: 46px;
}

.input:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

.input::placeholder {
  color: var(--muted);
}

.textarea {
  height: auto;
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.phone-row {
  display: flex;
  gap: 8px;
}

.country-select-wrap {
  position: relative;
  flex-shrink: 0;
}

.country-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 0 12px;
  height: 46px;
  min-width: 98px;
  white-space: nowrap;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.country-btn:hover {
  background: var(--surface-hover);
  border-color: var(--accent-secondary);
}

.country-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 200;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 280px;
  max-width: 90vw;
  max-height: 300px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
}

.country-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.country-search-input {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}

.country-search-input:focus {
  outline: none;
}

.country-search-input::placeholder {
  color: var(--muted);
}

.country-list {
  overflow-y: auto;
  list-style: none;
  flex: 1;
  padding: 6px 0;
}

.country-list::-webkit-scrollbar {
  width: 4px;
}

.country-list::-webkit-scrollbar-track {
  background: transparent;
}

.country-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.country-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13.5px;
  transition: background var(--transition-fast);
  color: var(--text-primary);
}

.country-item:hover, .country-item[aria-selected="true"] {
  background: var(--surface-hover);
}

.country-item-flag {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.country-item-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-secondary);
}

.country-item-code {
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.phone-input {
  flex: 1;
  min-width: 0;
}

.upload-area {
  position: relative;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-elevated);
  cursor: pointer;
  transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
  overflow: hidden;
}

.upload-area:hover {
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-glow-soft);
}

.upload-area.drag-over {
  border-color: var(--accent);
  background: rgba(220, 38, 38, 0.1);
  box-shadow: var(--shadow-glow);
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 20px;
  cursor: pointer;
}

.upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-hover);
  border: 1px solid var(--border);
  color: var(--accent-secondary);
  margin-bottom: 6px;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
}

.upload-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.upload-hint {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
}

.upload-preview {
  position: relative;
}

.upload-preview img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
}

.remove-media-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: 1px solid var(--border);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.remove-media-btn:hover {
  background: rgba(0,0,0,0.85);
}

.field-error {
  display: block;
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 6px;
  min-height: 16px;
}

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
}

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

#toast-container {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
  width: 100%;
  padding: 0 16px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  font-weight: 500;
  pointer-events: all;
  min-width: 200px;
  max-width: 340px;
}

.toast.toast-success {
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 20px rgba(52, 211, 153, 0.15);
  color: var(--success);
}

.toast.toast-error {
  border-color: rgba(248, 113, 113, 0.4);
  box-shadow: 0 0 20px rgba(248, 113, 113, 0.15);
  color: var(--danger);
}

.toast.toast-info {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.15);
  color: var(--accent-secondary);
}

.toast.toast-warning {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8, 9, 13, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: max(20px, env(safe-area-inset-top, 0px));
  padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}

body.modal-lock {
  overflow: hidden;
}

.modal-panel {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md), var(--shadow-glow-soft);
  margin: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 28px 0;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--accent-secondary);
}

.modal-subtitle {
  padding: 8px 28px 0;
  color: var(--text-secondary);
  font-size: 13.5px;
}

.modal-body {
  padding: 22px 28px 28px;
  overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
  width: 5px;
}

.modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 48px;
}

.privacy {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.section-copy {
  max-width: 560px;
  margin: -28px auto 48px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.privacy-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.privacy-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-secondary);
  box-shadow: var(--shadow-glow-soft);
}

.privacy-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(220, 38, 38, 0.12);
  color: var(--accent-secondary);
  margin-bottom: 16px;
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.2);
}

.privacy-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.privacy-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.faq {
  border-top: 1px solid var(--border);
}

.accordion {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.accordion-item.open {
  border-color: rgba(220, 38, 38, 0.4);
  box-shadow: var(--shadow-glow-soft);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
}

.accordion-trigger svg {
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.accordion-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base) ease, padding var(--transition-base) ease;
  padding: 0 20px;
}

.accordion-content p {
  font-size: 13.5px;
  color: var(--text-secondary);
  padding-bottom: 18px;
}

.accordion-item.open .accordion-content {
  max-height: 240px;
}

.contact {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.contact-center {
  display: flex;
  justify-content: center;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-inner {
    max-width: 600px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 56px 20px 40px;
  }

  .headline {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .subheadline {
    font-size: 15px;
  }

  .form-wrapper {
    padding: 26px 20px;
  }

  .section-inner {
    padding: 56px 20px;
  }

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

  .section-copy {
    margin-top: -18px;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .country-dropdown {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 0;
    width: auto;
    max-width: none;
    max-height: 60vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-panel {
    max-width: none;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin: 0;
  }

  .modal-header {
    padding: 22px 20px 0;
  }

  .modal-subtitle {
    padding: 6px 20px 0;
  }

  .modal-body {
    padding: 18px 20px 24px;
  }
}

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

  .headline {
    font-size: 30px;
  }

  .btn-lg {
    width: 100%;
  }

  .header-inner {
    height: 58px;
  }

  .toast {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
}

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

  .headline {
    font-size: 28px;
  }

  .phone-row {
    flex-wrap: wrap;
  }

  .country-select-wrap {
    width: 100%;
  }

  .country-btn {
    width: 100%;
    justify-content: space-between;
  }
}

@supports (-webkit-touch-callout: none) {
  input, textarea {
    font-size: 16px;
  }
}

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