/* SecureVerse — Owlake SaaS design system
   SaaS structure + clarity, Owlake discipline.
   No Inter. No floating orbs. No glassmorphism. No generic gradients. */

:root {
  /* —— Color tokens —— */
  --ink: #0E1116;
  --ink-soft: #1A1E26;
  --ink-mute: #2A2F3A;

  --white: #FFFFFF;
  --off-white: #FAFAF9;
  --off-white-warm: #F5F4F1;

  --bone: #F4F0E6;
  --bone-warm: #EAE3D0;

  --slate: #1E3A5F;
  --slate-deep: #0F2541;
  --slate-soft: #E8EEF6;

  --oxblood: #7A2A1E;
  --oxblood-deep: #5C1F15;
  --oxblood-soft: #F4E6E2;

  --gold: #B8924A;
  --gold-soft: #D9B985;
  --gold-tint: #F5EBD5;

  --forest: #1F3A2E;
  --forest-soft: #2D5240;
  --forest-tint: #E3ECE6;

  --stone: #8C8779;
  --stone-light: #B4AEA0;
  --stone-lighter: #E5E2DA;

  /* —— Semantic —— */
  --bg: var(--off-white);
  --bg-elevated: var(--white);
  --bg-vault: var(--ink);
  --bg-bone: var(--bone);
  --text: var(--ink);
  --text-muted: var(--stone);
  --text-on-vault: var(--off-white);
  --border: rgba(14, 17, 22, 0.08);
  --border-strong: rgba(14, 17, 22, 0.14);
  --border-on-vault: rgba(255, 255, 255, 0.12);

  /* —— Typography —— */
  --font-display: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --text-display: clamp(2.5rem, 5vw + 1rem, 5rem);
  --text-h1: clamp(2.25rem, 3.5vw + 1rem, 4rem);
  --text-h2: clamp(1.75rem, 2vw + 1rem, 2.75rem);
  --text-h3: clamp(1.375rem, 1vw + 1rem, 1.875rem);
  --text-h4: 1.25rem;
  --text-body: 1rem;
  --text-small: 0.875rem;
  --text-caption: 0.75rem;

  /* —— Spacing scale —— */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* —— Radii — SaaS modern, not pillow, not editorial-sharp —— */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* —— Shadows — subtle, layered, not floating —— */
  --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.04), 0 0 0 1px rgba(14, 17, 22, 0.04);
  --shadow-md: 0 4px 12px rgba(14, 17, 22, 0.06), 0 0 0 1px rgba(14, 17, 22, 0.04);
  --shadow-lg: 0 12px 32px rgba(14, 17, 22, 0.08), 0 0 0 1px rgba(14, 17, 22, 0.04);

  /* —— Motion —— */
  --ease-out: cubic-bezier(0.2, 0.6, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* —— Layout —— */
  --container-max: 1280px;
  --container-narrow: 880px;
  --header-height: 72px;
}

/* —— Reset bits —— */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  font-feature-settings: 'kern', 'ss01';
  margin: 0;
}

img, svg { display: block; max-width: 100%; height: auto; }

/* —— Typography —— */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
}
h1 { font-size: var(--text-h1); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: var(--text-h2); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
h3 { font-size: var(--text-h3); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
h4 { font-size: var(--text-h4); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }

.display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

/* Italic / soulful moments — Fraunces with the SOFT axis lifted */
.flourish {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
.lede {
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 400;
}
.body-lg { font-size: 1.125rem; line-height: 1.6; }
.muted { color: var(--text-muted); }
.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-feature-settings: 'kern'; }
.serif { font-family: var(--font-serif); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gold);
}
.eyebrow-gold { color: var(--gold); }
.eyebrow-oxblood { color: var(--oxblood); }
.eyebrow-bare::before { display: none; }

/* —— Wordmark — General Sans with the Fraunces dot as the brand mark —— */
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.wordmark .mark {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--oxblood);
  font-weight: 700;
  font-size: 1.25em;
  margin-left: 0.02em;
  line-height: 1;
}
.wordmark .tag {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-left: 0.625rem;
  padding-left: 0.625rem;
  border-left: 1px solid var(--border-strong);
  align-self: center;
  line-height: 1;
}
a.wordmark > img {
  height: 2.25rem !important;
  width: auto !important;
  display: block;
}

/* —— Surfaces —— */
.section-vault {
  background: var(--ink);
  color: var(--text-on-vault);
}
.section-vault h1, .section-vault h2, .section-vault h3, .section-vault h4,
.section-vault .display { color: var(--text-on-vault); }
.section-vault .muted { color: var(--stone-light); }
.section-vault .eyebrow { color: var(--gold-soft); }
.section-vault .eyebrow::before { background: var(--gold-soft); }
.section-vault .wordmark { color: var(--off-white); }

.section-bone { background: var(--bone); }
.section-paper { background: var(--off-white-warm); }
.section-white { background: var(--white); }

/* —— Container —— */
.brand-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.brand-container-narrow { max-width: var(--container-narrow); }
@media (min-width: 768px) {
  .brand-container { padding-left: 2rem; padding-right: 2rem; }
}
@media (min-width: 1024px) {
  .brand-container { padding-left: 3rem; padding-right: 3rem; }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 1.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 150ms var(--ease-out),
              color 150ms var(--ease-out),
              border-color 150ms var(--ease-out),
              box-shadow 150ms var(--ease-out),
              transform 150ms var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  min-width: 44px;
}
.btn:focus-visible {
  outline: 2px solid var(--slate);
  outline-offset: 2px;
}
.btn-lg { height: 52px; padding: 0 1.75rem; font-size: 1rem; }

