/* ============================================================
   Gekko Browser Website — style.css
   ============================================================ */

/* ---------- CSS Variables (Gekko Theme default) ---------- */
:root {
  --bg:         #0f1d12;
  --surface:    #17331e;
  --hover:      #1f4026;
  --accent:     #5ac94d;
  --accent-glow: rgba(90, 201, 77, 0.25);
  --text:       #e5f9d6;
  --text-sec:   #9bc48b;
  --border:     rgba(90, 201, 77, 0.15);
  --navbar-bg:  rgba(15, 29, 18, 0.88);
  --radius:     12px;
  --radius-lg:  20px;
  --shadow:     0 4px 24px rgba(0,0,0,0.45);
  --transition: 0.22s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Typography ---------- */
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--text-sec); }

/* ---------- Layout Helpers ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 6rem 0; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.5); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.nav-logo .logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-sec);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: var(--bg) !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 700 !important;
  transition: opacity var(--transition), transform var(--transition) !important;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(90,201,77,0.12);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.hero h1 { margin-bottom: 1.1rem; }
.hero h1 span { color: var(--accent); }

.hero-tagline {
  font-size: 1.2rem;
  color: var(--text-sec);
  margin-bottom: 2.2rem;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
  box-shadow: 0 0 0 0 var(--accent-glow);
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
  opacity: 0.92;
  text-decoration: none;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--hover);
  border-color: rgba(90,201,77,0.35);
  text-decoration: none;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.8rem;
  font-size: 0.82rem;
  color: var(--text-sec);
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.hero-meta i { color: var(--accent); }

/* --- Browser Mockup --- */
.hero-visual { display: flex; justify-content: center; align-items: center; }

