:root {
  color-scheme: light;
  --night: #02070b;
  --panel: #07151a;
  --panel-soft: #0b2028;
  --text: #f4fbff;
  --muted: #b9d0d8;
  --line: rgba(155, 255, 243, 0.18);
  --cyan: #22d6ff;
  --aqua: #9bfff3;
  --teal: #0ea5b7;
  --violet: #7b6dff;
  --paper: #f4fafb;
  --paper-ink: #102229;
  --paper-muted: #557079;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: Inter, "Avenir Next", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 10px 12px;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 78px;
  margin: 0 auto;
  padding: 12px 16px;
  border: 1px solid rgba(16, 34, 41, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 60px rgba(16, 34, 41, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

.brand-name,
.brand-tagline {
  display: block;
}

.brand-name {
  color: var(--paper-ink);
  font-size: 1.35rem;
  font-weight: 800;
}

.brand-tagline {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: #30464e;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: rgba(14, 165, 183, 0.1);
  color: var(--paper-ink);
  outline: none;
}

.nav-links .nav-action {
  background: var(--teal);
  color: #ffffff;
}

.nav-links .nav-action:hover,
.nav-links .nav-action:focus-visible {
  background: #13b7ca;
}

.account-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--paper-ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.account-profile:hover,
.account-profile:focus-visible {
  background: rgba(14, 165, 183, 0.08);
  outline: none;
}

.account-profile[hidden] {
  display: none !important;
}

.account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--violet));
  background-size: cover;
  background-position: center;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 900;
}

.account-avatar-large {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  font-size: 1.05rem;
}

.hero,
.page-hero {
  position: relative;
  min-height: 86svh;
  padding: 160px 32px 72px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 34%, rgba(34, 214, 255, 0.2), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(123, 109, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #ffffff, #f4fafb 64%, #eaf6f8);
  color: var(--paper-ink);
}

.hero::before,
.page-hero::before,
.contact-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/secracloud-background.svg") center / cover no-repeat;
  filter: invert(1) hue-rotate(145deg) saturate(0.55) brightness(1.16) contrast(0.62);
  opacity: 0.42;
  pointer-events: none;
}

.page-hero {
  min-height: 56svh;
}

.hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 214, 255, 0.8), transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 1480px);
  margin: 0 auto;
}

.hero-inner.compact {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--teal);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 5.4rem;
  line-height: 0.95;
  font-weight: 850;
  color: var(--paper-ink);
}

.page-hero h1 {
  max-width: 920px;
  color: var(--paper-ink);
  font-size: 4rem;
  line-height: 1.05;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 30px;
  color: #30464e;
  font-size: 1.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 148px;
  padding: 0 22px;
  border: 1px solid rgba(16, 34, 41, 0.14);
  border-radius: 8px;
  font-weight: 800;
}

.button-primary {
  border-color: transparent;
  background: var(--teal);
  color: #ffffff;
  box-shadow: 0 16px 40px rgba(14, 165, 183, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #13b7ca;
  outline: none;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--paper-ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(14, 165, 183, 0.32);
  background: rgba(14, 165, 183, 0.1);
  outline: none;
}

.status-band {
  background: var(--paper);
  color: var(--paper-ink);
  padding: 58px 32px 92px;
}

.content-wrap,
.footer-inner {
  width: min(100%, 1480px);
  margin: 0 auto;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 2.35rem;
  line-height: 1.1;
}

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

.signal-card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid #d6e8ec;
  border-radius: 8px;
  background: #ffffff;
}

.signal-card h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.signal-card p {
  margin-bottom: 0;
  color: var(--paper-muted);
}

.plans-band {
  position: relative;
  padding: 88px 32px 96px;
  background:
    radial-gradient(circle at 18% 12%, rgba(34, 214, 255, 0.14), transparent 32%),
    linear-gradient(180deg, #eef8fa, #f8fdfe);
  color: var(--paper-ink);
}

.plans-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 183, 0.34), transparent);
}

.plans-heading p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 14px;
  margin-bottom: 0;
  color: #30464e;
  font-size: 1.08rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
  border: 1px solid #d6e8ec;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(16, 34, 41, 0.08);
}

.plan-card-featured {
  border-color: rgba(14, 165, 183, 0.46);
  box-shadow: 0 28px 80px rgba(14, 165, 183, 0.16);
}

.plan-label {
  margin-bottom: 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-card h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.plan-price {
  margin-bottom: 14px;
  color: var(--paper-ink);
  font-size: 1.9rem;
  font-weight: 900;
}

.plan-price span {
  font-size: 0.95rem;
  font-weight: 850;
}

.plan-price small {
  display: block;
  margin-top: 3px;
  color: var(--paper-muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.plan-copy {
  color: var(--paper-muted);
}

.plan-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 24px;
  padding: 0;
  list-style: none;
  color: #30464e;
}

.plan-list li {
  position: relative;
  padding-left: 22px;
}

.plan-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(14, 165, 183, 0.1);
}

.plan-action {
  width: 100%;
  margin-top: auto;
}

.billing-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: auto;
}

.billing-actions .plan-action {
  min-width: 0;
  margin-top: 0;
}

.plans-note {
  max-width: 920px;
  margin: 22px 0 0;
  color: #557079;
  font-size: 0.94rem;
}

.plans-note strong {
  color: var(--paper-ink);
}

.thank-you-panel {
  max-width: 760px;
  margin-top: 34px;
  padding: 28px;
  border: 1px solid #d6e8ec;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 70px rgba(16, 34, 41, 0.08);
}

