/* ============================================
   eCarnet — Core Styles
   Mobile-first, Montserrat + Poppins + Bricolage Grotesque (accent)
   ============================================ */

/* ---- Design Tokens ---- */
:root {
  /* Brand palette */
  --navy-darkest:  #0C1F33;
  --navy-deep:     #14375A;
  --blue-bright:   #0070CC;
  --blue-steel:    #4A6E8A;
  --blue-medium:   #5A95C4;
  --bg-light:      #F0F4F8;
  --bg-light-alt:  #E8EFF6;

  /* Surfaces & text */
  --white:          #F8FAFC;
  --text-on-dark:   #E8F1F8;
  --text-on-dark-2: #B4D0E7;
  --text-primary:   #0E1C2B;
  --text-secondary: #3A5570;
  --text-tertiary:  #6B90AE;
  --border-dark:    rgba(90, 149, 196, 0.18);
  --border-light:   rgba(74, 110, 138, 0.15);

  /* Glow system */
  --glow-blue:
    0 0 24px rgba(0, 112, 204, 0.55),
    0 0 60px rgba(0, 112, 204, 0.25);
  --glow-ring:
    0 0 0 1px rgba(90, 149, 196, 0.3),
    0 0 40px rgba(0, 112, 204, 0.15);

  /* Radius */
  --r-sm:  6px;
  --r-md:  12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --r-2xl: 32px;

  /* Spacing (4pt base) */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   24px;
  --sp-6:   32px;
  --sp-7:   48px;
  --sp-8:   64px;
  --sp-9:   96px;
  --sp-10: 128px;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:   160ms;
  --t-base:   280ms;
  --t-slow:   500ms;
}

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

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

body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  background: var(--navy-darkest);
  color: var(--text-primary);
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ---- Global focus-visible ---- */
:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* Skip-to-content link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  z-index: 999;
  padding: var(--sp-2) var(--sp-4);
  background: var(--blue-bright);
  color: var(--white);
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  text-decoration: none;
  transition: top var(--t-fast) ease;
}

.skip-link:focus {
  top: var(--sp-4);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* ---- Container ---- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

/* ---- Section label / eyebrow ---- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-medium);
  margin-bottom: var(--sp-4);
}

.section-eyebrow::before {
  content: "";
  display: block;
  width: 20px;
  height: 1px;
  background: var(--blue-medium);
  opacity: 0.7;
}

.section-eyebrow--dark {
  color: var(--text-on-dark-2);
}

.section-eyebrow--dark::before {
  background: var(--text-on-dark-2);
  opacity: 1;
}

/* ---- Section heading ---- */
.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--sp-5);
}

.section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--blue-bright);
}

.section-title em.brand-highlight {
  font-family: "Bricolage Grotesque", sans-serif;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Fancy font on light section headings */
.section-title--light em {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
}

.section-title--light {
  color: var(--text-on-dark);
}

.section-title--light em {
  color: var(--blue-medium);
}

/* ---- Glow classes ---- */
.glow-icon {
  box-shadow: var(--glow-blue);
}

.glow-btn {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.glow-btn:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 200;
  background: rgba(12, 31, 51, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-dark);
  transition:
    background var(--t-base) ease,
    border-color var(--t-base) ease;
}

/* Light section state — desktop only, overridden on mobile */
.navbar.is-light-section {
  background: rgba(240, 244, 248, 0.94);
  border-bottom-color: var(--border-light);
}

.navbar.is-light-section .nav-link {
  color: var(--text-secondary);
}

.navbar.is-light-section .nav-link:hover,
.navbar.is-light-section .nav-link.active {
  color: var(--navy-deep);
}

.navbar.is-light-section .nav-brand {
  color: var(--navy-deep);
}

.navbar.is-light-section .hamburger span {
  background: var(--navy-deep);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 var(--sp-5);
  max-width: 1160px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  transition: color var(--t-fast) ease;
}

.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-7);
  list-style: none;
}

.nav-link {
  position: relative;
  color: var(--text-on-dark-2);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: var(--sp-1) 0;
  transition: color var(--t-fast) ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--blue-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-on-dark);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

