/* ═══════════════════════════════════════════
   CARTON — Landing Page Styles
   Aesthetic: Warm, bold, playful-but-pro
   Font: Syne (display) + DM Sans (body)
═══════════════════════════════════════════ */

:root {
  --box:       #F5A623;
  --box-dark:  #6B4500;
  --cream:     #FFF8EE;
  --dark:      #0D0900;
  --mid:       #2E2010;
  --accent:    #C83000;
  --ok:        #1A7A40;
  --warn:      #C06010;
  --card-bg:   #FFFDF8;
  --border:    #D4C0A0;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;

  --shadow-soft: 0 4px 24px rgba(26,18,8,.08);
  --shadow-card: 0 8px 40px rgba(26,18,8,.13);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3 { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.1; }
h1 { font-size: clamp(3.4rem, 7.5vw, 6.2rem); font-weight: 800; }
h2 { font-size: clamp(2.5rem, 5.5vw, 4rem); font-weight: 700; }
h3 { font-size: 1.6rem; font-weight: 700; }
em { font-style: italic; color: var(--box-dark); font-weight: 700; }
p  { line-height: 1.8; color: var(--mid); font-size: 1.25rem; font-weight: 500; }

a { text-decoration: none; color: inherit; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--dark);
  color: var(--cream);
  padding: 1rem 2.4rem;
  border-radius: 100px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(26,18,8,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(26,18,8,.3); }
.btn-primary.big { padding: 1.2rem 2.8rem; font-size: 1.2rem; }

.btn-ghost {
  display: inline-block;
  color: var(--dark);
  padding: 1rem 1.8rem;
  font-weight: 600;
  font-size: 1.05rem;
  opacity: .85;
  transition: opacity .2s;
}
.btn-ghost:hover { opacity: 1; }

/* ═══════════════════════════════════════════
   INTRO OVERLAY
═══════════════════════════════════════════ */
.intro-overlay {
  position: fixed;
  inset: 0;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity .6s, visibility .6s, transform .75s cubic-bezier(.76,0,.24,1);
}
.intro-overlay.gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  text-align: center;
  padding: 2rem;
  animation: stageFadeIn .5s ease both;
}
.intro-stage.hidden { display: none; }

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

/* box images */
.box-img {
  width: min(380px, 70vw);
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(245,166,35,.35));
  animation: boxFloat 3s ease-in-out infinite;
}
@keyframes boxFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* open button */
.open-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--box);
  color: var(--dark);
  border: none;
  padding: 1.2rem 2.8rem;
  border-radius: 100px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 6px 30px rgba(245,166,35,.45);
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.open-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  opacity: 0;
  transition: opacity .2s;
}
.open-btn:hover { transform: scale(1.06); box-shadow: 0 10px 40px rgba(245,166,35,.6); }
.open-btn:hover::after { opacity: 1; }
.open-btn:active { transform: scale(.98); }
.btn-icon { font-size: 1rem; animation: spinSlow 4s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ── Stage open: floating items ── */
.open-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.floating-items {
  position: relative;
  height: 120px;
  width: 260px;
  margin-bottom: -20px;
}

.item {
  position: absolute;
  font-size: 2rem;
  opacity: 0;
  animation: itemPop .5s ease forwards;
}
.item-1 { top: 40px; left: 10px;  animation-delay: .0s; }
.item-2 { top: 0px;  left: 80px;  animation-delay: .1s; }
.item-3 { top: 50px; left: 50px;  animation-delay: .2s; }
.item-4 { top: 20px; left: 160px; animation-delay: .3s; }
.item-5 { top: 60px; left: 200px; animation-delay: .4s; }

@keyframes itemPop {
  from { opacity: 0; transform: translateY(30px) scale(.5); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.box-open-img {
  width: min(260px, 58vw);
  animation: none;
}

/* ── Stage 4: inner wrapper ── */
.stage-logo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* floating items persistent in stage 4 */
.logo-floating-items {
  position: relative;
  height: 100px;
  width: 280px;
}
.litem {
  position: absolute;
  opacity: 0;
  animation: litemAppear .5s ease forwards;
}
.litem img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.18));
  animation: litemBob 3s ease-in-out infinite;
}
.litem-1 { top: 30px; left: 0px;   animation-delay: .05s; }
.litem-2 { top: 0px;  left: 60px;  animation-delay: .1s; }
.litem-3 { top: 40px; left: 120px; animation-delay: .15s; }
.litem-4 { top: 10px; left: 180px; animation-delay: .2s; }
.litem-5 { top: 45px; left: 230px; animation-delay: .25s; }
.litem-1 img { animation-delay: 0s; }
.litem-2 img { animation-delay: .4s; }
.litem-3 img { animation-delay: .8s; }
.litem-4 img { animation-delay: .2s; }
.litem-5 img { animation-delay: .6s; }