.thank-you-panel h2 {
  margin-bottom: 12px;
  font-size: 1.65rem;
}

.thank-you-panel p {
  color: #30464e;
}

.thank-you-steps {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.thank-you-steps li {
  padding: 14px 16px;
  border: 1px solid #d6e8ec;
  border-radius: 10px;
  background: rgba(248, 253, 254, 0.9);
  color: var(--paper-ink);
  font-weight: 750;
}

.contact-band {
  position: relative;
  padding: 104px 32px 96px;
  background:
    radial-gradient(circle at 80% 42%, rgba(34, 214, 255, 0.16), transparent 38%),
    linear-gradient(180deg, #f8fdfe, #eef8fa);
  color: var(--paper-ink);
  overflow: hidden;
}

.contact-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(155, 255, 243, 0.42), transparent);
}

.contact-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.74fr);
  gap: 72px;
  align-items: center;
}

.contact-layout .section-heading {
  margin-bottom: 0;
}

.contact-layout .section-heading p:not(.eyebrow) {
  max-width: 620px;
  margin-bottom: 0;
  color: #30464e;
  font-size: 1.14rem;
}

.contact-panel {
  padding: 34px;
  border: 1px solid #d6e8ec;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 28px 70px rgba(16, 34, 41, 0.08);
  backdrop-filter: blur(16px);
}

.contact-label {
  margin-bottom: 12px;
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-email {
  display: inline-block;
  padding: 12px 0;
  color: var(--paper-ink);
  font-size: 1.2rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--aqua);
  outline: none;
}

.contact-meta {
  margin: 0;
  color: var(--paper-muted);
  font-weight: 700;
}

.contact-note {
  margin: 10px 0 0;
  color: var(--paper-muted);
}

.contact-divider {
  width: 100%;
  height: 1px;
  margin: 24px 0;
  background: linear-gradient(90deg, rgba(155, 255, 243, 0.34), transparent);
}

.policy-page {
  background: var(--paper);
  color: var(--paper-ink);
}

.policy-main {
  padding: 64px 24px 76px;
}

.policy-content {
  width: min(100%, 900px);
  margin: 0 auto;
}

.policy-intro {
  color: #30464e;
  font-size: 1.18rem;
}

.policy-section {
  padding: 30px 0;
  border-top: 1px solid #d3e4e8;
}

.policy-section h2 {
  margin-bottom: 14px;
  font-size: 1.65rem;
  line-height: 1.2;
}

.policy-section p {
  color: #30464e;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-section a {
  color: #006e7c;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer {
  background: #eaf4f6;
  color: var(--paper-ink);
  padding: 28px 24px;
  border-top: 1px solid #d3e4e8;
}

.light-footer {
  background: #eaf4f6;
  color: var(--paper-ink);
  border-top: 1px solid #d3e4e8;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-brand,
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  font-weight: 800;
}

.footer-links a {
  color: inherit;
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--teal);
  outline: none;
}

.footer-legal {
  width: min(100%, 1480px);
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 34, 41, 0.1);
  color: rgba(16, 34, 41, 0.56);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-align: center;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 34, 41, 0.28);
  backdrop-filter: blur(10px);
}

.profile-modal[hidden] {
  display: none !important;
}

.profile-card {
  width: min(100%, 520px);
  padding: 28px;
  border: 1px solid #d6e8ec;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 90px rgba(16, 34, 41, 0.16);
}

.profile-card h2 {
  margin-bottom: 8px;
  font-size: 1.7rem;
}

.profile-card p {
  color: var(--paper-muted);
}

.profile-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  padding: 14px;
  border: 1px solid #d6e8ec;
  border-radius: 12px;
  background: #f8fdfe;
}

.profile-preview strong,
.profile-preview small {
  display: block;
}

.profile-preview small {
  color: var(--paper-muted);
  font-weight: 700;
}

.profile-card label {
  display: block;
  margin: 14px 0 6px;
  color: var(--paper-ink);
  font-weight: 850;
}

.profile-card input[type="text"],
.profile-card input[type="file"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c8dde2;
  border-radius: 10px;
  background: #ffffff;
  color: var(--paper-ink);
  font: inherit;
}

.profile-card input[type="file"] {
  padding: 9px 12px;
}

.profile-status {
  margin: 14px 0 0;
  color: var(--teal);
  font-weight: 800;
}

.profile-status.error {
  color: #92342d;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.light-footer .footer-legal {
  border-top-color: rgba(16, 34, 41, 0.1);
  color: rgba(16, 34, 41, 0.56);
}

.not-found .hero {
  min-height: 100svh;
}

@media (max-width: 820px) {
  .site-header {
    padding: 14px;
  }

  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .page-hero {
    min-height: 84svh;
    padding: 190px 18px 54px;
  }

  .page-hero {
    min-height: 62svh;
  }

  h1,
  .page-hero h1 {
    font-size: 3.05rem;
    line-height: 1;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .status-band,
  .plans-band,
  .policy-main {
    padding-right: 18px;
    padding-left: 18px;
  }

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

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

  .contact-band {
    padding-top: 76px;
    padding-bottom: 78px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  .brand img {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .brand-name {
    font-size: 1.12rem;
  }

  .brand-tagline {
    font-size: 0.68rem;
  }

  .nav-links a {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.86rem;
  }

  h1,
  .page-hero h1 {
    font-size: 2.45rem;
  }

  .button {
    width: 100%;
  }

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

  .plan-card {
    padding: 24px;
  }

  .billing-actions {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    padding: 26px;
  }

  .contact-email {
    font-size: 1rem;
  }
}
