/* Intro / sales page shown on "/" to visitors who are not logged in. Builds on style.css tokens. */
html { scroll-behavior: smooth; }
body.landing { overflow-x: hidden; }
.landing section { scroll-margin-top: 72px; }

.lp-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 24px; background: rgba(14, 17, 22, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); }
.lp-top nav { display: flex; align-items: center; gap: 20px; }
.lp-top nav a:not(.button) { color: var(--dim); text-decoration: none; }
.lp-top nav a:not(.button):hover { color: var(--text); }

.button.big { padding: 14px 22px; font-size: 17px; font-weight: 600; }
.button.ghost { background: transparent; border: 1px solid var(--line); }
.button.green { background: #1f4d33; }
.button:hover { filter: brightness(1.15); }

/* hero */
.hero { max-width: 1120px; margin: 0 auto; padding: 72px 24px 40px; display: grid;
  grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .02em; margin: 0 0 12px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; margin: 0 0 20px; letter-spacing: -.02em; }
.hero h1 span { color: var(--green); }
.lead { font-size: 19px; color: #c3c9d2; max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-phones { position: relative; height: 560px; }
.hero-phones .phone { position: absolute; width: 250px; }
.hero-phones .back { right: 210px; top: 40px; transform: rotate(-8deg); opacity: .9; }
.hero-phones .front { right: 20px; top: 0; transform: rotate(4deg); }

/* phone frame around a screenshot */
.phone { margin: 0; padding: 10px; background: #05070a; border-radius: 34px; border: 1px solid #2c333d;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 0 6px #12161c; }
.phone img { display: block; width: 100%; height: auto; border-radius: 26px; }
.phone.small { width: 190px; margin: 0 auto 20px; }
/* same height for every step, whatever the screenshot's length */
.phone.small img { aspect-ratio: 540 / 1088; object-fit: cover; object-position: top; }

/* stats strip */
.stats { max-width: 1120px; margin: 24px auto 0; padding: 0 24px; display: grid;
  grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats div { background: var(--panel); border-radius: 12px; padding: 18px; text-align: center; }
.stats strong { display: block; font-size: 26px; color: var(--text); }
.stats span { color: var(--dim); font-size: 14px; }

/* generic section */
.section { max-width: 1120px; margin: 0 auto; padding: 80px 24px 0; }
.section h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; letter-spacing: -.01em; }
.section-lead { color: var(--dim); font-size: 18px; margin: 0 0 36px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--panel); border-radius: 16px; padding: 28px 24px; position: relative; }
.step .num { position: absolute; top: 18px; left: 18px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--btn); font-weight: 700; }
.step h3 { margin: 0 0 8px; font-size: 19px; }
.step p { margin: 0; color: #c3c9d2; }

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.split p { font-size: 17px; color: #c3c9d2; }
.split .phone { width: 260px; justify-self: center; }
.checks { list-style: none; padding: 0; margin: 18px 0 24px; }
.checks li { padding: 6px 0 6px 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 700; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.features article { background: var(--panel); border-radius: 14px; padding: 22px; border-top: 3px solid var(--btn); }
.features article:nth-child(2n) { border-top-color: #1f4d33; }
.features article:nth-child(3n) { border-top-color: #3a2f4d; }
.features h3 { margin: 0 0 8px; font-size: 17px; }
.features p { margin: 0; color: #c3c9d2; font-size: 15px; }

/* privacy statement */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 24px 0; }
.legal h1 { font-size: 34px; margin-bottom: 4px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p, .legal li { color: #c3c9d2; }
.legal li { margin-bottom: 6px; }
.lp-foot .privacy { color: var(--dim); margin-left: 12px; }

.notice { background: rgba(255, 167, 38, .08); border-left: 4px solid #ffa726; padding: 14px 18px; border-radius: 8px; color: var(--text); margin: 20px 0; }
/* language switch */
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang a { padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--dim) !important; text-decoration: none; }
.lang a.on { background: var(--line); color: var(--text) !important; }
.center { text-align: center; }

/* in-depth explanations (NTP + QR, LTC) */
.deep { background: var(--panel); border-radius: 18px; padding: 32px; margin-top: 24px; }
.deep-head { max-width: 46em; }
.deep-head h3 { font-size: 24px; margin: 10px 0 8px; }
.deep-head p { color: #c3c9d2; font-size: 17px; margin: 0; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(79, 195, 247, .14); color: var(--accent); letter-spacing: .03em; }
.tag.purple { background: rgba(179, 157, 219, .16); color: #b39ddb; }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: stretch; margin: 28px 0; }
.flow .node { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.flow .node b { display: block; margin-bottom: 4px; }
.flow .node small { color: var(--dim); font-size: 13.5px; line-height: 1.45; }
.flow .chain { border-style: dashed; text-align: center; }
.flow .arrow { align-self: center; color: var(--green); font-size: 26px; font-weight: 700; }
.deep-body { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.deep-body h4 { margin: 0 0 8px; font-size: 16px; color: var(--text); }
.deep-body h4:not(:first-child) { margin-top: 20px; }
.deep-body p, .deep-body li { color: #c3c9d2; font-size: 15.5px; }
.deep-body ol, .deep-body ul { padding-left: 20px; margin: 0; }
.deep-body li { margin-bottom: 8px; }
.deep-body code { background: var(--bg); padding: 1px 6px; border-radius: 4px; font-size: 14px; }
.features a { color: var(--accent); white-space: nowrap; }

/* portal: app overview */
.portal-hero { grid-template-columns: 1fr; padding-bottom: 0; }
.apps { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 24px; }
.app-card { display: flex; gap: 28px; align-items: center; background: var(--panel); border-radius: 16px;
  padding: 24px; color: var(--text); text-decoration: none; border: 1px solid transparent; }
a.app-card:hover { border-color: var(--btn); }
.app-card .phone { width: 150px; flex: none; padding: 6px; border-radius: 22px; }
.app-card .phone img { border-radius: 17px; aspect-ratio: 540 / 760; object-fit: cover; object-position: top; }
.app-card h3 { margin: 0 0 6px; font-size: 22px; }
.app-card p { margin: 0 0 14px; color: #c3c9d2; }
.app-card .more { color: var(--accent); font-weight: 600; }
.app-card.soon { justify-content: center; text-align: center; border: 1px dashed var(--line); background: transparent; }
.app-card.soon p { color: var(--dim); }

.login-wrap { padding-bottom: 40px; }
.login-card { max-width: 420px; margin: 0 auto; padding: 28px; }

.lp-foot { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 40px 16px 48px;
  border-top: 1px solid var(--line); margin-top: 60px; color: var(--text); }
.lp-foot img { border-radius: 6px; }
.disclaimer { max-width: 760px; margin: 48px auto 0; padding: 0 24px; text-align: center; color: var(--dim); font-size: 14px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-phones { height: 440px; max-width: 420px; margin: 0 auto; width: 100%; }
  .hero-phones .phone { width: 200px; }
  .hero-phones .back { right: auto; left: 10px; top: 30px; }
  .hero-phones .front { right: 10px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps, .features, .apps, .deep-body { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); justify-self: center; }
  .deep { padding: 22px; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .lp-top { padding: 10px 16px; }
  .lp-top nav a:not(.button):not(.lang a) { display: none; }
  .lp-top nav { gap: 10px; }
  .hero, .section, .stats { padding-left: 16px; padding-right: 16px; }
  .hero-phones { height: 360px; }
  .hero-phones .phone { width: 160px; padding: 7px; border-radius: 26px; }
  .hero-phones .phone img { border-radius: 20px; }
  .lead { font-size: 17px; }
  .app-card { flex-direction: column; text-align: center; }
}
