:root {
  /* Colors */
  --bg-color: #0d1321;
  --surface: #1E293B; /* cardDark */
  --surface-high: #242a39;
  --surface-highest: #2f3544;
  --primary: #6366F1;
  --primary-light: #818CF8;
  --secondary: #8B5CF6;
  --secondary-light: #A78BFA;
  --text-main: #F8FAFC; /* textPrimaryDark */
  --text-muted: #94A3B8; /* textSecondaryDark */
  --border-color: rgba(70, 69, 84, 0.15); /* outline-variant @ 15% */
  
  /* Layout */
  --max-width: 1200px;
  --nav-height: 80px;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: rgba(21, 27, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: var(--max-width);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  border-radius: 32px;
  border: 1px solid var(--border-color);
}

.logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-cta {
  background: var(--surface-highest);
  color: var(--text-main);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta:hover {
  background: rgba(255,255,255,0.1);
}

/* --- Hero Section --- */
.hero {
  padding-top: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Background Gradients */
.hero::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(13, 19, 33, 0) 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
}

.hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 24px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 900px;
  color: var(--text-main);
}

.hero p {
  font-family: 'Manrope', sans-serif;
  font-size: 1.25rem;
  color: rgba(221, 226, 246, 0.7); /* on-surface-variant */
  max-width: 600px;
  margin-bottom: 48px;
}

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), #8083ff); /* primary to primary-container */
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.secondary-btn {
    background: rgba(47, 53, 68, 0.4); /* surface-container-highest */
    backdrop-filter: blur(20px);
    color: var(--text-main);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.secondary-btn:hover {
    background: rgba(47, 53, 68, 0.8);
}


/* Samsung S24 Phone Mockup */
.phone-mockup-wrapper {
    position: relative;
    width: 310px;
    height: 640px;
    margin: 0 auto;
    z-index: 10;
}

.samsung-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background: #000;
    border: 6px solid #1E293B;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8), inset 0 0 10px rgba(255,255,255,0.05);
    overflow: hidden;
}

.hole-punch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: #111;
    border-radius: 50%;
    z-index: 20;
    border: 1px solid rgba(255,255,255,0.1);
}

.phone-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111827; /* AppColors.backgroundDark */
    padding: 32px 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mockup internal UI */
.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mock-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.mock-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mock-card.active {
    background: rgba(255, 255, 255, 0.03);
}

.mock-check {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.mock-check.checked {
    background: var(--primary);
    border-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.mock-check i {
    width: 14px;
    height: 14px;
}

.mock-progress-container {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 16px;
    padding: 12px 16px;
    margin-top: 8px;
}

.mock-progress-bar {
    height: 6px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.mock-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
}

.mock-timer-card {
    background: var(--surface-highest);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
}

.mock-timer-icon {
    width: 32px;
    height: 32px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.mock-timer-icon i {
    width: 16px;
}

.mock-text-line {
    height: 12px;
    background: var(--surface-high);
    border-radius: 4px;
    margin-bottom: 8px;
}

.mock-text-line.short {
    width: 60%;
    height: 8px;
    opacity: 0.5;
}


/* --- Features Section --- */
.section {
  padding: 160px 0;
  position: relative;
}

.features-container {
    background: var(--surface);
    border-radius: 40px;
    padding: 80px 40px;
    position: relative;
}

.features-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    pointer-events: none;
}

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

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
}

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

.feature-card {
  background: var(--surface-high);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(99,102,241,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
  background: var(--surface-highest);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* --- Footer CTA --- */
.footer-cta {
  padding: 80px 0 60px;
  text-align: center;
}

.cta-box {
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  background: var(--surface);
  border-radius: 40px;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(99,102,241,0.1) 0%, transparent 50%);
    z-index: 0;
}

.cta-box > * {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 1.25rem;
  max-width: 500px;
}

.footer-bottom {
  margin-top: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  
  .hero h1 { font-size: 2.5rem; }
  
  .cta-group { flex-direction: column; }
  
  .features-container { padding: 40px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  
  .cta-box { padding: 40px 24px; }
  .cta-box h2 { font-size: 2.5rem; }
}
