:root {
  --ink: #102447;
  --muted: #5f708b;
  --line: rgba(38, 79, 134, .15);
  --white: #fff;
  --cyan: #18cbe8;
  --blue: #1688f7;
  --violet: #7358ff;
  --gradient: linear-gradient(115deg, var(--cyan), var(--blue) 50%, var(--violet));
}

* { box-sizing: border-box; }
html, body { width: 100%; min-width: 320px; height: 100%; margin: 0; overflow: hidden; }
body {
  color: var(--ink);
  background: #eff8ff;
  font-family: "SF Pro Display", "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
::selection { color: var(--white); background: var(--blue); }

.landing-shell { position: relative; display: grid; width: 100%; height: 100svh; min-height: 620px; grid-template-rows: auto 1fr; overflow: hidden; isolation: isolate; }
.ambient { position: absolute; z-index: -2; inset: 0; overflow: hidden; background: #eaf7ff url("assets/flowstream-pastel-cover.jpg") center / cover no-repeat; }
.ambient-video { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; filter: saturate(.82) contrast(.9) brightness(1.05); }
.ambient-mobile { display: none; }
.ambient-wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(239,250,255,.66), rgba(255,255,255,.25) 46%, rgba(246,241,255,.48)), linear-gradient(180deg, rgba(255,255,255,.28), transparent 55%, rgba(236,247,255,.7)); }
.ambient-grid { position: absolute; inset: 0; opacity: .24; background-image: linear-gradient(rgba(34,91,143,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(34,91,143,.07) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 72%); }

.site-header { z-index: 5; display: grid; width: min(1180px, calc(100% - 48px)); min-height: 88px; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 14px auto 0; padding: 0 22px; border: 1px solid rgba(255,255,255,.72); border-radius: 24px; background: rgba(255,255,255,.56); box-shadow: 0 18px 50px rgba(50,74,119,.08); backdrop-filter: blur(22px) saturate(1.3); }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 12px; }
.brand-mark { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255,255,255,.9); border-radius: 14px; background: rgba(255,255,255,.88); box-shadow: 0 10px 25px rgba(35,76,129,.12); }
.brand-mark img { width: 34px; height: 34px; object-fit: contain; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 18px; font-weight: 720; letter-spacing: -.025em; }
.brand-copy small { margin-top: 6px; color: var(--muted); font-size: 9px; letter-spacing: .17em; }
.site-nav { display: flex; align-items: center; gap: 46px; }
.site-nav a { position: relative; padding: 10px 0; font-size: 13px; font-weight: 650; }
.site-nav a::after { position: absolute; height: 2px; content: ""; inset: auto 0 4px; border-radius: 2px; background: var(--gradient); transform: scaleX(0); transition: transform .2s ease; }
.site-nav a:hover::after { transform: scaleX(1); }
.store-link { display: inline-flex; align-items: center; justify-self: end; gap: 14px; min-height: 44px; padding: 0 19px; border: 1px solid rgba(25,74,128,.16); border-radius: 999px; background: rgba(255,255,255,.64); font-size: 12px; font-weight: 650; transition: transform .2s ease, background .2s ease, color .2s ease; }
.store-link:hover { color: var(--white); border-color: transparent; background: var(--gradient); transform: translateY(-2px); }

