:root {
  --bg: #060914;
  --bg2: #0b1020;
  --card: rgba(255, 255, 255, 0.075);
  --card2: rgba(255, 255, 255, 0.105);
  --border: rgba(255, 255, 255, 0.13);
  --text: #f8fafc;
  --muted: #aab5cf;
  --blue: #4f8cff;
  --violet: #7b61ff;
  --green: #35d08b;
  --yellow: #f4c15d;
  --danger: #ff6b6b;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.bg-orb {
  position: fixed;
  width: 440px;
  height: 440px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: .36;
  pointer-events: none;
}

.orb-1 {
  top: -130px;
  left: -120px;
  background: var(--blue);
}

.orb-2 {
  top: 120px;
  right: -130px;
  background: var(--green);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(1220px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(7, 11, 24, .78);
  backdrop-filter: blur(20px);
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(79, 140, 255, .28);
}

.brand small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255,255,255,.07);
}

.top-button {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(79, 140, 255, .17);
  border: 1px solid rgba(79, 140, 255, .35);
  color: #cfe0ff;
  font-weight: 800;
}

main {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 28px;
  align-items: center;
  padding: 64px 0 28px;
}

.hero-content {
  padding: 52px;
  border-radius: 36px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 10%, rgba(79,140,255,.18), transparent 36%),
    rgba(255,255,255,.055);
  box-shadow: var(--shadow);
}

.pill {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(53, 208, 139, .11);
  border: 1px solid rgba(53, 208, 139, .32);
  color: #b6f5d8;
  font-weight: 800;
}

.pill span {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(53,208,139,.14);
}

.hero h1 {
  margin: 28px 0 18px;
  font-size: clamp(46px, 6vw, 82px);
  line-height: .93;
  letter-spacing: -.07em;
}

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 17px;
  font-weight: 900;
  border: 0;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

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

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 16px 40px rgba(79,140,255,.28);
}

.btn.ghost {
  background: rgba(255,255,255,.075);
  border: 1px solid var(--border);
}

.btn.full {
  width: 100%;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.trust-row div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(0,0,0,.18);
  border: 1px solid var(--border);
}

.trust-row strong {
  display: block;
  margin-bottom: 6px;
}

.trust-row span {
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  border-radius: 36px;
  padding: 24px;
  border: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  box-shadow: var(--shadow);
}

.vault-preview {
  border-radius: 26px;
  background: #0b1020;
  border: 1px solid var(--border);
  overflow: hidden;
}

.vault-header {
  height: 46px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.04);
}

.vault-header span {
  width: 11px;
  height: 11px;
  border-radius: 99px;
  background: rgba(255,255,255,.28);
}

.vault-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
  align-items: flex-start;
}

.vault-title small {
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.vault-title strong {
  font-size: 20px;
}

.status {
  padding: 8px 10px;
  border-radius: 999px;
  color: #b6f5d8;
  background: rgba(53,208,139,.12);
  border: 1px solid rgba(53,208,139,.28);
  font-size: 13px;
  font-weight: 900;
}

.collection-list {
  display: grid;
  gap: 12px;
  padding: 0 22px 22px;
}

.collection {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--border);
}

.collection.active {
  background: rgba(79,140,255,.14);
  border-color: rgba(79,140,255,.38);
}

.collection span {
  font-size: 28px;
}

.collection small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.safe-note {
  margin: 0 22px 22px;
  padding: 16px;
  border-radius: 18px;
  color: #b6f5d8;
  background: rgba(53,208,139,.1);
  border: 1px solid rgba(53,208,139,.25);
  display: flex;
  gap: 10px;
  align-items: center;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 8px 0 28px;
}

.quick-card,
.department-card,
.scenario-card,
.feature,
.rule,
.check-item,
details {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 24px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.quick-card:hover,
.department-card:hover,
.scenario-card:hover {
  transform: translateY(-3px);
  background: var(--card2);
  border-color: rgba(79,140,255,.42);
}

.quick-card {
  min-height: 210px;
  padding: 24px;
}

.quick-card.highlight {
  background: linear-gradient(135deg, rgba(79,140,255,.28), rgba(123,97,255,.12));
}

.quick-icon {
  font-size: 34px;
}

.quick-card h3 {
  margin: 22px 0 10px;
}

.quick-card p,
.department-card p,
.scenario-card p,
.feature p,
.rule,
.check-item p,
.faq-list p {
  color: var(--muted);
  line-height: 1.55;
}

.role-switcher,
.split-section,
.collections-section,
.request-section,
.admin-section,
.security-section,
.faq-section {
  margin-top: 26px;
  padding: 34px;
  border-radius: 34px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.052);
}

.section-head p,
.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.section-head h2,
.section-text h2,
.request-card h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.055em;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.tab {
  padding: 13px 16px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.065);
  border: 1px solid var(--border);
  font-weight: 900;
  cursor: pointer;
}

.tab.active {
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-color: transparent;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.scenario-card {
  padding: 22px;
  min-height: 210px;
}

.scenario-card span {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(79,140,255,.16);
  color: #cfe0ff;
  font-weight: 900;
}

.scenario-card h3 {
  margin: 18px 0 8px;
}

.split-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.section-text p:not(.eyebrow),
.request-card > div p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature {
  display: flex;
  gap: 16px;
  padding: 22px;
}

.feature span {
  font-size: 30px;
}

.feature h3 {
  margin: 0 0 6px;
}

.feature p {
  margin: 0;
}

.collections-grid,
.rules-grid,
.checklist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.department-card {
  padding: 24px;
  min-height: 180px;
}

.department-card span {
  font-size: 34px;
}

.department-card h3 {
  margin: 20px 0 8px;
}

.request-card {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px;
}

.access-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.26);
  color: var(--text);
  border-radius: 16px;
  padding: 15px 16px;
  outline: none;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(79,140,255,.65);
  box-shadow: 0 0 0 4px rgba(79,140,255,.12);
}

.check-item {
  padding: 22px;
}

.check-item span {
  color: var(--blue);
  font-weight: 900;
}

.check-item p {
  margin: 10px 0 0;
}

.rule {
  padding: 20px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

details p {
  margin: 12px 0 0;
}

.footer {
  width: min(1220px, calc(100% - 32px));
  margin: 26px auto 30px;
  padding: 20px 0;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 1020px) {
  .hero,
  .split-section,
  .request-card {
    grid-template-columns: 1fr;
  }

  .quick-grid,
  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collections-grid,
  .rules-grid,
  .checklist {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    width: calc(100% - 20px);
  }

  main,
  .footer {
    width: calc(100% - 20px);
  }

  .hero {
    padding-top: 32px;
  }

  .hero-content,
  .role-switcher,
  .split-section,
  .collections-section,
  .request-section,
  .admin-section,
  .security-section,
  .faq-section {
    padding: 24px;
    border-radius: 26px;
  }

  .quick-grid,
  .scenario-grid,
  .collections-grid,
  .rules-grid,
  .checklist,
  .trust-row {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .top-button {
    width: 100%;
  }

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

  .footer {
    flex-direction: column;
  }
}
