:root {
  --fl-bg: #f6f0e6;
  --fl-bg-soft: #fffaf3;
  --fl-ink: #1a2340;
  --fl-muted: #5f6780;
  --fl-line: rgba(31, 56, 115, 0.13);
  --fl-navy: #112a61;
  --fl-blue: #3d82ff;
  --fl-sky: #89d7ff;
  --fl-gold: #e7bb72;
  --fl-rose: #f29aa8;
  --fl-shadow: 0 30px 90px rgba(22, 39, 84, 0.16);
  --fl-shadow-soft: 0 18px 52px rgba(22, 39, 84, 0.12);
  --fl-radius-xl: 40px;
  --fl-radius-lg: 28px;
  --fl-radius-md: 20px;
  --fl-max: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--fl-ink);
  background:
    radial-gradient(circle at 10% 8%, rgba(61, 130, 255, 0.18), transparent 22%),
    radial-gradient(circle at 90% 8%, rgba(231, 187, 114, 0.2), transparent 18%),
    radial-gradient(circle at 84% 42%, rgba(242, 154, 168, 0.12), transparent 24%),
    linear-gradient(180deg, #fffcf8 0%, #f9f1e6 52%, #fffdf9 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(61, 130, 255, 0.06), transparent 35%),
    linear-gradient(320deg, rgba(231, 187, 114, 0.08), transparent 30%);
  pointer-events: none;
  z-index: -2;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}

section[id] {
  scroll-margin-top: 110px;
}

.flambient-container {
  width: min(calc(100% - 36px), var(--fl-max));
  margin-inline: auto;
}

.flambient-topbar,
.flambient-footer {
  width: min(calc(100% - 36px), var(--fl-max));
  margin-inline: auto;
}

.flambient-topbar {
  position: sticky;
  top: 18px;
  z-index: 60;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
  border: 1px solid rgba(17, 42, 97, 0.14);
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.78);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--fl-shadow-soft);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.flambient-topbar.is-scrolled {
  background: rgba(255, 250, 244, 0.92);
  border-color: rgba(17, 42, 97, 0.22);
  box-shadow: 0 20px 48px rgba(22, 39, 84, 0.14);
}

.flambient-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.flambient-brand-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  padding: 7px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(137, 215, 255, 0.44), transparent 46%),
    linear-gradient(135deg, rgba(61, 130, 255, 0.18), rgba(231, 187, 114, 0.24));
  border: 1px solid rgba(17, 42, 97, 0.12);
  box-shadow: 0 18px 34px rgba(22, 39, 84, 0.12);
}

.flambient-brand-wordmark {
  width: clamp(132px, 11vw, 180px);
  height: auto;
}

.flambient-nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.flambient-nav a,
.hero-text,
.hero-metrics span,
.section-heading p,
.compare-copy p,
.quality-meta span,
.quality-meta strong,
.reason-card p,
.process-card p,
.cta-panel p,
.flambient-footer p {
  color: var(--fl-muted);
}

.flambient-nav a {
  font-size: 0.95rem;
}

.flambient-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: #1d467e;
  color: #fffefc;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 28px rgba(24, 57, 125, 0.16);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.flambient-button:hover,
.flambient-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(24, 57, 125, 0.2);
}

.flambient-button-secondary,
.flambient-button-ghost {
  background: rgba(255, 255, 255, 0.78);
  color: var(--fl-navy);
  border-color: rgba(17, 42, 97, 0.14);
  box-shadow: 0 10px 22px rgba(24, 57, 125, 0.08);
}

.flambient-nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.flambient-social-button {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid rgba(17, 42, 97, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--fl-navy);
  box-shadow: 0 12px 28px rgba(24, 57, 125, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.flambient-social-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.flambient-social-button:hover,
.flambient-social-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(24, 57, 125, 0.14);
  background: rgba(255, 255, 255, 0.9);
}

.flambient-main {
  padding-bottom: 72px;
}

.flambient-eyebrow,
.micro-label,
.compare-tag,
.quality-meta span,
.process-index,
.reason-icon {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-copy h1,
.section-heading h2,
.cta-panel h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  letter-spacing: -0.04em;
  color: #fffaf2;
}

.section-heading h2,
.cta-panel h2,
.craft-card h3,
.compare-copy h3,
.reason-card h3,
.process-card h3 {
  color: var(--fl-navy);
}

.flambient-hero {
  position: relative;
  min-height: min(100svh, 980px);
  margin-top: -98px;
  padding-top: 118px;
  display: grid;
  align-items: end;
  overflow: clip;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroZoom 1.8s ease forwards;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(10, 18, 36, 0.18) 0%, rgba(9, 19, 39, 0.58) 54%, rgba(8, 18, 36, 0.84) 100%),
    linear-gradient(90deg, rgba(8, 18, 36, 0.76) 0%, rgba(8, 18, 36, 0.36) 56%, rgba(8, 18, 36, 0.18) 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.75;
  pointer-events: none;
}

.hero-glow-a {
  right: 8%;
  top: 18%;
  width: 260px;
  height: 260px;
  background: rgba(121, 204, 255, 0.24);
}

.hero-glow-b {
  left: 10%;
  bottom: 8%;
  width: 320px;
  height: 320px;
  background: rgba(231, 187, 114, 0.16);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 40px;
  align-items: end;
  padding-bottom: 72px;
}

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

.hero-copy h1 {
  font-size: clamp(3.2rem, 6vw, 6.4rem);
  line-height: 0.96;
}

.hero-text {
  margin: 24px 0 0;
  max-width: 640px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: rgba(246, 241, 232, 0.82);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-metrics {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hero-metrics article,
.hero-card,
.craft-card,
.compare-card,
.quality-card,
.reason-card,
.process-card,
.cta-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--fl-radius-lg);
  background: rgba(255, 249, 241, 0.76);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--fl-shadow-soft);
}

