/* =============================================
   UPFY — STYLESHEET
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #09090f;
  --bg2: #0f0f1a;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --purple: #7c3aed;
  --pink: #ec4899;
  --grad: linear-gradient(135deg, #7c3aed, #ec4899);
  --grad-text: linear-gradient(90deg, #a78bfa, #f472b6);
  --text: #f1f1f1;
  --text-muted: #9ca3af;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ---- GLASS ---- */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.6);
}
.btn-primary:active { transform: translateY(0); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-sm-full { width: 100%; justify-content: center; margin-top: 12px; }

/* ---- HIGHLIGHT ---- */
.highlight {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.3s, border 0.3s;
}
.navbar.scrolled {
  background: rgba(9,9,15,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 26px;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -1px;
}
.logo-up { color: #fff; }
.logo-fy { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
  text-align: center;
}
.hero-bg-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.badge-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: #c4b5fd;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}
.badge-dot {
  width: 7px; height: 7px;
  background: #a78bfa;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(30px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 22px;
  min-height: 1.3em;
}
.rotating-text { display: inline-block; }

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-sub strong { color: var(--text); }

/* INPUT GROUP */
.input-group {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 6px 6px 6px 20px;
  max-width: 520px;
  margin: 0 auto;
  transition: border 0.2s, box-shadow 0.2s;
}
.input-group:focus-within {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.input-at {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 700;
  margin-right: 2px;
  user-select: none;
}
.input-username {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
.input-username::placeholder { color: rgba(255,255,255,0.25); }

.input-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

/* SOCIAL PROOF */
.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.avatars { display: flex; }
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  object-fit: cover;
  background: var(--surface);
}
.avatar:first-child { margin-left: 0; }
.avatar-plus {
  background: var(--grad);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-proof p { font-size: 13px; color: var(--text-muted); }
.social-proof p strong { color: var(--text); }

/* ============================================
   SCORE PREVIEW
   ============================================ */
.score-preview {
  padding: 20px 0 70px;
}
.score-card {
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  max-width: 700px;
  margin: 0 auto;
}
.score-left { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 120px; }
.score-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }

.score-circle {
  position: relative;
  width: 110px; height: 110px;
}
.score-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-track {
  fill: none;
  stroke: rgba(255,255,255,0.08);
  stroke-width: 10;
}
.score-fill {
  fill: none;
  stroke: url(#scoreGrad);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: calc(326.7 - (326.7 * var(--pct) / 100));
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* SVG gradient defined inline via JS */
.score-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -1px;
}

.score-right { flex: 1; }
.score-profile { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }

.bar-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 12px;
}
.bar-item span { color: var(--text-muted); white-space: nowrap; }
.bar-track {
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  height: 6px;
  overflow: hidden;
  min-width: 60px;
}
.bar-fill {
  height: 100%;
  width: var(--w);
  background: var(--grad);
  border-radius: 50px;
  animation: growBar 1.2s ease forwards;
}
@keyframes growBar { from { width: 0; } to { width: var(--w); } }
.bar-val { color: var(--text) !important; font-weight: 600; font-size: 11px; }

/* ============================================
   SECTION COMMONS
   ============================================ */
.section-header { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #a78bfa;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-desc { font-size: 15px; color: var(--text-muted); max-width: 500px; margin: 0 auto; }

/* ============================================
   STEPS
   ============================================ */
.steps-section { padding: 70px 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step-card {
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-number {
  font-size: 48px;
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 14px;
  opacity: 0.7;
}
.step-icon { font-size: 28px; margin-bottom: 12px; }
.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-muted); }

/* ============================================
   DIMENSIONS
   ============================================ */
.dimensions-section { padding: 70px 0; background: var(--bg2); }
.dimensions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.dim-card {
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.dim-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dim-icon { font-size: 30px; margin-bottom: 14px; }
.dim-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.dim-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.dim-tag {
  display: inline-block;
  margin-top: 14px;
  font-size: 11px;
  font-weight: 700;
  color: #a78bfa;
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.2);
  padding: 3px 10px;
  border-radius: 50px;
}
.dim-card-cta { background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(236,72,153,0.1)); border-color: rgba(124,58,237,0.25); }

/* ============================================
   FOR WHO
   ============================================ */
.for-who-section { padding: 70px 0; }
.pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: default;
  transition: all 0.2s;
}
.pill:hover {
  border-color: rgba(124,58,237,0.4);
  background: rgba(124,58,237,0.1);
  transform: scale(1.04);
}

/* ============================================
   FAQ
   ============================================ */
.faq-section { padding: 70px 0; background: var(--bg2); }
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-align: left;
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: color 0.2s;
}
.faq-q:hover { color: #c4b5fd; }
.faq-arrow {
  font-size: 18px;
  transition: transform 0.3s;
  flex-shrink: 0;
  color: var(--text-muted);
}
.faq-q[aria-expanded="true"] .faq-arrow { transform: rotate(180deg); color: #a78bfa; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 20px;
}
.faq-a.open {
  max-height: 200px;
  padding: 0 20px 18px;
}
.faq-a p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  padding: 90px 0;
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(236,72,153,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-title {
  font-size: clamp(24px, 4.5vw, 46px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.cta-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-form { max-width: 480px; }

/* ============================================
   FOOTER
   ============================================ */
.footer { border-top: 1px solid var(--border); padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.footer-desc { font-size: 13px; color: var(--text-muted); max-width: 320px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }

/* ============================================
   LOADING MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9,9,15,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 20px;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-box {
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  animation: modalIn 0.4s ease;
}
@keyframes modalIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #a78bfa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.modal-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.modal-title span { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.modal-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.modal-progress {
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  height: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
.modal-bar {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 50px;
  transition: width 0.5s ease;
}
.modal-steps { font-size: 12px; color: var(--text-muted); }

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }
.fade-up:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .dimensions-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.btn) { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    position: fixed;
    inset: 0;
    background: rgba(9,9,15,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 99;
  }
  .nav-links.open a { display: block; font-size: 20px; }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 600px) {
  .hero { padding: 110px 0 60px; }
  .hero-title { letter-spacing: -1.5px; }

  .input-group {
    flex-wrap: nowrap;
    padding: 5px 5px 5px 14px;
  }
  .input-username { font-size: 14px; }
  .btn-text { display: none; }
  .btn-icon { font-size: 18px; }
  .btn.btn-primary { padding: 10px 16px; }

  .score-card {
    flex-direction: column;
    align-items: center;
    padding: 22px 18px;
  }
  .score-left { width: 100%; }
  .score-right { width: 100%; }

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

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

  .section-title { letter-spacing: -1px; }

  .cta-title { letter-spacing: -1px; }

  .modal-box { padding: 28px 20px; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 26px; }
}
