:root {
  --navy: #0c2340;
  --blue: #1a5f9e;
  --teal: #0d9488;
  --bg: #f0f4f8;
  --card: #fff;
  --text: #152535;
  --muted: #5c6b7a;
  --border: #d4dee8;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(12, 35, 64, 0.08);
  --max: 1080px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { letter-spacing: -0.01em; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
@media (min-width: 768px) {
  .container { width: min(var(--max), calc(100% - 40px)); }
}
.narrow { max-width: 640px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(240, 244, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--navy); font-weight: 800; font-size: 1.1rem; text-decoration: none;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; display: grid; place-items: center; font-size: 0.75rem;
}
img.brand-mark { object-fit: cover; background: none; }
.site-header .header-inner { padding: 24px 0; }
.site-header .brand { font-size: 1.6rem; gap: 14px; }
.site-header .brand-mark { width: 60px; height: 60px; border-radius: 16px; }
.site-header .nav a:not(.btn) { font-size: 1rem; }
.site-header .nav .btn { padding: 13px 24px; font-size: 1rem; }
@media (max-width: 600px) {
  .site-header .header-inner { padding: 16px 0; }
  .site-header .brand { font-size: 1.25rem; }
  .site-header .brand-mark { width: 44px; height: 44px; border-radius: 12px; }
}
.nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.nav a { color: var(--navy); text-decoration: none; font-weight: 600; font-size: 0.85rem; transition: color 0.15s ease; }
.nav a:not(.btn):hover { color: var(--blue); }
.nav a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
@media (min-width: 768px) {
  .nav { gap: 16px; }
  .nav a { font-size: 0.9rem; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 18px; border-radius: 10px; font-weight: 700; font-size: 0.9rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font-family: inherit;
  transition: filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, var(--blue), var(--navy)); color: #fff; }
.btn-primary:hover { filter: brightness(1.12); }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--blue); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: rgba(12, 35, 64, 0.06); }
.btn-lg { padding: 14px 24px; }
.btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; }

.hero { padding: 40px 0 32px; text-align: center; }
@media (min-width: 768px) {
  .hero { padding: 64px 0 40px; }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem); color: var(--navy);
  margin: 0 auto 16px; line-height: 1.15; max-width: 720px;
  letter-spacing: -0.02em;
}
.lede { font-size: 1.1rem; color: var(--muted); max-width: 620px; margin: 0 auto 28px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.section { padding: 56px 0; }
.section.alt { background: #e8f0f8; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { text-align: center; color: var(--navy); font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 0 0 32px; }
.section.alt h2 { margin-bottom: 12px; }
.section.alt p { text-align: center; margin: 0 auto; }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px;
}
.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { border-color: #b6c6d8; box-shadow: 0 14px 44px rgba(12, 35, 64, 0.12); }
.product-card.featured { border-color: var(--blue); }
.product-badge {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--teal); margin-bottom: 8px;
}
.product-card h3 { margin: 0 0 10px; color: var(--navy); }
.product-card p { color: var(--muted); margin: 0 0 18px; }
.product-card .btn { margin-right: 8px; margin-bottom: 8px; }

.site-footer { border-top: 1px solid var(--border); padding: 28px 0; margin-top: 56px; background: #fff; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; color: var(--muted); }
.muted { color: var(--muted); }

.account-main { padding: 24px 0 48px; max-width: 480px; }
@media (min-width: 768px) {
  .account-main { padding: 40px 0 64px; }
}
.account-card { padding: 20px; }
@media (min-width: 768px) {
  .account-card { padding: 28px; }
}
.account-card:has(.dashboard) {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.dashboard-header h2 { margin: 0 0 4px; color: var(--navy); }
.dashboard-lede { color: var(--muted); margin: 0 0 20px; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.tool-card {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow);
}
.tool-card-soon { opacity: 0.72; }
.tool-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff; font-weight: 800; font-size: 0.72rem;
  display: grid; place-items: center;
}
.tool-icon-classnavi { background: linear-gradient(135deg, #1a5f9e, #0c2340); font-size: 0.62rem; }
.tool-icon-muted { background: #e8f0f8; color: var(--muted); font-size: 1.2rem; }
.tool-body { min-width: 0; }
.tool-body h3 { margin: 6px 0 8px; color: var(--navy); font-size: 1.05rem; }
.tool-body p { margin: 0 0 12px; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.tool-badge {
  font-size: 0.65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--teal);
}
.tool-badge-muted { color: var(--muted); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.product-card-soon { opacity: 0.75; }
.btn-disabled {
  pointer-events: none; opacity: 0.65;
}
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--border); font-size: 16px; color: var(--text);
  font-family: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 95, 158, 0.15);
}
.field input::placeholder, .field textarea::placeholder { color: #93a3b4; }
.field-hint { display: block; margin-top: 6px; font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; font-weight: 700; font-size: 0.85rem; cursor: pointer;
  color: var(--muted); font-family: inherit;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.tab:hover { color: var(--navy); border-color: #b6c6d8; }
.tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.alert { padding: 12px; border-radius: 10px; font-size: 0.9rem; }
.alert-err { background: #fee2e2; color: #b91c1c; }
.alert-ok { background: #dcfce7; color: #166534; }
.product-launch { display: grid; gap: 12px; margin-top: 20px; }
.launch-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px; border: 1px solid var(--border); border-radius: 12px;
}
.launch-item h4 { margin: 0; color: var(--navy); }
.launch-item p { margin: 4px 0 0; font-size: 0.85rem; color: var(--muted); }

@media (max-width: 639px) {
  .header-inner { flex-wrap: wrap; }
  .nav { width: 100%; justify-content: flex-start; }
  .nav .btn { width: 100%; margin-top: 4px; }
  .product-grid { grid-template-columns: 1fr; }
  .section { padding: 36px 0; }
  .footer-inner { flex-direction: column; }
}
