/* ============================================================
   HOME PAGE — Extra Styles
   ============================================================ */

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-accent) 0%, #63ffd0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 28px rgba(var(--color-accent-rgb), 0.28);
}

/* Floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.18), transparent 70%);
  top: -100px; right: -100px;
  animation: floatOrb 8s ease-in-out infinite;
}
.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(var(--color-secondary-rgb), 0.14), transparent 70%);
  bottom: 100px; left: -80px;
  animation: floatOrb 10s ease-in-out infinite reverse;
}
.orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb), 0.12), transparent 70%);
  top: 50%; left: 40%;
  animation: floatOrb 12s ease-in-out infinite 2s;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Typed text effect */
.typed-wrapper { white-space: nowrap; }
.typed-text {
  color: var(--color-secondary);
  text-shadow: 0 0 26px rgba(var(--color-secondary-rgb), 0.36);
}
.typed-cursor {
  color: var(--color-secondary);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* btn-lg */
.btn-lg { padding: 1rem 2.25rem; font-size: 0.95rem; }

/* Auth modal */
.btn-auth { justify-content: center; }
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 24, 43, 0.34);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  overflow-y: auto;
}
.auth-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.auth-modal {
  width: min(100%, 520px);
  max-width: 520px;
  max-height: calc(100vh - 3rem);
  background: #fbfbfd;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow: 0 26px 90px rgba(15, 23, 42, 0.18);
  padding: 2rem 2.2rem 1.8rem;
  position: relative;
  transform: translateY(18px);
  transition: transform 0.25s ease;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.auth-modal-backdrop.open .auth-modal { transform: translateY(0); }
.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(11, 157, 214, 0.12);
  color: #0f172a;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.6rem;
  cursor: pointer;
}
.auth-modal-header {
  margin-bottom: 1.5rem;
  text-align: center;
}
.auth-modal-header h3 {
  color: #0f172a;
  margin: 0.4rem 0 0.35rem;
  font-size: 3.15rem;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.auth-modal-header p {
  margin: 0;
  color: #4b5563;
  font-size: 1.05rem;
}
.auth-modal-switch {
  display: flex;
  gap: 0.75rem;
  margin: 0 auto 1.25rem;
  justify-content: center;
}
.auth-switch-btn {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #f5f8ff;
  color: #0f172a;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}
.auth-switch-btn.active {
  background: linear-gradient(135deg, #19f5a6 0%, #08b7d7 100%);
  color: #06142b;
  border-color: transparent;
}
.auth-panels { display: grid; place-items: center; }
.auth-panel { display: none; width: 100%; max-width: 430px; }
.auth-panel.active { display: block; }
.auth-error {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 56, 212, 0.12);
  border: 1px solid rgba(255, 56, 212, 0.24);
  color: #7c2d12;
  border-radius: 12px;
  font-weight: 600;
}
.auth-panel .field-group { margin-bottom: 1rem; }
.auth-panel label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 700;
  color: #0f172a;
}
.auth-panel input {
  width: 100%;
  border: 1.5px solid #7dd3fc;
  background: #f8fbff;
  color: #0f172a;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.05);
}
.auth-panel input::placeholder { color: #94a3b8; }
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.75rem 0 1.2rem;
  flex-wrap: wrap;
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: #475569;
}
.auth-check input { width: auto; accent-color: #0ea5e9; }
.remember-label,
.forgot-label {
  text-transform: uppercase;
}
.auth-link {
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
}
.forgot-link {
  text-transform: uppercase;
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.forgot-link:hover,
.forgot-link:focus-visible {
  color: #0ea5e9;
  text-decoration-color: #0ea5e9;
}
.auth-footer-copy {
  margin-top: 1rem;
  text-align: center;
  color: #475569;
  font-size: 0.96rem;
}
.auth-footer-copy .auth-link {
  color: #0f172a;
  text-decoration: underline;
}
.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
  background: linear-gradient(135deg, #19f5a6 0%, #08b7d7 100%);
  color: #06142b;
  border-radius: 14px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(25, 245, 166, 0.28);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
.scroll-hint span { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--color-text-muted); }
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

@media (max-width: 520px) {
  .auth-modal {
    width: 100%;
    max-width: 100%;
    max-height: calc(100vh - 2rem);
    padding: 1.25rem 1rem 1rem;
    border-radius: 16px;
  }
  .auth-modal-header h3 {
    font-size: 2.4rem;
  }
  .auth-switch-btn {
    width: 48%;
    padding: 0.72rem 0.85rem;
    font-size: 0.95rem;
  }
  .auth-panel input {
    min-height: 48px;
    padding: 0.85rem 0.95rem;
  }
  .auth-row {
    flex-direction: column;
    align-items: stretch;
  }
  .auth-row .forgot-link {
    width: 100%;
    text-align: left;
  }
  .auth-panel {
    width: 100%;
  }
}

/* Section header */
.section-header { margin-bottom: 3rem; }
.section-desc { font-size: 1.05rem; max-width: 520px; margin-top: 0.5rem; }

/* Why section */
.why-section { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }

.why-glows {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 46% 50%, rgba(var(--color-accent-rgb), 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 38% 38% at 58% 56%, rgba(var(--color-secondary-rgb), 0.1) 0%, transparent 62%);
}
.why-center-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.why-center-content .big-icon { font-size: 6rem; z-index: 3; position: relative; }

.why-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(var(--color-accent-rgb), 0.18);
}
.why-ring-1 { width: 180px; height: 180px; animation: ringPulse 3s ease-in-out infinite; }
.why-ring-2 { width: 280px; height: 280px; animation: ringPulse 3s ease-in-out infinite 0.5s; }
.why-ring-3 { width: 380px; height: 380px; animation: ringPulse 3s ease-in-out infinite 1s; }
@keyframes ringPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(1.05); }
}

