/* CoreStack - Shared Stylesheet */
:root {
  --primary: #0f4c81;
  --primary-light: #1e6fb8;
  --primary-dark: #0a3a63;
  --accent: #00a6a6;
  --accent-light: #14c5c5;
  --text: #1a1a1a;
  --text-muted: #555;
  --text-light: #777;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-dark: #0a2a47;
  --border: #e1e8ef;
  --warning-bg: #fff8e1;
  --warning-border: #ffc107;
  --success-bg: #e8f5e9;
  --success-border: #4caf50;
  --danger-bg: #ffebee;
  --danger-border: #f44336;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 76, 129, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 14px 0;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.navbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  text-decoration: none;
}
.navbar .brand .logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.navbar .brand .logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
footer.site-footer .brand-block {
  display: flex;
  flex-direction: column;
}
footer.site-footer .brand-block .footer-logo {
  display: block;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
}
footer.site-footer .brand-block .footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.navbar nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}
.navbar nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}
.navbar nav a:hover {
  color: var(--primary);
}
.navbar nav a.btn-primary,
.navbar nav a.btn-primary:hover { color: #fff; }
.navbar nav a.btn-accent,
.navbar nav a.btn-accent:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.18s;
  line-height: 1;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: var(--bg-soft);
  color: var(--primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: #eef3f9;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: #008a8a;
}

/* Hero */
.hero {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 60%,
    var(--accent) 130%
  );
  color: #fff;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero .lead {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 28px;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-cta .btn-primary {
  background: #fff;
  color: var(--primary);
}
.hero-cta .btn-primary:hover {
  background: #f0f6ff;
}
.hero-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.hero-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-mockup {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
.hero-mockup-screen {
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.hero-mockup-screen h4 {
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.hero-mockup-screen .kpi-row {
  display: flex;
  gap: 10px;
  margin: 14px 0;
}
.hero-mockup-screen .kpi {
  flex: 1;
  background: var(--bg-soft);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}
.hero-mockup-screen .kpi .num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
}
.hero-mockup-screen .kpi .lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.hero-mockup-screen .status {
  display: inline-block;
  background: var(--success-bg);
  color: #1b5e20;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

/* Sections */
section.section {
  padding: 80px 0;
}
section.section-soft {
  background: var(--bg-soft);
}
section.section-dark {
  background: var(--bg-dark);
  color: #c9d6e3;
}

.section-title {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-title .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.2s;
}
.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 700;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Module cards */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.module-card {
  background: linear-gradient(135deg, #fff 0%, var(--bg-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.module-card .tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--success-bg);
  color: #1b5e20;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.module-card .tag.tag-soon {
  background: #fff3cd;
  color: #856404;
}
.module-card h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.module-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.module-card ul {
  list-style: none;
  color: var(--text);
  font-size: 0.9rem;
}
.module-card ul li {
  padding: 4px 0;
  padding-left: 22px;
  position: relative;
}
.module-card ul li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  position: absolute;
  left: 0;
}

/* Pages (legal, support) */
.page-header {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-light) 100%
  );
  color: #fff;
  padding: 56px 0 64px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.page-header p {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 auto;
}
.page-header .meta {
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.85;
}

main.page-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.notice {
  border-left: 4px solid var(--warning-border);
  background: var(--warning-bg);
  padding: 18px 22px;
  border-radius: var(--radius);
  margin-bottom: 36px;
}
.notice strong {
  display: block;
  margin-bottom: 6px;
  color: #6b4e00;
}
.notice p {
  color: #5a4300;
  font-size: 0.97rem;
  margin: 0;
}
.notice.notice-info {
  border-color: var(--primary-light);
  background: #e7f1fb;
}
.notice.notice-info strong {
  color: var(--primary-dark);
}
.notice.notice-info p {
  color: #0a3a63;
}
.notice.notice-danger {
  border-color: var(--danger-border);
  background: var(--danger-bg);
}
.notice.notice-danger strong {
  color: #b71c1c;
}
.notice.notice-danger p {
  color: #7f1212;
}

main h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 44px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  font-weight: 700;
}
main h3 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--text);
  font-weight: 600;
}
main p {
  margin-bottom: 14px;
  color: var(--text-muted);
}
main p.lead {
  color: var(--text);
  font-size: 1.05rem;
}
main ul,
main ol {
  margin: 0 0 18px 24px;
  color: var(--text-muted);
}
main li {
  margin-bottom: 8px;
}
main a {
  color: var(--primary-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
main a:hover {
  border-bottom-color: var(--primary-light);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 0.93rem;
  background: var(--bg-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
thead {
  background: var(--primary);
  color: #fff;
}
th,
td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-weight: 600;
  font-size: 0.9rem;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: #eef3f9;
}

.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 36px;
}
.toc h3 {
  margin-top: 0;
  color: var(--primary);
}
.toc ol {
  margin-bottom: 0;
  margin-left: 20px;
}
.toc a {
  color: var(--text);
}

.contact-card {
  background: var(--bg-soft);
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-top: 16px;
}
.contact-card p {
  margin-bottom: 6px;
  color: var(--text);
}

/* Forms */
.form-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.95rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(30, 111, 184, 0.15);
}
.form-group .hint {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg);
}
.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
}
.faq-item .faq-body {
  padding: 18px 22px;
  color: var(--text-muted);
}
.faq-item .faq-body p:last-child {
  margin-bottom: 0;
}