/* Hamburger — 44x44px touch target */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-3);
  min-width: 44px;
  min-height: 44px;
  z-index: 310;
  position: relative;
  border-radius: var(--r-sm);
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition:
    transform var(--t-base) var(--ease-out),
    opacity var(--t-fast) ease;
  pointer-events: none;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Mobile nav overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(12, 31, 51, 0.65);
  z-index: 190;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.mobile-overlay.open { display: block; }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--navy-darkest);
  display: flex;
  align-items: center;
  padding-top: 80px;
  padding-bottom: var(--sp-3);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow */
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -5%;
  width: 600px;
  height: 600px;
  transform: translateY(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(0, 112, 204, 0.12) 0%,
    rgba(0, 112, 204, 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
}

/* Subtle grid lines — refined background texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(90, 149, 196, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 149, 196, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  position: relative;
  z-index: 1;
}

/* ---- Hero copy ---- */
.hero-copy {
  max-width: 540px;
  text-align: center;
}

.hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-on-dark);
  margin-top: 0.1em;
  margin-bottom: var(--sp-4);
}

.hero-title-glow-wrap {
  display: block;
  will-change: filter;
  filter: drop-shadow(0 0 20px rgba(0, 163, 255, 0.5)) drop-shadow(0 0 60px rgba(0, 112, 204, 0.3));
}

.hero-title-accent,
.hero-title-accent * {
  background: linear-gradient(135deg, #3dc0ff, #0070CC, #00a3ff, #60d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-number {
  display: block;
}

.hero-title-sub {
  display: block;
  font-size: 0.75em;
  letter-spacing: 0.01em;
  margin-top: -0.05em;
}

.count-up {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.hero-title-underline {
  position: relative;
  display: inline-block;
}

.hero-title-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 4px;
  background: var(--blue-bright);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-title-underline.visible::after {
  transform: scaleX(1);
}

.hero-problem {
  font-family: "Poppins", sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-on-dark-2);
  max-width: 50ch;
  margin-bottom: var(--sp-6);
  text-align: left;
}

/* CTA button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 18px 36px;
  background: var(--blue-bright);
  color: var(--white);
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border-radius: var(--r-md);
  transition:
    transform var(--t-fast) var(--ease-out),
    background-color var(--t-fast) ease;
  position: relative;
  z-index: 10;
}

.cta-btn:hover {
  background: #0085ef;
  transform: translateY(-2px);
}

.cta-btn:active {
  background: #005fa8;
  transform: translateY(0);
  transition-duration: 80ms;
}

.cta-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.cta-btn-arrow {
  transition: transform var(--t-fast) var(--ease-out);
}

.cta-btn:hover .cta-btn-arrow {
  transform: translateX(4px);
}

/* ---- Hero visual: rings + icon ---- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-rings {
  position: relative;
  width: 304px;
  height: 304px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(0, 163, 255, 0.35);
  animation: ring-pulse 3s ease-out infinite;
  box-shadow:
    0 0 8px rgba(0, 163, 255, 0.15),
    inset 0 0 8px rgba(0, 163, 255, 0.08);
}

.hero-ring:nth-child(1) {
  width: 120px; height: 120px;
  border-color: rgba(0, 163, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 163, 255, 0.3), inset 0 0 15px rgba(0, 163, 255, 0.12);
  animation-delay: 0s;
}
.hero-ring:nth-child(2) {
  width: 176px; height: 176px;
  border-color: rgba(0, 163, 255, 0.4);
  box-shadow: 0 0 12px rgba(0, 163, 255, 0.2), inset 0 0 12px rgba(0, 163, 255, 0.08);
  animation-delay: 0.6s;
}
.hero-ring:nth-child(3) {
  width: 240px; height: 240px;
  border-color: rgba(0, 163, 255, 0.25);
  box-shadow: 0 0 10px rgba(0, 163, 255, 0.12);
  animation-delay: 1.2s;
}
.hero-ring:nth-child(4) {
  width: 296px; height: 296px;
  border-color: rgba(0, 163, 255, 0.15);
  box-shadow: 0 0 8px rgba(0, 163, 255, 0.08);
  animation-delay: 1.8s;
}

.hero-ring-dashed {
  position: absolute;
  width: 264px;
  height: 264px;
  border-radius: 50%;
  border: 1.5px dashed rgba(61, 192, 255, 0.3);
  animation: ring-rotate 20s linear infinite;
  filter: drop-shadow(0 0 4px rgba(61, 192, 255, 0.2));
}

.hero-ring-arc {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 2px solid transparent;
  background:
    conic-gradient(
      from 0deg,
      transparent 0deg,
      transparent 300deg,
      rgba(61, 192, 255, 0.7) 340deg,
      rgba(61, 192, 255, 0.9) 355deg,
      #3dc0ff 360deg
    ) border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  padding: 2px;
  animation: ring-rotate 4s linear infinite;
  filter: drop-shadow(0 0 6px rgba(61, 192, 255, 0.6));
}

.hero-app-icon {
  position: relative;
  z-index: 2;
  width: 144px;
  height: 144px;
  border-radius: 32px;
  overflow: hidden;
  transform: perspective(600px) rotateY(-16deg) rotateX(8deg);
  animation: icon-glow-pulse 3s ease-in-out infinite, icon-3d-rock 6s ease-in-out infinite;
  filter: drop-shadow(-8px 12px 24px rgba(0, 0, 0, 0.6))
          drop-shadow(0 0 16px rgba(0, 112, 204, 0.5))
          drop-shadow(0 0 40px rgba(0, 112, 204, 0.25));
}

.hero-app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   CONCEPT SECTION (#despre)
   ============================================ */
.concept {
  padding-block: var(--sp-9);
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}

.concept-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
  position: relative;
  z-index: 1;
}

