/* ===== RESET & ROOT ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #6C63FF;
  --primary-light: #8B85FF;
  --secondary: #00BFA5;
  --accent-orange: #F97316;
  --accent-yellow: #F59E0B;
  --accent-red: #EF4444;
  --accent-purple: #8B5CF6;
  --bg: #0D0D1A;
  --bg-card: #141428;
  --bg-card2: #1A1A32;
  --text: #F0F0FF;
  --text-muted: #8888AA;
  --text-sub: #BBBBDD;
  --border: rgba(108, 99, 255, 0.15);
  --border-light: rgba(255,255,255,0.07);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px rgba(0,0,0,0.5);
  --glow: 0 0 40px rgba(108, 99, 255, 0.3);
}

html { scroll-behavior: smooth; }

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ===== REUSABLE ===== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(108, 99, 255, 0.15);
  border: 1px solid rgba(108, 99, 255, 0.3);
  color: var(--primary-light);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.navbar.scrolled {
  background: rgba(13, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.nav-cta-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 100px;
  margin-left: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(108, 99, 255, 0.4);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 24px 80px;
  gap: 60px;
}

@media (min-width: 900px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 120px 60px 80px;
  }
}

.hero-bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
}

.blob-1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -150px; left: -100px;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-2 {
  width: 400px; height: 400px;
  background: var(--secondary);
  bottom: -100px; right: -80px;
  animation: blobFloat 10s ease-in-out infinite reverse;
}

.blob-3 {
  width: 300px; height: 300px;
  background: var(--accent-purple);
  top: 40%; right: 30%;
  animation: blobFloat 12s ease-in-out infinite;
}

.blob-4 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; left: -200px;
  animation: blobFloat 9s ease-in-out infinite;
}

.blob-5 {
  width: 450px; height: 450px;
  background: var(--secondary);
  bottom: -150px; right: -100px;
  animation: blobFloat 11s ease-in-out infinite reverse;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.97); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0% { transform: translateY(100vh) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) translateX(50px); opacity: 0; }
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 580px;
  flex-shrink: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.35);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-light);
  letter-spacing: 0.3px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-subtitle strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(108, 99, 255, 0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 14px 24px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 28px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-light);
}

/* HERO PHONE */
.hero-image-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-phone-mockup {
  position: relative;
}

.phone-frame {
  width: 280px;
  height: 560px;
  background: #1a1a2e;
  border-radius: 44px;
  border: 2px solid rgba(255,255,255,0.12);
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.05);
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 26px;
  background: #0d0d1a;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.phone-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.phone-img.active {
  opacity: 1;
}

.phone-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 80px;
  background: var(--primary);
  filter: blur(40px);
  opacity: 0.3;
  border-radius: 50%;
}

/* FLOATING CARDS */
.floating-cards {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(20, 20, 40, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  font-size: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  white-space: nowrap;
  animation: floatCard 4s ease-in-out infinite;
}

.float-card-1 {
  top: 60px;
  left: -100px;
  animation-delay: 0s;
}

.float-card-2 {
  top: 50%;
  right: -110px;
  transform: translateY(-50%);
  animation-delay: 1.5s;
}

.float-card-3 {
  bottom: 80px;
  left: -80px;
  animation-delay: 0.8s;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-card-2 {
  animation: floatCard2 4s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes floatCard2 {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(calc(-50% - 8px)) translateX(0); }
}

.fc-icon { font-size: 24px; }

.fc-value {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

.fc-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 6px;
  z-index: 2;
  animation: fadeInUp 1s ease 1s both;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0.3; }
}

/* ===== FEATURES ===== */
.features {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #0A0A1E 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .features-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .feature-large {
    grid-column: 1 / 3;
    grid-row: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    overflow: hidden;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  border-color: rgba(108,99,255,0.3);
}

.feature-img-wrapper {
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin-bottom: 0;
}

.feature-large .feature-img-wrapper {
  border-radius: 0;
  height: 100%;
  min-height: 300px;
}

.feature-large .feature-content {
  padding: 36px 32px;
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.feature-card:hover .feature-img {
  transform: scale(1.03);
}

.feature-img-small {
  height: 160px;
  margin: -28px -28px 24px;
}

.feature-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sub);
}

