@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap");

:root {
  /* Color Palette */
  --primary-blue: #2563eb;
  --primary-blue-hover: #1d4ed8;
  --primary-blue-light: rgba(37, 99, 235, 0.08);
  --light-blue-accent: #60a5fa;
  --light-blue-bg: #eff6ff;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;

  /* Text Colors */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-white: #ffffff;

  /* Borders and Accents */
  --border-color: #e2e8f0;
  --success-green: #22c55e;
  --success-green-light: rgba(34, 197, 94, 0.1);
  --critical-red: #ef4444;
  --critical-red-light: rgba(239, 68, 68, 0.1);
  --warning-amber: #f59e0b;
  --warning-amber-light: rgba(245, 158, 11, 0.1);

  /* Dark Mode Footer & Backgrounds */
  --dark-bg: #090d16;
  --dark-border: #1e293b;

  /* Shadows */
  --card-shadow:
    0 10px 25px -5px rgba(15, 23, 42, 0.04),
    0 8px 16px -6px rgba(15, 23, 42, 0.04);
  --phone-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  --button-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);

  /* Borders & Radius */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  --border-radius-phone: 40px;

  /* Font Families */
  --font-heading:
    "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles & Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

p {
  color: var(--text-muted);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: 8px;
  text-align: center;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--text-white);
  box-shadow: var(--button-shadow);
}

.btn-primary:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-secondary {
  background-color: var(--bg-white);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-light);
  border-color: #cbd5e1;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: 6px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--border-radius-md);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

/* Header & Navbar */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
}

.logo svg {
  width: 32px;
  height: 32px;
}

/* Hero Section */
.hero {
  padding: 60px 0 100px 0;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    circle at top right,
    rgba(96, 165, 250, 0.07),
    transparent 45%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  background-color: var(--light-blue-bg);
  color: var(--primary-blue);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.hero h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 span {
  background: linear-gradient(
    135deg,
    var(--primary-blue),
    var(--light-blue-accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.125rem;
  margin-bottom: 36px;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 32px;
}

.hero-cta-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 4px;
}

.hero-cta-meta::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--success-green);
  border-radius: 50%;
}

/* Interactive Phone Mockup */
.mockup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Decorative background glow */
.mockup-bg-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: 1;
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: 320px;
  height: 640px;
  background-color: #0f172a;
  border-radius: var(--border-radius-phone);
  padding: 10px;
  box-shadow:
    var(--phone-shadow),
    inset 0 0 4px rgba(255, 255, 255, 0.2);
  border: 4px solid #334155;
  overflow: hidden;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: var(--bg-light);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-size: 0.8125rem;
  user-select: none;
}

/* Phone Status Bar */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px 4px 20px;
  background-color: var(--bg-white);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-main);
  z-index: 10;
}

.phone-status-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* Dynamic Island/Notch */
.phone-island {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 16px;
  background-color: #000000;
  border-radius: 9999px;
  z-index: 20;
}

/* App Header inside Phone */
.phone-app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  z-index: 5;
}

.phone-app-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.phone-app-brand svg {
  width: 18px;
  height: 18px;
}

/* Phone Screens Content */
.phone-content-wrapper {
  position: relative;
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

.phone-screen-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 14px;
  display: flex;
  flex-direction: column;
  transition:
    opacity var(--transition-normal),
    transform var(--transition-normal);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
}

.phone-screen-view.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* View 1: Tasks Selection */
.phone-tasks-title {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.phone-subtitle {
  font-size: 0.725rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Slider Section */
.phone-slider-container {
  background-color: var(--bg-white);
  padding: 10px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
}

.phone-slider-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.725rem;
  margin-bottom: 4px;
}

.phone-slider-val {
  color: var(--primary-blue);
}

.phone-mock-slider {
  height: 4px;
  background-color: var(--border-color);
  border-radius: 9999px;
  position: relative;
}

.phone-mock-slider-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 70%;
  background-color: var(--primary-blue);
  border-radius: 9999px;
}

.phone-mock-slider-thumb {
  position: absolute;
  left: 70%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-color: var(--primary-blue);
  border: 2px solid var(--bg-white);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tasks Checklist */
.phone-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: auto; /* Push generation button to bottom */
}

.phone-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-white);
  padding: 8px 10px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.phone-task-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-task-checkbox {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--primary-blue);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-blue-bg);
}

.phone-task-checkbox svg {
  width: 10px;
  height: 10px;
  stroke: var(--primary-blue);
  stroke-width: 3px;
}

.phone-task-name {
  font-weight: 500;
  font-size: 0.75rem;
}

