/* ===== SOLARA LANDING PAGE ===== */
/* Dark, orange→purple gradient accent. Tall scrollable document —
   hero, feature grid, install steps, footer. "Demo'yu gez" CTA jumps
   to /experience/ where the real newtab + guided tour live. */

:root {
  --bg: #0a0f1c;
  --bg-2: #0f172a;
  --panel: rgba(24, 28, 44, 0.85);
  --text: #f1f5f9;
  --text-dim: rgba(241, 245, 249, 0.72);
  --text-muted: rgba(241, 245, 249, 0.5);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #f97316;
  --accent-2: #a855f7;
  --accent-3: #fbbf24;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(168, 85, 247, 0.15), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(249, 115, 22, 0.1), transparent 50%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ===== Navbar ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 15, 28, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}
.nav-logo-badge {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #fff;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(249,115,22,0.35);
}
.nav-logo-img {
  width: 30px; height: 30px;
  border-radius: 7px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-dim);
}
.nav-links a:hover { color: var(--text); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-lang {
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}
.lang-select {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' opacity='0.6'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
}
.lang-select option {
  background: #1a1a2e;
  color: #fff;
}
.lang-select:hover {
  border-color: var(--accent);
}
[dir="rtl"] .nav { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.35);
}
.nav-zip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.15s;
}
.nav-zip:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); border-color: rgba(255, 255, 255, 0.15); }

@media (max-width: 720px) {
  .nav { padding: 14px 18px; }
  .nav-links { display: none; }
}

/* ===== Hero ===== */
.hero {
  padding: 80px 24px 40px;
  text-align: center;
  max-width: 1040px;
  margin: 0 auto;
}
.hero-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: rgba(216, 180, 254, 0.95);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.hero-title {
  font-size: clamp(42px, 6.5vw, 84px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 35%, var(--accent-2) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto 32px;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border: none;
  box-shadow: 0 14px 40px rgba(168, 85, 247, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(168, 85, 247, 0.5);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--accent); }

/* Chrome-flavored secondary CTA in the hero. White pill with the
   official Chrome wordmark logo — reads instantly as "install in
   Chrome" without the ugly "+" glyph from before. */
.btn-chrome {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  background: #ffffff;
  color: #1f2937;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 10px 30px rgba(255,255,255,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-chrome:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255,255,255,0.18);
}
.btn-chrome svg { display: block; }

.hero-meta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}
.hero-meta span::before {
  content: '·';
  margin-right: 10px;
  color: rgba(255,255,255,0.15);
}
.hero-meta span:first-child::before { display: none; }

/* ===== Preview panel (big screenshot placeholder) ===== */
.preview {
  max-width: 1040px;
  margin: 40px auto 100px;
  padding: 0 24px;
}
.preview-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.preview-frame:hover { transform: translateY(-3px); }
.preview-frame img {
  width: 100%; height: 100%; display: block; border: 0;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

/* Carousel nav arrows */
.preview-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.15s, background 0.15s, transform 0.15s;
  z-index: 2;
}
.preview-nav:hover { opacity: 1; background: rgba(249, 115, 22, 0.85); border-color: var(--accent); }
.preview-nav:active { transform: translateY(-50%) scale(0.95); }
.preview-prev { left: 18px; }
.preview-next { right: 18px; }

/* Dots */
.preview-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.preview-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}
.preview-dot:hover { background: rgba(255, 255, 255, 0.7); }
.preview-dot.is-active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* Centered "Live demo" CTA badge (always visible) */
.preview-cta {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(249, 115, 22, 0.5);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
  z-index: 2;
  transition: transform 0.15s, background 0.15s;
}
.preview-cta:hover {
  transform: scale(1.05);
  background: var(--accent);
  border-color: var(--accent);
}

/* ===== Section headers ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-sub {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 600px;
  line-height: 1.65;
  margin-bottom: 40px;
}

/* ===== Feature grid ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature {
  padding: 22px 22px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(249, 115, 22, 0.35);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(168, 85, 247, 0.2));
  font-size: 22px;
  margin-bottom: 14px;
}
.feature h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.feature p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* ===== Install ===== */
.install {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  padding: 28px 24px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 20px;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(168,85,247,0.4);
}
.step h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0 6px;
}
.step p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ===== CTA strip ===== */
.cta-strip {
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, rgba(249,115,22,0.08), rgba(168,85,247,0.08));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-strip h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cta-strip p {
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}
.footer a { color: var(--accent); }
.footer a + a { margin-left: 14px; }

/* ===== RESPONSIVE — LANDING PAGE =====
   Mobile-first scaling for phone (360px), tablet (768px), and
   everything in between. The extension may become Electron/mobile
   in the future, so the landing page must adapt to any viewport. */

/* ---- Tablet (≤900px) ---- */
@media (max-width: 900px) {
  .hero { padding: 60px 20px 30px; }
  .hero-title { font-size: clamp(28px, 6vw, 48px); }
  .hero-sub { font-size: clamp(14px, 2.5vw, 18px); padding: 0 12px; }
  .hero-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero-meta { gap: 12px; font-size: 11px; flex-wrap: wrap; justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .section { padding: 48px 18px; }
  .section-title { font-size: clamp(22px, 5vw, 36px); }
  .preview-frame { max-width: 90vw; }
}

/* ---- Phone (≤600px) ---- */
@media (max-width: 600px) {
  .nav { padding: 12px 14px; }
  .nav-logo-img { width: 24px; height: 24px; }
  .nav-logo span { font-size: 16px; }
  .nav-right { gap: 8px; }
  .nav-cta { padding: 7px 12px; font-size: 12px; }
  .lang-select { padding: 5px 8px; font-size: 12px; padding-right: 20px; }

  .hero { padding: 40px 14px 24px; }
  .hero-crumb { font-size: 11px; padding: 5px 12px; }
  .hero-title { font-size: clamp(24px, 8vw, 36px); }
  .hero-sub { font-size: 13px; }
  .hero-actions a { width: 100%; text-align: center; justify-content: center; }
  .hero-meta span { font-size: 10px; }

  .features { grid-template-columns: 1fr; gap: 10px; }
  .feature { padding: 16px; }
  .feature h3 { font-size: 14px; }
  .feature p { font-size: 12px; }

  .section { padding: 36px 14px; }
  .section-title { font-size: clamp(20px, 6vw, 30px); }
  .section-sub { font-size: 13px; }
  .section-eyebrow { font-size: 11px; }

  .cta-strip { padding: 36px 14px; }
  .cta-strip h2 { font-size: clamp(18px, 5vw, 26px); }
  .cta-strip p { font-size: 13px; }

  .preview-frame img { border-radius: 8px; }
  .preview-nav { width: 32px; height: 32px; font-size: 18px; }
  .preview-cta { font-size: 12px; padding: 8px 16px; }

  .footer { padding: 24px 14px; font-size: 12px; }
}

/* ---- Very small phone (≤380px) ---- */
@media (max-width: 380px) {
  .hero-title { font-size: 22px; }
  .nav-cta { display: none; }
  .features { gap: 8px; }
  .feature { padding: 12px; }
}