/* Mockup visual — hidden on mobile, shown on desktop */
.concept-visual {
  display: none;
}

.concept-visual img {
  width: 100%;
  height: auto;
  max-width: 260px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
}

/* Copy side */
.concept-copy {
  max-width: 560px;
}

.concept-copy .section-title {
  margin-bottom: var(--sp-4);
}

.concept-text {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 58ch;
  margin-bottom: var(--sp-4);
}

.concept-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Problem pills */
.concept-problems {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.problem-pill {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  min-height: 52px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

.problem-pill:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(20, 55, 90, 0.07);
}

.problem-pill-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: var(--bg-light-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-steel);
  flex-shrink: 0;
}

.problem-pill-icon svg {
  fill: currentColor;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  padding-block: var(--sp-8);
  background: var(--bg-light-alt);
  position: relative;
  overflow: hidden;
}

.features-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
  position: relative;
  z-index: 1;
  text-align: left;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-top: var(--sp-6);
}

/* Feature card base */
.feature-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-5);
  transition:
    transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) ease;
  position: relative;
  overflow: hidden;
}

/* Icon + heading inline */
.feature-card-top {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-2);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(20, 55, 90, 0.1);
}

/* Featured card (dark) */
.feature-card--featured {
  background: var(--navy-darkest);
  border-color: var(--border-dark);
  display: flex;
  flex-direction: column;
  padding: var(--sp-6) var(--sp-6);
}

.feature-card--featured .feature-heading {
  font-size: 1.25rem;
  color: var(--text-on-dark);
}

.feature-card--featured:hover {
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.4);
}

.feature-card--featured .feature-text {
  color: var(--text-on-dark-2);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* Use cases list inside featured card */
.feature-uses {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-3);
}

.feature-uses li {
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue-medium);
  background: rgba(0, 112, 204, 0.1);
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.01em;
}

.feature-card--featured .feature-icon-wrap {
  background: rgba(0, 112, 204, 0.12);
  color: var(--blue-medium);
}

.feature-card--featured .feature-tag {
  color: var(--blue-medium);
  border-color: rgba(0, 112, 204, 0.25);
}

/* Icon wrap */
.feature-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-steel);
  flex-shrink: 0;
}

.feature-icon-wrap svg {
  fill: currentColor;
}

.feature-heading {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.feature-text {
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.feature-tag {
  display: inline-block;
  margin-top: var(--sp-3);
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-steel);
  padding: 4px 10px;
  border: 1px solid var(--border-light);
  border-radius: 100px;
}

/* ============================================
   ROADMAP
   ============================================ */
.roadmap {
  padding-block: var(--sp-9);
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}

/* Radial glow top */
.roadmap::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(
    ellipse at top,
    rgba(0, 112, 204, 0.15) 0%,
    transparent 65%
  );
  pointer-events: none;
}

/* Subtle grid lines */
.roadmap::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(90, 149, 196, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 149, 196, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

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

.timeline {
  margin-top: var(--sp-7);
  position: relative;
}

/* Vertical rail */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 112, 204, 0.4) 10%,
    rgba(0, 112, 204, 0.2) 90%,
    transparent
  );
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  padding-bottom: var(--sp-7);
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--navy-deep);
  border: 2px solid rgba(0, 112, 204, 0.3);
}

.timeline-dot--active {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  animation: dot-pulse 2.5s ease-in-out infinite;
}

.timeline-badge {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(0, 112, 204, 0.12);
  color: var(--text-on-dark-2);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: var(--sp-3);
}