@keyframes litemAppear {
  from { opacity: 0; transform: translateY(20px) scale(.7); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes litemBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* intro slide-up exit */
.intro-overlay.slide-up {
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .75s cubic-bezier(.76,0,.24,1), opacity .4s .45s;
  pointer-events: none;
}

/* ── Stage logo lockup ── */
.logo-lockup {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.lockup-box {
  width: min(160px, 42vw);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(245,166,35,.35));
  animation: slideFromRight .6s cubic-bezier(.16,1,.3,1) both;
}
@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

.lockup-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: slideFromLeft .6s cubic-bezier(.16,1,.3,1) .1s both;
}
@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to   { opacity: 1; transform: translateX(0); }
}

.lockup-name {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--dark);
  line-height: 1;
  white-space: nowrap;
  animation: expandWidth .6s cubic-bezier(.16,1,.3,1) .4s forwards;
}
@keyframes expandWidth {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lockup-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(.9rem, 2.5vw, 1.25rem);
  color: var(--mid);
  font-style: italic;
  opacity: 0;
  animation: fadeUp .5s ease .9s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.enter-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  border: 2px solid var(--dark);
  color: var(--dark);
  padding: .8rem 2rem;
  border-radius: 100px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp .5s ease 1.3s forwards;
  transition: background .2s, color .2s, transform .2s;
}
.enter-btn:hover {
  background: var(--dark);
  color: var(--cream);
  transform: translateY(-2px);
}
.enter-btn .arrow { transition: transform .2s; }
.enter-btn:hover .arrow { transform: translateY(4px); }

/* ═══════════════════════════════════════════
   MAIN PAGE
═══════════════════════════════════════════ */
.main-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s .2s, visibility .6s .2s;
}
.main-hidden.visible {
  opacity: 1;
  visibility: visible;
}

/* ─── NAV ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 3rem;
  background: rgba(255,248,238,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
}
.nav-icon { width: 40px; height: 40px; object-fit: contain; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  font-size: 1.15rem;
  font-weight: 600;
  opacity: .85;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  opacity: 1 !important;
  background: var(--dark);
  color: var(--cream) !important;
  padding: .72rem 1.5rem;
  border-radius: 100px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700 !important;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 7rem 5rem 10rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(245,166,35,.15) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(245,166,35,.10) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(245,166,35,.18);
  color: var(--box-dark);
  padding: .4rem 1rem;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  width: fit-content;
  border: 1px solid rgba(245,166,35,.35);
}

.hero-title em { font-style: italic; }

.hero-sub {
  font-size: 1.1rem;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* hero visual */
.hero-visual {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  min-width: 300px;
}

.mockup-card {
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  overflow: hidden;
  width: 100%;
  max-width: 440px;
  transform: rotate(1.5deg);
  animation: cardFloat 4s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: rotate(1.5deg) translateY(0); }
  50%       { transform: rotate(1.5deg) translateY(-10px); }
}

.mockup-topbar {
  background: var(--box);
  padding: .85rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.topbar-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--dark);
  letter-spacing: .04em;
}

