:root {
  --bg: #07111f;
  --bg-2: #0b1728;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.1);
  --surface-3: rgba(255, 255, 255, 0.14);
  --text: #f6f8fb;
  --muted: #aab8cc;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #4fd1c5;
  --accent-2: #7c9cff;
  --success: #66d895;
  --warning: #f4c95d;
  --danger: #ff7b7b;
  --radius: 24px;
  --radius-lg: 34px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(79, 209, 197, 0.22), transparent 32%),
    radial-gradient(circle at 90% 2%, rgba(124, 156, 255, 0.2), transparent 28%),
    linear-gradient(180deg, #07111f 0%, #0a1424 48%, #08101d 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button {
  border: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.78);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07111f;
  font-weight: 950;
  letter-spacing: -0.06em;
  box-shadow: 0 0 32px rgba(79, 209, 197, 0.32);
}

.brand-text {
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.brand-text small,
.modal-brand small {
  display: block;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  font-size: 0.76rem;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  transition: 0.2s ease;
  white-space: nowrap;
}

.btn-large {
  min-height: 52px;
  padding-inline: 22px;
}

.btn-primary {
  border: none;
  color: #06111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 40px rgba(79, 209, 197, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(79, 209, 197, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.055);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 999px;
}

.hero {
  padding: 92px 0 76px;
}

.hero-grid,
.split,
.situation-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.84rem;
  font-weight: 850;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 8px rgba(102, 216, 149, 0.14);
}

h1,
h2 {
  letter-spacing: -0.07em;
  line-height: 0.96;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  margin-bottom: 18px;
}

.hero-subtitle,
.section-heading p,
.appendix-card p,
.cta-card p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-subtitle {
  max-width: 620px;
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.hero-actions.centered {
  justify-content: center;
  margin-bottom: 0;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 650px;
}

.trust-row div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.trust-row strong {
  display: block;
  font-size: 1.3rem;
  line-height: 1.1;
}

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

.control-preview,
.large-screen-card,
.statement-card,
.appendix-card,
.cta-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.control-preview {
  padding: 18px;
}

.preview-header,
.panel-title,
.footer-grid,
.screen-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-header {
  padding: 7px 4px 17px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.preview-header strong,
.panel-title strong {
  display: block;
}

.preview-header span,
.panel-title span {
  color: var(--muted);
  font-size: 0.82rem;
}

.live-badge {
  padding: 7px 10px;
  border: 1px solid rgba(102, 216, 149, 0.28);
  border-radius: 999px;
  color: var(--success) !important;
  background: rgba(102, 216, 149, 0.12);
  font-weight: 900;
}

.mini-dashboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  margin-bottom: 14px;
}

.mini-card,
.preview-panel,
.screen-metric,
.screen-feed,
.module-card,
.profile-card,
.security-grid div {
  border: 1px solid var(--line);
  background: rgba(8, 20, 36, 0.74);
  border-radius: 22px;
}

.mini-card {
  padding: 16px;
}

.mini-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin: 6px 0;
}

.mini-card small,
.mini-label {
  color: var(--muted);
  font-size: 0.8rem;
}

.mini-card.warning strong {
  color: var(--warning);
}

.mini-card.danger strong {
  color: var(--danger);
}

.mini-card.accent strong {
  color: var(--accent);
}

.preview-panel {
  padding: 16px;
}

.panel-title {
  margin-bottom: 14px;
}

.signal-list {
  display: grid;
  gap: 10px;
}

.signal-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.signal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.signal-dot.success {
  background: var(--success);
}

.signal-dot.warning {
  background: var(--warning);
}

.signal-dot.danger {
  background: var(--danger);
}

.signal-item strong {
  display: block;
  font-size: 0.9rem;
}

.signal-item small {
  color: var(--muted);
  font-size: 0.76rem;
}

.signal-item em {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.075);
  font-style: normal;
  font-size: 0.7rem;
}

section {
  padding: 78px 0;
}

.section-heading {
  max-width: 780px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
  margin-bottom: 36px;
}

.statement-card {
  padding: 34px;
}

.statement-card p {
  font-size: 1.55rem;
  line-height: 1.28;
  letter-spacing: -0.045em;
}

.flow-map {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}

.flow-node {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.flow-node.highlight {
  background:
    linear-gradient(135deg, rgba(79, 209, 197, 0.16), rgba(124, 156, 255, 0.1)),
    var(--surface);
  border-color: rgba(79, 209, 197, 0.32);
}

.flow-node span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06111f;
  font-weight: 950;
}

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

.flow-node p {
  color: var(--muted);
  font-size: 0.94rem;
}

.flow-line {
  width: 26px;
  align-self: center;
  height: 1px;
  background: var(--line);
}

.situation-grid {
  grid-template-columns: 0.88fr 1.12fr;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.check-list div {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--muted);
  background: var(--surface);
}

