:root {
  --bg: #07111f;
  --bg-soft: #0c1730;
  --panel: rgba(15, 26, 50, 0.88);
  --panel-strong: #101d38;
  --panel-soft: #122345;
  --line: rgba(153, 178, 255, 0.18);
  --line-strong: rgba(153, 178, 255, 0.28);
  --text: #eef4ff;
  --muted: #aebbd8;
  --accent: #7ea8ff;
  --accent-2: #75e0c0;
  --accent-3: #d9b35f;
  --danger: #ff9d9d;
  --shadow: 0 24px 60px rgba(2, 8, 23, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: radial-gradient(circle at top, rgba(80, 116, 214, 0.18), transparent 30%), linear-gradient(180deg, #07111f 0%, #0a1428 48%, #07111f 100%);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
input, select, button { -webkit-tap-highlight-color: transparent; }

.page-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(126, 168, 255, 0.12), transparent 22%),
    radial-gradient(circle at 90% 15%, rgba(117, 224, 192, 0.08), transparent 18%),
    radial-gradient(circle at 80% 80%, rgba(217, 179, 95, 0.08), transparent 20%);
}

.app-shell {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.brand-block {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #081325;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 24px rgba(126, 168, 255, 0.22);
}

.brand-kicker,
.section-kicker,
.eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--accent-2);
}

.topnav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.topnav a {
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.2s ease;
}

.topnav a:hover {
  color: var(--text);
  background: rgba(126, 168, 255, 0.1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 22px;
  margin-bottom: 22px;
}

.hero-pro,
.card,
.feature-card,
.site-footer,
.legal-page {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-pro {
  padding: 34px;
  border-radius: var(--radius-xl);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.08;
  max-width: 820px;
}

.subtitle {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions,
.trust-row,
.action-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions { margin-top: 24px; }
.trust-row { margin-top: 24px; }

.primary-link,
.ghost-link,
.primary-btn,
.secondary-btn,
.section-badge {
  border-radius: 14px;
  border: 1px solid transparent;
}

.primary-link,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  font-weight: 700;
  color: #081325;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 30px rgba(126, 168, 255, 0.2);
}

.ghost-link,
.secondary-btn,
.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}


.accent-alt-link {
  color: #081325;
  border-color: transparent;
  background: linear-gradient(135deg, #caa6ff, #7dd4ff);
  box-shadow: 0 14px 30px rgba(166, 128, 255, 0.22);
}

.accent-alt-link:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #d4b4ff, #8fdcff);
}

.trust-pill {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.mini-stat,
.feature-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 29, 56, 0.95), rgba(13, 23, 43, 0.95));
}

.mini-stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.mini-stat strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.mini-stat small {
  color: var(--muted);
  line-height: 1.6;
}

.feature-strip,
.institutional-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

.feature-card h2,
.card h2,
.legal-page h1 {
  margin-top: 0;
}

.feature-card p,
.note,
.info-card li,
.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.75;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}

.card {
  padding: 24px;
  border-radius: var(--radius-xl);
}

.form-card { grid-column: span 6; }
.result-card { grid-column: span 6; }
.holidays-card { grid-column: span 6; }
.info-card { grid-column: span 6; }
.institutional-card { min-height: 100%; }

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.slim-head { margin-bottom: 10px; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

input[type="date"],
input[type="number"],
input[type="text"],
select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: rgba(4, 10, 23, 0.45);
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input[type="date"]:focus,
input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
  border-color: rgba(126, 168, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(126, 168, 255, 0.12);
}

.full-width {
  display: block;
  margin-top: 16px;
}

.context-box {
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(217, 179, 95, 0.24);
  background: rgba(217, 179, 95, 0.08);
  color: #f5e7c4;
  line-height: 1.65;
}

.toggles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 18px 0 20px;
}

