/* =========================================================
   Cassky: coming soon
   ========================================================= */

:root {
  --navy-900: #071630;
  --navy-800: #0b1e3f;
  --navy-700: #12305c;
  --blue-600: #1d4e89;
  --blue-400: #4fa3e3;
  --blue-200: #bfe0fb;
  --sun-500: #ff8a3d;
  --sun-600: #ea5f22;
  --sun-100: #fff1e6;

  --ink: #0f1b2d;
  --ink-soft: #4a5a72;
  --line: #e3e9f2;
  --paper: #ffffff;
  --paper-tint: #f4f8fd;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

a { color: inherit; }

img, svg { display: block; }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--sun-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--sun-500);
  color: #1a0d03;
  box-shadow: 0 6px 20px rgba(255, 138, 61, .35);
}
.btn-primary:hover { background: #ff9a55; }

.btn-ghost {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .06);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }

.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; }

/* ---------- Pill ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(6px);
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun-500);
  box-shadow: 0 0 0 0 rgba(255, 138, 61, .7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 138, 61, .7); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 138, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0); }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: #fff;
  background:
    linear-gradient(180deg,
      var(--navy-800) 0%,
      var(--blue-600) 42%,
      #5b9fd8 68%,
      #ffc49a 92%,
      #ffd9b8 100%);
}

.nav {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.nav-cta {
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .4);
  transition: background-color .15s ease, border-color .15s ease;
}
.nav-cta:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.hero-inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  padding-top: 24px;
  padding-bottom: 240px; /* room for the scene */
}

.hero h1 {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 800;
  text-shadow: 0 2px 24px rgba(7, 22, 48, .25);
}

.lead {
  max-width: 40rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(255, 255, 255, .88);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* ---------- Scene ---------- */
.scene {
  position: absolute;
  inset: auto 0 0 0;
  height: 300px;
  z-index: 1;
  pointer-events: none;
}

.sun {
  position: absolute;
  right: 14%;
  bottom: 120px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff4d6 0%, #ffc07a 45%, #ff9a4d 70%, rgba(255,154,77,0) 72%);
  box-shadow: 0 0 120px 40px rgba(255, 170, 100, .45);
}

.cloud {
  position: absolute;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .75);
  filter: blur(.5px);
  animation: drift linear infinite;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  bottom: 8px;
  border-radius: 50%;
  background: inherit;
}
.cloud::before { left: 18%; width: 46px; height: 46px; }
.cloud::after  { left: 46%; width: 34px; height: 34px; }

.cloud-1 { width: 130px; bottom: 230px; left: 8%;  opacity: .85; animation-duration: 70s; }
.cloud-2 { width: 100px; bottom: 270px; left: 52%; opacity: .6;  animation-duration: 95s; transform: scale(.8); }
.cloud-3 { width: 150px; bottom: 200px; left: 78%; opacity: .7;  animation-duration: 85s; }

@keyframes drift {
  from { translate: 0 0; }
  to   { translate: -40vw 0; }
}

.hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 60px;
  width: 100%;
  height: 140px;
}
.hill-far  { fill: #7c9cc7; opacity: .55; }
.hill-near { fill: #3c5f8f; }

.road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background:
    linear-gradient(180deg, #4d5a6e 0 4px, #2a3240 4px 100%);
}
.road::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  height: 4px;
  background: repeating-linear-gradient(90deg, #f5d27a 0 40px, transparent 40px 80px);
  animation: lane 0.9s linear infinite;
}
@keyframes lane {
  from { background-position: 0 0; }
  to   { background-position: -80px 0; }
}

.car {
  position: absolute;
  left: 10%;
  bottom: 30px;
  width: 260px;
  height: auto;
  animation: bob 1.6s ease-in-out infinite;
}
.wheel {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -1.5px; }
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 88px 0; }
.section-tint { background: var(--paper-tint); }

.section-head {
  max-width: 44rem;
  margin-bottom: 44px;
}
.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-head p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sun-600);
  margin-bottom: 10px;
}

/* ---------- Compare ---------- */
.compare {
  display: grid;
  gap: 20px;
}

.compare-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.compare-card h3 { font-size: 1.3rem; }

