/* RunEverything — clean open-source tool, deep teal mark #0f7782 + aqua #48d4c8 */
:root {
  --bg: #ffffff;
  --bg-2: #f3f8f8;
  --surface: #ffffff;
  --line: rgba(10, 52, 58, 0.1);
  --text: #08262b;
  --muted: #557075;
  --accent: #0f7782;
  --accent-2: #48d4c8;
  --on-accent: #fff;
  --nav-bg: rgba(255, 255, 255, 0.78);
  --radius: 20px;
}

.hero { position: relative; padding: 150px 0 40px; text-align: center; overflow: hidden; }
.hero__glow { position: absolute; inset: -20% -10% auto; height: 900px; background: radial-gradient(50% 45% at 50% 30%, rgba(72, 212, 200, 0.22), transparent 70%), radial-gradient(30% 30% at 80% 10%, rgba(15, 119, 130, 0.12), transparent 70%); pointer-events: none; }
.hero__copy { position: relative; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 13px var(--mono); color: var(--accent); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(72, 212, 200, 0.25); }
.hero__title { margin: 28px auto 0; max-width: 980px; font-size: clamp(42px, 7vw, 86px); font-weight: 750; letter-spacing: -0.035em; }
.hero__title span { display: block; }
.hero__title .grad { background: linear-gradient(90deg, #0f7782, #22b3a8 55%, #48d4c8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lang-zh .hero__title { letter-spacing: -0.01em; }
.hero__lead { margin: 26px auto 0; max-width: 720px; }
.hero__plat { margin-top: 22px; font: 500 13px var(--mono); color: var(--muted); letter-spacing: 0.06em; }
.hero__shot { position: relative; margin: 64px 0 0; border-radius: 28px; overflow: hidden; background: #071318; box-shadow: 0 60px 120px -60px rgba(8, 60, 66, 0.55); aspect-ratio: 16 / 8; }
.hero__shot img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero__term { position: absolute; left: 32px; bottom: 32px; width: min(520px, calc(100% - 64px)); text-align: left; }
.hero__term .term { background: rgba(6, 14, 18, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hero__ok { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px; border-radius: 999px; background: rgba(72, 212, 200, 0.16); border: 1px solid rgba(72, 212, 200, 0.35); color: #b6f3ec; font-size: 13.5px; backdrop-filter: blur(10px); }
.hero__ok svg { width: 16px; height: 16px; color: var(--accent-2); }

.band { padding: 56px 0; border-bottom: 1px solid var(--line); }
.band .stats { text-align: center; }
.stats dt { color: var(--accent); }

.card { transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s; }
.card:hover { transform: translateY(-3px); border-color: rgba(15, 119, 130, 0.3); box-shadow: 0 24px 50px -30px rgba(15, 119, 130, 0.35); }

.diagram { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 40px; border-radius: 24px; background: #062026; color: #dff7f4; position: relative; margin-bottom: 56px; }
.node { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: 14px; max-width: 160px; }
.node__ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: rgba(72, 212, 200, 0.12); border: 1px solid rgba(72, 212, 200, 0.35); color: var(--accent-2); }
.node__ic svg { width: 28px; height: 28px; }
.node--relay .node__ic { background: rgba(72, 212, 200, 0.22); box-shadow: 0 0 40px rgba(72, 212, 200, 0.35); }
.link { display: flex; flex-direction: column; gap: 8px; font: 11.5px var(--mono); color: #7fb7b1; text-align: center; min-width: 0; }
.link i { display: block; height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--accent-2) 0 10px, transparent 10px 20px); background-size: 40px 2px; animation: flow 1.2s linear infinite; }
@keyframes flow { to { background-position: 40px 0; } }
.diagram__e2e { grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font: 12.5px var(--mono); color: #b6f3ec; padding: 6px 14px; border-radius: 999px; border: 1px dashed rgba(72, 212, 200, 0.45); }
.diagram__e2e svg { width: 15px; height: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { border-top: 2px solid var(--line); padding-top: 22px; min-width: 0; }
.steps__n { font: 600 13px var(--mono); color: var(--accent); }
.steps h3 { font-size: 21px; margin: 10px 0 8px; }
.steps p { color: var(--muted); font-size: 15.5px; }

.install { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.install .section-head { margin-bottom: 0; }

.relay { background: radial-gradient(60% 80% at 100% 0%, rgba(72, 212, 200, 0.14), transparent 60%), var(--bg-2); }
.relay__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.relay__grid .section-head { margin-bottom: 0; }
.relay__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-top: 28px; }
.relay__points li { display: flex; gap: 12px; min-width: 0; }
.relay__points svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent); }
.relay__points strong { display: block; font-size: 15.5px; }
.relay__points span { font-size: 14.5px; color: var(--muted); }

.kokocard { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 32px; background: radial-gradient(70% 90% at 90% 20%, rgba(52, 240, 138, 0.16), transparent 60%), #07090c; color: #eaf1ee; overflow: hidden; }
.kokocard__copy img { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 24px; }
.kokocard .lead { color: #9fb0a8; }
.kokocard__phone { display: flex; justify-content: center; margin-bottom: -120px; }
.kokocard__phone .phone { width: 260px; }
.btn--koko { background: #34f08a; color: #04110a; }
.btn--koko:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -10px #34f08a; }
.btn--line { border: 1px solid rgba(255, 255, 255, 0.2); color: #fff; }
.btn--line:hover { border-color: rgba(255, 255, 255, 0.5); }

.cta__mark { width: 96px; height: 96px; margin: 0 auto 28px; }

@media (max-width: 1000px) {
  .install, .relay__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 860px) {
  .hero__shot { aspect-ratio: auto; }
  .hero__shot img { aspect-ratio: 16 / 10; }
  .hero__term { position: relative; left: auto; bottom: auto; width: auto; padding: 16px; }
  .diagram { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 32px 20px; }
  .node { max-width: none; }
  .link { width: 2px; height: 48px; flex-direction: row; }
  .link span { display: none; }
  .link i { width: 2px; height: 100%; background: repeating-linear-gradient(180deg, var(--accent-2) 0 8px, transparent 8px 16px); background-size: 2px 32px; animation: flowv 1.2s linear infinite; }
  @keyframes flowv { to { background-position: 0 32px; } }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .kokocard { grid-template-columns: minmax(0, 1fr); }
  .kokocard__phone { margin-bottom: -180px; }
  .kokocard__phone .phone { width: 220px; }
}
@media (max-width: 640px) {
  .hero { padding-top: 120px; }
  .hero__title { font-size: clamp(32px, 9.4vw, 44px); }
  .relay__points { grid-template-columns: minmax(0, 1fr); }
  .hero__term .term pre { white-space: pre-wrap; word-break: break-all; }
}
