:root {
  --background: #f2f4f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --border: rgba(16, 34, 72, 0.12);
  --text-primary: #101828;
  --text-secondary: #475467;
  --accent-gradient: linear-gradient(
    135deg,
    #0d63f3 0%,
    #1fa6f9 60%,
    #40e0d0 100%
  );
  --accent-muted: #e7f2ff;
  --folder-shadow: 0 14px 34px rgba(13, 21, 48, 0.16);
  --folder-inactive: linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  --folder-outline: rgba(7, 21, 51, 0.2);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

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

html {
  background: var(--background);
}

body {
  margin: 0;
  font-family: 'Inter', 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: 'Inter', 'Inter var', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-top: 0;
}

h1 {
  font-weight: 200;
}

h2 {
  font-weight: 300;
}

h3,
h4 {
  font-weight: 500;
}

p {
  color: var(--text-secondary);
  margin-top: 0;
}

.page {
  max-width: 1180px;
  margin: 40px auto 80px;
  padding: 0 32px;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand__logo {
  width: 68px;
  height: 68px;
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: contain;
}

.brand__title {
  font-size: 2rem;
  margin-bottom: 2px;
  font-weight: 200;
}

.brand__tagline {
  margin: 0;
  font-weight: 400;
  color: var(--text-secondary);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(13, 100, 243, 0.1);
  backdrop-filter: blur(8px);
  font-size: 0.95rem;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2dd4bf, #34d399);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.24);
}

.status-pill--offline {
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.18);
}

.status-pill--offline .status-indicator {
  background: linear-gradient(135deg, #f87171, #ef4444);
  box-shadow: 0 0 0 5px rgba(248, 113, 113, 0.24);
}

.folder-tabs {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 32px;
  padding-left: 8px;
}

.folder-tab {
  position: relative;
  padding: 18px 28px 14px;
  border: none;
  background: var(--folder-inactive);
  color: var(--text-secondary);
  border-radius: 18px 18px 0 0;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px var(--folder-outline);
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.folder-tab::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 18px;
  width: 32px;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 28, 61, 0.18);
  transition: background 180ms ease, opacity 180ms ease;
}

.folder-tab::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 16px;
  width: 18px;
  height: 6px;
  background-image: radial-gradient(
    rgba(16, 24, 40, 0.16) 0.7px,
    transparent 0.7px
  );
  background-size: 6px 6px;
  background-repeat: repeat-x;
  opacity: 0.45;
  transition: opacity 180ms ease;
}

.folder-tab:hover {
  transform: translateY(-4px);
  box-shadow: var(--folder-shadow);
}

.folder-tab.is-active {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: var(--folder-shadow);
}

.folder-tab.is-active::before {
  background: rgba(255, 255, 255, 0.7);
}

.folder-tab.is-active::after {
  opacity: 0.8;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.9) 0.7px,
    transparent 0.7px
  );
}

.folder-tab__label {
  position: relative;
  z-index: 1;
}

main {
  background: var(--surface);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 24px 38px rgba(11, 21, 48, 0.18);
  padding: 40px 48px 52px;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 34, 72, 0.08);
}

.tab-panel {
  display: none;
}

.tab-panel.is-visible {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 36px;
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.05;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.05rem;
}

.cta-bar {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-link {
  align-self: flex-start;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 18px 40px rgba(13, 99, 243, 0.35);
}

.cta-link:hover {
  transform: translateY(-2px);
}

.cta-subtext {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.hero-card {
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 18px 36px rgba(13, 21, 48, 0.12);
  border: 1px solid rgba(16, 34, 72, 0.08);
}

.hero-card h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.hero-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.hero-card li {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-card .label {
  font-weight: 400;
  color: var(--text-secondary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid rgba(16, 34, 72, 0.08);
  box-shadow: 0 12px 24px rgba(11, 21, 48, 0.1);
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.panel-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 36px;
  margin-bottom: 44px;
}

.callout-card {
  border-radius: var(--radius-md);
  padding: 24px;
  background: rgba(13, 99, 243, 0.12);
  border: 1px solid rgba(13, 99, 243, 0.22);
  color: #0a1c3b;
}

.callout-card h3 {
  font-weight: 600;
  margin-bottom: 12px;
}

.callout-card ul {
  margin: 0;
  padding-left: 18px;
}

.timeline {
  display: grid;
  gap: 20px;
  border-left: 2px solid rgba(13, 21, 48, 0.12);
  padding-left: 24px;
}

.timeline__item {
  position: relative;
  display: grid;
  gap: 6px;
}

.timeline__dot {
  position: absolute;
  top: 6px;
  left: -34px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 0 6px rgba(13, 99, 243, 0.18);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--text-secondary);
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #0d63f3;
  font-weight: 600;
}

.badge-row {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.badge {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(13, 99, 243, 0.12);
  color: #0a2f6f;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.contact-card {
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(16, 34, 72, 0.1);
  box-shadow: 0 20px 38px rgba(11, 21, 48, 0.14);
}

.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 28px 0;
}

.contact-note {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.inline-tab {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-muted);
  color: #0d63f3;
  font-weight: 600;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal.is-visible {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__content {
  position: relative;
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: 0 32px 48px rgba(10, 18, 42, 0.28);
  border: 1px solid rgba(16, 34, 72, 0.1);
  max-width: 600px;
  width: min(600px, 100%);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 24px;
  border: none;
  background: none;
  font: inherit;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}

.modal__close:hover {
  color: var(--text-primary);
}

.modal__body {
  display: grid;
  gap: 16px;
}

.modal__list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

.modal__list li + li {
  margin-top: 6px;
}

.privacy-modal__content {
  display: grid;
  gap: 16px;
}

.modal__fallback,
.modal__error {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.modal__error a {
  color: inherit;
  text-decoration: underline;
}

.privacy-page {
  margin: 0;
  background: var(--background);
}

.privacy-policy {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 48px 64px;
  background: var(--surface-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--folder-shadow);
  display: grid;
  gap: 28px;
}

.privacy-policy__header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}

.privacy-policy__logo {
  width: 88px;
  height: 88px;
}

.privacy-policy__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.privacy-policy__lede {
  font-size: 1.05rem;
  max-width: 580px;
}

.privacy-policy section {
  display: grid;
  gap: 12px;
}

.privacy-policy section h2 {
  font-weight: 400;
}

.privacy-policy section p,
.privacy-policy section ul {
  margin: 0;
}

.privacy-policy section + section {
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.privacy-policy ul {
  padding-left: 20px;
}

.privacy-policy li + li {
  margin-top: 6px;
}

.privacy-policy a {
  color: inherit;
  text-decoration: underline;
}

.privacy-policy a:hover {
  color: var(--text-primary);
}

@media (max-width: 720px) {
  .privacy-policy {
    margin: 20px auto 60px;
    padding: 32px 24px 48px;
  }

  .privacy-policy__header {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .privacy-policy__logo {
    width: 64px;
    height: 64px;
  }
}

.footer {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer__copy {
  margin: 0;
}

.footer__nav {
  display: inline-flex;
  gap: 24px;
  align-items: center;
}

.footer__link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  padding-bottom: 2px;
  background: none;
  border: none;
  font: inherit;
}

.footer__link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.footer__link:hover::after {
  transform: scaleX(1);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .panel-layout {
    grid-template-columns: 1fr;
  }

  .grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page {
    padding: 0 16px;
    margin: 28px auto 60px;
  }

  .masthead {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }

  .folder-tabs {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .folder-tab {
    flex: 1;
    white-space: nowrap;
  }

  main {
    padding: 32px 26px 38px;
  }
}