.hero-metrics article {
  padding: 20px;
  background: rgba(255, 249, 241, 0.14);
}

.hero-metrics strong {
  display: block;
  color: #fff7ec;
  font-size: 1rem;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: rgba(246, 241, 232, 0.72);
  font-size: 0.92rem;
  line-height: 1.6;
}

.hero-stack {
  position: relative;
  min-height: 560px;
}

.hero-card {
  position: absolute;
  color: #f8f4ee;
  background: rgba(255, 252, 247, 0.12);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-card-primary {
  top: 0;
  right: 10%;
  width: min(360px, 100%);
  padding: 24px;
}

.hero-card-primary strong,
.hero-card-image p,
.metric-value {
  color: #fff8ef;
}

.hero-card-image {
  left: 0;
  top: 110px;
  width: min(320px, 82%);
  overflow: hidden;
}

.hero-card-image img {
  aspect-ratio: 0.95;
  object-fit: cover;
}

.hero-card-image div {
  padding: 18px 20px 22px;
}

.hero-card-metric {
  right: 0;
  bottom: 32px;
  width: min(360px, 92%);
  padding: 22px;
  display: grid;
  gap: 20px;
}

.metric-value {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.craft-section,
.quality-section,
.process-section {
  padding-top: 100px;
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.02;
}

.section-heading p {
  margin-top: 18px;
  font-size: 1.04rem;
  line-height: 1.8;
}

.craft-grid,
.reasons-grid,
.process-grid {
  display: grid;
  gap: 20px;
}

.craft-grid {
  margin-top: 34px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.craft-card,
.reason-card,
.process-card {
  padding: 28px;
  border-color: var(--fl-line);
}

.craft-icon,
.reason-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(61, 130, 255, 0.12), rgba(231, 187, 114, 0.18));
  color: var(--fl-navy);
}

.craft-card h3,
.compare-copy h3,
.reason-card h3,
.process-card h3 {
  margin: 18px 0 10px;
  font-size: 1.28rem;
}

.craft-card p,
.reason-card p,
.process-card p,
.compare-copy p,
.quality-meta,
.cta-panel p {
  margin: 0;
  line-height: 1.8;
}

.craft-visual {
  position: relative;
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  border-radius: var(--fl-radius-xl);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 245, 229, 0.82));
  border: 1px solid var(--fl-line);
  box-shadow: var(--fl-shadow-soft);
}

.craft-line {
  position: absolute;
  left: 50%;
  top: 22px;
  bottom: 22px;
  width: 1px;
  background: linear-gradient(180deg, rgba(61, 130, 255, 0), rgba(61, 130, 255, 0.32), rgba(231, 187, 114, 0));
}

.compare-section,
.reasons-section,
.cta-section {
  margin-top: 100px;
  padding: 100px 0;
  background:
    radial-gradient(circle at top right, rgba(137, 215, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(17, 42, 97, 0.04), rgba(255, 255, 255, 0));
}

.compare-grid,
.quality-grid {
  margin-top: 34px;
  display: grid;
  gap: 22px;
}

.compare-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-card {
  overflow: hidden;
  border-color: var(--fl-line);
}

.compare-stage {
  position: relative;
  aspect-ratio: 0.95;
  overflow: hidden;
  --position: 50%;
  --base-filter: saturate(0.75) brightness(0.8) contrast(0.86);
  touch-action: none;
}

.compare-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-base {
  filter: var(--base-filter);
}

.compare-overlay {
  position: absolute;
  inset: 0;
  width: var(--position);
  overflow: hidden;
}

.compare-overlay img {
  filter: saturate(1.04) brightness(1.03) contrast(1.03);
}

.compare-labels,
.compare-divider,
.compare-range {
  position: absolute;
}

.compare-labels {
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  z-index: 2;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff6ee;
}

.compare-divider {
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 1px;
  background: rgba(255, 255, 255, 0.76);
  z-index: 2;
  pointer-events: none;
}

.compare-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 250, 244, 0.18);
  backdrop-filter: blur(16px);
}

.compare-range {
  inset: 0;
  z-index: 3;
  width: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  touch-action: none;
}

.compare-range:focus-visible {
  outline: none;
}

.compare-range::-webkit-slider-runnable-track {
  height: 100%;
  background: transparent;
}

.compare-range::-moz-range-track {
  height: 100%;
  background: transparent;
  border: 0;
}

