/* Falisa — Sanal Fal Modern Cosmic UI */
:root {
  --sf-bg: #080214;
  --sf-surface: rgba(18, 12, 36, 0.78);
  --sf-surface-2: rgba(255, 255, 255, 0.045);
  --sf-border: rgba(167, 139, 250, 0.22);
  --sf-border-input: rgba(255, 255, 255, 0.13);
  --sf-border-focus: #a78bfa;
  --sf-text: #f8f7ff;
  --sf-muted: #b4a9cf;
  --sf-accent-1: #7c3aed;
  --sf-accent-2: #9333ea;
  --sf-accent-3: #a855f7;
  --sf-danger: #f87171;
}

html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  background-color: var(--sf-bg);
  color: var(--sf-text);
  font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-rendering: optimizeLegibility;
}

ol { margin: 0; padding: 0 0 0 20px; }

/* Hero & Cosmic Background */
.hero {
  height: auto !important;
  min-height: 100vh !important;
  position: relative !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.container-hero {
  height: auto !important;
  min-height: 100vh !important;
  position: relative !important;
  padding-top: 48px !important;
  padding-bottom: 48px !important;
  overflow: hidden !important;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 48% at 50% 0%, rgba(139, 92, 246, 0.28) 0%, rgba(124, 58, 237, 0.08) 48%, rgba(8, 2, 20, 0) 100%),
    radial-gradient(35% 35% at 85% 32%, rgba(192, 126, 255, 0.12) 0%, transparent 100%),
    radial-gradient(35% 35% at 15% 60%, rgba(98, 95, 255, 0.12) 0%, transparent 100%),
    var(--sf-bg);
}

.tsparticles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.tsparticles canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero .main {
  position: relative !important;
  top: auto !important;
  left: auto;
  right: auto;
  margin: 0 auto;
  z-index: 3;
  opacity: 1;
}

/* Header & Logo */
.logo {
  text-align: center;
  margin-bottom: 14px;
}

.logo img {
  max-height: 46px !important;
  width: auto !important;
  height: auto !important;
  filter: drop-shadow(0 6px 20px rgba(139, 92, 246, 0.35));
}

.sf-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.3);
  color: #ddd6fe;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.sf-hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c084fc;
  box-shadow: 0 0 10px #c084fc;
}

.hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 10px;
  background: linear-gradient(180deg, #ffffff 15%, #ddd6fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h3 {
  font-size: 16px;
  font-weight: 500;
  color: #d8b4fe;
  line-height: 1.5;
  max-width: 540px;
  margin: 0 auto 26px;
}

.hero h3 span {
  display: block;
  color: var(--sf-muted);
  font-size: 14.5px;
  font-weight: 400;
  margin-top: 4px;
}

/* Modern Glassmorphic Form Card */
.form-fortune {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 28px 26px 24px;
  border-radius: 24px;
  background: linear-gradient(165deg, rgba(24, 15, 48, 0.86) 0%, rgba(12, 7, 28, 0.92) 100%);
  border: 1px solid var(--sf-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
  text-align: left;
}

.form-fortune::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.7), transparent);
  pointer-events: none;
}

.sf-field {
  margin-bottom: 16px;
}

.sf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.sf-row-2 .sf-field {
  margin-bottom: 0;
}

.sf-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.sf-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #dcd4f7;
  letter-spacing: 0.01em;
  margin: 0;
}

.sf-label svg {
  color: #a78bfa;
  flex-shrink: 0;
}

.sf-counter {
  font-size: 11.5px;
  color: #8f84b2;
  font-variant-numeric: tabular-nums;
}

/* Modern Inputs & Selects */
.sf-input,
.sf-select,
.sf-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid var(--sf-border-input);
  background-color: var(--sf-surface-2);
  color: var(--sf-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.sf-input,
.sf-select {
  height: 50px;
  padding: 0 15px;
}

.sf-textarea {
  min-height: 78px;
  padding: 12px 15px;
  resize: none;
  display: block;
}

.sf-input::placeholder,
.sf-textarea::placeholder {
  color: rgba(196, 185, 224, 0.5);
}

.sf-input:hover,
.sf-select:hover,
.sf-textarea:hover {
  border-color: rgba(196, 181, 253, 0.3);
  background-color: rgba(255, 255, 255, 0.065);
}

.sf-input:focus,
.sf-select:focus,
.sf-textarea:focus {
  border-color: var(--sf-border-focus);
  background-color: rgba(139, 92, 246, 0.08);
  box-shadow: 0 0 0 3.5px rgba(139, 92, 246, 0.22);
}

.sf-select-wrap {
  position: relative;
}

.sf-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 38px;
  cursor: pointer;
}

.sf-select.noselect {
  color: rgba(196, 185, 224, 0.55);
}

.sf-select option {
  background-color: #140b29;
  color: #f5f3ff;
}

.sf-select option[disabled] {
  color: #8b7fb0;
}

.sf-select-arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #a78bfa;
  display: flex;
  align-items: center;
}

.sf-invalid {
  border-color: rgba(248, 113, 113, 0.85) !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2) !important;
}

.sf-form-error {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.13);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fecaca;
  font-size: 13.5px;
  line-height: 1.4;
}

.sf-form-error.visible {
  display: flex;
}

/* Modern Primary CTA Button */
.sf-submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 54px;
  margin-top: 6px;
  padding: 0 24px;
  border: 1px solid rgba(216, 180, 254, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 50%, #a855f7 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 12px 28px rgba(124, 58, 237, 0.42),
    0 1px 0 rgba(255, 255, 255, 0.28) inset;
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.sf-submit-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.2) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.sf-submit-btn:hover {
  transform: translateY(-1.5px);
  filter: brightness(1.06);
  box-shadow:
    0 16px 34px rgba(139, 92, 246, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.32) inset;
}

.sf-submit-btn:hover::after {
  transform: translateX(120%);
}

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

.sf-submit-arrow {
  transition: transform 0.2s ease;
}

.sf-submit-btn:hover .sf-submit-arrow {
  transform: translateX(3px);
}

/* Trust / Meta Row */
.sf-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12px;
  color: #9f94c0;
}

.sf-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.sf-meta-item svg {
  color: #a78bfa;
}

/* Below-the-fold SEO Content */
main {
  padding-bottom: 60px;
}

.cont-main {
  margin-top: 48px !important;
  position: relative !important;
  z-index: 2;
  padding-bottom: 60px;
}

main h2 {
  font-size: 24px;
  font-weight: 700;
  margin-top: 38px;
  color: #f3efff;
}

main h3 {
  font-size: 19px;
  font-weight: 600;
  margin-top: 24px;
  color: #d8b4fe;
}

main p,
main li {
  letter-spacing: 0.2px;
  color: rgba(235, 230, 252, 0.78);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
}

/* Legacy Loader (kept hidden) */
.loader-wrapper {
  display: none;
}

/* Responsive */
@media (max-width: 600px) {
  .container-hero {
    padding-top: 60px !important;
    padding-bottom: 40px !important;
  }
  .hero .main {
    padding: 0 14px;
  }
  .form-fortune {
    padding: 22px 18px 20px;
    border-radius: 20px;
  }
  .sf-row-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hero h3 {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .hero h3 span {
    font-size: 13.5px;
  }
  .sf-meta-row {
    gap: 10px;
  }
  main h2 { font-size: 20px; }
  main p, main li { font-size: 15px; }
}
