/* === Variables === */
:root {
  --primary: #01365d;
  --primary-dark: #002542;
  --primary-light: #1a5a85;
  --accent: #f5a623;
  --accent-light: #ffc56e;
  --text: #1a2436;
  --text-muted: #5a6577;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --bg-row: #f0f3f7;
  --border: #e0e6ed;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(1, 54, 93, 0.08);
  --shadow-lg: 0 12px 40px rgba(1, 54, 93, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }

/* === Top bar === */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
}

/* === Header === */
.site-header {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}
.logo-img {
  height: 100px;
  width: auto;
  display: block;
}
.logo-mark { font-size: 28px; }
.logo-accent { color: var(--accent); }
.footer-logo-img {
  height: 28px;
  width: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}
.footer-brand {
  font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
  font-size: 32px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}
.footer-route {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 14px;
  border-top: 1px solid rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.5);
  font-size: 13px;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.85);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: white;
}
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-outline-light {
  background: transparent;
  color: white;
  border-color: white;
}
.btn-outline-light:hover { background: white; color: var(--primary); }
.btn-lg { padding: 14px 32px; font-size: 17px; }

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245, 166, 35, 0.15), transparent 50%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-block;
  background: rgba(245, 166, 35, 0.2);
  color: var(--accent-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
}
.hero .lead {
  font-size: 19px;
  opacity: 0.92;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}
.hero-cta .btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}
.hero-cta .btn-primary:hover { background: var(--accent-light); color: var(--primary-dark); }
.hero-cta .btn-outline {
  border-color: white;
  color: white;
}
.hero-cta .btn-outline:hover { background: white; color: var(--primary); }
.hero-bullets {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 16px;
  opacity: 0.95;
}

/* Hero ticket card */
.ticket-card {
  background: white;
  color: var(--text);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform 0.3s;
}
.ticket-card:hover { transform: rotate(0); }
.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ticket-top div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.city {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}
.time {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
}
.arrow {
  font-size: 24px;
  color: var(--accent);
  font-weight: bold;
}
.ticket-divider {
  border-top: 2px dashed var(--border);
  margin: 20px -28px;
  position: relative;
}
.ticket-divider::before, .ticket-divider::after {
  content: '';
  position: absolute;
  top: -12px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  border-radius: 50%;
}
.ticket-divider::before { left: -12px; }
.ticket-divider::after { right: -12px; }
.ticket-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ticket-bottom > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}
.ticket-bottom span:not(.label):not(.price) {
  font-weight: 600;
  font-size: 16px;
  color: var(--primary);
}

/* === Features === */
.features {
  padding: 80px 0;
  background: var(--bg-soft);
}
.features .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature {
  background: white;
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.feature:hover { transform: translateY(-4px); }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature h3 { color: var(--primary); margin-bottom: 8px; font-size: 18px; }
.feature p { color: var(--text-muted); font-size: 14px; }

/* === Schedule === */
.schedule { padding: 80px 0; }
.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}
.section-tab {
  display: inline-block;
  width: 6px;
  height: 38px;
  background: var(--accent);
  border-radius: 3px;
}
.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}
.section-price {
  margin-left: auto;
  font-size: 18px;
  color: var(--text);
}
.section-price strong { color: var(--primary); }

.tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.schedule-table h3 {
  text-align: center;
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 20px;
}
.schedule-table table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.schedule-table th {
  background: var(--primary);
  color: white;
  padding: 14px 8px;
  font-weight: 600;
  font-size: 14px;
}
.schedule-table td {
  padding: 14px 8px;
  text-align: center;
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--border);
}
.schedule-table tbody tr:nth-child(even) td { background: var(--bg-row); }

/* === Stations === */
.stations {
  padding: 80px 0;
  background: var(--bg-soft);
}
.stations h2 {
  text-align: center;
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 40px;
  font-weight: 800;
}
.stations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}
.station-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}
.station-flag { font-size: 48px; margin-bottom: 12px; }
.station-card h3 { color: var(--primary); font-size: 24px; margin-bottom: 6px; }
.station-name { font-weight: 600; color: var(--text); margin-bottom: 8px; }
.station-addr { color: var(--text-muted); font-size: 15px; line-height: 1.5; margin-bottom: 14px; }
.station-map {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
}
.station-map:hover { color: var(--primary); }

/* === App === */
.app-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
}
.app-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.app-section h2 { font-size: 36px; margin-bottom: 12px; }
.app-section .lead { font-size: 20px; color: var(--accent-light); margin-bottom: 16px; }
.app-section p { opacity: 0.92; margin-bottom: 24px; }
.app-buttons { display: flex; flex-direction: column; gap: 12px; max-width: 300px; }
.store-btn {
  display: block;
  background: black;
  color: white !important;
  padding: 14px 20px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.2);
}
.store-btn:hover { background: rgba(0,0,0,0.7); }

.phone-mockup { display: flex; justify-content: center; }
.phone {
  width: 240px;
  height: 480px;
  background: #1a1a1a;
  border-radius: 32px;
  padding: 16px 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.phone-screen {
  background: white;
  height: 100%;
  border-radius: 20px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  color: var(--primary);
}
.phone-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.qr-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
  width: 160px;
  height: 160px;
}
.qr-grid div {
  background: var(--primary);
  border-radius: 1px;
}
.qr-grid div:nth-child(odd) { background: var(--primary); }
.qr-grid div:nth-child(3n) { background: white; }
.qr-grid div:nth-child(7n) { background: var(--primary); }
.phone-route { font-weight: 600; font-size: 14px; }

/* === About === */
.about { padding: 80px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}
.about h2 { font-size: 32px; color: var(--primary); margin-bottom: 20px; font-weight: 800; }
.about p { margin-bottom: 16px; color: var(--text); }
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  background: var(--bg-soft);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  border-left: 4px solid var(--accent);
}
.stat strong {
  display: block;
  font-size: 32px;
  color: var(--primary);
  font-weight: 800;
}
.stat span {
  font-size: 13px;
  color: var(--text-muted);
}

/* === CTA === */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  text-align: center;
}
.cta h2 { font-size: 36px; margin-bottom: 12px; }
.cta p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta .btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
}
.cta .btn-primary:hover { background: var(--accent-light); }

/* === Footer === */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}
.site-footer h4 {
  color: white;
  font-size: 16px;
  margin-bottom: 16px;
}
.site-footer ul {
  list-style: none;
}
.site-footer li {
  margin-bottom: 8px;
  font-size: 14px;
}
.site-footer a {
  color: rgba(255,255,255,0.85);
}
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,0.6);
}

/* === Responsive === */
@media (max-width: 900px) {
  .hero-grid, .app-grid, .about-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .nav-links { display: none; }
  .features .container { grid-template-columns: 1fr 1fr; }
  .tables-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar .container { justify-content: center; flex-wrap: wrap; }
  .stations-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .features .container, .footer-grid, .stats { grid-template-columns: 1fr; }
  .hero { padding: 50px 0; }
  .hero h1 { font-size: 26px; }
  .schedule-table th, .schedule-table td { padding: 8px 4px; font-size: 12px; }
  .ticket-card { transform: none; }
}
