/* ===========================================================
   AssetGuard - Design System
   =========================================================== */

:root {
  --ink: #0b1a14;
  --ink-soft: #12241c;
  --forest: #14442f;
  --forest-deep: #0e3324;
  --emerald: #2d6a48;
  --sage: #7fa887;
  --sage-light: #a8c6ad;
  --moss: #8bb35a;
  --cream: #f7f5ef;
  --cream-dim: #efece2;
  --paper: #fffdf9;
  --gold: #b9975b;
  --gold-light: #d8bd8a;
  --line: #e3ddcd;
  --line-dark: rgba(247, 245, 239, 0.14);
  --text-dark: #1b241e;
  --text-muted: #55635a;
  --text-on-dark: #f2f0e8;
  --text-on-dark-muted: #aebcae;

  --shadow-sm: 0 2px 10px rgba(11, 26, 20, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 26, 20, 0.10);
  --shadow-lg: 0 24px 60px rgba(11, 26, 20, 0.18);

  --font-head: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section { padding: 100px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.section-head {
  max-width: 680px;
  margin: 0 0 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--line-dark);
  color: var(--text-on-dark);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

.btn-dark {
  background: var(--forest-deep);
  color: var(--text-on-dark);
}
.btn-dark:hover { background: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--forest-deep);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--forest-deep); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 239, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--text-dark);
}
.brand img { height: 42px; width: auto; }
.brand span { letter-spacing: 0.01em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--forest-deep); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 18px; }

.nav-links .btn-primary { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, #163627 0%, var(--ink) 62%);
  color: var(--text-on-dark);
  overflow: hidden;
  padding: 130px 0 110px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(216,189,138,0.5) 0, transparent 100%),
    radial-gradient(1px 1px at 82% 15%, rgba(168,198,173,0.5) 0, transparent 100%),
    radial-gradient(1px 1px at 68% 62%, rgba(168,198,173,0.4) 0, transparent 100%),
    radial-gradient(1px 1px at 30% 78%, rgba(216,189,138,0.4) 0, transparent 100%),
    radial-gradient(1px 1px at 92% 80%, rgba(168,198,173,0.35) 0, transparent 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero .eyebrow { color: var(--gold-light); }
.hero .eyebrow::before { background: var(--gold-light); }
.hero h1 { color: var(--text-on-dark); }
.hero p.lead {
  font-size: 1.18rem;
  color: var(--text-on-dark-muted);
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art-ring {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(216, 189, 138, 0.18);
}
.hero-art-ring.r2 { width: 500px; height: 500px; border-color: rgba(168,198,173,0.12); }
.hero-art img {
  position: relative;
  width: 320px;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45));
}

.hero-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}
.chip {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  color: var(--text-on-dark-muted);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  align-items: center;
  justify-content: center;
  padding: 30px 28px;
}
.trust-strip span {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--forest), var(--forest-deep));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--gold-light);
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

/* ---------- Alt sections ---------- */
.section-alt { background: var(--paper); }
.section-dark {
  background: var(--ink);
  color: var(--text-on-dark);
}
.section-dark h2, .section-dark h3 { color: var(--text-on-dark); }
.section-dark p { color: var(--text-on-dark-muted); }
.section-dark .eyebrow { color: var(--gold-light); }
.section-dark .eyebrow::before { background: var(--gold-light); }

/* ---------- Process ---------- */
.process-list {
  display: grid;
  gap: 0;
  counter-reset: step;
}
.process-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  padding: 34px 0;
  border-top: 1px solid var(--line-dark);
}
.process-item:last-child { border-bottom: 1px solid var(--line-dark); }
.process-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  color: var(--gold);
  opacity: 0.85;
}
.process-item h3 { margin-bottom: 8px; }
.process-item p { margin-bottom: 0; max-width: 640px; }

/* ---------- Asset classes ---------- */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.asset-cell {
  background: var(--paper);
  padding: 40px 32px;
  transition: background 0.25s ease;
}
.asset-cell:hover { background: var(--cream); }
.asset-cell .num {
  font-family: var(--font-head);
  color: var(--sage);
  font-size: 0.95rem;
  margin-bottom: 14px;
  display: block;
}
.asset-cell h3 { margin-bottom: 8px; font-size: 1.12rem; }
.asset-cell p { font-size: 0.92rem; margin-bottom: 0; }

