/* ==========================================================================
   Agentity — Non-Human Identity Security
   Clean corporate theme: navy + blue, generous whitespace, enterprise trust.
   ========================================================================== */

:root {
  --navy: #0a2540;
  --navy-800: #123054;
  --blue: #1f6feb;
  --blue-600: #1a5fd0;
  --blue-tint: #eaf1fd;
  --ink: #1a2634;
  --muted: #5b6b7c;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06), 0 4px 12px rgba(10, 37, 64, 0.05);
  --shadow-md: 0 8px 30px rgba(10, 37, 64, 0.10);
  --maxw: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 0.9rem;
}
.eyebrow-light { color: #9dc0ff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px;
  flex: none;
  object-fit: contain;
  display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.05rem; color: var(--navy); }
.brand-tag { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 0.96rem; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
}
.nav-cta:hover { background: var(--navy-800); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(31, 111, 235, 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  overflow: hidden;
}
.hero-inner { max-width: 900px; }
.hero h1 { margin-bottom: 1.1rem; }
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 3rem; }

.hero-stats {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 2rem;
}
.hero-stats li { display: flex; flex-direction: column; gap: 0.35rem; }
.hero-stats strong {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--navy);
  font-weight: 600;
}
.hero-stats span { font-size: 0.9rem; color: var(--muted); line-height: 1.45; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--navy);
  color: #c7d6ea;
  padding: 1.6rem 0;
}
.trust-strip p {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: #7f97b5;
  margin: 0 0 1rem;
}
.trust-logos {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem 2.4rem;
}
.trust-logos li { font-weight: 600; font-size: 0.98rem; color: #dbe6f4; opacity: 0.9; }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section-intro { color: var(--muted); font-size: 1.08rem; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 1.5rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--blue-tint);
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- Services ---------- */
.service {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.service:hover { border-color: var(--blue); transform: translateY(-3px); }
.service-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--blue-tint);
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 1rem;
}
.service h3 { margin-bottom: 0.5rem; }
.service p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.steps li { position: relative; }
.step-num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
}
.step-body h3 { margin-bottom: 0.4rem; }
.step-body p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-media { position: sticky; top: 100px; }
.about-badge {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 130%);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}
.about-initials {
  font-family: var(--serif);
  font-size: 4.5rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}
.about-role { color: var(--blue); font-weight: 600; margin-top: -0.3rem; }
.about-body p { color: var(--muted); }
.about-body strong { color: var(--ink); }
.creds {
  list-style: none; margin: 1.75rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem 1.5rem;
}
.creds li {
  padding-left: 1.4rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--muted);
}
.creds li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px;
  background: var(--blue);
  border-radius: 50%;
}
.creds strong { color: var(--navy); }

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 100%);
  color: #cdddf0;
}
.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.contact h2 { color: var(--white); }
.contact-lede { color: #b6c8de; font-size: 1.08rem; margin-bottom: 2rem; }

.btn-light { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: #eef4ff; color: var(--navy); }
.btn-lg { font-size: 1.05rem; padding: 1rem 1.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #9fb4cd;
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
/* Light chip keeps the gradient mark crisp against the navy footer. */
.footer-brand .brand-mark {
  width: 44px; height: 44px;
  padding: 6px;
  background: var(--white);
  border-radius: 10px;
  box-sizing: border-box;
}
.footer-brand .brand-name { color: var(--white); display: block; font-weight: 700; }
.footer-brand .brand-tag { color: #7f97b5; display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { color: #c7d6ea; font-size: 0.92rem; }
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-legal { font-size: 0.85rem; margin: 0; color: #7f97b5; width: 100%; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards-3, .cards-2 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { position: static; max-width: 220px; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-links {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 24px 1rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 0.6rem; border-bottom: none !important; }
  .nav-toggle { display: flex; }
  .hero-stats { grid-template-columns: 1fr; gap: 1.25rem; }
  .cards-3, .cards-2, .steps { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
}
