:root {
  color-scheme: light dark;
  --brand: #0d7a7a;
  --brand-dark: #0a5f5f;
  --brand-light: #14a3a3;
  --accent: #e63946;
  --lime: #b6e83a;
  --lime-dark: #8fc419;
  --sky: #4fc3e8;
  --bg: #ffffff;
  --bg-alt: #f4f8f8;
  --text: #16211f;
  --text-muted: #55625f;
  --border: #e2e8e8;
  --radius: 14px;
  --max-width: 1080px;
  --card-shadow: 0 1px 2px rgba(16, 40, 38, 0.04);
  --card-shadow-hover: 0 20px 40px -16px rgba(13, 122, 122, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1615;
    --bg-alt: #131e1d;
    --text: #eef3f2;
    --text-muted: #a3b3b0;
    --border: #223231;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--brand-light); }

/* Language toggle: show/hide by [lang] blocks based on html[data-lang] */
html[data-lang="sq"] [lang="en"] { display: none !important; }
html[data-lang="en"] [lang="sq"] { display: none !important; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 14px 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 3px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.2s ease;
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
}

.lang-toggle button {
  background: none;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 600;
}

.lang-toggle button.active {
  background: var(--brand);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  background:
    radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, var(--lime) 55%, transparent), transparent 60%),
    radial-gradient(120% 140% at 15% -10%, var(--brand-light), var(--brand) 55%, var(--brand-dark) 100%);
  color: #fff;
  padding: 88px 0 0;
  overflow: hidden;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  width: 460px;
  height: 460px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(182,232,58,0.35), transparent 70%);
}

.hero::after {
  width: 340px;
  height: 340px;
  bottom: -180px;
  left: 4%;
  background: radial-gradient(circle, rgba(79,195,232,0.25), transparent 70%);
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 48px;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.05;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 .hl {
  background: linear-gradient(100deg, var(--lime) 20%, #eaffb0 50%, var(--lime) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.tagline {
  font-size: 19px;
  color: rgba(255,255,255,0.92);
  max-width: 46ch;
  margin: 0 0 32px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.12s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.35);
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.35);
}

.hero-art {
  position: relative;
}

.hero-art .phone-frame {
  position: relative;
  transform: rotate(-3deg);
  transition: transform 0.35s ease;
}

.hero-art:hover .phone-frame {
  transform: rotate(0deg);
}

.hero-art img {
  width: 100%;
  display: block;
  border-radius: 22px;
  box-shadow:
    0 30px 70px -12px rgba(0,0,0,0.45),
    0 0 0 8px rgba(255,255,255,0.08),
    0 0 0 9px rgba(255,255,255,0.35);
}

.hero-art .glow-badge {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--lime);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.4);
}

.live-card {
  position: absolute;
  top: -22px;
  right: -20px;
  width: 210px;
  background: rgba(20, 30, 29, 0.82);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 20px 40px -14px rgba(0,0,0,0.5);
  color: #fff;
}

.live-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--lime);
}

.live-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(182,232,58,0.25);
}

.live-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 5px 0;
}

.line-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--chip, var(--brand));
  font-weight: 800;
  font-size: 12px;
}

.live-card-eta { color: rgba(255,255,255,0.85); }
.live-card-eta.ok { color: var(--lime); font-weight: 600; }
.live-card-eta.late { color: #ffb454; font-weight: 600; }

@media (max-width: 640px) {
  .live-card { display: none; }
}

/* Wave divider between hero and next section */
.wave-divider {
  display: block;
  width: 100%;
  height: 64px;
  margin-top: -1px;
}

.wave-divider path {
  fill: var(--bg-alt);
}

/* Sections */
section.block {
  padding: 80px 0;
}

section.block.alt {
  background: var(--bg-alt);
}

.eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 10px;
}

h2.section-title {
  font-size: 32px;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p.section-sub {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 60ch;
  margin: 0 0 44px;
}

/* Demo sections (live bus / trip planner) */
.demo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.demo-split.reverse .demo-copy { order: 2; }
.demo-split.reverse .demo-card { order: 1; }

.demo-copy .section-sub { margin-bottom: 0; }

.demo-card {
  justify-self: center;
  width: 100%;
  max-width: 300px;
}

.live-card-standalone {
  position: static;
  width: 100%;
  max-width: 300px;
  padding: 20px 22px;
  border-radius: var(--radius);
}

.live-card-standalone .live-card-row { font-size: 14.5px; padding: 8px 0; }

.route-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--card-shadow);
}