.check {
  color: var(--secondary);
  font-weight: 700;
  flex-shrink: 0;
}

/* MINI DEMO */
.mini-demo {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mini-task {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-sub);
}

.mini-task.done {
  text-decoration: line-through;
  color: var(--text-muted);
  opacity: 0.7;
}

.mini-check {
  width: 20px;
  height: 20px;
  background: var(--secondary);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.mini-circle {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-light);
  border-radius: 6px;
  flex-shrink: 0;
}

/* Timetable mini-demo */
.mini-timetable-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-day {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  width: 28px;
  flex-shrink: 0;
}

.mini-blocks {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-block {
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 120px 0;
  background: var(--bg);
}

.steps-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (min-width: 900px) {
  .steps-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .steps-line { display: none; }
}

.steps-line {
  position: absolute;
  left: 30px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  opacity: 0.3;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.step-num {
  font-size: 40px;
  font-weight: 900;
  color: rgba(108, 99, 255, 0.25);
  line-height: 1;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.step-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.step-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

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

/* ===== EXAMS ===== */
.exams {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #0A0A1E 100%);
  overflow: hidden;
}

.exams-ticker-wrapper {
  overflow: hidden;
  margin: 0 -24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.exams-ticker {
  display: flex;
  gap: 14px;
  animation: tickerScroll 30s linear infinite;
  width: max-content;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.exam-chip {
  padding: 10px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  transition: background 0.2s;
}

.exam-chip:hover {
  background: rgba(108,99,255,0.12);
  border-color: rgba(108,99,255,0.3);
}

.exam-chip-alt {
  background: rgba(0, 191, 165, 0.06);
  border-color: rgba(0, 191, 165, 0.15);
  color: var(--text-sub);
}

.exams-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  justify-content: center;
  margin-top: 20px;
}

/* ===== WIDGETS SHOWCASE ===== */
.widgets-section {
  padding: 120px 0;
  background: var(--bg);
}

.widgets-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .widgets-layout {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.widget-demo {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widgets-col-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-left: 4px;
}

/* === Widget mockup base === */
.wdg {
  background: linear-gradient(135deg, #EEF0FF 0%, #E8F4FF 50%, #F0EEFF 100%);
  border-radius: 24px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.35), 0 2px 8px rgba(108,99,255,0.15);
  transition: transform 0.3s, box-shadow 0.3s;
}

.wdg:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 4px 16px rgba(108,99,255,0.2);
}

/* === Large 4x2 widget === */
.wdg-large {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wdg-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.wdg-countdown-badge {
  background: linear-gradient(135deg, #7C6FCD, #6C63FF);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(108,99,255,0.3);
}

.wdg-days {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -1px;
}

.wdg-d {
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-left: 2px;
  vertical-align: super;
}

.wdg-days-label {
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.8px;
  margin-top: 4px;
}

.wdg-exam-info {
  flex: 1;
}

.wdg-exam-tag {
  font-size: 11px;
  font-weight: 600;
  color: #7C6FCD;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
}

.wdg-exam-name {
  font-size: 20px;
  font-weight: 800;
  color: #1A1A3E;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.wdg-exam-sub {
  font-size: 10px;
  font-weight: 600;
  color: #888AB0;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.wdg-progress-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wdg-progress-bar {
  height: 6px;
  background: rgba(108,99,255,0.15);
  border-radius: 3px;
  overflow: hidden;
}

.wdg-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #7C6FCD, #6C63FF);
  border-radius: 3px;
  min-width: 6px;
}

.wdg-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #888AB0;
  font-weight: 500;
}

.wdg-pct {
  color: #7C6FCD;
  font-weight: 700;
}

.wdg-milestones {
  display: flex;
  gap: 12px;
}

.wdg-milestone-chip {
  flex: 1;
  background: rgba(255,255,255,0.7);
  border-radius: 14px;
  padding: 12px 14px;
}

.wdg-ms-name {
  font-size: 12px;
  font-weight: 700;
  color: #1A1A3E;
  margin-bottom: 4px;
}

.wdg-ms-days {
  font-size: 11px;
  color: #888AB0;
  font-weight: 500;
}

.wdg-ms-days span {
  color: #7C6FCD;
  font-weight: 700;
}

/* === Medium 4x1 widget === */
.wdg-medium {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
}

.wdg-badge-sm {
  min-width: 74px;
  padding: 10px 12px;
  border-radius: 14px;
}

.wdg-badge-sm .wdg-days {
  font-size: 24px;
}

.wdg-badge-sm .wdg-d {
  font-size: 12px;
}

/* === Small 2x2 widget === */
.wdg-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
  text-align: center;
  min-height: 130px;
}

.wdg-small .wdg-countdown-badge {
  min-width: unset;
  padding: 10px 14px;
  border-radius: 14px;
}

.wdg-small .wdg-days {
  font-size: 26px;
}

.wdg-small-name {
  font-size: 14px;
  font-weight: 800;
  color: #1A1A3E;
  line-height: 1.3;
}

/* Widget pills */
.widget-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.wpill {
  padding: 9px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  cursor: default;
}

.wpill:hover {
  background: rgba(108,99,255,0.1);
  border-color: rgba(108,99,255,0.35);
  color: var(--primary-light);
  transform: translateY(-1px);
}

/* ===== DOWNLOAD ===== */
.download {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg) 0%, #070712 100%);
}

.download-bg-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.download-card {
  background: var(--bg-card2);
  border: 1px solid rgba(108,99,255,0.2);
  border-radius: 32px;
  padding: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
}

@media (min-width: 900px) {
  .download-card {
    flex-direction: row;
    align-items: center;
    gap: 80px;
    padding: 70px 80px;
  }
}

.download-text {
  flex: 1;
}

.download-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.download-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 460px;
}

.download-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  background: #fff;
  color: #111;
  text-decoration: none;
  border-radius: 14px;
  font-size: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.badge-sub {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.3px;
}

.badge-main {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* DL VISUAL */
.download-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-phone-frame {
  width: 220px;
  height: 280px;
  background: linear-gradient(135deg, #1A1A32, #0D0D20);
  border-radius: 28px;
  border: 2px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 60px rgba(108,99,255,0.2);
  position: relative;
}

.dl-phone-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(108,99,255,0.08), transparent);
}

.dl-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
}

