/* ============================================================
   Qalzy App — Premium redesign
   Brand: qalzy.com — ink #121212, green #4AD769, gold #F5D545
   ============================================================ */

@font-face {
  font-family: "Helvetica Neue";
  src: url("../fonts/HelveticaNeue-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("../fonts/HelveticaNeue-Roman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("../fonts/HelveticaNeue-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("../fonts/HelveticaNeue-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #121212;
  --ink-2: #1c1c1c;
  --ink-soft: #565656;
  --ink-mute: #8a8a8a;
  --paper: #ffffff;
  --paper-dim: #f6f6f3;
  --line: rgba(18, 18, 18, 0.08);
  --green: #4ad769;
  --green-deep: #2fae52;
  --green-dark: #1e8f40;
  --gold: #f5d545;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow-card: 0 24px 60px -24px rgba(18, 18, 18, 0.22);
  --shadow-soft: 0 10px 30px -12px rgba(18, 18, 18, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.lead {
  color: var(--ink-soft);
  font-size: 20px;
}

/* ---------- Reveal on scroll ---------- */

.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
  transition-delay: var(--d, 0s);
}

.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.site-header.scrolled {
  background: rgba(12, 12, 12, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Light-hero variant */
body.light-hero .site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 rgba(18, 18, 18, 0.07);
}

body.light-hero .nav-list a { color: rgba(18, 18, 18, 0.62); }
body.light-hero .nav-list a:hover,
body.light-hero .nav-list a.active { color: var(--ink); }

body.light-hero .menu-btn span,
body.light-hero .menu-btn span::before,
body.light-hero .menu-btn span::after { background: var(--ink); }
body.light-hero.nav-open .menu-btn span { background: transparent; }

body.light-hero .hero {
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(74, 215, 105, 0.18), transparent 60%),
    radial-gradient(800px 460px at -6% 108%, rgba(245, 213, 69, 0.16), transparent 55%),
    linear-gradient(180deg, #fdfdfb 0%, #f6f6f3 100%);
  color: var(--ink);
}

body.light-hero .hero::after { display: none; }

body.light-hero .hero h1 { color: var(--ink); }

body.light-hero .hero .lead { color: var(--ink-soft); }

body.light-hero .hero-visual .frame {
  box-shadow: 0 46px 90px -34px rgba(18, 18, 18, 0.35), 0 0 0 1px rgba(18, 18, 18, 0.05);
}

body.light-hero .store-badges a:hover img {
  box-shadow: 0 14px 30px -12px rgba(18, 18, 18, 0.35);
}

@media (max-width: 880px) {
  body.light-hero .nav-list { background: rgba(255, 255, 255, 0.97); }
}

.brand img { height: 40px; width: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-list a {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  padding: 6px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-list a:hover { color: #fff; }

.nav-list a.active { color: #fff; }

.nav-list a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
}

.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-btn span::before { position: absolute; top: -7px; }
.menu-btn span::after { position: absolute; top: 7px; }

.nav-open .menu-btn span { background: transparent; }
.nav-open .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(74, 215, 105, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(245, 213, 69, 0.1), transparent 55%),
    #0e0f0e;
  color: #fff;
  padding: 172px 0 0;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 96px;
}

.hero h1 {
  font-size: clamp(44px, 5.6vw, 72px);
  color: #fff;
}

.hero h1 .accent {
  background: linear-gradient(92deg, var(--green) 10%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.72);
  max-width: 32em;
  margin: 26px 0 38px;
}

.store-badges {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badges img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.store-badges a:hover img {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.55);
}

.hero-visual { position: relative; }

.hero-visual .cutout {
  width: 100%;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.55));
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 130%;
  background: radial-gradient(closest-side, rgba(74, 215, 105, 0.18), transparent 70%);
  filter: blur(16px);
  pointer-events: none;
}

/* ---------- Sections ---------- */

.section { padding: 110px 0; }
.section.dim { background: var(--paper-dim); }
.section.dark {
  background: radial-gradient(1000px 500px at 90% 0%, rgba(74, 215, 105, 0.12), transparent 55%), var(--ink);
  color: #fff;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 14px 0 18px;
}

.section-head p { color: var(--ink-soft); font-size: 19px; }

/* ---------- Steps / tabs ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.step {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 22px;
  padding: 26px 28px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.step + .step { margin-top: 10px; }

.step .num {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  padding-top: 5px;
  transition: color 0.3s ease;
}

.step h4 { font-size: 22px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 17px; }

.step.active {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.step.active .num {
  color: var(--green-deep);
}

.phone-stage {
  position: relative;
  width: min(340px, 82vw);
  margin: 0 auto;
}

.phone-stack {
  display: grid;
  filter: drop-shadow(0 50px 100px rgba(18, 18, 18, 0.35));
}

.phone-screen {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.phone-screen.active { opacity: 1; }

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Value cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.value-card h4 { font-size: 21px; margin: 22px 0 12px; }
.value-card p { color: var(--ink-soft); font-size: 16.5px; }

.icon-chip {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(74, 215, 105, 0.16), rgba(245, 213, 69, 0.16));
  color: var(--green-dark);
}

.icon-chip svg { width: 26px; height: 26px; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(760px 340px at 14% -10%, rgba(74, 215, 105, 0.16), transparent 60%),
    radial-gradient(560px 280px at 90% 115%, rgba(245, 213, 69, 0.1), transparent 60%),
    #131412;
  border-radius: var(--radius-xl);
  color: #fff;
  text-align: center;
  padding: 88px 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -44px rgba(18, 18, 18, 0.6);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.cta-band h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  max-width: 18em;
  margin: 0 auto 16px;
  position: relative;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.68);
  max-width: 34em;
  margin: 0 auto 36px;
  position: relative;
}

.cta-band .store-badges { justify-content: center; position: relative; }

/* ---------- Feature bento ---------- */

.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.bento-card {
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 620px;
  transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1), box-shadow 0.35s ease;
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.bento-copy {
  padding: 48px 48px 8px;
  text-align: center;
}

.bento-copy h2 {
  font-size: clamp(24px, 2.2vw, 30px);
  margin-bottom: 12px;
}

.bento-copy p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 30em;
  margin: 0 auto;
}

.bento-media {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 36px 48px 0;
}

.bento-media img {
  width: min(320px, 78%);
  filter: drop-shadow(0 30px 40px rgba(18, 18, 18, 0.18));
}


/* ---------- Scale section ---------- */

.scale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.scale-copy .eyebrow { color: var(--gold); }
.scale-copy .eyebrow::before { background: linear-gradient(90deg, var(--gold), var(--green)); }

.scale-copy h2 {
  font-size: clamp(32px, 4vw, 50px);
  color: #fff;
  margin: 16px 0 4px;
}

.scale-copy h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
  background: linear-gradient(92deg, var(--green) 10%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}

.scale-copy > p { color: rgba(255, 255, 255, 0.72); font-size: 19px; }

.scale-list { margin-top: 44px; display: grid; gap: 26px; }

.scale-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.scale-list li:last-child { border-bottom: 0; padding-bottom: 0; }

.check-chip {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 215, 105, 0.16);
  color: var(--green);
  border: 1px solid rgba(74, 215, 105, 0.35);
}

.check-chip svg { width: 20px; height: 20px; }

.scale-list h4 { font-size: 19px; color: #fff; margin-bottom: 4px; }
.scale-list p { color: rgba(255, 255, 255, 0.64); font-size: 16.5px; }

.scale-media {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.scale-media img { width: 100%; }

/* ---------- Detailed features ---------- */

.detail-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 56px;
  align-items: center;
}

.detail-col { display: grid; gap: 40px; }

.detail-item h4 { font-size: 20px; margin: 18px 0 8px; }
.detail-item p { color: var(--ink-soft); font-size: 16.5px; }

.detail-phone { width: min(320px, 70vw); margin: 0 auto; }

.detail-phone img {
  width: 100%;
  filter: drop-shadow(0 40px 60px rgba(18, 18, 18, 0.25));
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faq-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 32px;
  box-shadow: 0 6px 18px -10px rgba(18, 18, 18, 0.08);
}

.faq-card h4 { font-size: 20px; margin-bottom: 10px; }
.faq-card p { color: var(--ink-soft); font-size: 16.5px; }

.faq-more {
  text-align: center;
  margin-top: 48px;
  color: var(--ink-soft);
}

.faq-more a {
  color: var(--green-dark);
  font-weight: 700;
  border-bottom: 2px solid rgba(74, 215, 105, 0.4);
  transition: border-color 0.2s ease;
}

.faq-more a:hover { border-color: var(--green-dark); }

/* ---------- Footer ---------- */

.site-footer {
  background: #0c0d0c;
  color: #fff;
  padding: 56px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-brand img { height: 44px; width: auto; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid, .steps-grid, .scale-grid { gap: 44px; }
  .feature-row { gap: 44px; }
  .detail-grid { gap: 32px; }
}

@media (max-width: 880px) {
  body { font-size: 17px; }
  .section { padding: 80px 0; }

  .menu-btn { display: inline-flex; }

  .nav-list {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(10, 10, 10, 0.97);
    padding: 20px 24px 30px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }

  .nav-list a { display: block; padding: 12px 0; font-size: 15px; }

  .nav-open .nav-list { opacity: 1; visibility: visible; transform: none; }

  .hero { padding-top: 132px; }
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 72px; }

  .steps-grid, .scale-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; gap: 20px; }
  .bento-card { min-height: 520px; }
  .bento-copy { padding: 40px 28px 8px; }
  .bento-media { padding: 28px 28px 0; }

  .card-grid, .faq-grid { grid-template-columns: 1fr; }

  .detail-grid { grid-template-columns: 1fr; }
  .detail-phone { order: -1; }

  .cta-band { padding: 64px 24px; }
}
