/* ============================================================
   Secure Capture — Web design system
   Shared by the marketing site and the cloud web app.
   Deep graphite vault · liquid glass · brand blue + emerald seal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* —— Vault graphite —— */
  --bg-0: #07080a;
  --bg-1: #0c0d11;
  --bg-2: #121319;
  --g-900: #0d0e12;
  --g-800: #14161c;
  --g-700: #1b1e26;
  --g-600: #262a34;
  --g-500: #353a47;

  /* —— Accents —— */
  --blue:        #2f80ff;
  --blue-bright: #5b9cff;
  --blue-deep:   #1a5bb5;
  --emerald:     #12c98a;
  --emerald-br:  #3ee0a6;
  --violet:      #7c5cff;
  --record:      #e23b40;
  --amber:       #f5a623;

  /* —— Text —— */
  --t1: #f4f6fa;
  --t2: rgba(238,242,250,0.66);
  --t3: rgba(238,242,250,0.42);
  --t4: rgba(238,242,250,0.26);

  /* —— Glass —— */
  --glass:        rgba(255,255,255,0.055);
  --glass-2:      rgba(255,255,255,0.085);
  --glass-hi:     rgba(255,255,255,0.13);
  --hairline:     rgba(255,255,255,0.10);
  --hairline-2:   rgba(255,255,255,0.16);
  --edge-light:   inset 0 1px 0 rgba(255,255,255,0.16);
  --edge-light-2: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -1px 0 rgba(0,0,0,0.30);

  /* —— Shadows —— */
  --sh-card:  0 24px 48px -20px rgba(0,0,0,0.72);
  --sh-soft:  0 8px 22px -10px rgba(0,0,0,0.6);
  --sh-pop:   0 30px 70px -24px rgba(0,0,0,0.85);
  --glow-blue: 0 0 0 1px rgba(47,128,255,0.35), 0 12px 40px -8px rgba(47,128,255,0.55);
  --glow-em:   0 0 0 1px rgba(18,201,138,0.4), 0 14px 46px -10px rgba(18,201,138,0.55);

  /* —— Radii —— */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* —— Type —— */
  --font: "Inter", -apple-system, "SF Pro Text", system-ui, sans-serif;
  --font-round: "Inter", ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* —— Motion —— */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-round); letter-spacing: -0.02em; line-height: 1.08; font-weight: 800; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(47,128,255,0.32); color: #fff; }

.mono { font-family: var(--mono); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--t2); }

/* ============================================================
   Liquid glass surfaces
   ============================================================ */
.glass {
  background: var(--glass);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  border: 1px solid var(--hairline);
  box-shadow: var(--edge-light), var(--sh-card);
}
.glass-2 {
  background: var(--glass-2);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid var(--hairline);
  box-shadow: var(--edge-light);
}
.glass-thin {
  background: rgba(20,22,28,0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--hairline);
}

/* ============================================================
   Atmosphere — drifting glow orbs behind sections
   ============================================================ */
.atmosphere { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.03; mix-blend-mode: overlay;
}

@keyframes float-orb { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(26px,-30px) scale(1.1); } }
@keyframes logo-glow { 0%,100% { filter: drop-shadow(0 8px 16px rgba(47,128,255,.35)); } 50% { filter: drop-shadow(0 0 14px rgba(47,128,255,.5)) drop-shadow(0 12px 26px rgba(47,128,255,.45)); } }
@keyframes logo-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.2); opacity: 0; } }

/* ============================================================
   Buttons & chips
   ============================================================ */
.btn {
  font-family: var(--font); font-weight: 600; font-size: 16px;
  border: none; border-radius: var(--r-md); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  color: #fff; padding: 0 22px; height: 52px; white-space: nowrap;
  transition: transform .18s var(--ease), filter .2s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease);
  user-select: none;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(180deg, var(--blue-bright), var(--blue)); box-shadow: var(--glow-blue); }
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(47,128,255,0.45), 0 18px 50px -8px rgba(47,128,255,0.7); }
.btn-em { background: linear-gradient(180deg, var(--emerald-br), var(--emerald)); box-shadow: var(--glow-em); color: #04130d; }
.btn-em:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--glass-2); border: 1px solid var(--hairline); box-shadow: var(--edge-light); color: var(--t1); }
.btn-ghost:hover { background: var(--glass-hi); border-color: var(--hairline-2); }
.btn-dark { background: rgba(0,0,0,0.45); border: 1px solid var(--hairline); color: var(--t1); }
.btn-lg { height: 58px; font-size: 17px; padding: 0 28px; border-radius: var(--r-lg); }
.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--t2);
  padding: 8px 14px; border-radius: var(--r-pill);
  background: rgba(8,9,12,0.5); border: 1px solid var(--hairline);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.chip svg { width: 15px; height: 15px; }
