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

/* ── Light Theme (default) ── */
:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --accent: #00b894;
  --bg: #f8f9fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f1f7;
  --text: #2d3436;
  --text-muted: #636e72;
  --white: #ffffff;
  --heading: #1a1a2e;
  --border: rgba(0, 0, 0, 0.08);
  --header-bg: rgba(248, 249, 252, 0.92);
  --header-shadow: rgba(0, 0, 0, 0.06);
  --card-shadow: rgba(0, 0, 0, 0.05);
  --mockup-bg: #1a1a2e;
  --mockup-screen: #0f1125;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
}

/* ── Dark Theme ── */
[data-theme="dark"] {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --accent: #00cec9;
  --bg: #0b0d17;
  --bg-card: #12152a;
  --bg-card-hover: #1a1e3a;
  --text: #e4e6f0;
  --text-muted: #9599b3;
  --white: #ffffff;
  --heading: #ffffff;
  --border: rgba(255, 255, 255, 0.06);
  --header-bg: rgba(11, 13, 23, 0.92);
  --header-shadow: rgba(0, 0, 0, 0.3);
  --card-shadow: rgba(0, 0, 0, 0.3);
  --mockup-bg: #12152a;
  --mockup-screen: #0f1125;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}

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

img {
  max-width: 100%;
  display: block;
}

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

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
}

.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px var(--header-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--heading);
}

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

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--heading);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Theme Toggle ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.theme-toggle:hover {
  color: var(--heading);
  border-color: var(--primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

/* Light mode: show moon, hide sun */
.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

/* Dark mode: show sun, hide moon */
[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

/* ── Nav Toggle (mobile) ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--heading);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(108, 92, 231, 0.2);
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--heading);
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--heading);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Apps Section ── */
.apps {
  padding: 100px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  color: var(--heading);
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 60px;
  font-size: 1.05rem;
}

/* ── App Card ── */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 40px;
  box-shadow: 0 4px 24px var(--card-shadow);
}

.app-card.featured {
  border-color: rgba(108, 92, 231, 0.2);
}

[data-theme="dark"] .app-card.featured {
  background: linear-gradient(135deg, var(--bg-card), rgba(108, 92, 231, 0.05));
}

.app-card-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.app-badge {
  display: inline-block;
  background: rgba(0, 184, 148, 0.1);
  color: var(--accent);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

[data-theme="dark"] .app-badge {
  background: rgba(0, 206, 201, 0.12);
}

.app-info h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 4px;
}

.app-tagline {
  font-size: 1.05rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 16px;
}

.app-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 520px;
}

.app-features-list {
  list-style: none;
  margin-bottom: 28px;
}

.app-features-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.app-features-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--mockup-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  transition: var(--transition);
}

.store-btn svg {
  width: 20px;
  height: 20px;
}

.store-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

/* ── Phone Mockup ── */
.app-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 260px;
  background: var(--mockup-bg);
  border-radius: 36px;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 40px 80px var(--card-shadow), 0 0 60px rgba(108, 92, 231, 0.08);
}

.phone-screen {
  background: var(--mockup-screen);
  border-radius: 26px;
  padding: 20px 16px;
  min-height: 420px;
  color: #e4e6f0;
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 24px;
  color: #fff;
}

.mockup-icon {
  font-size: 1.3rem;
}

.scan-area {
  background: rgba(108, 92, 231, 0.08);
  border: 2px dashed rgba(108, 92, 231, 0.3);
  border-radius: var(--radius);
  padding: 36px 16px;
  text-align: center;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.scan-area p {
  font-size: 0.82rem;
  color: #9599b3;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scan 2.5s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { top: 0; }
  50% { top: calc(100% - 2px); }
}

.mockup-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.84rem;
  color: #e4e6f0;
}

.status {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.status.done {
  background: rgba(0, 206, 201, 0.15);
  color: #00cec9;
}

.status.pending {
  background: rgba(108, 92, 231, 0.15);
  color: #6c5ce7;
}

/* ── More Apps Teaser ── */
.more-apps-teaser {
  text-align: center;
}

.coming-soon-card {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 36px;
  box-shadow: 0 2px 12px var(--card-shadow);
}

.pulse {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 10px rgba(0, 184, 148, 0); }
}

[data-theme="dark"] .pulse {
  animation-name: pulse-dark;
}

@keyframes pulse-dark {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 206, 201, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 10px rgba(0, 206, 201, 0); }
}

.coming-soon-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ── About ── */
.about {
  padding: 100px 0;
}

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

.about-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 20px;
}

/* ── Contact ── */
.contact {
  padding: 100px 0;
}

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

.contact-inner p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 1.05rem;
}

.contact-email {
  display: inline-block;
  margin-top: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.contact-email:hover {
  border-bottom-color: var(--primary);
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h3 {
  font-size: 1.3rem;
  color: var(--heading);
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links h4,
.footer-social h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--heading);
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(108, 92, 231, 0.08);
  border-radius: 10px;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

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

/* ── Error Pages ── */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.error-page h1 {
  font-size: 6rem;
  font-weight: 800;
  color: var(--primary);
}

.error-page p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 12px 0 28px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .app-card {
    padding: 36px;
  }

  .app-card-inner {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right var(--transition);
    box-shadow: -10px 0 30px var(--card-shadow);
  }

  .nav.open {
    right: 0;
  }

  .nav a {
    font-size: 1.1rem;
    color: var(--text);
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .hero {
    padding: 120px 0 60px;
    min-height: auto;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .app-card {
    padding: 28px;
  }

  .app-card-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .app-features-list li {
    text-align: left;
  }

  .store-buttons {
    justify-content: center;
  }

  .app-visual {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .store-btn {
    width: 100%;
    justify-content: center;
  }

  .phone-mockup {
    width: 240px;
  }

  .coming-soon-card {
    padding: 16px 24px;
  }
}