.phone-task-duration {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.phone-priority-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 9999px;
}

.priority-critical {
  background-color: var(--critical-red-light);
  color: var(--critical-red);
}

.priority-high {
  background-color: var(--warning-amber-light);
  color: var(--warning-amber);
}

.priority-low {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
}

/* Mockup Footer Trigger Button */
.phone-action-btn {
  background-color: var(--primary-blue);
  color: var(--text-white);
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
  margin-top: 12px;
}

.phone-action-btn:hover {
  background-color: var(--primary-blue-hover);
}

/* View 2: Loading State */
.loading-view {
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-white);
}

.ai-sparkle-loader {
  position: relative;
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
}

.sparkle-icon {
  width: 100%;
  height: 100%;
  fill: var(--primary-blue);
  animation: pulse-sparkle 1.2s infinite ease-in-out;
}

.loader-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 68px;
  height: 68px;
  border: 2px solid transparent;
  border-top-color: var(--light-blue-accent);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

.loading-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

/* View 3: AI Generated Schedule */
.schedule-view {
  background-color: var(--bg-light);
}

.phone-schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.efficiency-card {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--success-green-light);
  color: var(--success-green);
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
}

.phone-schedule-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: auto;
}

.timeline-slot {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  position: relative;
}

.timeline-time {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  padding-top: 6px;
  text-align: right;
}

.timeline-card {
  background-color: var(--bg-white);
  padding: 8px 12px;
  border-radius: var(--border-radius-sm);
  border-left: 3px solid var(--primary-blue);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.timeline-card.success {
  border-left-color: var(--success-green);
}

.timeline-card.critical {
  border-left-color: var(--critical-red);
}

.timeline-card.warning {
  border-left-color: var(--warning-amber);
}

.timeline-task-name {
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 2px;
}

.timeline-task-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.625rem;
  color: var(--text-muted);
}

/* Feature Grid Section */
.features-header {
  max-width: 600px;
  margin: 0 auto 56px auto;
}

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

.feature-card {
  background-color: var(--bg-white);
  padding: 32px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
  border-color: #cbd5e1;
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-sm);
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.how-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 56px;
  position: relative;
}

.how-step {
  text-align: center;
  position: relative;
}

.how-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary-blue);
  color: var(--text-white);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  font-family: var(--font-heading);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.15);
}

.how-step h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.how-step p {
  font-size: 0.9rem;
  max-width: 280px;
  margin: 0 auto;
}

/* Connecting arrows in desktop how-it-works */
.how-steps-grid::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 15%;
  width: 70%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
}

.how-step-num {
  position: relative;
  z-index: 2;
}

/* Download/CTA Section */
.download-section {
  background: radial-gradient(
    circle at bottom center,
    rgba(96, 165, 250, 0.05),
    transparent 60%
  );
}

.download-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 56px 40px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-blue),
    var(--light-blue-accent)
  );
}

.download-card h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.download-card p {
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 32px auto;
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.download-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Footer Section */
.footer {
  background-color: var(--dark-bg);
  color: #94a3b8;
  padding: 56px 0 32px 0;
  border-top: 1px solid var(--dark-border);
}

.footer-heart {
  color: var(--critical-red);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-white);
  margin-bottom: 12px;
}

.footer-logo svg {
  width: 32px;
  height: 32px;
}

.footer-desc {
  font-size: 0.9rem;
  color: #64748b;
}

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

.footer-link-group h4 {
  color: var(--text-white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-link-group ul {
  list-style: none;
}

.footer-link-group li {
  margin-bottom: 10px;
}

.footer-link-group a {
  font-size: 0.9rem;
  color: #94a3b8;
}

.footer-link-group a:hover {
  color: var(--light-blue-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--dark-border);
  padding-top: 24px;
  font-size: 0.8rem;
  color: #475569;
  flex-wrap: wrap;
  gap: 16px;
}

/* Keyframes Animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse-sparkle {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(37, 99, 235, 0.2));
  }
  50% {
    transform: scale(1.15);
    filter: drop-shadow(0 0 10px rgba(96, 165, 250, 0.6));
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 32px;
  }
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .hero {
    padding: 40px 0 60px 0;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-cta {
    align-items: center;
  }
  .how-steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .how-steps-grid::after {
    display: none;
  }
  .how-step p {
    max-width: 100%;
  }
  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.3rem;
  }
  .btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
  }
  .download-card {
    padding: 40px 20px;
  }
  .download-card h2 {
    font-size: 1.75rem;
  }
}