.why-float-card-2 {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.fc2-icon { font-size: 1.5rem; }
.fc2-title { font-weight: 700; font-size: 0.9rem; color: var(--color-white); }
.fc2-sub { font-size: 0.8rem; color: var(--color-text-muted); }

/* Results strip */
.results-strip {
  background: linear-gradient(90deg, #0ebf83 0%, var(--color-accent) 45%, var(--color-secondary) 100%);
  padding: 3rem 0;
}
.results-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}
.result-item {
  text-align: center;
  color: white;
}
.result-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.result-num {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: white;
  margin-bottom: 0.35rem;
}
.result-label { font-size: 0.85rem; opacity: 0.85; font-weight: 500; }
.result-divider { width: 1px; height: 70px; background: rgba(255,255,255,0.25); }

/* Process grid */
.process-section { background: var(--color-surface); border-top: 1px solid var(--color-border); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.process-step {
  background: var(--color-surface);
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--color-border);
  transition: background var(--transition);
  flex-direction: column;
  gap: 1rem;
  border-bottom: none;
}
.process-step:last-child { border-right: none; }
.process-step:hover { background: var(--color-surface-2); }
.step-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(var(--color-secondary-rgb), 0.28);
  line-height: 1;
  margin-bottom: 1rem;
}
.step-body h3 { color: var(--color-white); margin-bottom: 0.5rem; font-size: 1.05rem; }
.step-body p { font-size: 0.9rem; }

/* CTA Banner */
.cta-banner {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 44% 50%, rgba(var(--color-accent-rgb), 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 68% 38%, rgba(var(--color-secondary-rgb), 0.11) 0%, transparent 60%);
}
.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(var(--color-accent-rgb), 0.12);
  border: 1px solid rgba(var(--color-accent-rgb), 0.26);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.cta-banner h2 { color: var(--color-white); margin-bottom: 1rem; }
.cta-banner p { font-size: 1.1rem; margin-bottom: 2.5rem; }
.cta-trust {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.cta-trust span::before { content: ''; margin-right: 0; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step { border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
  .process-step:nth-child(2) { border-right: none; }
  .process-step:nth-child(3) { border-bottom: none; }
  .process-step:nth-child(4) { border-right: none; border-bottom: none; }
}
@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid var(--color-border); }
  .process-step:last-child { border-bottom: none; }
  .result-divider { display: none; }
  .results-inner { gap: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .orb { display: none; }
}