/* CTA section */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
  font-weight: 700;
}
.cta-band p {
  opacity: 0.92;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 28px;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--primary);
}
.cta-band .btn-primary:hover {
  background: #f0f6ff;
}

/* Footer */
footer.site-footer {
  background: var(--bg-dark);
  color: #c9d6e3;
  padding: 56px 0 24px;
}
footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
footer.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
footer.site-footer ul {
  list-style: none;
}
footer.site-footer ul li {
  margin-bottom: 8px;
}
footer.site-footer a {
  color: #c9d6e3;
  text-decoration: none;
  transition: color 0.15s;
  font-size: 0.93rem;
}
footer.site-footer a:hover {
  color: #fff;
}
footer.site-footer .brand-block .brand {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
footer.site-footer .brand-block p {
  color: #9aacc0;
  font-size: 0.93rem;
  line-height: 1.6;
}
footer.site-footer .bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #8da3b8;
}

/* Helpers */
.text-center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.mt-2 {
  margin-top: 16px;
}
.mt-4 {
  margin-top: 32px;
}
.mb-0 {
  margin-bottom: 0;
}
.mb-4 {
  margin-bottom: 32px;
}
.tag-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--success-bg);
  color: #1b5e20;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-mockup {
    max-width: 480px;
    margin: 0 auto;
  }
  .navbar nav ul {
    gap: 16px;
  }
  footer.site-footer .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}
@media (max-width: 600px) {
  .nav-toggle {
    display: flex;
  }
  .navbar .container {
    justify-content: space-between;
  }
  .navbar nav ul {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    z-index: 99;
  }
  .navbar nav ul.open {
    display: flex;
  }
  .navbar nav ul li a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .navbar nav ul li:last-child a {
    border-bottom: none;
  }
  section.section {
    padding: 56px 0;
  }
  .hero {
    padding: 56px 0 64px;
  }
  .hero-mockup {
    display: none;
  }
  .feature-grid,
  .module-grid {
    gap: 16px;
  }
  .feature-card,
  .module-card {
    padding: 22px;
  }
  footer.site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  footer.site-footer .bottom {
    flex-direction: column;
    text-align: center;
  }
  table {
    font-size: 0.85rem;
  }
  th,
  td {
    padding: 10px 8px;
  }
  .page-header {
    padding: 44px 0 52px;
  }
  main.page-content {
    padding: 36px 20px 64px;
  }
}
