:root {
  --navy: #071633;
  --blue: #182d73;
  --orange: #f26a00;
  --ink: #101a2f;
  --muted: #66738b;
  --line: rgba(15, 36, 78, .12);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Manrope", var(--font);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--ink); font-family: var(--font); background: #f7f9fd; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: .44;
  background-image: linear-gradient(rgba(14,36,78,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(14,36,78,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}

.landing-page {
  height: 100dvh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(135deg, #fbfcff 0%, #f8f9fc 52%, #edf2ff 100%);
}
.ambient { position: fixed; z-index: -2; width: 520px; height: 520px; border-radius: 50%; filter: blur(100px); pointer-events: none; }
.ambient-one { top: -280px; right: -130px; background: rgba(35,81,177,.16); }
.ambient-two { bottom: -350px; left: -380px; background: rgba(242,106,0,.12); }

.site-header {
  width: min(1220px, calc(100% - 48px));
  height: clamp(68px, 8.4vh, 82px);
  flex: 0 0 auto;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--blue); font: 700 1.1rem/1 var(--display); letter-spacing: .055em; text-decoration: none; }
.brand span { color: var(--orange); text-transform: lowercase; }
.brand strong { color: var(--orange); font-weight: 700; }
nav { display: flex; gap: 32px; }
nav a { color: #526078; font-size: .82rem; font-weight: 600; text-decoration: none; transition: color .2s ease; }
nav a:hover { color: var(--orange); }
.header-action, .portal-back {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(10,31,67,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.74);
}
.header-action svg, .button svg, .portal-back svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.landing-main { width: min(1220px, calc(100% - 48px)); min-height: 0; flex: 1 1 auto; margin: 0 auto; }
.hero {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(44px, 7vw, 96px);
  align-items: center;
  padding: clamp(28px, 6vh, 66px) 0;
}
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow span { width: 26px; height: 2px; background: var(--orange); }
h1 { margin: clamp(15px,2.3vh,22px) 0 clamp(16px,2.4vh,24px); color: var(--navy); font: 700 clamp(2.7rem,5.05vw,4.75rem)/1.03 var(--display); letter-spacing: -.045em; }
h1 em { color: var(--orange); font-style: normal; }
.hero-copy > p { max-width: 560px; margin: 0; color: var(--muted); font-size: clamp(.88rem,1.15vw,1.02rem); line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; margin-top: clamp(22px,3.4vh,34px); }
.button { min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; font-size: .82rem; font-weight: 700; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fff; background: var(--orange); box-shadow: 0 12px 24px rgba(242,106,0,.2); }
.button.secondary { color: var(--navy); border: 1px solid var(--line); background: rgba(255,255,255,.78); }
.trust-list { margin: clamp(25px,4vh,40px) 0 0; padding: clamp(16px,2.3vh,22px) 0 0; display: flex; gap: 24px; list-style: none; border-top: 1px solid var(--line); }
.trust-list li { color: #66738b; font-size: .72rem; font-weight: 600; white-space: nowrap; }
.trust-list span { margin-right: 6px; color: var(--orange); font: 700 .66rem/1 var(--display); }

.identity-card { position: relative; height: min(54vh,455px); min-height: 300px; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(18,42,92,.12); border-radius: 28px; background: rgba(255,255,255,.77); box-shadow: 0 32px 80px rgba(21,46,94,.13); backdrop-filter: blur(18px); }
.identity-card::before { content: ""; position: absolute; inset: 20px; border: 1px solid rgba(24,45,115,.06); border-radius: 20px; }
.identity-card img { position: relative; z-index: 1; width: 90%; max-width: 560px; mix-blend-mode: multiply; filter: contrast(1.05) saturate(1.06); }
.identity-glow { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgba(242,106,0,.12), transparent 68%); }
.identity-caption { position: absolute; z-index: 2; left: 30px; right: 30px; bottom: 24px; display: flex; justify-content: space-between; color: #6a7890; font-size: .68rem; font-weight: 600; letter-spacing: .04em; }
.live, .portal-status { display: inline-flex; align-items: center; gap: 7px; color: #2c7a58; }
.live i, .portal-status i, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #2bc17e; box-shadow: 0 0 0 5px rgba(43,193,126,.1); }
.signal { position: absolute; display: grid; gap: 5px; }
.signal i { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); opacity: .55; }
.signal-one { top: 35px; right: 42px; grid-template-columns: repeat(3,1fr); }
.signal-two { left: 40px; bottom: 70px; grid-template-columns: repeat(2,1fr); }

.webmail-page { height: 100dvh; min-height: 560px; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(135deg,#f8faff 0%,#f2f5fb 100%); }
.portal-header { width: min(1500px,calc(100% - 48px)); flex: 0 0 auto; margin: 0 auto; padding: clamp(18px,3vh,30px) 0 16px; display: grid; grid-template-columns: 1fr auto; gap: 18px 28px; align-items: center; }
.portal-heading { grid-column: 1 / -1; }
.portal-heading h1 { margin: 0; font-size: clamp(1.9rem,3vw,3rem); }
.portal-heading p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.portal-tools { display: flex; align-items: center; gap: 20px; }
.portal-status { font-size: .76rem; font-weight: 600; }
.portal-back { padding: 10px 14px; background: #fff; }
.webmail-main { width: min(1500px,calc(100% - 48px)); min-height: 0; flex: 1 1 auto; margin: 0 auto; padding-bottom: 22px; }
.webmail-shell { height: 100%; overflow: hidden; border: 1px solid rgba(16,35,72,.12); border-radius: 20px; background: #fff; box-shadow: 0 22px 60px rgba(21,46,94,.12); }
.browser-bar { height: 50px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 18px; background: #f4f6fa; border-bottom: 1px solid #e3e8f1; }
.dots { display: flex; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #d6dce7; }
.dots i:first-child { background: #ff896e; }
.dots i:nth-child(2) { background: #ffc45a; }
.dots i:last-child { background: #62d8a1; }
.address { min-width: 310px; padding: 8px 16px; border-radius: 8px; color: #6a7890; background: #fff; font-size: .68rem; text-align: center; box-shadow: inset 0 0 0 1px #e5e9f0; }
.address i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #52d49a; }
.browser-bar .status-dot { justify-self: end; }
.webmail-shell iframe { display: block; width: 100%; height: calc(100% - 50px); border: 0; background: #eef2f7; }
.fallback { padding: 20px; color: #333; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr 1fr; gap: 26px; }
  .trust-list { gap: 12px; flex-wrap: wrap; }
  .identity-card { min-height: 270px; }
}

@media (max-width: 700px) {
  .landing-page, .webmail-page { min-height: 520px; }
  .site-header, .landing-main, .portal-header, .webmail-main { width: min(100% - 28px,1500px); }
  .site-header { height: 64px; }
  .header-action { padding: 9px 11px; font-size: .7rem; }
  .hero { grid-template-columns: 1fr; grid-template-rows: auto minmax(150px,1fr); gap: 18px; padding: 20px 0 16px; }
  .eyebrow { font-size: .62rem; }
  h1 { margin: 12px 0; font-size: clamp(2rem,10.5vw,3rem); }
  .hero-copy > p { font-size: .8rem; line-height: 1.5; }
  .hero-actions { margin-top: 16px; }
  .button { min-height: 42px; padding: 0 14px; font-size: .74rem; }
  .trust-list { display: none; }
  .identity-card { width: min(100%,520px); height: 100%; min-height: 150px; max-height: 32vh; justify-self: center; border-radius: 18px; }
  .identity-card::before { inset: 12px; border-radius: 13px; }
  .identity-card img { width: 74%; }
  .identity-caption { left: 18px; right: 18px; bottom: 12px; font-size: .56rem; }
  .signal { display: none; }
  .portal-header { padding: 14px 0 10px; gap: 10px; }
  .portal-header .brand { font-size: .9rem; }
  .portal-tools { gap: 10px; }
  .portal-status { display: none; }
  .portal-back { padding: 8px 10px; font-size: .7rem; }
  .portal-heading h1 { font-size: 1.55rem; }
  .portal-heading p { font-size: .75rem; }
  .webmail-main { padding-bottom: 12px; }
  .webmail-shell { border-radius: 14px; }
  .browser-bar { height: 42px; grid-template-columns: auto 1fr; gap: 10px; padding: 0 10px; }
  .address { min-width: 0; padding: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .browser-bar .status-dot { display: none; }
  .webmail-shell iframe { height: calc(100% - 42px); }
}

@media (max-height: 690px) and (min-width: 701px) {
  .hero { padding: 22px 0; }
  h1 { font-size: clamp(2.45rem,4.5vw,3.8rem); }
  .hero-actions { margin-top: 20px; }
  .trust-list { margin-top: 22px; padding-top: 14px; }
  .identity-card { height: min(55vh,370px); min-height: 270px; }
  .portal-header { padding-top: 14px; gap: 10px; }
  .portal-heading h1 { font-size: 1.8rem; }
  .portal-heading p { display: none; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