.browser-mockup {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 60px rgba(90,201,77,0.07);
  overflow: hidden;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot-red   { background: #ff5f57; }
.dot-yellow{ background: #febc2e; }
.dot-green { background: #28c840; }

.mockup-addressbar {
  flex: 1;
  margin-left: 0.5rem;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
  padding: 0.28rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-sec);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mockup-addressbar i { color: var(--accent); font-size: 0.7rem; }

.mockup-tabs {
  display: flex;
  gap: 2px;
  padding: 0.5rem 0.75rem 0;
  background: rgba(0,0,0,0.15);
}
.mockup-tab {
  padding: 0.35rem 0.9rem;
  border-radius: 8px 8px 0 0;
  font-size: 0.72rem;
  color: var(--text-sec);
  background: rgba(0,0,0,0.2);
  white-space: nowrap;
}
.mockup-tab.active {
  background: var(--surface);
  color: var(--text);
}

.mockup-body {
  padding: 1.5rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mockup-skeleton {
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 5px;
  animation: shimmer 2s infinite;
}
.mockup-skeleton.short { width: 55%; }
.mockup-skeleton.medium { width: 80%; }
.mockup-skeleton.long { width: 95%; }
.mockup-skeleton-img {
  height: 90px;
  background: rgba(90,201,77,0.08);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.8rem;
}

@keyframes shimmer {
  0%   { opacity: 0.5; }
  50%  { opacity: 0.9; }
  100% { opacity: 0.5; }
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Features ---------- */
.features { background: rgba(0,0,0,0.18); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
  cursor: default;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  border-color: rgba(90,201,77,0.35);
  background: var(--hover);
}

.feature-icon {
  width: 44px; height: 44px;
  background: rgba(90,201,77,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  transition: background var(--transition);
}
.feature-card:hover .feature-icon {
  background: rgba(90,201,77,0.22);
}

.feature-card h3 { margin-bottom: 0.4rem; color: var(--text); }
.feature-card p  { font-size: 0.88rem; line-height: 1.6; }

.feature-card-more {
  border-style: dashed;
}
.feature-card-more .feature-icon {
  background: rgba(90,201,77,0.08);
}
.feature-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: gap var(--transition);
}
.feature-more-link:hover {
  gap: 0.55rem;
  text-decoration: none;
}

/* ---------- Themes Showcase ---------- */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.theme-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}
.theme-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}
.theme-card.active { border-color: var(--accent); }

.theme-preview {
  padding: 1.25rem 1.25rem 0;
}
.theme-browser {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.theme-titlebar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.55rem 0.75rem;
}
.theme-dot { width: 9px; height: 9px; border-radius: 50%; }
.theme-url {
  flex: 1;
  height: 16px;
  border-radius: 4px;
  margin-left: 6px;
}
.theme-content {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.theme-line {
  height: 8px;
  border-radius: 4px;
  opacity: 0.35;
}
.theme-line.short { width: 50%; }
.theme-line.medium { width: 75%; }

.theme-info {
  padding: 1rem 1.25rem;
}
.theme-info h3 { margin-bottom: 0.2rem; }
.theme-info p { font-size: 0.82rem; }

.theme-swatches {
  display: flex;
  gap: 6px;
  margin-top: 0.65rem;
}
.swatch {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.12);
}

/* Gekko theme card */
.theme-gekko {
  background: linear-gradient(160deg, #17331e 0%, #0f1d12 100%);
}
.theme-gekko .theme-titlebar { background: rgba(0,0,0,0.3); }
.theme-gekko .theme-dot:first-child { background: #ff5f57; }
.theme-gekko .theme-dot:nth-child(2) { background: #febc2e; }
.theme-gekko .theme-dot:nth-child(3) { background: #28c840; }
.theme-gekko .theme-url { background: rgba(90,201,77,0.15); }
.theme-gekko .theme-content { background: #17331e; }
.theme-gekko .theme-line { background: #9bc48b; }
.theme-gekko .theme-info { color: #e5f9d6; }
.theme-gekko .theme-info p { color: #9bc48b; }

/* Dark theme card */
.theme-dark {
  background: linear-gradient(160deg, #303134 0%, #202124 100%);
}
.theme-dark .theme-titlebar { background: rgba(0,0,0,0.3); }
.theme-dark .theme-dot:first-child { background: #ff5f57; }
.theme-dark .theme-dot:nth-child(2) { background: #febc2e; }
.theme-dark .theme-dot:nth-child(3) { background: #28c840; }
.theme-dark .theme-url { background: rgba(138,180,248,0.15); }
.theme-dark .theme-content { background: #303134; }
.theme-dark .theme-line { background: #9aa0a6; }
.theme-dark .theme-info { color: #e8eaed; }
.theme-dark .theme-info p { color: #9aa0a6; }

/* Light theme card */
.theme-light {
  background: linear-gradient(160deg, #ffffff 0%, #f8f9fa 100%);
}
.theme-light .theme-titlebar { background: #f1f3f4; border-bottom: 1px solid #dadce0; }
.theme-light .theme-dot:first-child { background: #ff5f57; }
.theme-light .theme-dot:nth-child(2) { background: #febc2e; }
.theme-light .theme-dot:nth-child(3) { background: #28c840; }
.theme-light .theme-url { background: #f1f3f4; }
.theme-light .theme-content { background: #ffffff; }
.theme-light .theme-line { background: #5f6368; }
.theme-light .theme-info { color: #202124; }
.theme-light .theme-info p { color: #5f6368; }

/* ---------- CTA ---------- */
.cta {
  background: radial-gradient(ellipse at center, rgba(90,201,77,0.10) 0%, transparent 65%);
  text-align: center;
}
.cta h2 { margin-bottom: 0.75rem; }
.cta p { font-size: 1.1rem; margin-bottom: 2.25rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.cta-note {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-sec);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cta-note span { white-space: nowrap; }
.cta-note-sep { color: var(--text-sec); opacity: 0.5; }
.cta-note i { color: var(--accent); }

/* ---------- Stats Strip ---------- */
.stats {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat-item {}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.85rem; color: var(--text-sec); }

/* ---------- Footer ---------- */
footer {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.75rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}
.footer-brand .logo-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  color: var(--text-sec);
  font-size: 0.88rem;
  transition: color var(--transition);
  text-decoration: none;
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-sec);
}
.footer-bottom a { color: var(--text-sec); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero Screenshot Frame ---------- */
.hero-screenshot-frame {
  width: 100%;
  max-width: 620px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 60px rgba(90,201,77,0.07);
  overflow: hidden;
}
.screenshot-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid var(--border);
}
.screenshot-frame-bar span {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: block;
}
.hero-screenshot-img {
  width: 100%;
  display: block;
  border-radius: 0 0 calc(var(--radius-lg) - 1px) calc(var(--radius-lg) - 1px);
}

/* ---------- Screenshots Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  aspect-ratio: 16 / 10;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.5);
  border-color: rgba(90,201,77,0.4);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.03); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }

.lightbox-inner {
  max-width: min(90vw, 1100px);
  text-align: center;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,0.7);
  display: block;
  margin: 0 auto;
}
#lightboxLabel {
  color: var(--text-sec);
  margin-top: 0.85rem;
  font-size: 0.9rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition);
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.22); }

.lightbox-close { top: 1.25rem; right: 1.25rem; }
.lightbox-prev  { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.25rem; top: 50%; transform: translateY(-50%); }

/* ---------- Themes Layout with Screenshot ---------- */
.themes-section {}

.themes-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.themes-screenshot-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.themes-screenshot-frame img {
  width: 100%;
  display: block;
}
.themes-screenshot-note {
  margin-top: 0.9rem;
  font-size: 0.85rem;
  color: var(--text-sec);
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .themes-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-tagline { margin: 0 auto 2rem; }
  .hero-actions { justify-content: center; }
  .hero-meta { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-screenshot-frame { max-width: 520px; margin: 0 auto; }

  .themes-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 640px) {
  section { padding: 4rem 0; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .themes-grid { grid-template-columns: 1fr; }
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
