/* ==========================================================================
   Atlayo — consumer landing page
   Inspired by the simple, airy weixin.qq.com layout: big friendly headlines,
   one idea per screen, phone imagery, soft brand-green accents.
   ========================================================================== */

   :root {
    --brand-red: #FF0000;
    --green: #07c160;
    --green-dark: #06ad56;
    --green-soft: #e8f9ef;
    --ink: #1f1f1f;
    --ink-soft: #6b6b6b;
    --ink-faint: #9a9a9a;
    --paper: #ffffff;
    --paper-warm: #f7f8f7;
    --line: rgba(0, 0, 0, 0.07);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --shadow-big: 0 24px 60px rgba(0, 0, 0, 0.14);
    --radius: 18px;
  }
  
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  
  body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC",
      "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
  }
  
  a { color: var(--green); text-decoration: none; }
  a:hover { text-decoration: underline; }
  
  img { max-width: 100%; }
  
  /* ---------------- Nav ---------------- */
  
  .nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: none;
  }
  .nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--brand-red);
  }
  
  .nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    height: 60px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--ink);
  }
  .nav-logo:hover { text-decoration: none; }
  .nav-logo-mark {
    height: 3rem;
    width: auto;
    display: block;
  }
  
  .nav-menu { margin-left: auto; display: flex; gap: 26px; align-items: center; }
  .nav-menu a { color: var(--ink-soft); font-size: 15px; }
  .nav-menu a:hover { color: var(--ink); text-decoration: none; }
  
  .nav-download {
    background: var(--green);
    color: #fff !important;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 99px;
    transition: background 0.15s;
  }
  .nav-download:hover { background: var(--green-dark); text-decoration: none; }
  
  @media (max-width: 620px) {
    .nav-menu a:not(.nav-download) { display: none; }
  }
  
  /* ---------------- Hero ---------------- */
  
  .hero {
    background: linear-gradient(180deg, var(--green-soft) 0%, var(--paper) 86%);
    padding: 80px 22px 30px;
    text-align: center;
    overflow: hidden;
  }

  .hero-top {
    max-width: 1080px;
    margin: 0 auto 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 440px);
    align-items: center;
    gap: 12px 48px;
    text-align: left;
  }

  .hero-headline h1 {
    font-size: clamp(36px, 3.35vw, 64px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin: 0;
  }
  .hero h1 em { font-style: normal; color: var(--green); }
  
  .hero .tagline {
    font-size: clamp(17px, 2.4vw, 21px);
    color: var(--ink-soft);
    max-width: 560px;
    margin: 0 auto 34px;
  }
  
  .hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 16.5px;
    font-weight: 600;
    padding: 13px 30px;
    border-radius: 99px;
    transition: transform 0.14s, box-shadow 0.14s, background 0.14s;
  }
  .btn:hover { text-decoration: none; transform: translateY(-2px); }
  
  .btn-green { background: var(--green); color: #fff; }
  .btn-green:hover { background: var(--green-dark); box-shadow: 0 10px 24px rgba(7, 193, 96, 0.35); }
  
  .btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--green), var(--shadow); }
  
  .hero-note { font-size: 13.5px; color: var(--ink-faint); margin-bottom: 46px; }

  .hero-lottie {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
  }
  .hero-lottie atl-anim {
    width: min(440px, 100%);
    height: min(440px, 72vw);
    pointer-events: none;
  }

  @media (max-width: 860px) {
    .hero-top {
      grid-template-columns: 1fr;
      gap: 8px;
      text-align: center;
    }
    .hero-lottie atl-anim {
      width: min(320px, 78vw);
      height: min(320px, 78vw);
    }
  }
  
  .hero-biz { margin: -2px 0 12px; font-size: 15px; }
  .hero-biz a {
    color: var(--ink-soft);
    border-bottom: 1.5px dashed var(--green);
    padding-bottom: 2px;
  }
  .hero-biz a:hover { color: var(--green); text-decoration: none; }
  .hero-biz-sub { margin-top: 10px; font-size: 14px; }
  .hero-biz-sub a {
    color: var(--ink-faint);
    border-bottom: none;
    padding-bottom: 0;
  }
  .hero-biz-sub a:hover { color: var(--green); text-decoration: underline; }
  
  /* ---------------- Business page ---------------- */
  
  .biz-hero {
    background: linear-gradient(160deg, #103626 0%, #0c5132 55%, #07c160 160%);
    color: #fff;
    text-align: center;
    padding: 90px 22px 80px;
  }
  .biz-hero h1 {
    font-size: clamp(34px, 5.6vw, 56px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin: 0 0 14px;
  }
  .biz-hero h1 em { font-style: normal; color: #8df5bb; }
  .biz-hero .tagline {
    font-size: clamp(16.5px, 2.3vw, 20px);
    color: rgba(255, 255, 255, 0.78);
    max-width: 600px;
    margin: 0 auto 34px;
  }
  .biz-hero .btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
  .biz-hero .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
  .biz-hero .hero-note { color: rgba(255, 255, 255, 0.55); margin-bottom: 0; }
  
  /* numbered steps */
  .steps {
    max-width: 760px;
    margin: 0 auto;
    counter-reset: step;
    display: grid;
    gap: 14px;
    text-align: left;
  }
  .step {
    display: flex;
    gap: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow);
  }
  .step::before {
    counter-increment: step;
    content: counter(step);
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .step h3 { margin: 1px 0 4px; font-size: 16.5px; }
  .step p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
  
  /* business CTA band */
  .biz-cta {
    background: linear-gradient(160deg, #0c5132, #07c160);
    color: #fff;
    text-align: center;
    padding: 70px 22px;
  }
  .biz-cta h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
  .biz-cta p { color: rgba(255, 255, 255, 0.8); font-size: 16.5px; margin: 0 auto 30px; max-width: 520px; }
  .biz-cta .btn-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
  .biz-cta .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
  .biz-cta .btn-green { background: #fff; color: #0c5132; }
  .biz-cta .btn-green:hover { background: #eafff3; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }
  
  /* ---------------- Features / technical page ---------------- */
  
  .feat-hero {
    background: linear-gradient(180deg, #eef4ff 0%, var(--paper) 88%);
    padding: 90px 22px 70px;
    text-align: center;
  }
  .feat-hero h1 {
    font-size: clamp(34px, 5.6vw, 54px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin: 0 0 14px;
  }
  .feat-hero h1 em { font-style: normal; color: var(--green); }
  .feat-hero .tagline {
    font-size: clamp(16.5px, 2.3vw, 20px);
    color: var(--ink-soft);
    max-width: 640px;
    margin: 0 auto 34px;
  }
  
  .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 820px;
    margin: 0 auto 10px;
  }
  .tech-tag {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 6px 14px;
    box-shadow: var(--shadow);
  }
  .tech-tag.brand { color: var(--green-dark); background: var(--green-soft); border-color: transparent; }
  
  .tech-table-wrap {
    max-width: 920px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: #fff;
  }
  .tech-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
  }
  .tech-table th,
  .tech-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
  }
  .tech-table th {
    background: var(--paper-warm);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-faint);
  }
  .tech-table tr:last-child td { border-bottom: none; }
  .tech-table td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
  .tech-table code {
    font-size: 12.5px;
    background: var(--paper-warm);
    padding: 2px 6px;
    border-radius: 6px;
  }
  
  .feat-section { max-width: 1080px; margin: 0 auto; padding: 70px 22px; }
  .feat-section h2 {
    font-size: clamp(24px, 3.2vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    margin: 0 0 10px;
  }
  .feat-section > p.sub {
    text-align: center;
    color: var(--ink-soft);
    font-size: 16px;
    max-width: 620px;
    margin: 0 auto 38px;
  }
  
  .feat-deep-links {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  .feat-deep-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    width: min(100%, 300px);
    box-shadow: var(--shadow);
    transition: transform 0.16s, box-shadow 0.16s;
    text-align: left;
  }
  .feat-deep-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-big); text-decoration: none; }
  .feat-deep-card .ic { font-size: 32px; }
  .feat-deep-card h3 { margin: 10px 0 6px; font-size: 17px; color: var(--ink); }
  .feat-deep-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
  .feat-deep-card .go { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--green); }
  
  /* ---------------- Phone mockups ---------------- */
  
  .phone {
    width: 270px;
    background: #0b0b0b;
    border-radius: 42px;
    padding: 11px;
    box-shadow: var(--shadow-big);
    margin: 0 auto;
    text-align: left;
  }
  
  .phone-screen {
    background: #f3f4f3;
    border-radius: 33px;
    overflow: hidden;
    height: 545px;
    display: flex;
    flex-direction: column;
  }
  
  .phone-status {
    display: flex;
    justify-content: space-between;
    padding: 9px 20px 0;
    font-size: 11.5px;
    font-weight: 600;
    color: #333;
  }
  
  .phone-title {
    text-align: center;
    font-weight: 600;
    font-size: 15.5px;
    padding: 7px 0 10px;
    border-bottom: 1px solid var(--line);
    color: #222;
  }
  
  .phone-body { flex: 1; padding: 12px 11px; overflow: hidden; }
  
  .bubble {
    max-width: 80%;
    font-size: 13px;
    line-height: 1.45;
    background: #fff;
    color: #222;
    border-radius: 12px;
    padding: 9px 12px;
    margin: 8px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  .bubble.me { background: #95ec69; margin-left: auto; }
  .bubble.sys {
    background: transparent;
    box-shadow: none;
    color: var(--ink-faint);
    font-size: 11.5px;
    text-align: center;
    max-width: 100%;
    margin: 10px 0 2px;
  }
  
  .phone-tabs {
    display: flex;
    background: #fbfbfb;
    border-top: 1px solid var(--line);
    flex-shrink: 0;
    padding: 0 5px;
    gap: 2px;
  }
  .phone-tabs div {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    color: #9a9a9a;
    padding: 4px 1px 5px;
  }
  .phone-tabs div span:first-child {
    display: block;
    font-size: unset;
    line-height: 1;
    margin-bottom: 2px;
  }
  .phone-tabs div span:last-child {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 8.5px;
    line-height: 1.2;
    max-height: 2.4em;
    padding: 0 2px;
    word-break: break-word;
    hyphens: auto;
  }
  .phone-tabs div.on { color: var(--green); }
  .phone-tabs div.on span:last-child { font-weight: 700; }

  /* business mockups have 5 tabs — tighter labels */
  .phone-tabs:has(> :nth-child(5)) {
    gap: 1px;
    padding: 0 3px;
  }
  .phone-tabs:has(> :nth-child(5)) div span:last-child {
    padding: 0 1px;
  }

  /* wallet card inside phone */
  .wallet-card {
    background: linear-gradient(135deg, #07c160, #04934a);
    color: #fff;
    border-radius: 16px;
    padding: 18px 16px;
    margin-bottom: 12px;
  }
  .wallet-card .lbl { font-size: 12px; opacity: 0.85; }
  .wallet-card .amt { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
  .wallet-card .sub { font-size: 11.5px; opacity: 0.8; margin-top: 6px; }
  
  .wallet-row {
    display: flex;
    align-items: center;
    gap: 11px;
    background: #fff;
    border-radius: 13px;
    padding: 11px 13px;
    margin: 8px 0;
    font-size: 13px;
    color: #222;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }
  .wallet-row .ic { font-size: 19px; }
  .wallet-row .grow { flex: 1; }
  .wallet-row .amt2 { font-weight: 700; }
  .wallet-row .amt2.plus { color: var(--green); }

  .location-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    margin: 6px 0 8px;
    max-width: 92%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }
  .location-card .map {
    height: 86px;
    background: linear-gradient(165deg, #c8ecd4 0%, #7ec99a 55%, #5aab7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
  }
  .location-card .meta {
    padding: 8px 10px 9px;
    font-size: 11px;
    color: var(--ink-faint);
    line-height: 1.35;
  }
  .location-card .meta b {
    display: block;
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 2px;
  }
  
  /* mini-app grid inside phone */
  .mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .mini-item {
    background: #fff;
    border-radius: 14px;
    text-align: center;
    padding: 13px 5px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }
  .mini-item .ic { font-size: 26px; }
  .mini-item .nm { font-size: 10.5px; color: #444; margin-top: 5px; }
  
  /* island feed inside phone */
  .post {
    background: #fff;
    border-radius: 14px;
    padding: 12px 13px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  }
  .post .who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #222; }
  .post .ava {
    width: 28px; height: 28px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; background: var(--green-soft);
  }
  .post .txt { font-size: 12.5px; color: #333; margin: 7px 0; }
  .post .pic {
    height: 86px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px;
  }
  .post .meta { font-size: 11px; color: var(--ink-faint); margin-top: 7px; }
  
  /* call screen inside phone */
  .call-screen {
    flex: 1;
    min-height: 0;
    background: linear-gradient(180deg, #173a2a, #0c1f17);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 52px 14px 24px;
    color: #fff;
    gap: 6px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .call-screen .face { font-size: 68px; line-height: 1; }
  .call-screen .nm { font-size: 18px; font-weight: 700; }
  .call-screen .st { font-size: 12px; opacity: 0.75; }
  .call-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    width: 100%;
    max-width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
  }
  .call-actions div {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
  }
  .call-actions .end { background: #fa5151; }
  
  /* ---------------- Feature sections ---------------- */
  
  .section {
    max-width: 1080px;
    margin: 0 auto;
    padding: 84px 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
  }
  
  .section.alt { direction: rtl; }
  .section.alt > * { direction: ltr; }
  
  @media (max-width: 800px) {
    .section, .section.alt { grid-template-columns: 1fr; direction: ltr; gap: 40px; padding: 60px 22px; }
  }
  
  .section .copy .pill {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    color: var(--green);
    background: var(--green-soft);
    border-radius: 99px;
    padding: 5px 15px;
  }

  .section .copy .pill-soon {
    color: var(--ink-soft);
    background: #f0f0f0;
    margin-left: 8px;
  }
  
  .section .copy h2 {
    font-size: clamp(26px, 3.6vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 0 0 14px;
  }

  .section-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .section-headline h2 {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    white-space: nowrap;
  }
  .section .copy .section-headline h2 {
    margin: 0;
  }
  .section-lottie {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    margin-top: -5rem;
  }
  .section-lottie atl-anim {
    width: min(210px, 34vw);
    height: min(210px, 34vw);
    pointer-events: none;
  }
  .section-lottie--pay {
    margin-top: -2.5rem;
    margin-right: -5rem;
  }
  .section-lottie--pay atl-anim {
    width: min(128px, 22vw);
    height: min(128px, 22vw);
  }

  @media (max-width: 800px) {
    .section-headline {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    .section-headline h2 {
      white-space: normal;
      padding-top: 2rem;
    }
    .section-lottie,
    .section-lottie--pay {
      margin-top: 0;
    }
    .section-lottie--pay {
      margin-right: 0;
    }
    .section-lottie atl-anim {
      width: min(240px, 68vw);
      height: min(240px, 68vw);
    }
    .section-lottie--pay atl-anim {
      width: min(150px, 42vw);
      height: min(150px, 42vw);
    }
  }
  
  .section .copy p {
    font-size: 16.5px;
    color: var(--ink-soft);
    margin: 0 0 18px;
    max-width: 460px;
  }
  
  .checks { list-style: none; margin: 0; padding: 0; }
  .checks li {
    position: relative;
    padding-left: 30px;
    margin: 9px 0;
    font-size: 15.5px;
    color: var(--ink);
  }
  .checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background-color: var(--green);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2L6.4 11.1L12.5 4.5' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    margin-top: 3px;
  }
  
  /* striped band */
  .band { background: var(--paper-warm); }
  
  /* ---------------- Everyday strip ---------------- */
  
  .everyday {
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px 22px 30px;
    text-align: center;
  }
  .everyday h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
  .everyday > p { color: var(--ink-soft); font-size: 16.5px; max-width: 560px; margin: 0 auto 42px; }
  
  .everyday-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
    gap: 16px;
    text-align: left;
    padding-bottom: 50px;
  }
  
  .day-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
    transition: transform 0.16s, box-shadow 0.16s;
  }
  .day-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-big); }
  .day-card .ic { font-size: 30px; }
  .day-card h3 { font-size: 17px; margin: 12px 0 6px; }
  .day-card p { font-size: 14px; color: var(--ink-soft); margin: 0; }
  
  /* ---------------- Download ---------------- */
  
  .download {
    background: linear-gradient(180deg, var(--paper) 0%, var(--green-soft) 100%);
    padding: 84px 22px 90px;
    text-align: center;
  }
  .download h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
  .download > p { color: var(--ink-soft); font-size: 16.5px; margin: 0 auto 44px; max-width: 520px; }
  
  .dl-grid {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 980px;
    margin: 0 auto;
  }
  
  .dl-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px 28px 26px;
    width: 225px;
    transition: transform 0.16s, box-shadow 0.16s;
  }
  .dl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-big); }
  .dl-card .ic { font-size: 38px; }
  .dl-card h3 { margin: 12px 0 4px; font-size: 18px; }
  .dl-card p { font-size: 13px; color: var(--ink-faint); margin: 0 0 16px; }
  .dl-card .btn { font-size: 14.5px; padding: 10px 22px; }

  .play-badge {
    display: inline-flex;
    justify-content: center;
    line-height: 0;
  }
  .play-badge:hover { text-decoration: none; }
  .play-badge img {
    height: 48px;
    width: auto;
    display: block;
  }
  .dl-card .play-badge img { height: 48px; margin: 0 auto; }
  
  .qr-hint {
    margin-top: 36px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 22px;
    font-size: 14px;
    color: var(--ink-soft);
    text-align: left;
  }
  .qr-box {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    background:
      repeating-linear-gradient(0deg, #222 0 6px, transparent 6px 12px),
      repeating-linear-gradient(90deg, #222 0 6px, #fff 6px 12px);
    flex: none;
    opacity: 0.85;
  }
  .qr-box-code {
    width: 120px;
    height: 120px;
    padding: 8px;
    background: #fff;
    opacity: 1;
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .qr-box-code:hover { text-decoration: none; }
  .qr-box-code img {
    width: 100%;
    height: 100%;
    display: block;
  }
  
  /* ---------------- Footer ---------------- */
  
  footer {
    background: #1d1f1e;
    color: rgba(255, 255, 255, 0.55);
    padding: 50px 22px 40px;
    font-size: 13.5px;
  }
  
  .foot-inner { max-width: 1080px; margin: 0 auto; }
  
  .foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 26px;
    margin-bottom: 36px;
  }
  
  .foot-cols h4 { color: #fff; font-size: 14px; margin: 0 0 12px; }
  .foot-cols a { display: block; color: rgba(255, 255, 255, 0.55); margin: 7px 0; }
  .foot-cols a:hover { color: #fff; text-decoration: none; }
  
  .foot-base {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
  }
  
  /* ---------------- Reveal ---------------- */
  
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in { opacity: 1; transform: none; }
  
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
  }

  /* ---------------- Legal pages ---------------- */

  .legal-hero {
    max-width: 860px;
    margin: 0 auto;
    padding: 72px 22px 28px;
    text-align: center;
  }
  .legal-hero h1 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    line-height: 1.12;
  }
  .legal-hero p {
    color: var(--ink-soft);
    font-size: 17px;
    max-width: 640px;
    margin: 0 auto;
  }
  .legal-meta {
    margin-top: 18px;
    font-size: 13.5px;
    color: var(--ink-faint);
  }

  .legal-hub {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px 80px;
  }
  .legal-section {
    margin-top: 52px;
    scroll-margin-top: 84px;
  }
  .legal-section:first-child {
    margin-top: 8px;
  }
  .legal-section h2 {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    line-height: 1.2;
  }
  .legal-section-lead {
    color: var(--ink-soft);
    font-size: 15.5px;
    line-height: 1.5;
    margin: 0 0 20px;
    max-width: 640px;
  }
  .legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
  }
  .legal-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 22px;
    box-shadow: var(--shadow);
    transition: transform 0.16s, box-shadow 0.16s;
  }
  .legal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-big);
    text-decoration: none;
  }
  .legal-card h2 {
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--ink);
  }
  .legal-card p {
    margin: 0;
    font-size: 14.5px;
    color: var(--ink-soft);
    line-height: 1.55;
  }
  .legal-card .tag {
    display: inline-block;
    margin-top: 14px;
    font-size: 12px;
    font-weight: 700;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .legal-doc-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 22px 90px;
  }
  .legal-doc-wrap h1 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    line-height: 1.15;
  }
  .legal-doc-wrap .updated {
    font-size: 14px;
    color: var(--ink-faint);
    margin: 0 0 28px;
  }
  .legal-doc-wrap h2 {
    font-size: 20px;
    font-weight: 700;
    margin: 36px 0 12px;
    letter-spacing: -0.01em;
  }
  .legal-doc-wrap h3 {
    font-size: 16.5px;
    font-weight: 700;
    margin: 24px 0 8px;
  }
  .legal-doc-wrap p,
  .legal-doc-wrap li {
    font-size: 15.5px;
    color: var(--ink);
    line-height: 1.7;
  }
  .legal-doc-wrap p { margin: 0 0 14px; }
  .legal-doc-wrap ul,
  .legal-doc-wrap ol {
    margin: 0 0 16px;
    padding-left: 1.4em;
  }
  .legal-doc-wrap li { margin: 6px 0; }
  .legal-doc-wrap strong { font-weight: 700; }
  .legal-doc-wrap .lead {
    font-size: 16.5px;
    color: var(--ink-soft);
    border-left: 3px solid var(--green);
    padding-left: 16px;
    margin-bottom: 24px;
  }
  .legal-doc-wrap .toc {
    background: var(--paper-warm);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 20px;
    margin: 0 0 32px;
  }
  .legal-doc-wrap .toc ol {
    margin: 0;
    padding-left: 1.2em;
  }
  .legal-doc-wrap .toc a { font-weight: 600; }
  .legal-doc-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 16px 0 24px;
  }
  .legal-doc-wrap th,
  .legal-doc-wrap td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
  }
  .legal-doc-wrap th {
    background: var(--paper-warm);
    font-weight: 700;
  }
  .legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
  }

  /* i18n */
  html.i18n-pending body { visibility: hidden; }
  html.i18n-ready body { visibility: visible; }

  .legal-lang {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-bottom: 20px;
    padding: 8px 12px;
    background: var(--paper-warm);
    border: 1px solid var(--line);
    border-radius: 16px;
    font-size: 12.5px;
    font-weight: 600;
    max-width: 100%;
  }
  .legal-lang a {
    color: var(--ink-soft);
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
  }
  .legal-lang a:hover { color: var(--ink); text-decoration: none; }
  .legal-lang a.is-active {
    background: #fff;
    color: var(--green-dark);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  }
  .legal-lang span { color: var(--ink-faint); user-select: none; }

  /* ---------------- Delete account ---------------- */

  .delete-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 22px 90px;
  }
  .delete-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
  }
  .delete-card h2 {
    margin: 0 0 12px;
    font-size: 18px;
  }
  .delete-list {
    margin: 0 0 18px;
    padding-left: 18px;
    color: var(--ink-soft);
    font-size: 15px;
  }
  .delete-list li { margin: 0 0 8px; }
  .delete-warn {
    background: #fff6f6;
    border: 1px solid rgba(255, 0, 0, 0.12);
    color: #9a1f1f;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14.5px;
    margin: 0 0 22px;
  }
  .delete-note {
    background: #f3fbf6;
    border: 1px solid rgba(31, 168, 90, 0.18);
    color: #1b5e36;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14.5px;
    margin: 0 0 22px;
  }
  .delete-form { display: grid; gap: 14px; }
  .delete-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
  }
  .delete-field input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 16px;
    font-family: inherit;
    background: var(--paper-warm);
  }
  .delete-field input:focus {
    outline: 2px solid var(--green);
    outline-offset: 1px;
    background: #fff;
  }
  .delete-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14.5px;
    color: var(--ink);
    cursor: pointer;
  }
  .delete-check input { margin-top: 3px; }
  .delete-actions { display: flex; }
  .delete-actions .btn {
    border: 0;
    cursor: pointer;
    font-family: inherit;
  }
  .btn-danger {
    background: var(--brand-red);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
  }
  .btn-danger:hover { filter: brightness(0.92); text-decoration: none; }
  .btn-danger:disabled,
  .btn-green:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
  }
  .delete-status {
    min-height: 1.4em;
    margin: 0;
    font-size: 14.5px;
    color: var(--ink-soft);
  }
  .delete-status.is-ok { color: var(--green-dark); font-weight: 600; }
  .delete-status.is-error { color: #c62828; font-weight: 600; }

  /* ---------------- Welcome / launch note modal ---------------- */

  body.welcome-modal-open {
    overflow: hidden;
  }

  .welcome-modal {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
  }
  .welcome-modal[hidden] { display: none; }

  .welcome-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 20, 0.48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .welcome-modal-dialog {
    position: relative;
    width: min(440px, 100%);
    background: var(--paper);
    border-radius: 22px;
    box-shadow: var(--shadow-big);
    padding: 28px 26px 26px;
    text-align: center;
    animation: welcome-modal-in 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  }

  @keyframes welcome-modal-in {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }

  .welcome-modal-lottie {
    display: flex;
    justify-content: center;
    margin: -6px auto 6px;
  }
  .welcome-modal-lottie atl-anim {
    width: min(220px, 58vw);
    height: min(220px, 58vw);
    pointer-events: none;
  }

  .welcome-modal-dialog h2 {
    margin: 0 0 10px;
    font-size: clamp(22px, 4vw, 26px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
  }

  .welcome-modal-dialog p {
    margin: 0 0 12px;
    font-size: 15.5px;
    color: var(--ink-soft);
    line-height: 1.55;
  }

  .welcome-modal-keep {
    background: var(--green-soft);
    color: #1b5e36 !important;
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 600;
    margin-bottom: 22px !important;
  }

  .welcome-modal-ok {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    justify-content: center;
  }

  /* ---------------- AtlayoNET page ---------------- */

  .net-hero {
    background: linear-gradient(180deg, #eef4ff 0%, var(--paper) 88%);
    padding: 90px 22px 70px;
    text-align: center;
  }
  .net-hero-pills {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
  }
  .net-hero .pill {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    background: var(--green-soft);
    border-radius: 99px;
    padding: 5px 15px;
    margin-bottom: 0;
  }
  .net-hero .pill-soon {
    color: var(--ink-soft);
    background: #f0f0f0;
  }
  .net-hero h1 {
    font-size: clamp(34px, 5.6vw, 56px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin: 0 0 14px;
  }
  .net-hero h1 em { font-style: normal; color: var(--green); }
  .net-hero .tagline {
    font-size: clamp(16.5px, 2.3vw, 20px);
    color: var(--ink-soft);
    max-width: 580px;
    margin: 0 auto 34px;
  }
  .net-hero .hero-note { margin-bottom: 0; }

  .net-window {
    width: 100%;
    max-width: 430px;
    background: #1f1f1f;
    border-radius: 14px;
    padding: 8px;
    box-shadow: var(--shadow-big);
  }
  .net-window-screen {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    min-height: 260px;
  }
  .net-window-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f3f3f3;
    border-bottom: 1px solid var(--line);
  }
  .net-window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
  }
  .net-window-title {
    margin-left: 6px;
    font-size: 12.5px;
    color: var(--ink-soft);
    font-weight: 600;
  }
  .net-window-url {
    margin: 10px 12px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 8px 14px;
    font-size: 13.5px;
    color: var(--ink);
    text-align: left;
  }
  .net-window-url span { color: var(--green); font-weight: 700; }
  .net-window-page {
    padding: 22px 18px 26px;
    text-align: left;
  }
  .net-window-page .kicker {
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 6px;
  }
  .net-window-page h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
  }
  .net-window-page p {
    margin: 0;
    font-size: 14px;
    color: var(--ink-soft);
  }

  .net-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
  }
  .net-flow-item {
    text-align: left;
    padding: 4px 4px 0;
  }
  .net-flow-item .n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 10px;
  }
  .net-flow-item h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 800;
  }
  .net-flow-item p {
    margin: 0;
    font-size: 14.5px;
    color: var(--ink-soft);
  }

  .net-code {
    display: block;
    margin: 18px 0 0;
    padding: 14px 16px;
    background: #15241c;
    color: #c8f5d8;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.5;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  }

  @media (max-width: 800px) {
    .net-flow {
      grid-template-columns: 1fr;
      gap: 22px;
      text-align: center;
    }
    .net-flow-item { text-align: center; }
  }

  @media (prefers-reduced-motion: reduce) {
    .welcome-modal-dialog { animation: none; }
  }
  