:root {
  --bg-light: #FDF9F9; /* backgroundLight */
  --bg-dark: #1A1324;  /* backgroundDark */
  --card-light: #FFFFFF; /* cardBackgroundLight */
  --card-dark: #1C1626;  /* cardBackgroundDark */
  --text-light: #443C4C; /* textPrimaryLight */
  --text-dark: #E4DCE8;  /* textPrimaryDark */
  --text2-light: #6C566E; /* textSecondaryLight */
  --text2-dark: #B5AFC0;  /* textSecondaryDark */
  --sep-light: #EAE2EF; /* separatorLight */
  --sep-dark: #3A3244;  /* separatorDark */
  --amber: #F8B400;     /* amberAccent */
  --accent-a: #FF7E5F;  /* accentGradient start */
  --accent-b: #FD3A84;  /* accentGradient end */
}

[data-theme="light"] {
  --bg: var(--bg-light);
  --card: var(--card-light);
  --text: var(--text-light);
  --text2: var(--text2-light);
  --sep: var(--sep-light);
}

[data-theme="dark"] {
  --bg: var(--bg-dark);
  --card: var(--card-dark);
  --text: var(--text-dark);
  --text2: var(--text2-dark);
  --sep: var(--sep-dark);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-rounded, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.muted { color: var(--text2); }

.site-header {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: saturate(120%) blur(6px);
  background: linear-gradient(180deg, rgba(0,0,0,0.08), transparent);
  border-bottom: 1px solid var(--sep);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px; position: relative;
  background: linear-gradient(135deg, var(--card), var(--card));
  box-shadow: 
    inset 0 0 0 1px var(--sep), 
    0 6px 20px rgba(0,0,0,0.12),
    0 0 20px rgba(253,58,132,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}
.brand-mark:hover {
  box-shadow: 
    inset 0 0 0 1px var(--sep), 
    0 8px 24px rgba(0,0,0,0.15),
    0 0 30px rgba(253,58,132,0.15);
  transform: scale(1.05);
}
.brand-mark::before { 
  content: ""; 
  position: absolute; 
  inset: 0; 
  background: url('../img/apple-touch-icon.png') center/cover; 
  border-radius: 8px; 
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-size: 14px; }
.brand-text strong { font-size: 16px; }

.nav { display: flex; align-items: center; gap: 12px; }
.nav a { color: var(--text2); text-decoration: none; padding: 6px 10px; border-radius: 8px; border: 1px solid transparent; }
.nav a.active { color: var(--text); border-color: var(--sep); }
.theme-toggle { background: var(--card); border: 1px solid var(--sep); color: var(--text); padding: 6px 10px; border-radius: 8px; cursor: pointer; }

.hero { padding: 64px 0 24px; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 28px; }
.hero .lead { color: var(--text2); }
.cta-row { display: flex; gap: 12px; margin-top: 20px; }

.btn { 
  display: inline-block; 
  padding: 12px 16px; 
  border-radius: 12px; 
  text-decoration: none; 
  border: 1px solid var(--sep); 
  color: var(--text); 
  background: var(--card); 
  transition: all .3s ease; 
  box-shadow: 0 0 20px rgba(253,58,132,0.08);
}
.btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 0 30px rgba(253,58,132,0.15);
}
.btn-primary { 
  border: none; 
  color: white; 
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b)); 
  box-shadow: 
    0 8px 20px rgba(253,58,132,0.25),
    0 0 30px rgba(253,58,132,0.2);
}
.btn-primary:hover {
  box-shadow: 
    0 12px 30px rgba(253,58,132,0.35),
    0 0 40px rgba(253,58,132,0.25);
}
.btn-secondary { background: var(--card); }
.btn-lg { padding: 14px 18px; border-radius: 14px; font-weight: 600; }

.hero-screenshots { position: relative; height: 500px; display: flex; align-items: center; justify-content: center; }
.iphone-frame {
  position: relative;
  width: 280px;
  height: 560px;
  background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  border-radius: 40px;
  padding: 8px;
  box-shadow: 
    0 0 0 2px #333,
    0 20px 40px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 0 30px rgba(253,58,132,0.15);
}
.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 32px;
  overflow: hidden;
}
.screenshot-carousel { position: relative; width: 100%; height: 100%; }
.screenshot { 
  position: absolute; 
  inset: 0; 
  opacity: 0; 
  transition: opacity 0.5s ease; 
  border-radius: 32px;
  overflow: hidden;
}
.screenshot.active { opacity: 1; }
.screenshot img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  border-radius: 32px;
}

/* iPhone status bar elements */
.iphone-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: #000;
  border-radius: 2px;
  z-index: 10;
}

.iphone-frame::after {
  content: "";
  position: absolute;
  top: 35px;
  right: 20px;
  width: 8px;
  height: 8px;
  background: #000;
  border-radius: 50%;
  z-index: 10;
}
.carousel-controls { 
  position: absolute; 
  bottom: -50px; 
  left: 50%; 
  transform: translateX(-50%); 
  display: flex; 
  gap: 8px; 
}
.carousel-btn { 
  width: 12px; 
  height: 12px; 
  border-radius: 50%; 
  border: none; 
  background: var(--text2); 
  cursor: pointer; 
  transition: all 0.3s ease; 
  opacity: 0.4;
  box-shadow: 0 0 4px rgba(248,180,0,0.2);
}
.carousel-btn:hover { 
  background: var(--amber); 
  transform: scale(1.2); 
  opacity: 0.8;
  box-shadow: 0 0 8px rgba(248,180,0,0.4);
}
.carousel-btn.active { 
  background: var(--amber); 
  opacity: 1;
  box-shadow: 0 0 12px rgba(248,180,0,0.6);
}

.features .feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.feature { 
  background: var(--card); 
  border: 1px solid var(--sep); 
  border-radius: 12px; 
  padding: 16px; 
  box-shadow: 
    0 4px 16px rgba(0,0,0,0.06),
    0 0 20px rgba(253,58,132,0.08);
  transition: all 0.3s ease;
}
.feature:hover {
  box-shadow: 
    0 8px 24px rgba(0,0,0,0.1),
    0 0 30px rgba(253,58,132,0.12);
  transform: translateY(-2px);
}
.feature-icon { font-size: 20px; }

.download { text-align: center; }

.site-footer { border-top: 1px solid var(--sep); padding: 24px 0; margin-top: 24px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--text2); text-decoration: none; }
.footer-meta a { color: var(--amber); text-decoration: none; transition: all 0.3s ease; }
.footer-meta a:hover { color: var(--amber); text-shadow: 0 0 8px rgba(248,180,0,0.5); }

.legal h1 { margin-top: 0; }
.legal h2 { margin-top: 28px; }
.legal p, .legal li { color: var(--text2); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { order: -1; height: 220px; }
  .features .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

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