.compare-new {
  border-color: rgba(255, 138, 61, .45);
  background: linear-gradient(180deg, var(--sun-100), var(--paper) 60%);
}

.flow {
  display: flex;
  align-items: center;
  gap: 8px;
}
.node {
  flex: 0 1 auto;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--paper-tint);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
}
.node-mid {
  background: #fde8e8;
  border-color: #f5c2c2;
  color: #9b2c2c;
}
.compare-new .node {
  background: #fff;
  border-color: rgba(255, 138, 61, .5);
}
.arrow {
  position: relative;
  flex: 1;
  min-width: 14px;
  height: 2px;
  background: #b7c3d4;
}
.arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #b7c3d4;
  border-right: 2px solid #b7c3d4;
  transform: translateY(-50%) rotate(45deg);
}
.compare-new .arrow { background: var(--sun-500); }
.compare-new .arrow::after { border-color: var(--sun-500); }

.price-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.bar {
  display: flex;
  width: 100%;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  font-size: .8rem;
  font-weight: 600;
}
.bar-short { width: 72%; }
.bar-seg {
  display: flex;
  align-items: center;
  padding-inline: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-value {
  flex: 72;
  background: var(--blue-600);
  color: #fff;
}
.bar-cut {
  flex: 28;
  color: #7a1f1f;
  background: repeating-linear-gradient(135deg, #f9c9c9 0 8px, #f3b0b0 8px 16px);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  background: var(--paper-tint);
  color: var(--ink-soft);
}
.compare-old .tags li { background: #fdf0f0; color: #9b2c2c; }
.compare-new .tags li { background: #fff; color: #a2400f; border: 1px solid rgba(255, 138, 61, .35); }

.verdict { font-weight: 600; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--sun-500), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p  { color: var(--ink-soft); }

/* ---------- Features ---------- */
.features {
  display: grid;
  gap: 20px;
}
.feature {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
}
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--sun-100);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--sun-600);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p  { color: var(--ink-soft); font-size: .97rem; }

/* ---------- CTA ---------- */
.cta {
  padding: 96px 0;
  color: #fff;
  background:
    radial-gradient(60% 80% at 85% 110%, rgba(255, 138, 61, .35), transparent 60%),
    radial-gradient(50% 70% at 10% -10%, rgba(79, 163, 227, .35), transparent 60%),
    var(--navy-900);
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.cta h2 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  max-width: 20ch;
}
.cta-inner > p:not(.pill):not(.cta-alt) {
  max-width: 36rem;
  color: rgba(255, 255, 255, .8);
  font-size: 1.08rem;
}
.pill-dark { background: rgba(255, 255, 255, .08); }
.cta-alt { font-size: .95rem; color: rgba(255, 255, 255, .7); }
.cta-alt a { color: #fff; font-weight: 600; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.footer {
  padding: 28px 0;
  background: var(--navy-900);
  color: rgba(255, 255, 255, .6);
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand-sm { color: #fff; }
.brand-sm .brand-name { font-size: 1.2rem; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 720px) {
  .container { padding-inline: 32px; }
  .compare  { grid-template-columns: 1fr 1fr; }
  .steps    { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .section  { padding: 112px 0; }
}

@media (min-width: 1000px) {
  .features { grid-template-columns: repeat(4, 1fr); }
  .car { width: 300px; bottom: 28px; }
  .hero-inner { padding-bottom: 260px; }
}

@media (max-width: 560px) {
  .nav-cta { padding: 8px 12px; font-size: .88rem; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 1.3rem; }
  .hero-inner { padding-bottom: 200px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .scene { height: 240px; }
  .sun { width: 96px; height: 96px; right: 8%; bottom: 100px; }
  .hills { height: 110px; bottom: 56px; }
  .road { height: 60px; }
  .road::after { bottom: 12px; }
  .car { width: 200px; left: 6%; bottom: 26px; }
  .cloud-2 { display: none; }
  .compare-card, .step { padding: 22px; }
  .node { padding: 7px 9px; font-size: .82rem; }
  .node-mid { white-space: normal; text-align: center; line-height: 1.25; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
