/* ============================================================
   Secure It Fresh — design tokens & base styles
   LIGHT theme is the default (:root). DARK lives under
   [data-theme="dark"]. A fresh green primary + lime highlight.
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #F4F7EF;
  --bg-2:      #FFFFFF;
  --surface:   #FFFFFF;
  --surface-2: #EEF3E6;
  --surface-3: #E3EAD6;
  --line:      rgba(26, 44, 26, 0.11);
  --line-2:    rgba(26, 44, 26, 0.17);

  /* text */
  --text:      #16241A;
  --text-dim:  #51604F;
  --text-faint:#8C9A8B;
  --ink:       #FFFFFF; /* text on accent (green) */

  /* accents */
  --accent:      #1E8C42;       /* fresh, readable green */
  --accent-deep: #156E31;
  --accent-soft: rgba(30, 140, 66, 0.12);
  --signal:      #B0660C;       /* deep amber — OTP / lock / security */
  --signal-soft: rgba(176, 102, 12, 0.12);
  --lime:        #C6FA4B;       /* signature highlight fill */
  --mint:        #1E8C42;

  /* theme-specific surfaces & effects */
  --nav-bg:    rgba(255, 255, 255, 0.82);
  --glass-bg:  rgba(255, 255, 255, 0.78);
  --sheet-bg:  rgba(244, 247, 239, 0.97);
  --scrim:     rgba(20, 32, 22, 0.42);
  --chip-bg:   rgba(26, 44, 26, 0.03);
  --grain-op:  0;
  --card-shadow: 0 18px 44px -26px rgba(24, 50, 28, 0.30);
  --glow: 0 0 0 1px rgba(30,140,66,.28), 0 18px 50px -12px rgba(30,140,66,.22);
  --btn-glow: 0 14px 30px -14px rgba(30,140,66,.55);
  --btn-glow-hover: 0 18px 40px -12px rgba(30,140,66,.65);
  --field-gradient: radial-gradient(900px 600px at 78% -8%, rgba(30,140,66,.10), transparent 60%), radial-gradient(700px 520px at 10% 8%, rgba(30,140,66,.06), transparent 60%);

  /* radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* type */
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "Manrope", system-ui, sans-serif;

  /* layout */
  --maxw: 1320px;
  --gutter: clamp(16px, 2.5vw, 28px);

}

/* ---------- DARK THEME ---------- */
[data-theme="dark"] {
  --bg:        #090B0A;
  --bg-2:      #0D110F;
  --surface:   #121714;
  --surface-2: #181F1B;
  --surface-3: #1F2823;
  --line:      rgba(255, 255, 255, 0.09);
  --line-2:    rgba(255, 255, 255, 0.14);

  --text:      #ECF1ED;
  --text-dim:  #99A49C;
  --text-faint:#5C655E;
  --ink:       #070908;

  --accent:      #C6FA4B;
  --accent-deep: #A6E316;
  --accent-soft: rgba(198, 250, 75, 0.14);
  --signal:      #FFB04A;
  --signal-soft: rgba(255, 176, 74, 0.13);
  --lime:        #C6FA4B;
  --mint:        #5BE49B;

  --nav-bg:    rgba(9, 11, 10, 0.82);
  --glass-bg:  rgba(12, 15, 13, 0.72);
  --sheet-bg:  rgba(9, 11, 10, 0.96);
  --scrim:     rgba(4, 6, 5, 0.72);
  --chip-bg:   rgba(255, 255, 255, 0.02);
  --grain-op:  0.035;
  --card-shadow: 0 24px 60px -28px rgba(0,0,0,.8);
  --glow: 0 0 0 1px rgba(198,250,75,.35), 0 18px 50px -12px rgba(198,250,75,.45);
  --btn-glow: 0 14px 30px -14px rgba(198,250,75,.55);
  --btn-glow-hover: 0 18px 40px -12px rgba(198,250,75,.65);
  --field-gradient: radial-gradient(900px 600px at 78% -8%, rgba(198,250,75,.10), transparent 60%), radial-gradient(700px 520px at 10% 8%, rgba(91,228,155,.06), transparent 60%);
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.sif-active {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

::selection { background: var(--lime); color: #0c1207; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ---------- ambient page background ---------- */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    var(--field-gradient);
}
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: var(--grain-op);
  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.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.section { padding-block: clamp(30px, 5vw, 60px); position: relative; z-index: 1; }
.center { text-align: center; }

/* ---------- typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.eyebrow.sig { color: var(--signal); }
.eyebrow.sig::before { background: var(--signal); box-shadow: 0 0 12px var(--signal); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -0.02em; }

.display {
  font-size: clamp(30px, 4.8vw, 60px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.h2 { font-size: clamp(28px, 3.9vw, 50px); letter-spacing: -0.03em; }
.h3 { font-size: clamp(21px, 2.2vw, 28px); letter-spacing: -0.02em; }
.lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-dim); line-height: 1.55; max-width: 56ch; }
.mono { font-family: var(--font-mono); }
.fresh { color: var(--accent); }
.warm { color: var(--signal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 13px 23px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .25s ease, color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: var(--btn-glow); }
.btn-primary:hover { box-shadow: var(--btn-glow-hover); transform: translateY(-2px); background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-solid { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-solid:hover { background: var(--surface-3); border-color: var(--line-2); }
.btn-lg { padding: 15px 29px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em;
  padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--chip-bg); color: var(--text-dim);
}
.chip svg { width: 15px; height: 15px; }

/* ---------- card ---------- */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--card-shadow);
}

/* ---------- divider rule ---------- */
.rule { height: 1px; background: var(--line); border: 0; }

/* ---------- reveal on scroll ----------
   Base state is the VISIBLE end-state. The entrance is a keyframe
   animation that ends where the base sits, so if the animation never
   paints (offscreen/throttled), content is still shown. */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal.in { animation: revealIn .7s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes revealIn { from { transform: translateY(20px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- modal ---------- */
.modal-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: var(--scrim);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal {
  width: 100%; max-width: 460px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.9);
  overflow: hidden;
  animation: pop .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes pop { from { transform: translateY(16px) scale(.98); } to { transform: none; } }

/* ---------- form fields ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--text-dim); font-weight: 600; letter-spacing: .01em; }
.input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 15px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input::placeholder { color: var(--text-faint); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.err { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255,107,107,.16); }
.err-msg { color: #ff8585; font-size: 12.5px; margin: 2px 0 0; }

/* utility */
.mt8{margin-top:8px} .mt16{margin-top:16px} .mt24{margin-top:24px} .mt32{margin-top:32px}
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.nowrap { white-space: nowrap; }

@media (max-width: 480px) {
  :root { --gutter: 20px; }
  .section { padding-block: 28px; }
  .btn { white-space: normal; max-width: 100%; box-sizing: border-box; }
  .btn-lg { padding: 13px 20px; font-size: 15px; }
}