.timeline-badge--current {
  background: rgba(0, 112, 204, 0.2);
  color: var(--blue-medium);
}

.timeline-item h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin-bottom: var(--sp-2);
}

.timeline-item p {
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--text-on-dark-2);
  max-width: 55ch;
}

.roadmap-footer {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.roadmap-footer-text {
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
  color: var(--text-on-dark-2);
}

.roadmap-gh-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--blue-medium);
  transition: color var(--t-fast) ease;
}

.roadmap-gh-link:hover {
  color: var(--text-on-dark);
}

.roadmap-gh-link:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-darkest);
  color: var(--text-on-dark-2);
  padding-block: var(--sp-7) var(--sp-5);
  border-top: 1px solid var(--border-dark);
}

.footer-top {
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border-dark);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  text-decoration: none;
}

.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: var(--r-sm);
}

.footer-tagline {
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  color: var(--text-on-dark-2);
  max-width: 40ch;
  margin-top: var(--sp-2);
}

.footer-mid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding-block: var(--sp-5);
  border-bottom: 1px solid var(--border-dark);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  list-style: none;
}

.footer-nav a {
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  color: var(--text-on-dark-2);
  transition: color var(--t-fast) ease;
}

.footer-nav a:hover { color: var(--text-on-dark); }

.footer-links-external {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
}

.footer-ext-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  color: var(--text-on-dark-2);
  transition: color var(--t-fast) ease;
}

.footer-ext-link:hover { color: var(--text-on-dark); }

.footer-ext-link:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-5);
}

.footer-copy {
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  color: rgba(139, 173, 200, 0.5);
}

.footer-attribution {
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  color: rgba(139, 173, 200, 0.5);
}

.footer-attribution a {
  color: var(--blue-medium);
  text-decoration: none;
  transition: color var(--t-fast) ease;
}

.footer-attribution a:hover { color: var(--text-on-dark); }

/* ============================================
   MOBILE REFINEMENTS (< 768px)
   ============================================ */
@media (max-width: 767px) {

  /* Tighter section spacing on mobile */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 80px;
    padding-bottom: var(--sp-6);
  }

  .hero-inner {
    gap: var(--sp-2);
  }

  .hero-copy {
    text-align: left;
  }

  .hero-title {
    text-align: left;
  }

  .hero-title-sub {
    text-align: left;
  }

  /* Smaller rings on mobile */
  .hero-rings { width: 220px; height: 220px; }
  .hero-ring:nth-child(1) { width: 88px; height: 88px; }
  .hero-ring:nth-child(2) { width: 130px; height: 130px; }
  .hero-ring:nth-child(3) { width: 176px; height: 176px; }
  .hero-ring:nth-child(4) { width: 214px; height: 214px; }
  .hero-ring-dashed { width: 196px; height: 196px; }
  .hero-ring-arc { width: 155px; height: 155px; }
  .hero-app-icon { width: 100px; height: 100px; border-radius: 24px; }

  /* Hide mockup on mobile — PNG background clashes with section */
  .concept-visual {
    display: none;
  }

  .concept {
    padding-block: var(--sp-8);
  }

  .features {
    padding-block: var(--sp-7);
  }

  .roadmap {
    padding-block: var(--sp-7);
  }

  /* Tighter feature cards */
  .feature-card--featured {
    padding: var(--sp-5);
  }

  .feature-uses {
    gap: var(--sp-1);
  }

  .feature-uses li {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  /* Tighter problem pills */
  .problem-pill {
    padding: var(--sp-2) var(--sp-3);
    min-height: 44px;
    font-size: 0.82rem;
  }

  .problem-pill-icon {
    width: 28px;
    height: 28px;
  }

  .problem-pill-icon svg {
    width: 14px;
    height: 14px;
  }

  /* Section titles slightly smaller on mobile */
  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  /* Footer tighter */
  .footer {
    padding-block: var(--sp-5) var(--sp-4);
  }
  .hamburger {
    display: flex;
  }

  /* Always keep hamburger bars light on mobile */
  .hamburger span {
    background: var(--text-on-dark) !important;
  }

  /* Override is-light-section on mobile — navbar stays dark always */
  .navbar,
  .navbar.is-light-section {
    background: rgba(12, 31, 51, 0.95) !important;
    border-bottom-color: var(--border-dark) !important;
  }

  .navbar .nav-brand,
  .navbar.is-light-section .nav-brand {
    color: var(--text-on-dark) !important;
  }

  /* Slide-in panel from right */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 80vw);
    height: 100vh;
    height: 100dvh;
    background: var(--navy-darkest);
    border-left: 1px solid var(--border-dark);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px var(--sp-7) 0;
    gap: var(--sp-2);
    z-index: 250;
    transform: translateX(100%);
    transition: transform var(--t-base) var(--ease-out);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  /* Nav links — left-aligned, stacked */
  .nav-links .nav-link,
  .navbar.is-light-section .nav-links .nav-link {
    font-family: "Montserrat", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-on-dark-2) !important;
    padding: var(--sp-3) 0;
    display: block;
    text-decoration: none;
    transition: color var(--t-fast) ease;
  }

  /* Remove underline pseudo in mobile */
  .nav-link::after {
    display: none !important;
  }

  .nav-links .nav-link:hover,
  .nav-links .nav-link.active,
  .navbar.is-light-section .nav-links .nav-link:hover,
  .navbar.is-light-section .nav-links .nav-link.active {
    color: var(--white) !important;
  }

  /* Backdrop overlay */
  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 31, 51, 0.65);
    z-index: 190;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .mobile-overlay.open { display: block; }
}