.btn-primary {
  background: var(--ink);
  color: var(--off-white);
  box-shadow: 0 1px 2px rgba(14, 17, 22, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.btn-primary:hover {
  background: var(--ink-soft);
  box-shadow: 0 4px 12px rgba(14, 17, 22, 0.16);
}

.btn-oxblood {
  background: var(--oxblood);
  color: var(--off-white);
  box-shadow: 0 1px 2px rgba(122, 42, 30, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-oxblood:hover {
  background: var(--oxblood-deep);
  box-shadow: 0 4px 16px rgba(122, 42, 30, 0.24);
}

.btn-forest {
  background: var(--forest);
  color: var(--off-white);
  box-shadow: 0 1px 2px rgba(31, 58, 46, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-forest:hover {
  background: var(--forest-soft);
  box-shadow: 0 4px 16px rgba(31, 58, 46, 0.24);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: 0 1px 2px rgba(14, 17, 22, 0.03);
}
.btn-secondary:hover {
  background: var(--off-white);
  border-color: var(--ink);
}
.section-vault .btn-secondary {
  background: transparent;
  color: var(--off-white);
  border-color: var(--border-on-vault);
  box-shadow: none;
}
.section-vault .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--stone-lighter);
}

.btn-link {
  background: transparent;
  color: var(--ink);
  height: auto;
  padding: 2px 0;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  position: relative;
}
.btn-link svg, .btn-link .arrow {
  transition: transform 200ms var(--ease-out);
}
.btn-link:hover svg, .btn-link:hover .arrow { transform: translateX(3px); }
.btn-link:hover { color: var(--oxblood); }
.section-vault .btn-link { color: var(--off-white); }
.section-vault .btn-link:hover { color: var(--gold-soft); }

/* —— Inline link —— */
a.link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
a.link:hover { color: var(--oxblood); border-bottom-color: var(--oxblood); }
.section-vault a.link:hover { color: var(--gold-soft); border-bottom-color: var(--gold-soft); }

/* —— Form input —— */
.input {
  width: 100%;
  height: 44px;
  padding: 0 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: border-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}
.input:focus {
  outline: none;
  border-color: var(--slate);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.12);
}
.input::placeholder { color: var(--stone-light); }

/* —— Card —— */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 150ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.card-interactive { cursor: pointer; }
.card-interactive:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.card-elevated {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.card-featured {
  background: var(--ink);
  color: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.card-featured h1, .card-featured h2, .card-featured h3, .card-featured h4 { color: var(--off-white); }

/* —— Badge / pill —— */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 26px;
  padding: 0 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  background: var(--stone-lighter);
  color: var(--ink);
  line-height: 1;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.badge-slate { background: var(--slate-soft); color: var(--slate-deep); }
.badge-gold { background: var(--gold-tint); color: var(--gold); }
.badge-oxblood { background: var(--oxblood-soft); color: var(--oxblood-deep); }
.badge-forest { background: var(--forest-tint); color: var(--forest); }

/* —— Rules —— */
.rule { border: none; border-top: 1px solid var(--border); margin: 0; height: 0; }
.rule-strong { border-top-color: var(--border-strong); }
.rule-gold { border: none; border-top: 1px solid var(--gold); width: 48px; margin: 0; height: 0; }
.section-vault .rule { border-top-color: var(--border-on-vault); }

/* —— Kente-derived signature band — used sparingly (footer / page-end signature) —— */
.kente-divider {
  height: 4px;
  width: 100%;
  background-image: linear-gradient(
    90deg,
    var(--oxblood) 0 12.5%,
    var(--ink) 12.5% 25%,
    var(--gold) 25% 37.5%,
    var(--bone-warm) 37.5% 50%,
    var(--forest) 50% 62.5%,
    var(--gold) 62.5% 75%,
    var(--ink) 75% 87.5%,
    var(--oxblood) 87.5% 100%
  );
}

/* —— Logo cloud item —— */
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  color: var(--stone);
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity 150ms var(--ease-out), color 150ms var(--ease-out);
}
.logo-item:hover { opacity: 1; color: var(--ink); }

/* —— Feature icon container —— */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--slate-soft);
  color: var(--slate);
  border: 1px solid rgba(30, 58, 95, 0.1);
}
.feature-icon-gold { background: var(--gold-tint); color: var(--gold); border-color: rgba(184, 146, 74, 0.16); }
.feature-icon-oxblood { background: var(--oxblood-soft); color: var(--oxblood); border-color: rgba(122, 42, 30, 0.14); }
.feature-icon-forest { background: var(--forest-tint); color: var(--forest); border-color: rgba(31, 58, 46, 0.14); }

/* —— Product UI frame (for screenshots / mock previews in hero) —— */
.ui-frame {
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ui-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 0.875rem;
  background: var(--off-white-warm);
  border-bottom: 1px solid var(--border);
}
.ui-frame-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--stone-light);
}

/* —— Selection —— */
::selection { background: var(--oxblood); color: var(--off-white); }

/* —— Scrollbar —— */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--stone-light); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--stone); }

/* —— Reveal animation —— */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  }
  .reveal.in { opacity: 1; transform: translateY(0); }
  .reveal-delay-1 { transition-delay: 80ms; }
  .reveal-delay-2 { transition-delay: 160ms; }
  .reveal-delay-3 { transition-delay: 240ms; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* —— Utilities —— */
.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }
.no-underline { text-decoration: none; }

/* —— Mobile touch targets + base type —— */
@media (max-width: 767px) {
  .btn, .input, button[type="button"], button[type="submit"] { min-height: 44px; }
  body { font-size: 1rem; }
}
