/* ==========================================================================
   SI Mail — Secure Communications  ·  landing page styles
   Self-contained: no fonts, images or scripts are fetched from anywhere else.
   ========================================================================== */
:root {
  --bg: #04070d;
  --bg-2: #070c15;
  --bg-3: #0a1220;
  --line: rgba(148, 178, 214, .14);
  --line-2: rgba(148, 178, 214, .22);
  --text: #eef4fb;
  --text-2: #b7c5d8;
  --text-3: #8b9bb1;
  --cyan: #38ddf7;
  --blue: #4b8dff;
  --violet: #a98bfa;
  --radius: 18px;
  --shell: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 clamp(1rem, .35vw + .92rem, 1.06rem)/1.65 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100% }
a { color: var(--cyan); text-decoration: none }
a:hover { text-decoration: underline; text-underline-offset: 3px }
code { font-family: var(--mono); font-size: .9em; color: var(--text); background: rgba(255,255,255,.06); padding: .1em .38em; border-radius: 5px }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.4rem) }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0 }
.skip-link {
  position: absolute; left: 50%; translate: -50% -140%; z-index: 60;
  background: var(--cyan); color: #04121a; font-weight: 600;
  padding: .6rem 1rem; border-radius: 0 0 10px 10px; transition: translate .25s var(--ease);
}
.skip-link:focus { translate: -50% 0 }

/* ---------------------------------------------------------------- ambient */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden }
.ambient .grid {
  position: absolute; inset: -10%;
  background-image:
    linear-gradient(to right, rgba(120, 170, 220, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(120, 170, 220, .07) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  animation: drift 40s linear infinite;
}
@keyframes drift { to { background-position: 68px 68px, 68px 68px } }
.ambient .glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5 }
.glow-a { width: 52vw; height: 52vw; left: -12vw; top: -16vw; background: radial-gradient(circle, rgba(56,221,247,.22), transparent 62%) }
.glow-b { width: 46vw; height: 46vw; right: -10vw; top: 6vw; background: radial-gradient(circle, rgba(75,141,255,.20), transparent 62%) }
.glow-c { width: 60vw; height: 40vw; left: 20vw; bottom: -22vw; background: radial-gradient(circle, rgba(169,139,250,.14), transparent 64%) }
.ambient .grain {
  position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(4, 7, 13, .72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none }
.brand:hover { text-decoration: none }
.brand-mark { color: var(--cyan); display: inline-flex }
.brand-text { display: flex; flex-direction: column; line-height: 1.12 }
.brand-text strong { font-size: 1.02rem; font-weight: 650; letter-spacing: -.01em }
.brand-text span { font-family: var(--mono); font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3) }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem) }
.nav-list { display: flex; gap: clamp(.9rem, 2vw, 1.6rem); list-style: none; margin: 0; padding: 0 }
.nav-list a { color: var(--text-2); font-size: .95rem; padding: .35rem 0 }
.nav-list a:hover { color: var(--text); text-decoration: none }
.nav-toggle { display: none; width: 44px; height: 40px; border: 1px solid var(--line-2); border-radius: 11px; background: transparent; cursor: pointer; padding: 10px 11px; gap: 5px; flex-direction: column; justify-content: center }
.nav-toggle span { display: block; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease) }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg) }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0 }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg) }

/* ---------------------------------------------------------------- buttons */
.btn {
  --pad: .8rem 1.35rem;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: var(--pad); border-radius: 12px;
  font-size: .96rem; font-weight: 550; letter-spacing: -.005em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px) }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #04121a;
  box-shadow: 0 10px 30px -12px rgba(56, 221, 247, .65);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(56, 221, 247, .8) }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.03) }
.btn-ghost:hover { border-color: rgba(56,221,247,.5); background: rgba(56,221,247,.07) }
.btn svg { transition: transform .3s var(--ease) }
.btn:hover svg { transform: translateX(3px) }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; z-index: 1; padding: clamp(3.4rem, 8vw, 6.6rem) 0 clamp(2.6rem, 5vw, 4.2rem); overflow: hidden }
.field { position: absolute; inset: 0; z-index: 0; opacity: .75 }
.field canvas { width: 100%; height: 100% }
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(90% 70% at 22% 18%, rgba(4,7,13,.35), transparent 70%),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 900px }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 1.2rem;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(56,221,247,.9) }
.hero-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.5rem, 7.4vw, 5.1rem);
  line-height: .98; font-weight: 640; letter-spacing: -.035em;
}
.grad {
  background: linear-gradient(102deg, var(--cyan) 6%, var(--blue) 52%, var(--violet) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 26px rgba(56,221,247,.24));
}
.hero-lede { max-width: 56ch; color: var(--text-2); font-size: clamp(1.02rem, 1.4vw, 1.16rem); margin: 0 0 2rem }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: clamp(2.2rem, 4vw, 3.2rem) }
.hero-facts {
  display: grid; gap: 1px; margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--line); overflow: hidden;
}
.hero-facts > div { background: rgba(8, 14, 24, .72); padding: 1.05rem 1.2rem }
.hero-facts dt { font-family: var(--mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-bottom: .35rem }
.hero-facts dd { margin: 0; font-size: .98rem; color: var(--text) }

/* ---------------------------------------------------------------- sections */
.section { position: relative; z-index: 1; padding: clamp(3rem, 6vw, 5rem) 0 }
.section-alt { padding-top: 0 }
.section-head { max-width: 62ch; margin-bottom: clamp(1.8rem, 3.4vw, 2.8rem) }
.section-idx { display: flex; align-items: center; gap: .7rem; font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); margin: 0 0 .9rem }
.section-idx span { color: var(--cyan) }
.section-title { margin: 0 0 .8rem; font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 620; letter-spacing: -.025em }
.section-lede { margin: 0; color: var(--text-2) }

