/* ============================================
   0x-flights — Landing CSS
   ============================================ */

:root {
  --accent: #1668dc;
  --accent-hover: #0958d9;
  --accent-bg: #e8f0fd;
  --dark: #0c0c14;
  --text: #1a1a2e;
  --mid: #6b6b82;
  --light: #f6f6fa;
  --border: #e8e8f0;
  --white: #ffffff;
  --green: #00c47a;
  --tg-blue: #2aabee;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 4px 20px rgba(12, 12, 20, 0.07);
  --shadow-lg: 0 16px 48px rgba(12, 12, 20, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Open Sans',
    'Helvetica Neue',
    sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

button,
a,
input,
select {
  touch-action: manipulation;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */

@keyframes fly-across {
  0% {
    transform: translateX(-160px) translateY(var(--ty, 0));
    opacity: 0;
  }
  5% {
    opacity: var(--op, 0.1);
  }
  95% {
    opacity: var(--op, 0.1);
  }
  100% {
    transform: translateX(calc(100vw + 160px)) translateY(var(--ty, 0));
    opacity: 0;
  }
}

@keyframes fly-across-rtl {
  0% {
    transform: translateX(calc(100vw + 160px)) translateY(var(--ty, 0)) scaleX(-1);
    opacity: 0;
  }
  5% {
    opacity: var(--op, 0.1);
  }
  95% {
    opacity: var(--op, 0.1);
  }
  100% {
    transform: translateX(-160px) translateY(var(--ty, 0)) scaleX(-1);
    opacity: 0;
  }
}

@keyframes cloud-drift {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-120px);
  }
}

@keyframes float-card-a {
  0%,
  100% {
    transform: rotate(-3deg) translateY(0px);
  }
  50% {
    transform: rotate(-3deg) translateY(-14px);
  }
}

@keyframes float-card-b {
  0%,
  100% {
    transform: rotate(2deg) translateY(0px);
  }
  50% {
    transform: rotate(2deg) translateY(-10px);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.6;
    -webkit-transform: scale(0.6);
    -moz-transform: scale(0.6);
    -ms-transform: scale(0.6);
    -o-transform: scale(0.6);
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes pulse-dot-kf {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes slide-bubble {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes connector-plane {
  0% {
    left: -10%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    left: 110%;
    opacity: 0;
  }
}

@keyframes hero-badge-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes line-reveal {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0% 0);
    transform: translateY(0);
  }
}

@keyframes sub-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes actions-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cards-in {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes bell-shake {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(12deg);
  }
  40% {
    transform: rotate(-10deg);
  }
  60% {
    transform: rotate(8deg);
  }
  80% {
    transform: rotate(-6deg);
  }
}

/* ============================================
   SCROLL REVEAL (JS-driven)
   ============================================ */

.js-reveal,
.js-reveal-left,
.js-reveal-right {
  opacity: 0;
  transition:
    opacity 1s ease,
    transform 1s ease;
}

.js-reveal {
  transform: translateY(50px);
  -webkit-transform: translateY(50px);
  -moz-transform: translateY(50px);
  -ms-transform: translateY(50px);
  -o-transform: translateY(50px);
}
.js-reveal-left {
  transform: translateX(-36px);
  -webkit-transform: translateX(-36px);
  -moz-transform: translateX(-36px);
  -ms-transform: translateX(-36px);
  -o-transform: translateX(-36px);
}
.js-reveal-right {
  transform: translateX(36px);
  -webkit-transform: translateX(36px);
  -moz-transform: translateX(36px);
  -ms-transform: translateX(36px);
  -o-transform: translateX(36px);
}

.js-reveal.visible,
.js-reveal-left.visible,
.js-reveal-right.visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  transition-delay: 0.15s;
}
.delay-2 {
  transition-delay: 0.3s;
}
.delay-3 {
  transition-delay: 0.45s;
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Open Sans',
    'Helvetica Neue',
    sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.logo-0x {
  color: var(--accent);
}
.logo-flights {
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  transition: color 0.2s;
}
@media (hover: hover) {
  .nav-links a:hover {
    color: var(--dark);
  }
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: var(--accent);
  padding: 10px 20px;
  border-radius: 100px;
  transition:
    background 0.2s,
    transform 0.15s;
  flex-shrink: 0;
}
@media (hover: hover) {
  .btn-nav:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
  }
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
  padding: 130px 0 90px;
}

/* Background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(22, 104, 220, 0.1) 0%, transparent 65%);
  border-radius: 50%;
}

.grid-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(22, 104, 220, 0.12) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 90% 80% at 60% 40%, rgba(0, 0, 0, 0.6) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    ellipse 90% 80% at 60% 40%,
    rgba(0, 0, 0, 0.6) 0%,
    transparent 75%
  );
}

/* Clouds */
.cloud-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}
.cloud-svg {
  position: absolute;
  fill: rgba(180, 208, 232, 0.09);
}
.cloud-layer-1 {
  animation: cloud-drift 60s linear infinite alternate;
}
.cloud-layer-2 {
  animation: cloud-drift 38s linear infinite alternate-reverse;
}
.cloud-layer-3 {
  animation: cloud-drift 22s linear infinite alternate;
}

.c1a {
  top: 10%;
  left: 4%;
  width: 190px;
  fill: rgba(180, 208, 232, 0.1);
}
.c1b {
  top: 60%;
  left: 56%;
  width: 140px;
  fill: rgba(180, 208, 232, 0.07);
}
.c1c {
  top: 35%;
  left: 28%;
  width: 160px;
  fill: rgba(180, 208, 232, 0.08);
}
.c2a {
  top: 22%;
  left: 46%;
  width: 220px;
  fill: rgba(180, 208, 232, 0.08);
}
.c2b {
  top: 74%;
  left: 10%;
  width: 160px;
  fill: rgba(180, 208, 232, 0.06);
}
.c2c {
  top: 80%;
  left: 68%;
  width: 145px;
  fill: rgba(180, 208, 232, 0.07);
}
.c3a {
  top: 40%;
  left: 72%;
  width: 130px;
  fill: rgba(180, 208, 232, 0.11);
}
.c3b {
  top: 14%;
  left: 80%;
  width: 120px;
  fill: rgba(180, 208, 232, 0.09);
}

@media (max-width: 768px) {
  .c1b,
  .c1c,
  .c2b,
  .c2c {
    display: none;
  }
}

.fly-plane {
  position: absolute;
  font-size: 22px;
  animation: fly-across linear infinite;
  pointer-events: none;
}
.fly-1 {
  top: 18%;
  animation-duration: 20s;
  animation-delay: 0s;
  --ty: -8px;
  --op: 0.09;
}
.fly-2 {
  top: 52%;
  animation: fly-across-rtl 26s linear infinite;
  animation-delay: -9s;
  --ty: 4px;
  --op: 0.06;
  font-size: 15px;
}
.fly-3 {
  top: 78%;
  animation-duration: 17s;
  animation-delay: -5s;
  --ty: 0px;
  --op: 0.07;
  font-size: 12px;
}

/* Grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: hero-badge-in 0.6s ease 0.1s both;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-ring 2s ease-in-out forwards infinite;
  -webkit-animation: pulse-ring 2s ease-in-out forwards infinite;
}

/* Title */
.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin-bottom: 24px;
}