.mockup-body { padding: 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.mockup-label {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
  padding-bottom: .8rem;
}

.mockup-items { display: flex; flex-direction: column; gap: .7rem; }
.mockup-item {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .65rem .9rem;
  background: var(--cream);
  border-radius: var(--r-sm);
  font-size: .95rem;
}
.mockup-item-icon { font-size: 1.4rem; }
.mockup-item-name { font-weight: 600; font-size: .95rem; }
.mockup-item-meta { font-size: .82rem; color: var(--mid); }
.mockup-item-meta.warn { color: var(--accent); font-weight: 600; }
.mockup-item-ok { margin-left: auto; color: var(--ok); font-weight: 700; font-size: 1.1rem; }

.mockup-scan {
  background: var(--dark);
  color: var(--cream);
  border-radius: var(--r-sm);
  padding: .9rem;
  text-align: center;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}

/* floating badges */
.hero-float-badge {
  position: absolute;
  background: white;
  border-radius: var(--r-md);
  padding: .5rem 1rem;
  font-size: .8rem;
  font-weight: 700;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge-1 { bottom: 40px; left: -20px; color: var(--ok); animation: badgeFloat 3s 1s ease-in-out infinite; }
.badge-2 { top: 20px;   right: -10px; color: var(--accent); animation: badgeFloat 3s .5s ease-in-out infinite; }
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ─── PROBLEM ─── */
.problem {
  padding: 2rem 2rem 8rem;
  background: var(--dark);
  color: var(--cream);
  margin-top: -1px;
}
.problem h2 { color: white; max-width: 600px; margin-bottom: 3rem; }
.problem em { color: var(--box); }
.problem p  { color: rgba(255,248,238,.65); }
.problem h3 { color: white; margin-bottom: .5rem; }

.section-label {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--box);
  margin-bottom: 1rem;
}
.problem .section-label { color: rgba(245,166,35,.7); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.problem-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: 2rem;
  transition: background .2s;
}
.problem-card:hover { background: rgba(255,255,255,.09); }
.problem-icon { font-size: 2rem; display: block; margin-bottom: 1rem; }

/* ─── ABOUT ─── */
.about {
  padding: 5rem 2rem;
}

.about h2 { margin-bottom: 1.6rem; }

/* ─── FEATURES ─── */
.features {
  padding: 7rem 2rem;
}
.features h2 { margin-bottom: 5rem; }
.features-list { display: flex; flex-direction: column; gap: 8rem; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-num {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 3.8rem;
  font-weight: 800;
  color: rgba(245,166,35,.3);
  display: block;
  margin-bottom: .5rem;
  line-height: 1;
}
.feature-text h3 { font-size: 1.9rem; margin-bottom: 1rem; }
.feature-text p { font-size: 1.2rem; }

/* feature cards */
.feat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.feat-card-header {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
  padding-bottom: .8rem;
  margin-bottom: .8rem;
}

.feat-card-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .5rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 500;
}
.feat-card-row:hover { background: var(--cream); }
.tag {
  margin-left: auto;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(245,166,35,.15);
  color: var(--box-dark);
  padding: .2rem .6rem;
  border-radius: 100px;
}
.tag.warn { background: rgba(232,75,16,.1); color: var(--accent); }

/* scan card */
.scan-card { padding: 1.5rem; }
.scan-frame {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--cream);
  border-radius: var(--r-md);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
}
.scan-corner {
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--dark);
  border-style: solid;
}
.scan-corner.tl { top: 12px; left: 12px;  border-width: 3px 0 0 3px; }
.scan-corner.tr { top: 12px; right: 12px; border-width: 3px 3px 0 0; }
.scan-corner.bl { bottom: 35px; left: 12px;  border-width: 0 0 3px 3px; }
.scan-corner.br { bottom: 35px; right: 12px; border-width: 0 3px 3px 0; }

.scan-line {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: var(--box);
  animation: scanMove 1.8s ease-in-out infinite;
  box-shadow: 0 0 8px var(--box);
}
@keyframes scanMove {
  0%   { top: 20px; }
  100% { top: calc(100% - 44px); }
}
.scan-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--dark);
  background: white;
  border-radius: 100px;
  padding: .35rem .9rem;
  border: 1px solid var(--border);
  z-index: 2;
}

/* notif card */
.notif-card { display: flex; flex-direction: column; gap: .8rem; }
.notif {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .7rem;
  background: var(--cream);
  border-radius: var(--r-sm);
}
.notif-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.notif-dot.red    { background: var(--accent); box-shadow: 0 0 6px rgba(232,75,16,.5); }
.notif-dot.yellow { background: var(--warn);   box-shadow: 0 0 6px rgba(230,126,34,.5); }
.notif-dot.green  { background: var(--ok);     box-shadow: 0 0 6px rgba(39,174,96,.5); }
.notif-title { font-size: .88rem; font-weight: 600; }
.notif-sub   { font-size: .75rem; color: var(--mid); }

/* perms card */
.perms-card { display: flex; flex-direction: column; gap: .7rem; }
.perms-title {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: .6rem;
  margin-bottom: .2rem;
}
.perm-row {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .88rem;
  font-weight: 500;
}
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--box);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  flex-shrink: 0;
}
.role {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 100px;
}
.role.owner  { background: rgba(245,166,35,.2); color: var(--box-dark); }
.role.editor { background: rgba(39,174,96,.15); color: var(--ok); }
.role.viewer { background: rgba(26,18,8,.08);   color: var(--mid); }
.role.device { background: rgba(90,90,255,.12); color: #4444cc; }

/* photo feature cards */
.feat-photo-card {
  padding: 0;
  overflow: hidden;
}
.feat-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
}

