:root {
  --ink: #12201c;
  --muted: #4d5f58;
  --brand: #0f7a5f;
  --brand-deep: #0a5a46;
  --accent: #c9782a;
  --wash: #f3f7f4;
  --panel: rgba(255, 255, 255, 0.82);
  --line: rgba(18, 32, 28, 0.12);
  --shadow: 0 22px 60px rgba(18, 32, 28, 0.12);
  --max: 1080px;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", "Noto Sans SC", "PingFang SC", sans-serif;
  line-height: 1.65;
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 8% -8%, #cfe8dc 0%, transparent 55%),
    radial-gradient(900px 480px at 100% 0%, #f0dcc0 0%, transparent 48%),
    linear-gradient(180deg, #f7fbf8 0%, var(--wash) 42%, #eef4f0 100%);
}

a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.shell { max-width: var(--max); margin: 0 auto; padding: 20px 20px 80px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0 18px;
}
.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-link .mark {
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-size: 1.55rem;
}
.brand-link .by {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}
.nav-links a:hover { color: var(--brand-deep); }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.7);
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--muted);
}
.lang-switch button.active {
  background: var(--ink);
  color: #fff;
}

[data-lang-panel] { display: none; }
[data-lang-panel].active { display: block; }

.hero {
  padding: 28px 0 18px;
  min-height: min(72vh, 640px);
  display: grid;
  align-content: center;
  gap: 18px;
}
.hero h1 {
  margin: 0;
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 12ch;
}
.hero .lead {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.12rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 750;
  text-decoration: none !important;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 122, 95, 0.28);
}
.btn-primary:hover { background: var(--brand-deep); }
.btn-secondary {
  background: rgba(255,255,255,0.75);
  color: var(--ink);
  border-color: var(--line);
}
.fine {
  color: var(--muted);
  font-size: 0.95rem;
}

.section {
  padding: 42px 0 8px;
}
.section h2 {
  margin: 0 0 8px;
  font-family: "Fraunces", "Noto Serif SC", serif;
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  letter-spacing: -0.03em;
}
.section .lead {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 40rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.app-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 12px;
  align-content: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 70px rgba(18, 32, 28, 0.16);
}
.app-top {
  display: flex;
  gap: 14px;
  align-items: center;
}
.app-top img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(18, 32, 28, 0.14);
}
.app-top h3 {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}
.app-top .subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: rgba(15, 122, 95, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  width: fit-content;
}
.badge.soon {
  color: #7a4b0f;
  background: rgba(201, 120, 42, 0.16);
}
.app-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}
.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.app-actions .btn {
  padding: 10px 14px;
  font-size: 0.92rem;
}

.note {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(255,255,255,0.65);
  border-radius: 0 16px 16px 0;
  color: var(--muted);
}

.doc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.doc h2 { margin-top: 1.4em; }
.doc h2:first-child { margin-top: 0; }

.footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .hero { min-height: auto; padding-top: 18px; }
  .brand-link .by { display: none; }
}