.chip.accent { color: var(--blue-bright); border-color: rgba(47,128,255,0.4); }

/* status pill */
.spill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; white-space: nowrap;
  letter-spacing: .2px; padding: 6px 11px; border-radius: var(--r-pill); }
.spill svg { width: 13px; height: 13px; }
.spill.sealed { color: var(--emerald-br); background: rgba(18,201,138,0.13); border: 1px solid rgba(18,201,138,0.34); }
.spill.cloud  { color: var(--blue-bright); background: rgba(47,128,255,0.13); border: 1px solid rgba(47,128,255,0.34); }
.spill.up     { color: var(--amber); background: rgba(245,166,35,0.13); border: 1px solid rgba(245,166,35,0.32); }
.spill.fail   { color: #ff7a7e; background: rgba(226,59,64,0.14); border: 1px solid rgba(226,59,64,0.34); }

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-bright); }

/* ============================================================
   Wordmark
   ============================================================ */
.wordmark { display: inline-flex; align-items: center; gap: 11px; }
.wordmark img { width: 30px; height: 30px; object-fit: contain; flex: none; }
.wordmark .wm-text { font-family: var(--font-round); font-weight: 800; font-size: 21px; letter-spacing: -.03em; line-height: 1; }
.wordmark .wm-text .b { color: var(--blue-bright); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Forms
   ============================================================ */
.field { display: block; }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--t3); margin: 0 0 8px 4px; }
.input, .textarea, .select {
  width: 100%; border-radius: var(--r-md); padding: 0 16px;
  background: rgba(255,255,255,0.045); border: 1px solid var(--hairline);
  color: var(--t1); font-size: 16px; font-family: var(--font);
  box-shadow: var(--edge-light); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input, .select { height: 54px; }
.textarea { padding: 15px 16px; min-height: 130px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--t4); }
.input:focus, .textarea:focus, .select:focus { border-color: rgba(47,128,255,0.6); box-shadow: var(--edge-light), 0 0 0 4px rgba(47,128,255,0.16); }
.input-wrap { position: relative; }
.input-wrap > [data-ic] { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--t3); pointer-events: none; display: inline-flex; align-items: center; justify-content: center; }
.input-wrap > [data-ic] > svg { width: 100%; height: 100%; }
.input-wrap .input { padding-left: 46px; }

/* ============================================================
   Section scaffold
   ============================================================ */
section { position: relative; }
.sec-pad { padding: clamp(72px, 11vw, 140px) 0; }
.sec-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.sec-head .eyebrow { display: inline-block; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(30px, 5.2vw, 50px); margin-bottom: 18px; text-wrap: balance; }
.sec-head p { font-size: clamp(16px, 2vw, 19px); color: var(--t2); max-width: 600px; margin: 0 auto; text-wrap: pretty; }

.scrollbar-none { scrollbar-width: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }

/* ============================================================
   Shared mobile responsive fixes
   ============================================================ */
@media (max-width: 760px) {
  /* Tighter inputs on mobile */
  .input, .select { height: 48px; font-size: 15px; }
  .textarea { min-height: 110px; font-size: 15px; }
  .btn { height: 48px; font-size: 15px; padding: 0 18px; }
  .btn-lg { height: 54px; font-size: 16px; padding: 0 24px; }

  /* Mobile menu safe area */
  .mobile-menu { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 520px) {
  .input, .select { height: 46px; font-size: 15px; padding: 0 14px; border-radius: var(--r-sm); }
  .textarea { padding: 13px 14px; border-radius: var(--r-sm); }
  .input-wrap .input { padding-left: 42px; }
  .input-wrap > [data-ic] { left: 14px; width: 16px; height: 16px; }
  .field label { font-size: 11px; margin-bottom: 6px; }
  .select { padding: 0 14px; }
  .chip { font-size: 12px; padding: 6px 11px; gap: 5px; }
  .chip svg { width: 13px; height: 13px; }
}

@media (max-width: 380px) {
  .btn { height: 44px; font-size: 14px; padding: 0 14px; gap: 7px; border-radius: var(--r-sm); }
  .btn svg { width: 16px; height: 16px; }
  .btn-lg { height: 48px; font-size: 15px; }
  .wordmark img { width: 26px; }
  .wordmark .wm-text { font-size: 18px; }
}