/* mockup screenshot */
.mockup-photo {
  padding: 0 !important;
  overflow: hidden;
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.mockup-screenshot {
  width: 100%;
  height: auto;
  display: block;
}

/* floating items as images */
.item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
}

/* ─── HOW IT WORKS ─── */
.how {
  padding: 9rem 2rem;
  background: var(--dark);
  color: white;
}
.how h2 { color: white; margin-bottom: 3.5rem; }
.how em { color: var(--box); }
.how .section-label { color: rgba(245,166,35,.7); }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 200px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: 2rem;
}
.step-num {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--box);
  margin-bottom: .8rem;
}
.step h3 { color: white; margin-bottom: .5rem; }
.step p  { color: rgba(255,248,238,.85); font-size: 1.05rem; }

.step-arrow {
  font-size: 2rem;
  color: rgba(245,166,35,.4);
  padding-top: 3rem;
  flex-shrink: 0;
}

/* ─── INSTALL ─── */
.install {
  padding: 6rem 2rem;
  background: var(--cream);
  text-align: center;
}

.install-intro {
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.install-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s;
}
.install-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.install-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.install-card h3 {
  font-size: 1.2rem;
  color: var(--dark);
}

.install-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  counter-reset: step-counter;
  padding: 0;
  text-align: left;
}
.install-steps li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 2rem;
  font-size: 1.05rem;
  color: var(--dark);
  line-height: 1.65;
}
.install-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: .15rem;
  width: 22px;
  height: 22px;
  background: var(--box);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
}
.install-steps li strong {
  color: var(--dark);
  font-weight: 700;
}

.install-tip {
  font-size: .82rem;
  color: var(--dark);
  background: rgba(245,166,35,.15);
  border-left: 3px solid var(--box);
  padding: .6rem .9rem;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  line-height: 1.5;
  margin-top: auto;
}

.install-note {
  max-width: 760px;
  margin: 2.5rem auto 0;
  color: var(--dark);
  font-size: 1rem;
  font-weight: 600;
}

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

@media (max-width: 640px) {
  .install-card {
    padding: 1.6rem;
  }

  .install-steps li {
    font-size: .92rem;
  }
}

/* ─── DOWNLOAD ─── */
.download {
  padding: 9rem 2rem;
  text-align: center;
}

.download-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.dl-logo {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(245,166,35,.4));
  animation: boxFloat 3s ease-in-out infinite;
}

.dl-text {
  text-align: left;
  max-width: 480px;
}
.dl-text h2 { margin-bottom: 1rem; }
.dl-text p  { margin-bottom: 2rem; }
.dl-btns { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}
.footer-logo img { width: 28px; height: 28px; object-fit: contain; }
.footer-tagline { font-style: italic; color: var(--mid); font-weight: 500; }
.footer-copy { font-size: .8rem; color: rgba(46,32,16,.65); }

/* ═══════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════ */
.reveal, .reveal-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.in, .reveal-section.in { opacity: 1; transform: translateY(0) translateX(0); }

/* directional variants */
.reveal-left  { opacity: 0; transform: translateX(-60px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal-right { opacity: 0; transform: translateX(60px);  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal-left.in, .reveal-right.in { opacity: 1; transform: translateX(0); }

/* stagger delays for feature rows */
.feature-row .feature-text  { transition-delay: 0s; }
.feature-row .feature-visual { transition-delay: .12s; }

/* stagger children inside reveal-section */
.reveal-section.in .problem-card:nth-child(1) { transition-delay: .1s; }
.reveal-section.in .problem-card:nth-child(2) { transition-delay: .2s; }
.reveal-section.in .problem-card:nth-child(3) { transition-delay: .3s; }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 4rem 1.5rem 3rem; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-sub { margin: 0 auto; }
  .hero-badge { margin: 0 auto; }
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row.reverse { direction: ltr; }
  .step-arrow { display: none; }
  .hero-float-badge { display: none; }
}
@media (max-width: 600px) {
  .nav {
    padding: 1.15rem 1.3rem;
  }
  .nav-logo {
    font-size: 1.2rem;
    gap: .6rem;
  }
  .nav-icon {
    width: 34px;
    height: 34px;
  }
  .nav-links a {
    font-size: 1rem;
  }
  .nav-cta {
    padding: .6rem 1.2rem;
  }
  .nav-links li:not(:last-child) { display: none; }
  .lockup-text { align-items: center; }
  .dl-text { text-align: center; }
  .dl-btns { justify-content: center; }
  .download-inner { flex-direction: column; }
  .logo-lockup { gap: 1rem; }
  .steps { flex-direction: column; }
}