/* === SmokeLessTimer Dark Premium Design === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

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

:root {
  --bg: #09090f;
  --bg-surface: #111118;
  --bg-card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --text: #f0f0f5;
  --text-secondary: #8a8a9a;
  --accent-blue: #3b82f6;
  --accent-orange: #f97316;
  --glow-blue: rgba(59,130,246,0.15);
  --glow-orange: rgba(249,115,22,0.1);
  --header-bg: rgba(9,9,15,0.8);
  --section-bg: #0d0d14;
  --modal-bg: #151520;
  --input-bg: #1a1a28;
  --input-border: #2a2a3a;
  --select-bg: #1a1a28;
  --select-border: #2a2a3a;
  --cookie-bg: rgba(21,21,32,0.9);
  --card-border: rgba(255,255,255,0.08);
}

.light-mode {
  --bg: #F9FAFB;
  --bg-surface: #FFFFFF;
  --bg-card: rgba(255,255,255,0.8);
  --border: #E5E7EB;
  --text: #111827;
  --text-secondary: #4B5563;
  --header-bg: rgba(249,250,251,0.8);
  --section-bg: #F3F4F6;
  --modal-bg: #FFFFFF;
  --input-bg: #F9FAFB;
  --input-border: #D1D5DB;
  --select-bg: #F3F4F6;
  --select-border: #D1D5DB;
  --cookie-bg: rgba(243,244,246,0.9);
  --card-border: #E5E7EB;
  --glow-blue: rgba(59,130,246,0.08);
  --glow-orange: rgba(249,115,22,0.05);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s, color 0.4s;
}

/* === Organic Blobs === */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
  animation: blobFloat 20s ease-in-out infinite alternate;
}
.blob-blue { background: var(--glow-blue); width: 500px; height: 500px; }
.blob-orange { background: var(--glow-orange); width: 400px; height: 400px; }
.blob-sm { width: 250px; height: 250px; }
@keyframes blobFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(10px, -10px) scale(1.02); }
}

/* === Header === */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1rem 2rem;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.4s;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.logo-group { display: flex; align-items: center; gap: 0.75rem; }
.logo-group img { width: 40px; height: 40px; border-radius: 10px; }
.logo-group span { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.header-controls { display: flex; align-items: center; gap: 0.75rem; }

/* === Language Select === */
.lang-select {
  background: var(--select-bg); border: 1px solid var(--select-border);
  color: var(--text); border-radius: 8px; padding: 0.5rem 0.75rem;
  appearance: none; cursor: pointer; font-size: 0.875rem;
  transition: all 0.3s;
}
.lang-select:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px var(--glow-blue); }

/* === Theme Toggle === */
#theme-toggle {
  background: none; border: none; cursor: pointer; padding: 0.5rem;
  color: var(--text-secondary); border-radius: 50%;
  transition: color 0.3s, background 0.3s;
}
#theme-toggle:hover { color: var(--text); background: var(--bg-card); }

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 2rem 4rem;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center; position: relative; z-index: 1;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 1.5rem;
  color: var(--text);
}
.hero p {
  font-size: 1.125rem; color: var(--text-secondary);
  max-width: 500px; margin-bottom: 2rem; line-height: 1.7;
}
.hero-phone { display: flex; justify-content: center; }
.hero-mockup {
  max-width: 420px; width: 100%;
  filter: drop-shadow(0 25px 60px rgba(0,0,0,0.4)) drop-shadow(0 0 80px var(--glow-blue));
  transition: transform 0.4s;
}
.hero-mockup:hover { transform: translateY(-8px) scale(1.02); }
.app-store-link {
  display: inline-block;
  transition: transform 0.3s;
}
.app-store-link:hover { transform: scale(1.05); }
.app-store-link img { height: 56px; }

/* === Section Labels === */
.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent-blue);
  margin-bottom: 1rem;
}

/* === How It Works === */
.how-it-works {
  padding: 6rem 2rem; text-align: center;
  position: relative;
}
.how-it-works h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800; margin-bottom: 1.5rem;
}
.how-it-works p {
  font-size: 1.125rem; color: var(--text-secondary);
  max-width: 700px; margin: 0 auto; line-height: 1.8;
}