.route-card-endpoints {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.route-arrow { color: var(--text-muted); font-weight: 400; }

.route-card-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
  padding: 6px 0;
}

.route-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 22px;
  font-size: 15px;
}

.route-card-total {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--text-muted);
}

.route-card-total strong {
  color: var(--text);
  font-size: 17px;
  margin-left: auto;
}

@media (max-width: 720px) {
  .demo-split,
  .demo-split.reverse .demo-copy,
  .demo-split.reverse .demo-card {
    order: initial;
  }
  .demo-split {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }
  .demo-copy .section-sub { margin: 0 auto; }
  .demo-card { max-width: 320px; }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 24px;
}

.feature-card:first-child {
  grid-column: span 2;
}

.jtbd-grid {
  grid-template-columns: repeat(2, 1fr);
}

.jtbd-grid .feature-card:first-child {
  grid-column: span 1;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}

.feature-card .icon-badge {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 16px;
  background: var(--badge-bg, color-mix(in srgb, var(--brand) 14%, transparent));
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.stat .num {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .label {
  color: var(--text-muted);
  font-size: 14.5px;
}

/* Page header band (support / privacy pages) */
.page-header {
  position: relative;
  background:
    radial-gradient(70% 120% at 90% 0%, color-mix(in srgb, var(--lime) 45%, transparent), transparent 60%),
    radial-gradient(120% 160% at 10% -20%, var(--brand-light), var(--brand) 60%, var(--brand-dark) 100%);
  color: #fff;
  padding: 56px 0 72px;
  overflow: hidden;
}

.page-header .wrap { position: relative; }

.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.page-header p {
  font-size: 17px;
  color: rgba(255,255,255,0.9);
  max-width: 56ch;
  margin: 0;
}

/* Privacy / support pages */
.doc {
  max-width: 720px;
  margin: -40px auto 0;
  padding: 0 24px 96px;
  position: relative;
}

.doc > section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--card-shadow-hover);
}

.doc h2 { font-size: 20px; margin-top: 36px; padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.doc h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex: none;
}
.doc h2:first-of-type { margin-top: 8px; }
.doc h3 { font-size: 16.5px; margin-top: 24px; }
.doc .meta { color: var(--text-muted); font-size: 14px; }
.doc code { background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; font-size: 14px; }
.doc hr { border: none; border-top: 1px solid var(--border); margin: 48px 0; }

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.doc th, .doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}

.doc th {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.support-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 8%, var(--bg)), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 14px 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
  box-shadow: var(--card-shadow);
}

.faq-item h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-item h3::before {
  content: "?";
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-item p { margin: 0; color: var(--text-muted); }

#privacy-cta .wrap {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--bg)), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px;
  display: flex;
  align-items: center;
  gap: 28px;
}

#privacy-cta .privacy-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
}

#privacy-cta .section-title,
#privacy-cta .section-sub {
  margin: 0;
}

#privacy-cta .section-sub { margin-top: 8px; }

@media (max-width: 640px) {
  #privacy-cta .wrap { flex-direction: column; text-align: center; padding: 32px 24px; }
}

/* Scroll reveal (only hides content once JS confirms it can reveal it again) */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.has-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Final CTA band */
.final-cta {
  position: relative;
  background: radial-gradient(140% 160% at 50% 0%, var(--brand-light), var(--brand) 50%, var(--brand-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 72px 0;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 50% 100%, rgba(182,232,58,0.25), transparent 70%);
  pointer-events: none;
}

.final-cta .wrap { position: relative; }

.final-cta h2 {
  color: #fff;
}

.final-cta p.section-sub {
  color: rgba(255,255,255,0.88);
  margin-left: auto;
  margin-right: auto;
}

.final-cta .cta-row {
  justify-content: center;
  margin-top: 8px;
}

/* Footer */
footer.site {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  color: var(--text-muted);
  font-size: 14px;
}

footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site a {
  color: var(--text-muted);
  text-decoration: none;
  margin-inline-start: 18px;
}

footer.site a:hover { color: var(--text); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
  .hero h1 { font-size: 34px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:first-child { grid-column: span 2; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-links.open {
    max-height: 400px;
    padding: 12px 0 20px;
  }

  .nav-links a { padding-bottom: 0; }
  .lang-toggle { margin-top: 4px; }
}

@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card:first-child { grid-column: span 1; }
  .stats-row { grid-template-columns: 1fr; gap: 14px; }
}