/* ---------- Stat / feature split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.split img, .split .art-box { border-radius: var(--radius); }
.art-box {
  background: linear-gradient(160deg, var(--forest-deep), var(--ink));
  border-radius: var(--radius);
  aspect-ratio: 4/3.4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.art-box img { width: 58%; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)); }
.art-box::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 40%, rgba(216,189,138,0.10), transparent 70%);
}

.feature-list { margin-top: 28px; display: grid; gap: 18px; }
.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--text-dark);
}
.feature-list .tick {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.feature-list .tick svg { width: 12px; height: 12px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--forest-deep), var(--ink) 70%);
  border-radius: 20px;
  padding: 64px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(216,189,138,0.15);
}
.cta-banner h2 { color: var(--text-on-dark); margin-bottom: 10px; }
.cta-banner p { color: var(--text-on-dark-muted); margin-bottom: 0; max-width: 460px; }
.cta-banner .btn-primary { flex: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark-muted);
  padding: 80px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand { color: var(--text-on-dark); margin-bottom: 16px; }
.footer-brand p { max-width: 300px; font-size: 0.92rem; }
.footer-col h4 {
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.92rem; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 0;
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.footer-legal-note {
  padding: 26px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 0.78rem;
  color: #7c887c;
  line-height: 1.7;
}
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 36px; height: 36px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { border-color: var(--gold); }
.social-row svg { width: 16px; height: 16px; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 160px 0 90px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(1px 1px at 20% 30%, rgba(216,189,138,0.45) 0, transparent 100%),
    radial-gradient(1px 1px at 75% 60%, rgba(168,198,173,0.4) 0, transparent 100%),
    radial-gradient(1px 1px at 40% 80%, rgba(216,189,138,0.3) 0, transparent 100%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--text-on-dark); max-width: 720px; }
.page-hero p.lead { color: var(--text-on-dark-muted); max-width: 600px; font-size: 1.1rem; }
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px;
}
.form-row { display: grid; gap: 8px; margin-bottom: 22px; }
.form-row.two { grid-template-columns: 1fr 1fr; gap: 22px; }
.form-row label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--text-dark);
  width: 100%;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--forest);
  background: var(--paper);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 6px; }
.form-status { font-size: 0.9rem; margin-top: 16px; display: none; }
.form-status.show { display: block; }

.contact-info-list { display: grid; gap: 26px; margin-top: 32px; }
.contact-info-item { display: flex; gap: 16px; }
.contact-info-item .ic {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--forest), var(--forest-deep));
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.contact-info-item .ic svg { width: 20px; height: 20px; }
.contact-info-item h4 { color: var(--text-dark); margin: 0 0 4px; font-family: var(--font-body); font-size: 0.95rem; }
.contact-info-item p { margin: 0; font-size: 0.92rem; }

/* ---------- Values / about ---------- */
.value-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.value-row:last-child { border-bottom: 1px solid var(--line); }
.value-row .idx { font-family: var(--font-head); color: var(--gold); font-size: 1.1rem; }

/* ---------- Fade-in animation ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: none; margin: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin-bottom: 10px; }
  .hero-art img { width: 220px; }
  .hero-art-ring { width: 300px; height: 300px; }
  .hero-art-ring.r2 { width: 360px; height: 360px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  section { padding: 70px 0; }
  .nav-links {
    position: fixed;
    inset: 84px 0 0 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 34px 28px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary { display: none; }
  .nav-links .btn-primary { display: inline-flex; margin-top: 10px; }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .asset-grid { grid-template-columns: 1fr; }
  .process-item { grid-template-columns: 1fr; gap: 10px; }
  .cta-banner { flex-direction: column; text-align: center; padding: 48px 30px; }
  .cta-banner p { max-width: none; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-row.two { grid-template-columns: 1fr; }
  .hero { padding: 110px 0 70px; }
  .page-hero { padding: 130px 0 60px; }
}