.cards { display: grid; gap: clamp(.9rem, 1.8vw, 1.3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)) }
.card {
  position: relative; padding: clamp(1.25rem, 2.4vw, 1.7rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,.012) 55%, rgba(255,255,255,.006));
  transition: transform .45s var(--ease), border-color .45s var(--ease), background .45s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(56,221,247,.4); background: linear-gradient(165deg, rgba(56,221,247,.07), rgba(255,255,255,.012) 60%) }
.card-icon { display: inline-flex; color: var(--cyan); margin-bottom: 1rem }
.card-title { margin: 0 0 .5rem; font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em }
.card-copy { margin: 0; color: var(--text-2); font-size: .96rem }

.panel {
  display: grid; gap: clamp(1.4rem, 3vw, 2.6rem);
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  padding: clamp(1.6rem, 3.4vw, 2.6rem);
  border: 1px solid var(--line-2); border-radius: 22px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(56,221,247,.09), transparent 55%),
    linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
}
.panel-title { margin: 0 0 .8rem; font-size: clamp(1.3rem, 2.6vw, 1.85rem); font-weight: 620; letter-spacing: -.02em }
.panel-copy p { margin: 0 0 .9rem; color: var(--text-2) }
.panel-note { color: var(--text-3) !important; font-size: .94rem }
.panel-actions { display: grid; gap: .7rem; align-content: center }
.panel-actions .btn { justify-content: center }

/* ---------------------------------------------------------------- footer */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); background: rgba(5, 9, 16, .72); margin-top: clamp(2rem, 5vw, 4rem) }
.footer-inner { padding: clamp(2.2rem, 4.4vw, 3.2rem) 0 clamp(1.6rem, 3vw, 2rem); display: grid; gap: clamp(1.6rem, 3vw, 2.4rem) }
.footer-brand { display: flex; align-items: center; gap: .8rem }
.footer-wordmark { margin: 0; font-weight: 600; letter-spacing: -.01em }
.footer-tag { margin: .15rem 0 0; font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3) }
.footer-nav { display: grid; gap: clamp(1.4rem, 3vw, 2.6rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) }
.footer-head { margin: 0 0 .7rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3) }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem }
.footer-nav a { color: var(--text-2); font-size: .94rem }
.footer-nav a:hover { color: var(--cyan); text-decoration: none }
.footer-note { margin: 0; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--text-3); font-size: .88rem }
.footer-note span { display: block; margin-top: .3rem }

/* ---------------------------------------------------------------- reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease) }
[data-reveal].is-in { opacity: 1; transform: none }
[data-hero] { opacity: 0; transform: translateY(12px); animation: heroIn .85s var(--ease) forwards }
[data-hero="1"] { animation-delay: .05s }
[data-hero="2"] { animation-delay: .16s }
[data-hero="3"] { animation-delay: .28s }
[data-hero="4"] { animation-delay: .4s }
[data-hero="5"] { animation-delay: .52s }
@keyframes heroIn { to { opacity: 1; transform: none } }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .nav-toggle { display: flex }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem clamp(1.1rem, 4vw, 2.4rem) 1.4rem;
    background: rgba(5, 9, 16, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto }
  .nav-list { flex-direction: column; gap: .2rem }
  .nav-list a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line) }
  .nav-cta { margin-top: 1rem }
  .nav-cta .btn { width: 100%; justify-content: center }
  .panel { grid-template-columns: 1fr }
}
@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; justify-content: center }
  .hero-facts > div { padding: .9rem 1rem }
}

/* ---------------------------------------------------------------- a11y */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .ambient .grid { animation: none }
  [data-reveal], [data-hero] { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important }
  .btn, .card { transition: none !important }
  .field { display: none }
}
@media (prefers-contrast: more) {
  :root { --text-2: #d6e2f2; --text-3: #b9c7db; --line: rgba(180, 205, 235, .3); --line-2: rgba(180, 205, 235, .45) }
}
@media print {
  .ambient, .field, .nav-toggle, .hero-veil { display: none }
  body { background: #fff; color: #111 }
}