.line-wrap {
  display: block;
  overflow: hidden;
}
.line-inner {
  display: block;
  animation: line-reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}
.line-inner.delay-1 {
  animation-delay: 0.42s;
}

.hero-sub {
  font-size: 17px;
  color: var(--mid);
  max-width: 450px;
  margin-bottom: 36px;
  line-height: 1.7;
  animation: sub-in 0.8s ease 0.65s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  animation: actions-in 0.8s ease 0.8s both;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    'Open Sans',
    'Helvetica Neue',
    sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: var(--accent);
  padding: 15px 26px;
  border-radius: 100px;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: 0 8px 28px rgba(22, 104, 220, 0.3);
}
@media (hover: hover) {
  .btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(22, 104, 220, 0.4);
  }
}

.btn-xl {
  font-size: 17px;
  padding: 18px 34px;
}

.btn-ghost {
  font-size: 14px;
  font-weight: 700;
  color: var(--mid);
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
@media (hover: hover) {
  .btn-ghost:hover {
    color: var(--dark);
  }
  .btn-ghost:hover .btn-arrow {
    transform: translateX(3px);
  }
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.2s;
}

/* Hero Visual — Card Stack */
.hero-visual {
  display: flex;
  justify-content: center;
  animation: cards-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.card-stack {
  position: relative;
  width: 320px;
  height: 220px;
  cursor: pointer;
}

/* Card shuffle keyframes */
@keyframes shuffle-rise {
  0% {
    top: 20px;
    left: 20px;
    transform: rotate(2deg) scale(1);
    box-shadow: var(--shadow-lg);
  }
  38% {
    top: -52px;
    left: 4px;
    transform: rotate(-9deg) scale(1.08);
    box-shadow: 0 32px 64px rgba(12, 12, 20, 0.2);
  }
  100% {
    top: 0;
    left: 0;
    transform: rotate(-3deg) scale(1);
    box-shadow: var(--shadow-lg);
  }
}

@keyframes shuffle-sink {
  0% {
    top: 0;
    left: 0;
    transform: rotate(-3deg) scale(1);
    box-shadow: var(--shadow-lg);
  }
  38% {
    top: 44px;
    left: 36px;
    transform: rotate(6deg) scale(0.92);
    box-shadow: 0 4px 12px rgba(12, 12, 20, 0.08);
  }
  100% {
    top: 20px;
    left: 20px;
    transform: rotate(2deg) scale(1);
    box-shadow: var(--shadow-lg);
  }
}

.price-card.anim-rise {
  animation: shuffle-rise 0.6s ease forwards !important;
  -webkit-animation: shuffle-rise 0.6s ease forwards !important;
}
.price-card.anim-sink {
  animation: shuffle-sink 0.6s ease forwards !important;
  -webkit-animation: shuffle-sink 0.6s ease forwards !important;
}

.price-card {
  position: absolute;
  width: 300px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-lg);
}

.card-back {
  top: 20px;
  left: 20px;
  transform: rotate(2deg);
  animation: float-card-b 6s ease-in-out 1s infinite;
  z-index: 1;
}

.card-front {
  top: 0;
  left: 0;
  transform: rotate(-3deg);
  animation: float-card-a 5s ease-in-out infinite;
  z-index: 2;
}

.card-route {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.iata {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.route-arc-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 4px;
}

.route-arc-svg {
  width: 100%;
  height: 30px;
  overflow: visible;
}

.card-prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.old-p {
  font-size: 14px;
  color: var(--mid);
  text-decoration: line-through;
}

.new-p {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

.pct-badge {
  margin-left: auto;
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}

.card-live {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot-kf 1.5s ease-in-out infinite;
}

/* ============================================
   STATS BAR
   ============================================ */

/* Section planes */
.sec-plane {
  position: absolute;
  pointer-events: none;
  animation: fly-across linear infinite;
}
.sp-a {
  top: 22%;
  font-size: 20px;
  animation-duration: 19s;
  animation-delay: -4s;
  --op: 0.09;
  --ty: 0;
}
.sp-b {
  top: 72%;
  font-size: 13px;
  animation: fly-across-rtl 26s linear infinite;
  animation-delay: -11s;
  --op: 0.06;
  --ty: 3px;
}
.sp-c {
  top: 12%;
  font-size: 17px;
  animation-duration: 23s;
  animation-delay: -7s;
  --op: 0.07;
  --ty: -2px;
}
.sp-d {
  top: 78%;
  font-size: 22px;
  animation: fly-across-rtl 31s linear infinite;
  animation-delay: -19s;
  --op: 0.05;
  --ty: 5px;
}
.sp-e {
  top: 8%;
  font-size: 19px;
  animation-duration: 21s;
  animation-delay: -2s;
  --op: 0.08;
  --ty: 0;
}
.sp-f {
  top: 82%;
  font-size: 14px;
  animation: fly-across-rtl 29s linear infinite;
  animation-delay: -14s;
  --op: 0.06;
  --ty: -3px;
}

.stats-bar {
  padding: 56px 0;
  background: var(--light);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-cell {
  text-align: center;
  padding: 28px 16px;
  border-right: 1px solid var(--border);
}
.stat-cell:last-child {
  border-right: none;
}

.stat-num {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  transition: color 0.3s;
}

.stat-lbl {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.steps {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr;
  gap: 0;
  align-items: start;
}

.step {
  text-align: center;
  padding: 36px 20px;
  border-radius: 20px;
  transition:
    opacity 0.3s,
    transform 0.3s,
    background 0.3s,
    box-shadow 0.3s;
  -webkit-transition:
    opacity 0.3s,
    transform 0.3s,
    background 0.3s,
    box-shadow 0.3s;
  -moz-transition:
    opacity 0.3s,
    transform 0.3s,
    background 0.3s,
    box-shadow 0.3s;
  -ms-transition:
    opacity 0.3s,
    transform 0.3s,
    background 0.3s,
    box-shadow 0.3s;
  -o-transition:
    opacity 0.3s,
    transform 0.3s,
    background 0.3s,
    box-shadow 0.3s;
}
@media (hover: hover) {
  .step:hover {
    background: var(--light);
    box-shadow: var(--shadow);
  }
}

.step-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 18px;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition:
    transform 0.3s,
    background 0.3s;
}
@media (hover: hover) {
  .step:hover .step-icon {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.08) rotate(-5deg);
  }
  .step-icon-bell:hover {
    animation: bell-shake 0.6s ease;
  }
}

.step-icon-plane {
  animation: float-card-a 4s ease-in-out infinite;
}

.step h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.step p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.65;
}
.step p strong {
  color: var(--dark);
}

/* Connector */
.step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.connector-line {
  position: relative;
  width: 100%;
  height: 2px;
  background: var(--border);
  overflow: visible;
  top: -15%;
}

.connector-plane {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--accent);
  animation: connector-plane 4s ease-in-out infinite;
  opacity: 0.7;
}

/* ============================================
   FEATURES
   ============================================ */

.features {
  padding: 100px 0;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}

.feat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 30px 28px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s;
}
@media (hover: hover) {
  .feat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(22, 104, 220, 0.3);
  }
  .feat-card:hover .feat-icon {
    background: var(--accent);
    color: var(--white);
    transform: scale(1.08);
  }
}

