@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/open-sans-300.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/open-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Fira Sans Extra Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fira-500.woff2") format("woff2");
}

:root {
  --bg: #272727;
  --bg-deep: #222222;
  --panel: #242424;
  --panel-soft: #2a2a2a;
  --footer: #1f1f1f;
  --text: #fafafa;
  --text-soft: #e7e9ea;
  --muted: #aeb7bd;
  --line: #383838;
  --accent: #2155c7;
  --accent-strong: #143c91;
  --accent-glow: rgba(54, 117, 255, 0.45);
  --cyan: #00bacf;
  --green: #148200;
  --red: #ff5042;
  --font-body: "Open Sans", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Fira Sans Extra Condensed", "Open Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --radius: 7px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: #63e6f3;
}

h1,
h2,
h3,
p,
figure,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

.container-home {
  width: min(850px, calc(100% - 48px));
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid #222;
  position: relative;
  z-index: 20;
}

.nav {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--text);
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.16);
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu a {
  display: block;
  padding: 19px 15px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  background: var(--panel);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 5px;
  background: #2e2e2e;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--text-soft);
}

/* Hero */
.hero {
  background: var(--panel);
  text-align: center;
  padding: 58px 0 62px;
  border-bottom: 1px solid #2c2c2c;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(76px, 11.5vw, 150px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.015em;
}

.hero-tagline {
  margin-top: 14px;
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text);
}

.hero-lede {
  max-width: 660px;
  margin: 24px auto 0;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 40px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 16px 40px -12px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: download-glow 3s ease-in-out infinite;
}

.btn-primary svg {
  flex: 0 0 auto;
  animation: download-nudge 2.6s ease-in-out infinite;
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 22px 52px -12px rgba(54, 117, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
}

.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.nav-menu a:focus-visible,
.brand:focus-visible,
.text-link:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 28px;
  border: 1px solid #4a4a4a;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-ghost:hover {
  background: #303030;
  border-color: #5a5a5a;
  color: var(--text);
}

.hero-note {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: #9aa4aa;
}

@keyframes download-glow {
  0%, 100% {
    box-shadow: 0 16px 40px -12px rgba(54, 117, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
  50% {
    box-shadow: 0 18px 52px -8px rgba(54, 117, 255, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.26);
  }
}

@keyframes download-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px); }
}

/* Screenshot */
.screenshot-section {
  padding: 56px 0 44px;
  text-align: center;
}

.screenshot-frame {
  margin-bottom: 26px;
}

.screenshot-frame img {
  width: min(100%, 880px);
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 0 34px rgba(0, 0, 0, 0.36);
}

.text-link {
  display: inline-block;
  padding: 11px 28px;
  border: 1px solid #3b3b3b;
  border-radius: 5px;
  background: #2e2e2e;
  color: var(--text-soft);
  font-size: 15px;
}

.text-link:hover {
  background: #343434;
  color: var(--text);
}

/* Feature bands */
.feature-band {
  background: var(--panel);
  border-top: 1px solid #2c2c2c;
  padding: 56px 0;
}

.feature-band.alt {
  background: #212121;
}

.feature-layout {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.feature-head {
  flex: 0 0 310px;
}

.feature-band h2 {
  font-family: var(--font-display);
  font-size: 35px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-soft);
}

.heart {
  display: inline-block;
  margin-right: 12px;
  color: var(--red);
  font-size: 28px;
  transform: translateY(-2px);
}

.feature-intro {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-soft);
  text-align: left;
}

.feature-body {
  flex: 1 1 auto;
  min-width: 0;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-grid li {
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid #333;
  color: var(--text-soft);
  font-size: 16px;
}

.benefit-grid a {
  color: var(--cyan);
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
}

.lang-grid li {
  color: #d5dadd;
  font-size: 15px;
  line-height: 1.5;
}

.tool-group + .tool-group {
  margin-top: 26px;
}

.tool-group h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.tool-stack .tool-group + .tool-group {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #333;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list li {
  padding: 7px 12px;
  border: 1px solid #3b3b3b;
  border-radius: 5px;
  background: #2e2e2e;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.35;
}

.chip-list-wide li {
  padding: 8px 14px;
}

/* Final CTA */
.final-cta {
  padding: 64px 0 68px;
  text-align: center;
  border-top: 1px solid #2c2c2c;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-soft);
}

.final-cta p {
  max-width: 720px;
  margin: 18px auto 28px;
  color: var(--text-soft);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
}

.btn-ghost-large {
  min-height: 50px;
  padding: 0 36px;
}

/* Footer */
.site-footer {
  background: var(--footer);
  padding: 34px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
}

.footer-nav a {
  color: #c6ccd0;
  font-size: 14px;
}

.footer-nav a:hover {
  color: var(--text);
}

.copyright {
  color: #8f979d;
  font-size: 13px;
  font-weight: 300;
}

/* Responsive */
@media (max-width: 940px) {
  .feature-layout {
    display: block;
  }

  .feature-head {
    margin-bottom: 28px;
  }

  .benefit-grid,
  .lang-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container,
  .container-home {
    width: min(100% - 40px, 640px);
  }

  .nav {
    min-height: 58px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 14px;
    background: var(--panel);
    border-bottom: 1px solid #2c2c2c;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 13px 6px;
    font-size: 16px;
  }

  .hero {
    padding: 44px 0 48px;
  }

  .hero h1 {
    font-size: clamp(64px, 19vw, 104px);
  }

  .hero-tagline {
    margin-top: 10px;
    font-size: 20px;
  }

  .hero-lede {
    margin-top: 20px;
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
  }

  .btn-primary {
    width: 100%;
    min-height: 56px;
    padding: 0 24px;
    font-size: 17px;
  }

  .btn-ghost {
    width: 100%;
    min-height: 52px;
  }

  .screenshot-section {
    padding: 40px 0 34px;
  }

  .screenshot-frame img {
    width: 100%;
  }

  .feature-band {
    padding: 42px 0;
  }

  .feature-band h2 {
    font-size: 30px;
  }

  .feature-intro {
    font-size: 16px;
  }

  .benefit-grid,
  .lang-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid li {
    padding: 11px 0;
  }

  .final-cta {
    padding: 48px 0 52px;
  }

  .final-cta p {
    font-size: 17px;
  }

  .footer-nav {
    gap: 10px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-primary,
  .btn-primary svg {
    animation: none;
    transition: none;
  }
}
