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

:root {
  --purple-500: #8B5CF6;
  --purple-600: #7C3AED;
  --purple-400: #A78BFA;
  --purple-100: #EDE9FE;
  --purple-50: #F5F3FF;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(139, 92, 246, 0.08);
}

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

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  overflow: hidden;
}

.nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-brand span {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  letter-spacing: -0.3px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--purple-500);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.1s;
}

.nav-link:hover {
  background: var(--purple-600);
  transform: translateY(-1px);
}

/* ── Hero ── */
.hero {
  padding: 140px 40px 100px;
  text-align: center;
  background: linear-gradient(160deg, #f5f3ff 0%, #ffffff 60%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--purple-100);
  color: var(--purple-600);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.2px;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--gray-900);
  max-width: 800px;
  margin: 0 auto 24px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--purple-500), #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-900);
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 14px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.22);
}

.btn-primary svg {
  width: 24px;
  height: 24px;
}

.btn-primary .btn-label {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.btn-primary .btn-label small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
}

/* ── Screenshots ── */
.screenshots {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  perspective: 1000px;
}

.phone-mockup {
  position: relative;
  flex-shrink: 0;
}

.phone-mockup img {
  display: block;
  border-radius: 36px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0,0,0,0.06);
}

.phone-mockup.center img {
  width: 240px;
  transform: translateY(0);
}

.phone-mockup.side img {
  width: 200px;
  transform: translateY(30px);
  opacity: 0.85;
}

.phone-mockup.left img {
  transform: translateY(30px) rotateY(8deg);
}

.phone-mockup.right img {
  transform: translateY(30px) rotateY(-8deg);
}

/* ── Section shared ── */
section {
  padding: 100px 40px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple-500);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 520px;
  line-height: 1.6;
}

/* ── Features ── */
.features {
  background: var(--white);
  text-align: center;
}

.features-header {
  margin-bottom: 64px;
}

.features-header .section-sub {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--gray-100);
  border-radius: 20px;
  padding: 32px;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(139, 92, 246, 0.12);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--purple-500), #c084fc);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
  stroke: var(--white);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ── Widgets highlight ── */
.widgets {
  background: var(--purple-50);
  display: flex;
  align-items: center;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 32px;
  padding: 80px;
  overflow: hidden;
}

.widgets-section {
  padding: 80px 40px;
  background: var(--white);
}

.widgets-content {
  flex: 1;
  min-width: 280px;
}

.widgets-content .section-sub {
  margin-bottom: 32px;
}

.widgets-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.widget-preview {
  background: linear-gradient(135deg, var(--purple-500), #c084fc);
  border-radius: 24px;
  padding: 24px;
  width: 280px;
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.3);
}

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

.widget-header img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.widget-header span {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.2px;
}

.widget-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.widget-item:last-child {
  margin-bottom: 0;
}

.widget-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.widget-item-info {
  flex: 1;
}

.widget-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
}

.widget-item-version {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

.widget-item-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--purple-600);
  background: var(--white);
  padding: 3px 8px;
  border-radius: 100px;
}

/* ── Notification section ── */
.notifications-section {
  background: var(--gray-900);
  text-align: center;
  padding: 100px 40px;
}

.notifications-section .section-label {
  color: var(--purple-400);
}

.notifications-section .section-title {
  color: var(--white);
  margin-bottom: 16px;
}

.notifications-section .section-sub {
  color: rgba(255,255,255,0.55);
  margin: 0 auto 60px;
}

.notification-card {
  display: inline-flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 18px 24px;
  text-align: left;
  backdrop-filter: blur(10px);
  max-width: 380px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}

.notification-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.notification-content {
  flex: 1;
}

.notification-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 3px;
}

.notification-body {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

.notification-time {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
  margin-top: 2px;
}

/* ── CTA ── */
.cta-section {
  padding: 120px 40px;
  text-align: center;
  background: linear-gradient(160deg, #f5f3ff 0%, #ede9fe 100%);
}

.cta-section .section-title {
  margin-bottom: 16px;
}

.cta-section .section-sub {
  margin: 0 auto 44px;
}

.cta-section .btn-primary {
  margin: 0 auto;
}

/* ── Footer ── */
footer {
  background: var(--gray-900);
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: gap;
  gap: 24px;
}

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

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-brand span {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

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

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.85);
}

.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  nav {
    padding: 14px 20px;
  }

  .hero {
    padding: 110px 24px 80px;
  }

  .hero h1 {
    letter-spacing: -1.5px;
  }

  section {
    padding: 80px 24px;
  }

  .phone-mockup.side {
    display: none;
  }

  .phone-mockup.center img {
    width: 200px;
  }

  .widgets {
    flex-direction: column;
    padding: 48px 32px;
    gap: 48px;
    text-align: center;
  }

  .widgets-content .section-sub {
    margin: 0 auto 32px;
  }

  footer {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }
}

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

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
}
