/* Cleared — Premium iOS-Style Landing Page */

/* === TOKENS === */
:root {
  --bg-base: #070C17;
  --bg-layer1: #0B1628;
  --accent: #5B8DEF;
  --accent-glow: rgba(91, 141, 239, 0.25);
  --mint: #6EE7B7;
  --text-primary: #EDF2FA;
  --text-secondary: #8B9BB4;
  --glass-bg: rgba(16, 30, 58, 0.55);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --blur: 20px;
  --radius: 20px;
  --radius-sm: 12px;
}

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

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* === BACKGROUND ATMOSPHERE === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(91, 141, 239, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(110, 231, 183, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(91, 141, 239, 0.07) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* === SECTION SHARED === */
section {
  position: relative;
  z-index: 1;
  padding: 100px 32px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(32px, 5vw, 52px);
  color: var(--text-primary);
  margin-bottom: 64px;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 32px;
}

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

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0.8;
}

.hero-headline {
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 28px;
  letter-spacing: -0.03em;
  background: linear-gradient(160deg, #EDF2FA 0%, #B8CBEC 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 40px;
  box-shadow: var(--glass-shadow);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}

.stat-value {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 100px;
  line-height: 1.4;
}

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

/* === SCREEN TOUR === */
.screentour {
  background: var(--bg-layer1);
  padding: 100px 32px;
}

.screentour-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.screentour .section-headline {
  margin-bottom: 72px;
}

/* === PHONE ROW === */
.phone-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 24px;
}

.phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* iPhone Frame */
.phone-frame {
  width: 198px;
  background: #0D1B2E;
  border-radius: 40px;
  padding: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 2px 0 0 rgba(255,255,255,0.05) inset,
    0 20px 60px rgba(0,0,0,0.6),
    0 0 80px rgba(91,141,239,0.08);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 26px;
  background: #0D1B2E;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}

.phone-screen {
  width: 170px;
  height: 340px;
  background: linear-gradient(160deg, #0F1D36 0%, #0B1628 100%);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 40px 10px 16px;
  gap: 8px;
  position: relative;
}

/* App UI Components */
.app-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  font-size: 10px;
  color: var(--text-secondary);
}

.app-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2px;
  margin-bottom: 4px;
}

.nav-title {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-back {
  font-size: 14px;
  color: var(--accent);
}

.nav-icon {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Glass Card base */
.glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 10px 12px;
}

/* === SCREEN 1: DASHBOARD === */
.screen-dashboard { gap: 7px; }

.card-date {
  font-size: 9px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2px;
}

.card-heading {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.task-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}

.task-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  flex-shrink: 0;
}

.urgent-dot { background: #F87171; }

.task-info { flex: 1; }

.task-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1px;
}

.task-meta {
  font-size: 8px;
  color: var(--text-secondary);
}

.task-badge {
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
}

.urgent-badge {
  background: rgba(248, 113, 113, 0.15);
  color: #F87171;
}

/* === SCREEN 2: UPLOAD === */
.screen-upload { gap: 8px; }

.upload-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  border: 1px dashed rgba(91, 141, 239, 0.3);
}

.upload-icon { margin-bottom: 2px; }

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

.upload-sub {
  font-size: 8px;
  color: var(--text-secondary);
  text-align: center;
}

.checklist-card { padding: 10px 12px; }

.check-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.check-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  flex-shrink: 0;
}

.checked { background: var(--mint); color: #065F46; }
.done { background: rgba(110,231,183,0.2); color: var(--mint); }
.pending { background: rgba(139,155,180,0.2); color: var(--text-secondary); }

.check-item span {
  font-size: 9px;
  color: var(--text-secondary);
}

/* === SCREEN 3: TASK DETAIL === */
.screen-detail { gap: 8px; }

.detail-card { padding: 10px 12px; }

.detail-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.detail-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(91, 141, 239, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-meta {
  font-size: 8px;
  color: var(--text-secondary);
}

.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--mint));
  border-radius: 4px;
}

.progress-label {
  font-size: 8px;
  color: var(--text-secondary);
}

.timeline-card { padding: 10px 12px; }

.timeline-title {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-secondary);
  margin-top: 2px;
  flex-shrink: 0;
}

.tl-dot.active { background: var(--accent); }

.tl-text { font-size: 9px; color: var(--text-primary); }

.tl-time { font-size: 8px; color: var(--text-secondary); }

/* === SCREEN 4: COMPLETE === */
.screen-complete { gap: 10px; }

.complete-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: 10px;
}

.success-badge { margin-bottom: 4px; }

.complete-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.complete-sub {
  font-size: 9px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
  padding: 0 4px;
}

.reminder-card {
  width: 100%;
  margin-top: 4px;
}

.reminder-label {
  font-size: 8px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.reminder-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-primary);
}

.reminder-date {
  font-size: 8px;
  color: var(--accent);
}

.phone-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* === FEATURES === */
.features {
  padding: 100px 32px;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91, 141, 239, 0.2);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(91, 141, 239, 0.1);
  border: 1px solid rgba(91, 141, 239, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* === FLOW === */
.flow {
  background: var(--bg-layer1);
  padding: 100px 32px;
}

.flow-inner {
  max-width: 960px;
  margin: 0 auto;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.step-num {
  font-family: 'Sora', sans-serif;
  font-size: 40px;
  font-weight: 800;
  color: rgba(91, 141, 239, 0.15);
  line-height: 1;
  margin-bottom: 20px;
}

.step-line {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 20px;
}

.step-line-last {
  background: transparent;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

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

/* === CLOSING === */
.closing {
  text-align: center;
  padding: 120px 32px;
}

.closing-inner {
  max-width: 680px;
  margin: 0 auto;
}

.closing-headline {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.closing-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

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

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

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .phone-row { flex-wrap: wrap; }
  .phone-frame { width: 168px; }
  .phone-screen { width: 140px; height: 280px; }
}

@media (max-width: 600px) {
  section { padding: 72px 20px; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stat-divider { width: 60px; height: 1px; }
  .flow-steps { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 400px) {
  .phone-frame { width: 148px; }
  .phone-screen { width: 120px; height: 240px; padding: 36px 8px 12px; }
  .phone-row { gap: 16px; }
}