/* ============================================
   RESPONSIVE — TABLET+ (768px and up)
   ============================================ */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--sp-6);
  }

  .nav-inner {
    height: 64px;
    padding: 0 var(--sp-6);
  }

  /* Hero: improved column layout for tablet */
  .hero {
    padding-top: 100px;
    padding-bottom: var(--sp-8);
  }

  .hero-inner {
    padding: 0 var(--sp-6);
    gap: var(--sp-6);
  }

  .hero-copy {
    max-width: 680px;
  }

  /* Moderate ring scale for tablet */
  .hero-rings { width: 320px; height: 320px; }
  .hero-ring:nth-child(1) { width: 126px; height: 126px; }
  .hero-ring:nth-child(2) { width: 186px; height: 186px; }
  .hero-ring:nth-child(3) { width: 252px; height: 252px; }
  .hero-ring:nth-child(4) { width: 312px; height: 312px; }
  .hero-ring-dashed { width: 274px; height: 274px; }
  .hero-app-icon { width: 152px; height: 152px; border-radius: 36px; }

  /* Concept */
  .concept {
    padding-block: var(--sp-10) var(--sp-9);
  }

  .concept-inner {
    padding: 0 var(--sp-6);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--sp-7);
  }

  .concept-visual {
    display: block;
    flex-shrink: 0;
    max-width: 280px;
    margin-left: auto;
  }

  .concept-copy {
    flex: 1;
    min-width: 0;
  }

  /* Features */
  .features-inner {
    padding: 0 var(--sp-6);
  }

  .features-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--sp-5);
  }

  .feature-card--featured {
    grid-row: 1 / -1;
    justify-content: center;
  }

  /* Roadmap */
  .roadmap {
    padding-block: var(--sp-10) var(--sp-9);
  }

  .roadmap-footer {
    flex-direction: row;
  }

  /* Footer row layouts */
  .footer-mid {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================
   DESKTOP (1025px+)
   ============================================ */
@media (min-width: 1025px) {
  /* Hero: side-by-side layout at desktop */
  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: var(--sp-7);
  }

  .hero-copy {
    flex: 1;
    min-width: 0;
    text-align: left;
    max-width: none;
  }


  .hero-visual {
    flex-shrink: 0;
  }

  .hero-rings { width: 440px; height: 440px; }
  .hero-ring:nth-child(1) { width: 170px; height: 170px; }
  .hero-ring:nth-child(2) { width: 252px; height: 252px; }
  .hero-ring:nth-child(3) { width: 342px; height: 342px; }
  .hero-ring:nth-child(4) { width: 432px; height: 432px; }
  .hero-ring-dashed       { width: 380px; height: 380px; }

  .hero-app-icon {
    width: 210px;
    height: 210px;
    border-radius: 48px;
  }

  /* Features: bento layout — featured tall left, two stacked right */
  .features-grid {
    grid-template-columns: 1.3fr 1fr;
  }
}

/* ---- Landscape mobile ---- */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: var(--sp-7);
  }

}

/* ---- Very small screens (320–400px) ---- */
@media (max-width: 400px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .cta-btn {
    padding: 14px 24px;
    font-size: 0.9rem;
    width: 100%;
    justify-content: center;
  }

  .feature-card {
    padding: var(--sp-3) var(--sp-4);
  }

  .concept-visual img {
    max-width: 150px;
  }

  .timeline-item {
    padding-left: 32px;
  }
}
