@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

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

:root {
  --bg: #0b0f14;
  --bg-elevated: #10161d;
  --surface: #141b24;
  --surface-hover: #1c2633;
  --border: #243044;
  --border-light: #2d3d52;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #0B6BCB;
  --accent-hot: #E85D4C;
  --accent-hover: #095aa8;
  --accent-glow: rgba(11, 107, 203, 0.18);
  --success: #34d399;
  --featured: #fbbf24;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --max-width: 1100px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: box-shadow 0.2s, background 0.2s;
}

.navbar--scrolled {
  background: rgba(11, 15, 20, 0.95);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.navbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar__logo:hover {
  text-decoration: none;
}

.navbar__logo img {
  height: 28px;
  width: auto;
  display: block;
  transition: filter 0.2s, opacity 0.2s;
}

.navbar__logo:hover img {
  filter: drop-shadow(0 0 8px rgba(79, 140, 255, 0.45));
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  padding: 0.45rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.nav-link--active {
  color: var(--accent);
  background: var(--accent-glow);
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 2.5rem 0 2rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(79, 140, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(79, 140, 255, 0.06), transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__intro {
  margin-bottom: 2rem;
}

.hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  animation: labelPulse 3s ease-in-out infinite;
}

@keyframes labelPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}

.hero-card:hover {
  border-color: var(--featured);
}

.hero-card__image {
  position: relative;
  min-height: 280px;
  background: var(--bg-elevated);
}

.hero-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--featured);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
}

.hero-card__body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-card__route {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.hero-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.hero-card__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 0.25rem;
}

.hero-card__price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.hero-card__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

/* Filters */
.filters {
  padding: 1.5rem 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-light);
  background: var(--surface);
}

.filter-btn--active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* Deals grid */
.deals-section {
  padding-bottom: 3rem;
}

.deals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.deal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.deal-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.deal-card--featured {
  border-color: rgba(251, 191, 36, 0.35);
}

.deal-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated);
}

.deal-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 20, 0.55) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.deal-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.img-wrap--loading {
  background: linear-gradient(
    90deg,
    var(--bg-elevated) 0%,
    var(--surface-hover) 50%,
    var(--bg-elevated) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.deal-card:hover .deal-card__image img {
  transform: scale(1.03);
}

.deal-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: var(--featured);
  color: #000;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.deal-card__badge--savings {
  top: auto;
  bottom: 0.75rem;
  left: 0.75rem;
  background: var(--success);
  color: #000;
}

.price-box__savings {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
}

.deal-card__body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.deal-card__route {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.deal-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.deal-card__price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 0.35rem;
}

.deal-card__price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.deal-card__dates {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.deal-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  text-transform: capitalize;
}

.deal-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.deal-card__link:hover {
  text-decoration: none;
  color: var(--accent-hover);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
  width: 100%;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff;
}

.btn--secondary {
  background: var(--surface-hover);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--border);
  text-decoration: none;
  color: var(--text);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent-glow);
  text-decoration: none;
}

/* CTA section */
.cta-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.cta-box {
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.cta-box p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
}

.footer__brand-link:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer__brand-link img {
  flex-shrink: 0;
}

.footer__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__disclosure {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  line-height: 1.6;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

/* Deal page (blog post) */
.deal-page {
  padding: 2rem 0 4rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb__sep {
  color: var(--text-dim);
}

.deal-article__header {
  margin-bottom: 1.5rem;
}

.deal-article__category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.deal-article__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.deal-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.deal-article__hero-wrap {
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
}

.deal-article__hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.deal-stale-banner {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid #e2b86b;
  background: #fff8e8;
  color: #5c4813;
  font-size: 0.95rem;
  line-height: 1.45;
}

.deal-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.price-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.price-box__amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--success);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.price-box__label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.price-box__route {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
}

.deal-article__content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.deal-article__content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: var(--text);
}

.details-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.details-table th,
.details-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.details-table th {
  width: 40%;
  color: var(--text-dim);
  font-weight: 500;
  background: var(--bg-elevated);
}

.details-table td {
  color: var(--text);
}

.sidebar-cta {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.sidebar-cta h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.sidebar-cta p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.sidebar-cta .btn {
  margin-bottom: 0.6rem;
}

.sidebar-cta__disclosure {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.related-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-section h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: rgba(11, 15, 20, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  z-index: 90;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.mobile-cta-bar .btn {
  flex: 1;
  padding: 0.75rem;
  font-size: 0.85rem;
}

.mobile-cta-bar__alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.35rem;
  font-size: 0.8rem;
}

.mobile-cta-bar__alt a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.mobile-cta-bar__alt a:hover {
  color: var(--accent);
}

.mobile-cta-bar__sep {
  color: var(--text-dim);
}

/* Static pages */
.page-content {
  padding: 2.5rem 0 4rem;
  max-width: 720px;
}

.page-content h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.page-content p,
.page-content li {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.page-content ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.empty {
  text-align: center;
  color: var(--text-muted);
  padding: 4rem 1rem;
  grid-column: 1 / -1;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
  }

  .hero-card__image {
    min-height: 200px;
  }

  .deal-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-cta {
    position: static;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 640px) {
  .navbar__toggle {
    display: block;
  }

  .navbar__nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0.25rem;
  }

  .navbar__nav--open {
    display: flex;
  }

  .deals-grid {
    grid-template-columns: 1fr;
  }

  .mobile-cta-bar {
    display: flex;
  }

  .deal-page {
    padding-bottom: 5rem;
  }

  .deal-article__hero-img {
    height: 220px;
  }
}