.check-list div::before {
  content: "✓";
  color: var(--accent);
  margin-right: 10px;
  font-weight: 900;
}

.large-screen-card {
  padding: 18px;
}

.screen-toolbar {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  justify-content: flex-start;
}

.screen-toolbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--danger);
}

.screen-toolbar span:nth-child(2) {
  background: var(--warning);
}

.screen-toolbar span:nth-child(3) {
  background: var(--success);
  margin-right: 8px;
}

.screen-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.screen-metric,
.screen-feed {
  padding: 18px;
}

.screen-metric strong {
  display: block;
  color: var(--accent);
  font-size: 2.5rem;
  line-height: 1;
  margin: 8px 0;
}

.screen-metric small,
.screen-metric span,
.screen-feed p {
  color: var(--muted);
}

.screen-feed {
  min-height: 190px;
}

.screen-feed strong {
  display: block;
  margin-bottom: 12px;
}

.screen-feed p {
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

.module-grid,
.profile-grid {
  display: grid;
  gap: 18px;
}

.module-grid {
  grid-template-columns: repeat(3, 1fr);
}

.module-card {
  min-height: 250px;
  padding: 24px;
  transition: 0.2s ease;
}

.module-card:hover,
.profile-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.085);
}

.module-card.primary,
.profile-card.featured {
  background:
    linear-gradient(135deg, rgba(79, 209, 197, 0.15), rgba(124, 156, 255, 0.1)),
    rgba(8, 20, 36, 0.74);
  border-color: rgba(79, 209, 197, 0.32);
}

.module-icon,
.profile-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: #06111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-weight: 950;
}

.module-card h3,
.profile-card h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.module-card p,
.profile-card p,
.profile-card li,
.sso-note,
.security-grid span {
  color: var(--muted);
}

.profile-grid {
  grid-template-columns: repeat(4, 1fr);
}

.profile-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 20, 36, 0.74);
  transition: 0.2s ease;
}

.profile-card ul {
  padding-left: 18px;
  margin: 16px 0 20px;
}

.profile-card li {
  margin-bottom: 7px;
  font-size: 0.94rem;
}

.profile-button {
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  cursor: pointer;
  font-weight: 850;
  transition: 0.2s ease;
}

.profile-button:hover {
  background: var(--surface-3);
}

.sso-note {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  font-size: 0.93rem;
}

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

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

.security-grid div {
  padding: 20px;
}

.security-grid strong {
  display: block;
  margin-bottom: 6px;
}

.appendix-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
}

.appendix-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.appendix-tags span {
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
}

.final-cta {
  padding-top: 40px;
}

.cta-card {
  padding: 80px 24px;
  text-align: center;
}

.cta-card p {
  max-width: 760px;
  margin: 0 auto 28px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-grid {
  flex-wrap: wrap;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
  place-items: center;
  padding: 18px;
  background: rgba(3, 8, 15, 0.72);
  backdrop-filter: blur(12px);
}

.modal-backdrop.is-open {
  display: grid;
}

.login-modal {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(79, 209, 197, 0.18), transparent 34%),
    #0b1728;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 1.4rem;
}

.modal-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
  padding-right: 42px;
}

.google-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 16px;
  cursor: pointer;
  color: #172033;
  background: #ffffff;
  font-weight: 850;
}

.google-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #ffffff;
  background: #4285f4;
  font-weight: 950;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.modal-profiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.modal-profiles button {
  text-align: left;
  padding: 15px;
  border-radius: 17px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: 0.2s ease;
}

.modal-profiles button:hover {
  background: var(--surface-2);
}

.modal-profiles strong,
.modal-profiles span {
  display: block;
}

.modal-profiles span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.modal-footnote {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.84rem;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  max-width: min(420px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--text);
  background: #12223a;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: 0.24s ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1080px) {
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-map {
    grid-template-columns: 1fr;
  }

  .flow-line {
    display: none;
  }
}

@media (max-width: 940px) {
  .hero-grid,
  .split,
  .situation-grid,
  .appendix-card {
    grid-template-columns: 1fr;
  }

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

  .nav-login {
    display: none;
  }

  .mobile-menu-button {
    display: block;
  }

  .nav-links {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 86px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(7, 17, 31, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: var(--surface);
  }
}

@media (max-width: 680px) {
  .hero {
    padding: 56px 0;
  }

  .trust-row,
  .mini-dashboard,
  .screen-layout,
  .module-grid,
  .profile-grid,
  .security-grid,
  .modal-profiles {
    grid-template-columns: 1fr;
  }

  .statement-card p {
    font-size: 1.25rem;
  }

  .control-preview,
  .large-screen-card,
  .statement-card,
  .appendix-card,
  .cta-card,
  .login-modal {
    border-radius: 24px;
  }

  .cta-card {
    padding: 54px 18px;
  }

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

  .section-heading.center {
    text-align: left;
  }
}