.landing-main { display: grid; width: min(1180px, calc(100% - 48px)); min-height: 0; grid-template-rows: 1fr auto; align-items: center; margin: 0 auto 18px; }
.hero { align-self: center; max-width: 750px; padding: 36px 0 24px 7%; }
.hero-kicker { margin: 0 0 18px; color: #38618f; font-size: 12px; font-weight: 720; letter-spacing: .18em; }
.hero h1 { margin: 0; color: var(--ink); font-size: clamp(58px, 7.2vw, 106px); font-weight: 660; letter-spacing: -.075em; line-height: .94; }
.hero h1 span { color: transparent; background: linear-gradient(105deg, #115baf, #159bdc 48%, #6752d9); -webkit-background-clip: text; background-clip: text; }
.hero-copy { margin: 28px 0 0; color: #425c7a; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: space-between; gap: 38px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font-size: 13px; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--white); background: var(--gradient); box-shadow: 0 16px 36px rgba(40,112,226,.2); }
.button-primary:hover { box-shadow: 0 20px 44px rgba(40,112,226,.29); }
.button-secondary { border-color: rgba(29,75,131,.18); background: rgba(255,255,255,.6); box-shadow: 0 12px 32px rgba(58,82,124,.08); backdrop-filter: blur(16px); }

.quick-panel { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.82); border-radius: 22px; background: rgba(255,255,255,.67); box-shadow: 0 24px 70px rgba(47,73,119,.1); backdrop-filter: blur(24px) saturate(1.25); }
.quick-panel > a { display: grid; min-height: 104px; grid-template-columns: 38px 1fr auto; align-items: center; gap: 17px; padding: 20px 28px; border-right: 1px solid var(--line); transition: background .2s ease; }
.quick-panel > a:last-child { border-right: 0; }
.quick-panel > a:hover { background: rgba(255,255,255,.72); }
.quick-icon { display: grid; width: 34px; height: 34px; place-items: center; color: #196fc4; border: 1px solid rgba(25,111,196,.24); border-radius: 10px; background: rgba(255,255,255,.55); font-size: 14px; font-weight: 760; }
.quick-panel strong, .quick-panel small { display: block; }
.quick-panel strong { font-size: 15px; }
.quick-panel small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.quick-panel i { color: var(--blue); font-size: 18px; font-style: normal; }

@media (max-height: 760px) and (min-width: 761px) {
  .landing-shell { min-height: 560px; }
  .site-header { min-height: 76px; margin-top: 10px; }
  .hero { padding-top: 20px; padding-bottom: 18px; }
  .hero h1 { font-size: clamp(54px, 7vw, 82px); }
  .hero-copy { margin-top: 18px; }
  .hero-actions { margin-top: 22px; }
  .quick-panel > a { min-height: 88px; }
}

@media (max-width: 760px) {
  .landing-shell { min-height: 580px; }
  .site-header, .landing-main { width: calc(100% - 24px); }
  .site-header { min-height: 70px; grid-template-columns: 1fr auto; margin-top: 10px; padding: 0 14px; border-radius: 18px; }
  .site-nav { display: none; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand-mark img { width: 30px; height: 30px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 8px; }
  .store-link { min-height: 40px; padding: 0 14px; }
  .ambient-desktop { display: none; }
  .ambient-mobile { display: block; }
  .ambient-video { object-position: 60% center; }
  .ambient-wash { background: linear-gradient(180deg, rgba(246,252,255,.45), rgba(255,255,255,.18) 55%, rgba(240,249,255,.7)); }
  .hero { max-width: 100%; padding: 28px 14px 18px; text-align: center; }
  .hero-kicker { margin-bottom: 12px; font-size: 10px; }
  .hero h1 { font-size: clamp(48px, 15vw, 72px); }
  .hero-copy { margin-top: 20px; font-size: 14px; }
  .hero-actions { justify-content: center; margin-top: 24px; }
  .button { min-height: 48px; gap: 24px; padding: 0 17px; font-size: 12px; }
  .quick-panel { grid-template-columns: repeat(3, 1fr); border-radius: 18px; }
  .quick-panel > a { display: flex; min-width: 0; min-height: 84px; flex-direction: column; justify-content: center; gap: 7px; padding: 12px 5px; text-align: center; }
  .quick-panel > a > span:nth-child(2) { min-width: 0; }
  .quick-panel strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
  .quick-panel small, .quick-panel i { display: none; }
  .quick-icon { width: 30px; height: 30px; font-size: 12px; }
  .landing-main { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-video { display: none !important; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
