:root {
  color-scheme: light;
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --text: #152033;
  --muted: #5d6b82;
  --line: #dce4ef;
  --accent: #2563eb;
  --accent-strong: #1749b8;
  --shadow: 0 18px 45px rgba(38, 62, 94, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.site-header,
.site-footer {
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
}

.site-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  margin-top: 56px;
}

.nav,
.footer-inner,
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: 0;
}

.nav-links,
.footer-links,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

.hero {
  padding: 66px 0 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2.45rem, 7vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.6rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.app-card,
.detail-card,
.support-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px;
}

.app-card-header,
.detail-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  display: block;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(18, 31, 52, 0.16);
}

.app-card h3 {
  margin-bottom: 4px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.app-card p {
  color: var(--muted);
}

.app-card .description {
  margin: 18px 0 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button:hover {
  text-decoration: none;
}

.button.primary:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.card-footer {
  margin-top: auto;
}

.detail-main,
.support-main {
  padding: 44px 0 8px;
}

.detail-card,
.support-card {
  padding: clamp(22px, 5vw, 42px);
}

.detail-icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
}

.detail-copy {
  margin-top: 24px;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

.link-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.support-list {
  margin: 18px 0 28px;
  padding-left: 22px;
  color: var(--muted);
}

.support-card p {
  color: var(--muted);
}

.soft-panel {
  margin-top: 28px;
  padding: 18px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted);
}

@media (max-width: 680px) {
  .nav,
  .footer-inner,
  .section-heading,
  .detail-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 46px;
  }

  .app-icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
  }

  .detail-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }
}