.check {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.check input {
  width: 18px;
  height: 18px;
}

.primary-btn,
.secondary-btn {
  min-height: 48px;
  cursor: pointer;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.secondary-btn:hover,
.ghost-link:hover,
.topnav a:hover,
.text-link:hover {
  border-color: rgba(126, 168, 255, 0.4);
  background: rgba(126, 168, 255, 0.08);
}

.empty-state {
  min-height: 190px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  color: var(--muted);
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.result-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(18, 35, 69, 0.95), rgba(13, 24, 45, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.muted {
  color: var(--muted);
  margin: 0 0 8px;
}

.result-box h3 {
  margin: 0;
  font-size: 1.5rem;
}

.summary { line-height: 1.7; color: var(--text); }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--accent-2);
  border: 1px solid rgba(117, 224, 192, 0.22);
  background: rgba(117, 224, 192, 0.08);
}

.trail {
  display: grid;
  gap: 10px;
  max-height: 380px;
  overflow: auto;
  padding-right: 6px;
}

.trail-item,
.holiday-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
  background: rgba(6, 14, 28, 0.42);
}

.trail-item small {
  color: var(--muted);
  display: block;
}

.trail-item .status.used { color: var(--accent-2); }
.trail-item .status.skipped { color: var(--danger); }

.holiday-list { margin-top: 16px; display: grid; gap: 10px; }
.empty-list { color: var(--muted); }

.holiday-item { align-items: center; }

.holiday-item button {
  border: none;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  font-weight: 700;
}

.rules-list {
  margin: 0;
  padding-left: 18px;
}

.compact-note { margin-top: -8px; margin-bottom: 16px; }

.warning-note {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(255, 157, 157, 0.35);
  border-radius: 16px;
  background: rgba(255, 157, 157, 0.08);
  color: #ffd9d9;
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 12px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.site-footer p { margin-bottom: 0; color: var(--muted); }

.footer-links {
  align-items: flex-start;
  justify-content: flex-end;
}

.footer-links a,
.text-link {
  color: var(--accent-2);
}

.legal-page-shell { max-width: 980px; }
.simple-topbar { margin-bottom: 18px; }

.legal-page {
  padding: 34px;
  border-radius: var(--radius-xl);
}

.legal-page h2 { margin-top: 26px; }
.secondary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 1080px) {
  .hero,
  .feature-strip,
  .institutional-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .form-card,
  .result-card,
  .holidays-card,
  .info-card {
    grid-column: span 12;
  }

  .topbar,
  .site-footer,
  .section-head {
    border-radius: 24px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .topnav {
    width: 100%;
    justify-content: stretch;
  }

  .topnav a {
    flex: 1 1 180px;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
  }

  .section-head,
  .action-row,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .action-row > * {
    width: 100%;
  }

  .result-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app-shell { padding: 14px; }

  .topbar,
  .site-footer,
  .hero-pro,
  .card,
  .legal-page,
  .feature-card,
  .mini-stat {
    padding: 18px;
  }

  .topbar,
  .site-footer,
  .section-head,
  .result-head,
  .card-head,
  .hero-actions,
  .trust-row,
  .footer-links {
    flex-direction: column;
    align-items: stretch;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.35rem);
  }

  .subtitle,
  .feature-card p,
  .note,
  .legal-page p,
  .legal-page li {
    font-size: 0.98rem;
  }

  .field-grid,
  .result-box {
    grid-template-columns: 1fr;
  }

  .topnav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topnav a,
  .primary-link,
  .ghost-link,
  .primary-btn,
  .secondary-btn,
  .section-badge {
    width: 100%;
  }

  .brand-block { align-items: flex-start; }

  .trail-item,
  .holiday-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .trail {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .app-shell { padding: 12px; }

  .hero-pro,
  .card,
  .feature-card,
  .mini-stat,
  .legal-page,
  .site-footer,
  .topbar {
    border-radius: 20px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .hero-actions,
  .trust-row,
  .action-row,
  .footer-links {
    gap: 10px;
  }

  .pill-row {
    gap: 6px;
  }

  .pill,
  .trust-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}


.execution-section {
  display: grid;
  gap: 20px;
  margin-bottom: 22px;
}

.execution-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.execution-hero {
  padding: 24px;
}

.execution-hero-lower {
  margin-top: 4px;
}

.execution-grid-info-only .execution-info-card {
  grid-column: span 12;
}

.execution-form-card,
.execution-result-card,
.execution-info-card {
  grid-column: span 6;
}

.execution-empty {
  min-height: 150px;
}

.exec-field-grid label:last-child {
  grid-column: span 2;
}

.execution-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.exec-metric {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.exec-metric span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.exec-metric strong {
  display: block;
  font-size: 1.2rem;
}

.exec-metric small {
  color: var(--muted);
  line-height: 1.55;
}

.execution-notes {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.execution-note-item {
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 14, 28, 0.42);
  color: var(--muted);
  line-height: 1.65;
}

.execution-note-item strong {
  color: var(--text);
}

.execution-note-item.alert {
  border-color: rgba(255, 157, 157, 0.28);
  background: rgba(255, 157, 157, 0.08);
  color: #ffd9d9;
}

.execution-note-item.success {
  border-color: rgba(117, 224, 192, 0.25);
  background: rgba(117, 224, 192, 0.08);
}

.execution-result-box h3 {
  word-break: break-word;
}

.exec-toggles {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .execution-form-card,
  .execution-result-card,
  .execution-info-card {
    grid-column: span 12;
  }
}

@media (max-width: 720px) {
  .execution-overview,
  .exec-field-grid {
    grid-template-columns: 1fr;
  }

  .exec-field-grid label:last-child {
    grid-column: span 1;
  }
}


.landing-hero {
  margin-bottom: 28px;
}

.landing-links {
  align-items: stretch;
}

.feature-link-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.strong-link {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 700;
}

.landing-summary {
  margin-top: 8px;
}

.page-hero.compact-hero {
  padding-top: 36px;
  padding-bottom: 18px;
}

.page-section {
  margin-top: 12px;
}