.feat-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition:
    background 0.25s,
    color 0.25s,
    transform 0.25s;
}

.feat-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
}
.feat-card p {
  font-size: 14px;
  color: var(--mid);
  line-height: 1.65;
}

/* ============================================
   NOTIFICATIONS
   ============================================ */

.notify {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.notify-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.notify-text .section-title {
  margin-bottom: 18px;
}

.notify-text p {
  font-size: 16px;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 28px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Telegram Mockup */
.tg-mockup {
  display: flex;
  justify-content: center;
}

.tg-phone {
  width: 100%;
  max-width: 340px;
  background: #eef2f8;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

.tg-topbar {
  background: var(--tg-blue);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tg-back {
  color: rgba(255, 255, 255, 0.85);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.tg-ava {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.tg-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.tg-online {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

.tg-dot-online {
  width: 6px;
  height: 6px;
  background: #4cd964;
  border-radius: 50%;
  animation: pulse-dot-kf 2s ease-in-out infinite;
}

.tg-body {
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tg-date-sep {
  text-align: center;
  font-size: 11px;
  color: var(--mid);
  padding: 4px 0 6px;
}

.tg-bubble {
  background: var(--white);
  border-radius: 12px 12px 12px 3px;
  padding: 12px 13px 9px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
  position: relative;
}

.tg-bubble-anim {
  animation: slide-bubble 0.45s ease 0.9s both;
}
.tg-bubble-anim2 {
  animation: slide-bubble 0.45s ease 1.3s both;
}

.tg-bubble-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.tg-emoji {
  font-size: 16px;
}

.tg-bubble-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

.tg-route {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.tg-iata {
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.tg-bubble-date {
  font-size: 11px;
  color: var(--mid);
  font-weight: 400;
}

.tg-price-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}

.tg-p-old {
  font-size: 12px;
  color: var(--mid);
  text-decoration: line-through;
}
.tg-p-arr {
  font-size: 11px;
  color: var(--mid);
}

.tg-p-new {
  font-family: 'Unbounded', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
}

.tg-economy {
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 8px;
}

.tg-btn-row {
  margin-bottom: 4px;
}

.tg-buy-btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--tg-blue);
  cursor: pointer;
  transition: opacity 0.2s;
}
@media (hover: hover) {
  .tg-buy-btn:hover {
    opacity: 0.75;
  }
}

.tg-time {
  text-align: right;
  font-size: 10px;
  color: var(--mid);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  padding: 100px 0;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-fly {
  position: absolute;
  animation: fly-across linear infinite;
  pointer-events: none;
  filter: brightness(0) invert(1);
}
.cta-fly-1 {
  top: 25%;
  font-size: 28px;
  animation-duration: 25s;
  animation-delay: 0s;
  --op: 0.22;
  --ty: 0;
}
.cta-fly-2 {
  top: 60%;
  font-size: 18px;
  animation-duration: 32s;
  animation-delay: -12s;
  --op: 0.15;
  --ty: 5px;
}
.cta-fly-3 {
  top: 80%;
  font-size: 13px;
  animation-duration: 20s;
  animation-delay: -6s;
  --op: 0.12;
  --ty: -3px;
}

.cta-box {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 40px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.footer-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.logo-sm {
  font-size: 16px;
}

.footer-nav {
  display: grid;
  gap: 24px;
  margin-left: auto;
  grid-template-columns: repeat(auto-fit, minmax(min(100px, 100%), 1fr));
  width: 100%;
}

.footer-nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--mid);
  transition: color 0.2s;
}
@media (hover: hover) {
  .footer-nav a:hover {
    color: var(--dark);
  }
}

.footer-copy {
  font-size: 13px;
  color: var(--mid);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    display: none;
  }
  .hero-title {
    font-size: clamp(32px, 7vw, 52px);
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .step-connector {
    display: none;
  }

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

  .notify-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-bar {
    border-bottom: 1px solid var(--border);
  }
  .stat-cell {
    border-right: none;
  }

  .nav-inner {
    justify-content: space-between;
  }

  .nav-links {
    display: none;
  }

  .footer-nav {
    margin-left: 0;
  }
  .footer-copy {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .feat-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    padding: 110px 0 70px;
  }

  .cta-box h2 {
    font-size: 26px;
  }

  .btn-xl {
    font-size: 15px;
    padding: 15px 24px;
  }
}

@media (max-width: 430px) {
  .hero-content {
    text-align: center;
  }
  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
}

/* ============================================
   TICKER SECTION
   ============================================ */

@keyframes ticker-ltr {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes ticker-rtl {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.ticker-section {
  padding: 36px 0 32px;
  background: var(--light);
  overflow: hidden;
  position: relative;
}

.ticker-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-bottom: 18px;
}

.ticker-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 6%,
    black 94%,
    transparent 100%
  );
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  margin-bottom: 10px;
}
.ticker-wrap:last-child {
  margin-bottom: 0;
}

.ticker-track {
  display: flex;
  gap: 10px;
  width: max-content;
  will-change: transform;
}
.t-ltr {
  animation: ticker-ltr 32s linear infinite;
}
.t-rtl {
  animation: ticker-rtl 26s linear infinite;
}

@media (hover: hover) {
  .ticker-wrap:hover .ticker-track {
    animation-play-state: paused;
  }
}

.tick-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 8px 18px 8px 14px;
  white-space: nowrap;
  cursor: default;
}

.tick-iata {
  font-family: 'Unbounded', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.02em;
}
.tick-price {
  font-size: 12px;
  font-weight: 500;
  color: var(--mid);
}
.tick-pct {
  background: #e4f9f0;
  color: #00a264;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

/* ============================================
   BOT COMMANDS SECTION
   ============================================ */

.commands-section {
  padding: 100px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.commands-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  direction: rtl;
}
.commands-layout > * {
  direction: ltr;
}

.commands-text p {
  color: var(--mid);
  font-size: 16px;
  line-height: 1.7;
  margin: 20px 0 32px;
}

.cmd-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cmd-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  transition:
    border-color 0.2s,
    background 0.2s;
}
@media (hover: hover) {
  .cmd-item:hover {
    border-color: var(--accent);
    background: var(--accent-bg);
  }
}

.cmd-tag {
  font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(22, 104, 220, 0.08);
  padding: 3px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  min-width: 82px;
}

.cmd-desc {
  font-size: 13px;
  color: var(--mid);
  font-weight: 500;
}

/* Demo chat phone */
.commands-chat {
  display: flex;
  justify-content: center;
}

/* Reuse tg-phone but need a demo body */
.demo-body {
  padding: 14px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
  overflow: hidden;
}

.demo-msg {
  max-width: 88%;
  font-size: 12.5px;
  line-height: 1.55;
  padding: 9px 13px;
  border-radius: 14px;
  opacity: 0;
}
.demo-user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--white);
  border-bottom-right-radius: 4px;
}
.demo-bot {
  align-self: flex-start;
  background: var(--light);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

/* Typing dots */
.demo-typing {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 11px 14px;
  background: var(--light);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  opacity: 0;
}
.demo-typing span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mid);
  animation: typing-dot 1.2s ease-in-out infinite;
}
.demo-typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.demo-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-dot {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes msg-appear {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Activated state — play staggered animations */
.demo-body.active .dm-1 {
  animation: msg-appear 0.35s ease 0.15s forwards;
}
.demo-body.active .dm-2 {
  animation: msg-appear 0.35s ease 0.85s forwards;
}
.demo-body.active .dm-3 {
  animation: msg-appear 0.35s ease 1.7s forwards;
}
.demo-body.active .dm-4 {
  animation: msg-appear 0.35s ease 2.4s forwards;
}
.demo-body.active .dm-5 {
  animation: msg-appear 0.3s ease 3.2s forwards;
}

/* sp-g plane */
.sp-g {
  top: 18%;
  animation: fly-across 28s linear infinite;
  animation-delay: -6s;
  --ty: 0;
  --op: 0.05;
  font-size: 14px;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
  padding: 100px 0 110px;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition:
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-transition:
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  -moz-transition:
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  -ms-transition:
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  -o-transition:
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.open {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(22, 104, 220, 0.08);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.faq-q:focus:not(:focus-visible) {
  outline: none;
}
@media (hover: hover) {
  .faq-q:hover {
    color: var(--accent);
  }
}

.faq-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--mid);
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.25s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}
.faq-a > div {
  overflow: hidden;
}
.faq-a > div > p {
  padding: 4px 22px 22px;
  font-size: 15px;
  color: var(--mid);
  line-height: 1.7;
}
.faq-a code {
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-size: 13px;
  background: rgba(22, 104, 220, 0.08);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ============================================
   RESPONSIVE — new sections
   ============================================ */

@media (max-width: 768px) {
  .commands-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .commands-chat {
    order: -1;
  }
  .faq-q {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .ticker-section {
    padding: 28px 0 24px;
  }
  .commands-section {
    padding: 72px 0;
  }
  .faq-section {
    padding: 72px 0 80px;
  }
  .cur-btn span {
    display: none;
  }
}

/* ============================================
   PRICE HISTORY CHART SECTION
   ============================================ */

.history-section {
  padding: 100px 0;
  background: var(--white);
  overflow-x: hidden;
  position: relative;
}

.history-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.history-text {
  max-width: 460px;
}

.history-text .section-title {
  margin-bottom: 16px;
}

.history-text p {
  color: var(--mid);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.history-text code {
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-size: 13px;
  background: rgba(22, 104, 220, 0.08);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
}

.history-visual {
  display: flex;
  justify-content: center;
}

.chart-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 20px 20px 16px;
  width: 100%;
  max-width: 420px;
}

.chart-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.chart-route-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.chart-route-info svg {
  color: var(--accent);
}

.chart-range-label {
  font-size: 13px;
  color: var(--mid);
  background: var(--light);
  padding: 3px 10px;
  border-radius: 20px;
}

.chart-body-wrap {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 8px;
}

.chart-y-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 4px;
  gap: 0;
}

.chart-y-labels span {
  font-size: 11px;
  color: var(--mid);
  line-height: 1;
  width: 28px;
  text-align: right;
}

.chart-svg-outer {
  flex: 1;
  position: relative;
}

.price-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.c-grid {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.chart-line-path {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.c-dot {
  fill: var(--accent);
  transition: opacity 0.3s ease;
}

.c-dot-last {
  fill: var(--green);
}

@keyframes chart-dot-pulse {
  0%,
  100% {
    r: 5;
    opacity: 1;
  }
  50% {
    r: 8;
    opacity: 0.4;
  }
}

.c-dot-last.pulsing {
  animation: chart-dot-pulse 1.6s ease-in-out infinite;
}

.chart-drop-badge {
  position: absolute;
  right: 0;
  top: 50px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px) scale(0.9);
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.chart-drop-badge.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.chart-x-labels {
  display: flex;
  justify-content: space-between;
  padding-left: 36px;
}

.chart-x-labels span {
  font-size: 11px;
  color: var(--mid);
  text-align: center;
  flex: 1;
}

/* ============================================
   FLEXIBLE DATES SECTION
   ============================================ */

.flex-dates-section {
  padding: 100px 0;
  background: var(--light);
  position: relative;
  overflow-x: hidden;
}

.section-sub {
  color: var(--mid);
  font-size: 16px;
  line-height: 1.7;
  max-width: 560px;
  margin: 12px auto 48px;
  text-align: center;
}

.flex-dates-section .section-title {
  margin-bottom: 0;
}

.flex-dates-grid {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.fd-cell {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 16px 14px 14px;
  min-width: 90px;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    border-color 0.3s;
  box-shadow: var(--shadow);
}

.fd-cell.fd-visible {
  opacity: 1;
  transform: translateY(0);
}

.fd-cell.fd-offset {
  border-color: rgba(22, 104, 220, 0.2);
  background: rgba(232, 240, 253, 0.5);
}

.fd-cell.fd-target {
  border-color: var(--accent);
  background: rgba(22, 104, 220, 0.06);
  box-shadow:
    0 0 0 3px rgba(22, 104, 220, 0.12),
    var(--shadow);
}

.fd-cell.fd-best {
  border-color: var(--green);
  background: rgba(0, 196, 122, 0.06);
  box-shadow:
    0 0 0 3px rgba(0, 196, 122, 0.18),
    var(--shadow);
}

.fd-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.fd-target .fd-badge-top {
  background: var(--accent);
  color: #fff;
}

.fd-best .fd-badge-top {
  background: var(--green);
  color: #fff;
}

.fd-weekday {
  font-size: 11px;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.fd-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--text);
}

.fd-target .fd-num {
  color: var(--accent);
}
.fd-best .fd-num {
  color: var(--green);
}

.fd-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.fd-cell.fd-prices-visible .fd-price {
  opacity: 1;
  transform: translateY(0);
}

/* hover lift */
.fd-cell:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-lg);
}

/* scanning state — glowing blue border sweep */
.fd-cell.fd-scanning {
  border-color: var(--accent) !important;
  background: rgba(22, 104, 220, 0.12) !important;
  box-shadow:
    0 0 0 3px rgba(22, 104, 220, 0.22),
    var(--shadow) !important;
  transform: translateY(-2px) !important;
}

/* reset to default (grey) while rescan clears best */
.fd-cell.fd-reset {
  border-color: var(--border) !important;
  background: var(--white) !important;
  box-shadow: var(--shadow) !important;
}
.fd-cell.fd-reset.fd-offset {
  border-color: rgba(22, 104, 220, 0.2) !important;
  background: rgba(232, 240, 253, 0.5) !important;
}

.fd-rescan-btn {
  display: block;
  margin: 0 auto 32px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.25s ease;
}

.fd-rescan-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(22, 104, 220, 0.12);
}

.fd-rescan-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

@keyframes fd-found-pulse {
  0% {
    box-shadow:
      0 0 0 3px rgba(0, 196, 122, 0.18),
      var(--shadow);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(0, 196, 122, 0.08),
      var(--shadow-lg);
  }
  100% {
    box-shadow:
      0 0 0 3px rgba(0, 196, 122, 0.18),
      var(--shadow);
  }
}

.fd-legend {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.fd-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mid);
}

.fd-legend-item span {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid transparent;
}

.fd-legend-target span {
  background: rgba(22, 104, 220, 0.1);
  border-color: var(--accent);
}
.fd-legend-offset span {
  background: rgba(22, 104, 220, 0.08);
  border-color: rgba(22, 104, 220, 0.3);
}
.fd-legend-best span {
  background: rgba(0, 196, 122, 0.1);
  border-color: var(--green);
}

/* ============================================
   MULTI-CURRENCY SECTION
   ============================================ */

.currency-section {
  padding: 100px 0;
  background: var(--white);
  position: relative;
  overflow-x: hidden;
}

.currency-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.currency-text .section-title {
  margin-bottom: 16px;
}

.currency-text p {
  color: var(--mid);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.cur-btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cur-btn {
  background: var(--light);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.25s ease;
}

.cur-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(22, 104, 220, 0.05);
}

.cur-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.currency-visual {
  display: flex;
  justify-content: center;
}

.cur-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  padding: 28px 28px 24px;
  width: 100%;
  max-width: 360px;
}

.cur-card-route {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 20px;
}

.cur-card-route svg {
  color: var(--accent);
}

.cur-card-date {
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  margin-left: 2px;
}

.cur-price-display {
  margin-bottom: 16px;
}

.cur-price-old {
  display: block;
  font-size: 14px;
  color: var(--mid);
  text-decoration: line-through;
  margin-bottom: 6px;
}

.cur-price-main {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.cur-price-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  transition: opacity 0.25s ease;
  font-family: 'Unbounded', sans-serif;
}

.cur-price-sym2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  transition: opacity 0.25s ease;
  font-family: 'Unbounded', sans-serif;
}

.cur-price-num.fading,
.cur-price-sym2.fading {
  opacity: 0;
}

.cur-savings {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.cur-save-text {
  font-size: 14px;
  color: var(--mid);
  transition: opacity 0.25s ease;
}

.cur-save-text.fading {
  opacity: 0;
}

.cur-rate-note {
  font-size: 12px;
  color: var(--mid);
  opacity: 0.7;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}

/* ============================================
   RESPONSIVE — new sections
   ============================================ */

@media (max-width: 900px) {
  .history-layout,
  .currency-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .history-text,
  .currency-text {
    max-width: 100%;
  }

  .history-visual,
  .currency-visual {
    justify-content: stretch;
  }

  .chart-card,
  .cur-card {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  /* Dates grid: 4-column wrap layout */
  .flex-dates-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    justify-items: stretch;
  }
  .fd-cell {
    min-width: 0;
    width: 100%;
    padding: 14px 8px 12px;
  }
  .fd-num {
    font-size: 24px;
  }
  .fd-weekday,
  .fd-price {
    font-size: 11px;
  }
  .footer-row,
  .footer-nav {
    flex-direction: column;
  }
  .footer-nav {
    gap: 12px;
  }
  .footer-row {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .history-section,
  .flex-dates-section,
  .currency-section {
    padding: 64px 0;
  }

  .chart-card {
    padding: 16px 14px 12px;
  }

  .chart-y-labels span {
    font-size: 10px;
    width: 22px;
  }

  .cur-price-num {
    font-size: 34px;
  }

  .cur-price-sym2 {
    font-size: 22px;
  }
}