.compare-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 54px;
  height: 54px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.compare-range::-moz-range-thumb {
  width: 54px;
  height: 54px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.compare-stage.is-dragging .compare-divider span,
.compare-stage:hover .compare-divider span,
.compare-stage:focus-within .compare-divider span {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 16px 32px rgba(10, 18, 36, 0.22),
    0 0 0 14px rgba(255, 250, 244, 0.08);
}

.compare-copy {
  padding: 22px;
}

.quality-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 280px;
}

.quality-card {
  position: relative;
  overflow: hidden;
  border-color: var(--fl-line);
}

.quality-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.quality-card::after,
.quality-card::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: linear-gradient(180deg, rgba(8, 18, 36, 0), rgba(8, 18, 36, 0.8));
}

.quality-card::before {
  inset: 0;
  height: auto;
  background: linear-gradient(135deg, rgba(137, 215, 255, 0.08), rgba(231, 187, 114, 0.08));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.quality-meta {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
  color: #fff8ee;
}

.quality-meta span,
.quality-meta strong {
  display: block;
  color: #fff8ee;
}

.quality-card-tall {
  grid-column: span 4;
  grid-row: span 2;
}

.quality-card-wide {
  grid-column: span 8;
}

.quality-card:not(.quality-card-tall):not(.quality-card-wide) {
  grid-column: span 4;
}

.reasons-grid {
  margin-top: 34px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.reason-card {
  transition: transform 0.34s ease, box-shadow 0.34s ease, border-color 0.34s ease;
}

.reason-card:hover,
.reason-card:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--fl-shadow);
  border-color: rgba(61, 130, 255, 0.22);
}

.process-track {
  position: relative;
  margin-top: 34px;
  height: 120px;
}

.process-line,
.process-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
}

.process-line {
  background: linear-gradient(90deg, rgba(17, 42, 97, 0.08), rgba(17, 42, 97, 0.2), rgba(17, 42, 97, 0.08));
}

.process-progress {
  width: var(--process-progress, 0%);
  right: auto;
  background: linear-gradient(90deg, rgba(61, 130, 255, 0.4), rgba(231, 187, 114, 0.8));
  transition: width 0.4s ease;
}

.process-orb {
  position: absolute;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff8f0, #ffe0b6);
  border: 1px solid rgba(17, 42, 97, 0.12);
  box-shadow: 0 0 0 12px rgba(231, 187, 114, 0.08);
}

.process-orb-a { left: 0; }
.process-orb-b { left: calc(50% - 11px); }
.process-orb-c { right: 0; }

.process-grid {
  margin-top: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-card {
  min-height: 220px;
}

.cta-panel {
  padding: 42px;
  border-color: var(--fl-line);
  background:
    radial-gradient(circle at top right, rgba(137, 215, 255, 0.16), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 246, 233, 0.88));
}

.cta-panel h2 {
  max-width: 820px;
  font-size: clamp(2.3rem, 4vw, 4.4rem);
  line-height: 1.02;
}

.cta-panel p {
  max-width: 760px;
  margin-top: 18px;
}

.flambient-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 30px;
}

.reveal-up,
.reveal-scale {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale {
  transform: translateY(24px) scale(0.96);
}

.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-depth] {
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.quality-card:hover img,
.quality-card:focus-within img,
.hero-card-image:hover img,
.hero-card-image:focus-within img,
.compare-stage:hover img,
.compare-stage:focus-within img {
  transform: scale(1.05);
}

.quality-card:hover::before,
.quality-card:focus-within::before {
  opacity: 1;
}

.hero-card-image img,
.compare-stage img {
  transition: transform 0.45s ease, filter 0.45s ease;
}

@keyframes heroZoom {
  from {
    transform: scale(1.12);
    opacity: 0.5;
  }
  to {
    transform: scale(1.06);
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  .flambient-nav {
    display: none;
  }

  .hero-layout,
  .craft-grid,
  .compare-grid,
  .reasons-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-stack {
    min-height: 440px;
  }

  .quality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 260px;
  }

  .quality-card,
  .quality-card-tall,
  .quality-card-wide,
  .quality-card:not(.quality-card-tall):not(.quality-card-wide) {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  .flambient-topbar {
    padding: 14px 18px;
  }

  .flambient-nav-actions {
    width: 100%;
    justify-content: center;
  }

  .flambient-button-ghost {
    display: none;
  }

  .flambient-hero {
    min-height: auto;
    margin-top: -98px;
  }

  .hero-layout {
    padding-bottom: 48px;
  }

  .hero-copy h1,
  .cta-panel h2,
  .section-heading h2 {
    letter-spacing: -0.03em;
  }

  .hero-metrics,
  .craft-visual,
  .quality-grid {
    grid-template-columns: 1fr;
  }

  .craft-line {
    display: none;
  }

  .hero-stack {
    min-height: auto;
    display: grid;
    gap: 18px;
  }

  .hero-card {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .compare-stage {
    aspect-ratio: 1;
  }

  .cta-panel {
    padding: 30px 22px;
  }

  .flambient-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  [data-depth] {
    transform: none !important;
  }
}