/* === Features === */
.features {
  padding: 6rem 2rem;
  background: var(--section-bg);
  position: relative;
  overflow: hidden;
}
.features-inner { max-width: 1200px; margin: 0 auto; }
.features h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800; text-align: center; margin-bottom: 3rem;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  position: relative; z-index: 1;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  border-color: rgba(59,130,246,0.3);
}
.light-mode .feature-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.feature-card.span-2 { grid-column: span 2; }
.feature-card img.screenshot {
  width: 200px; max-width: 100%; margin: 0 auto 1.5rem;
  border-radius: 1.25rem;
  border: 2px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: border-color 0.3s;
}
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

/* === Apple Watch Section === */
.watch-section {
  padding: 6rem 2rem;
  position: relative; overflow: hidden;
}
.watch-section h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800; text-align: center; margin-bottom: 1rem;
}
.watch-section > p { text-align: center; color: var(--text-secondary); margin-bottom: 3rem; font-size: 1.1rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.watch-grid {
  display: flex; justify-content: center; gap: 2.5rem;
  flex-wrap: wrap; position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto;
}
.watch-item { text-align: center; }
.watch-item img {
  width: 180px; border-radius: 2rem;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3), 0 0 50px var(--glow-blue);
  transition: transform 0.4s, box-shadow 0.4s;
}
.light-mode .watch-item img { box-shadow: 0 15px 40px rgba(0,0,0,0.1); }
.watch-item img:hover { transform: translateY(-8px) scale(1.05); }
.watch-item span {
  display: block; margin-top: 1rem;
  font-size: 0.85rem; font-weight: 600; color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* === Slogan === */
.slogan-section {
  padding: 6rem 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.slogan-section p {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #3b82f6, #2563eb);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Footer === */
footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}
.footer-links { margin-top: 1rem; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent-blue); }

/* === Modals === */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: var(--modal-bg);
  border: 1px solid var(--border);
  border-radius: 1.5rem; padding: 2rem;
  width: 90%; max-width: 500px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}
.modal-content.wide { max-width: 650px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-header h2 { font-size: 1.5rem; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--text-secondary);
  font-size: 1.75rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-body { color: var(--text-secondary); max-height: 60vh; overflow-y: auto; }
.modal-body p { margin-bottom: 1rem; line-height: 1.6; }

/* === Form === */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.9rem; }
.modal-input {
  width: 100%; padding: 0.6rem 1rem;
  background: var(--input-bg); border: 1px solid var(--input-border);
  border-radius: 0.5rem; color: var(--text); font-size: 0.95rem;
  transition: border-color 0.3s;
}
.modal-input:focus { outline: none; border-color: var(--accent-blue); box-shadow: 0 0 0 3px var(--glow-blue); }
textarea.modal-input { resize: vertical; min-height: 100px; }
.btn-primary {
  width: 100%; padding: 0.75rem;
  background: var(--accent-blue); color: #fff;
  border: none; border-radius: 0.5rem;
  font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: #2563eb; transform: scale(1.02); }
.success-msg {
  display: none; text-align: center; padding: 1rem;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3);
  border-radius: 0.5rem; color: #4ade80; margin-top: 1rem;
}
.success-msg.show { display: block; }

/* === Cookie Banner === */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  padding: 0.75rem 1.5rem;
  background: var(--cookie-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.cookie-inner p { font-size: 0.875rem; color: var(--text); }
.cookie-inner a { color: var(--accent-blue); font-weight: 600; text-decoration: none; }
.cookie-inner a:hover { text-decoration: underline; }
.cookie-btn {
  padding: 0.4rem 1rem; border-radius: 0.5rem;
  font-weight: 600; cursor: pointer;
  background: transparent; color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
  transition: all 0.3s;
}
.cookie-btn:hover { background: var(--accent-blue); color: #fff; }

body.cookie-visible { padding-bottom: 80px; }

/* === Utilities === */
.hidden { display: none !important; }
.text-blue { color: var(--accent-blue); }

/* === Responsive === */
@media (max-width: 768px) {
  .hero { padding: 7rem 1.5rem 3rem; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-mockup { max-width: 300px; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card.span-2 { grid-column: span 1; }
  .watch-item img { width: 140px; }
  .blob { opacity: 0.3; }
  .blob-blue { width: 300px; height: 300px; }
  .blob-orange { width: 200px; height: 200px; }
  header { padding: 0.75rem 1rem; }
  .lang-select { width: 60px; }
}