.dl-app-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.dl-app-tag {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== FOOTER ===== */
.footer {
  background: #070712;
  border-top: 1px solid var(--border-light);
  padding: 60px 0 0;
}

.footer-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 1.5fr 1fr;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--primary-light);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

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

.footer-credits {
  font-size: 12px !important;
  opacity: 0.6;
}

/* ===== ANIMATIONS ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate="fade-left"] {
  transform: translateX(40px);
}

[data-animate="fade-right"] {
  transform: translateX(-40px);
}

[data-animate].in-view {
  opacity: 1;
  transform: translate(0, 0);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(10, 10, 25, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--border-light);
    z-index: 999;
  }
  .nav-link { padding: 12px 16px; border-radius: 12px; font-size: 15px; }
  .nav-cta-btn { width: 100%; justify-content: center; padding: 14px; border-radius: 14px; }
  .nav-hamburger { display: flex; }
  
  .hero { text-align: center; }
  .hero-container { max-width: 100%; }
  .hero-subtitle { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .float-card-1, .float-card-3 { left: -20px !important; }
  .float-card-2 { right: -20px !important; }
  
  .feature-large { grid-column: 1 / -1; }
  .feature-large .feature-img-wrapper { min-height: 200px; }
  
  .download-card { padding: 36px 28px; }
}

@media (max-width: 480px) {
  .hero-title { letter-spacing: -1.5px; }
  .float-card-1, .float-card-3 { display: none; }
  .float-card-2 { display: none; }
  .phone-frame { width: 220px; height: 440px; }
}
