:root {
  --bg-page: #ffffff;
  --bg-hero: #ffffff;
  --bg-card: #ffffff;
  --border-subtle: #e5e7eb;
  --border-strong: #d4d4dd;
  --primary: #2563eb;
  --primary-deep: #1d4ed8;
  --primary-soft: #e0ebff;
  --text-main: #0f172a;
  --text-soft: #4b5563;
  --text-mute: #9ca3af;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 20px 50px rgba(15, 23, 42, 0.09);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --max-width: 1120px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  background: var(--bg-hero);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 10px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: conic-gradient(
    from 220deg,
    #2563eb,
    #a855f7,
    #22c55e,
    #2563eb
  );
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.4),
    0 0 18px rgba(129, 140, 248, 0.7);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text-main {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: 11px;
  color: var(--text-mute);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--text-soft);
}

.nav-links a {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.nav-links a:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--primary-deep);
  transform: translateY(-1px);
}

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

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(209, 213, 219, 0.9);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.hero-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: radial-gradient(circle, #22c55e, transparent);
}

.hero-copy h1 {
  font-size: clamp(26px, 3.3vw, 34px);
  line-height: 1.2;
  margin: 16px 0 12px;
}

.hero-copy p {
  margin: 0;
  color: var(--text-soft);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-mute);
}

.btn {
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 14px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease,
    box-shadow 0.16s ease, border-color 0.16s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.45);
}

.btn.ghost {
  background: #ffffff;
  border-color: rgba(209, 213, 219, 0.9);
  color: var(--text-soft);
}

.btn.ghost:hover {
  border-color: rgba(148, 163, 184, 0.9);
  color: var(--primary-deep);
  background: #f9fafb;
}

.hero-preview {
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid rgba(209, 213, 219, 0.9);
  box-shadow: var(--shadow-soft);
  padding: 14px 16px 16px;
}

.hero-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.hero-preview-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.hero-preview-list {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.hero-preview-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}

.preview-label {
  color: var(--text-soft);
}

.preview-domain {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: var(--primary-deep);
}

.hero-preview-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(209, 213, 219, 0.9);
  font-size: 12px;
  color: var(--text-mute);
}

.section {
  padding: 44px 0;
}

.modules {
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.section-heading p {
  margin: 0;
  color: var(--text-soft);
  max-width: 32rem;
}

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

.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.module-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-top: 3px solid rgba(37, 99, 235, 0.8);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: rgba(191, 219, 254, 0.95);
}

.module-card:hover::before {
  opacity: 1;
}

.module-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(209, 213, 219, 0.9);
  font-size: 11px;
  color: var(--text-mute);
  background: #f9fafb;
}

.module-card h3 {
  margin: 6px 0 2px;
  font-size: 16px;
}

.module-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.module-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-mute);
}

.module-domain {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

.module-arrow {
  font-size: 14px;
}

.note {
  background: #ffffff;
}

.note-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 26px;
}

.note-layout p {
  color: var(--text-soft);
  font-size: 14px;
}

.note-box {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #f9fafb;
  padding: 14px 14px 16px;
}

.note-box ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-soft);
}

.note-box li + li {
  margin-top: 4px;
}

.site-footer {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  padding: 14px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--text-mute);
}

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-preview {
    order: -1;
  }

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

  .note-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .container {
    padding-inline: 16px;
  }

  .section {
    padding-block: 36px;
  }

  .modules-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    justify-content: flex-start;
  }
}
