/* pAIgent v2 — Shared Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #02bf60;
  --green-dark: #01a352;
  --black: #000000;
  --gray-body: #595959;
  --gray-light: #f5f5f5;
  --gray-border: #e5e5e5;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--gray-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 { color: var(--black); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { color: var(--gray-body); }

a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo img.logo-mark { height: 40px; width: auto; display: block; }
.nav-logo img.logo-wordmark { height: 28px; width: auto; vertical-align: middle; }
.logo-text { font-family: 'Inter', sans-serif; font-size: 1.25rem; font-weight: 700; color: #000; letter-spacing: -0.02em; line-height: 1; }
.logo-ai { color: #02bf60; }
.nav-logo { display: flex; align-items: flex-end; gap: 8px; text-decoration: none; }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--gray-body);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--black); }
.btn-demo {
  background: var(--green); color: var(--white) !important;
  padding: 9px 20px; border-radius: 8px; font-weight: 600;
  font-size: 0.875rem; transition: background 0.2s, transform 0.1s;
}
.btn-demo:hover { background: var(--green-dark) !important; color: var(--white) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--black); margin: 5px 0;
  transition: all 0.3s;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center;
  background: var(--green); color: var(--white);
  padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s, transform 0.1s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); color: var(--white); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--black); font-weight: 600; font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
  background: none; border: none; cursor: pointer; padding: 14px 0;
}
.btn-secondary:hover { color: var(--green); }
.btn-outline {
  display: inline-flex; align-items: center;
  border: 2px solid var(--green); color: var(--green);
  padding: 12px 26px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--green); color: var(--white); }

/* ── Hero ── */
.hero {
  padding: 100px 0 280px;
  text-align: center;
  background: url('hero-bg.jpg') bottom center / 100% auto no-repeat;
  background-color: #fff;
}
.hero h1 { max-width: 780px; margin: 0 auto 20px; color: #000; }
.hero .subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 620px; margin: 0 auto 0;
  color: var(--gray-body);
}
.hero-ctas {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: wrap; margin-bottom: 20px;
}
.trust-line {
  font-size: 0.85rem; color: #888;
  margin-top: 12px;
}

/* ── Trust Bar ── */
.trust-bar {
  padding: 32px 0;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
}
.trust-bar-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
}
.trust-bar-row {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: nowrap;
}
.trust-bar-row-green { justify-content: center; }
.pill {
  display: inline-flex; align-items: center;
  background: var(--gray-light); color: var(--gray-body);
  padding: 8px 16px; border-radius: 100px;
  font-size: 0.825rem; font-weight: 500;
  white-space: nowrap; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: border-color 0.15s;
}
.pill:hover { border-color: #c0c0c0; }
.pill.green { background: #e6faf1; color: #019a4e; border: 1px solid transparent; }
.pill.green:hover { border-color: #02bf60; }

/* ── Problem ── */
.problem { background: var(--gray-light); }
.problem .section-label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--green); margin-bottom: 16px;
}
.problem h2 { margin-bottom: 24px; }
.problem p { font-size: 1.05rem; line-height: 1.7; margin-bottom: 32px; }
.problem-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 40px; }
.problem-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 28px; }
.problem-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); transition: box-shadow 0.2s; }
.problem-icon {
  width: 40px; height: 40px; margin-bottom: 16px;
  background: #0a0a0a;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.08);
}
.problem-card h4 { font-size: 1rem; font-weight: 700; color: #000; margin-bottom: 8px; }
.problem-card p { font-size: 0.9rem; color: #595959; line-height: 1.65; margin: 0; }
.stat-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat-card {
  background: var(--white); border-radius: 12px;
  padding: 20px 20px; border: 1px solid var(--gray-border);
  transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.stat-value {
  font-size: 1.6rem; font-weight: 800; color: var(--black);
  margin-bottom: 6px; letter-spacing: -0.02em;
}
.stat-label { font-size: 0.8rem; color: var(--gray-body); }

/* ── How It Works ── */
.how-it-works { text-align: left; }
.how-it-works .section-label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--green); margin-bottom: 16px;
}
.how-it-works h2 { margin-bottom: 16px; }
.how-it-works .subhead {
  margin: 0 0 64px;
  font-size: 1.05rem; color: var(--gray-body);
}
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.step {
  text-align: left; padding: 32px; border-radius: 16px;
  border: 1px solid #e5e7eb; background: #fff;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}
.step:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.07); border-color: var(--green); }
.step-icon {
  width: 48px; height: 48px; margin-bottom: 20px;
  background: #0a0a0a;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.08);
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: 0.95rem; }

/* ── Trust Section ── */
.trust-section { padding: 96px 0; background: #f9fafb; }
.trust-section .section-label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: #02bf60; margin-bottom: 16px;
}
.trust-section h2 { margin-bottom: 16px; }
.trust-section .subhead, .trust .subhead {
  font-size: 1.05rem; color: var(--gray-body); margin-bottom: 40px;
}
.trust-section .trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.trust-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 32px; }
.trust-card-main { border-color: #02bf60; border-width: 2px; }
.trust-card-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #02bf60; margin-bottom: 12px; }
.trust-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; margin-bottom: 12px; }
.trust-badge.in-progress { background: #f0fdf4; color: #02bf60; border: 1px solid #bbf7d0; }
.trust-link { color: #02bf60; font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.trust-link:hover { text-decoration: underline; }

/* ── Use Cases ── */
.use-cases { background: var(--gray-light); }
.use-cases .subhead { font-size: 1.05rem; color: var(--gray-body); margin-bottom: 40px; line-height: 1.7; }
.autonomy-badge { display: inline-block; margin-top: 16px; font-size: 0.78rem; font-weight: 600; color: #595959; background: #f5f5f5; border-radius: 20px; padding: 5px 12px; }
.autonomy-note { display: flex; align-items: flex-start; gap: 14px; margin-top: 32px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 24px; }
.autonomy-note-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
.autonomy-note p { font-size: 0.875rem; color: #595959; margin: 0; line-height: 1.65; }
.use-cases .section-label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--green); margin-bottom: 16px;
}
.use-cases h2 { margin-bottom: 16px; }
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bento-card {
  background: var(--white); border-radius: 16px;
  padding: 36px 32px; border: 1px solid var(--gray-border);
  transition: box-shadow 0.2s;
}
.bento-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.bento-card .card-tag {
  display: inline-block;
  background: #e6faf1; color: #019a4e;
  font-size: 0.775rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 4px 10px; border-radius: 6px;
  margin-bottom: 16px;
}
.bento-card h3 { margin-bottom: 12px; font-size: 1.15rem; }
.bento-card p { font-size: 0.95rem; line-height: 1.65; }

/* ── Trust & Compliance ── */
.trust { }
.trust .section-label {
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--green); margin-bottom: 16px;
}
.trust h2 { margin-bottom: 48px; }
.trust-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--gray-border); border-radius: 16px;
  overflow: hidden; margin-bottom: 24px;
}
.trust-item {
  padding: 28px 32px; border-bottom: 1px solid var(--gray-border);
  border-right: 1px solid var(--gray-border);
  display: flex; gap: 20px; align-items: flex-start;
}
.trust-item:nth-child(even) { border-right: none; }
.trust-item:nth-last-child(-n+2) { border-bottom: none; }
.trust-letter {
  font-size: 1.6rem; font-weight: 800; color: var(--green);
  line-height: 1; min-width: 28px;
}
.trust-item h3 { margin-bottom: 4px; font-size: 1rem; }
.trust-item p { font-size: 0.9rem; }
/* TRUST + KYA layout */
.trust-kya-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; align-items: stretch; }
.trust-acronym-box { border: 1px solid var(--gray-border); border-radius: 16px; overflow: hidden; background: #fff; }
.trust-row { display: flex !important; align-items: flex-start; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--gray-border); background: none; }
.trust-row.last { border-bottom: none; }
.trust-row .trust-letter {
  font-size: 0.8rem; font-weight: 800; color: #fff;
  min-width: 52px; height: 44px; padding: 0 8px; flex-shrink: 0;
  font-family: 'Inter', sans-serif; letter-spacing: 0;
  background: #02bf60;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 4px 12px rgba(2,191,96,0.25);
  border: 1px solid rgba(255,255,255,0.2);
}
.trust-row strong { display: block; font-size: 0.9rem; font-weight: 700; color: #000; margin-bottom: 3px; font-family: 'Inter', sans-serif; }
.trust-row p { font-size: 0.82rem; color: #595959; margin: 0; line-height: 1.5; font-family: 'Inter', sans-serif; }
.trust .kya-card { border-radius: 16px; height: 100%; box-sizing: border-box; align-items: flex-start; padding-top: 24px; }
.trust .kya-label { font-family: 'Inter', sans-serif; }
.trust .kya-text h3 { font-family: 'Inter', sans-serif; font-size: 1.1rem; }
.trust .kya-text p { font-family: 'Inter', sans-serif; }
.compliance-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 100%; margin: 0; }

.kya-card {
  background: #fff; border: 1px solid var(--gray-border);
  border-radius: 16px; padding: 0; overflow: hidden;
  display: block;
}
.kya-rows { display: flex; flex-direction: column; height: 100%; }
.trust-acronym-box { display: flex; flex-direction: column; }
.trust-acronym-box .trust-row { flex: 1; align-items: center; }
.kya-row { display: flex; align-items: flex-start; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--gray-border); font-family: 'Inter', sans-serif; }
.kya-last { border-bottom: none; }
.kya-letter { font-size: 1.3rem; font-weight: 800; color: var(--green); min-width: 20px; line-height: 1.4; flex-shrink: 0; font-family: 'Inter', sans-serif; }
.kya-row strong { display: block; font-size: 0.9rem; font-weight: 700; color: #000; margin-bottom: 3px; font-family: 'Inter', sans-serif; }
.kya-row p { font-size: 0.82rem; color: #595959; margin: 0; line-height: 1.5; font-family: 'Inter', sans-serif; }

/* ── Why pAIgent ── */
.why-paigent { padding: 96px 0; background: #fff; }
.why-paigent .section-label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); margin-bottom: 16px; }
.why-sub { font-size: 1.05rem; color: var(--gray-body); margin-bottom: 48px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { border: 1px solid var(--gray-border); border-radius: 16px; padding: 28px; background: #fff; transition: box-shadow 0.2s; }
.why-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.why-icon {
  width: 48px; height: 48px; margin-bottom: 16px;
  background: #0a0a0a; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 4px 12px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.08);
}
.why-stat { font-size: 1.1rem; font-weight: 800; color: #02bf60; letter-spacing: -0.01em; margin-bottom: 6px; font-family: 'Inter', sans-serif; }
.why-card h4 { font-size: 0.95rem; font-weight: 700; color: #000; margin-bottom: 8px; }
.why-card p { font-size: 0.85rem; color: #595959; line-height: 1.65; margin: 0; }
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Team ── */
.team h2 { margin-bottom: 12px; }
.team .team-sub { margin-bottom: 56px; font-size: 1.05rem; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.team-card {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 36px; border: 1px solid var(--gray-border);
  border-radius: 16px; transition: box-shadow 0.2s;
}
.team-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }
.team-photo {
  width: 80px; height: 80px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.team-info h3 { font-size: 1.1rem; margin-bottom: 2px; }
.team-role {
  font-size: 0.85rem; color: var(--green); font-weight: 600;
  margin-bottom: 10px;
}
.team-bio { font-size: 0.9rem; line-height: 1.6; }

/* ── Final CTA ── */
.final-cta {
  background: var(--black); text-align: center; padding: 112px 0;
}
.final-cta h2 { color: var(--white); margin-bottom: 16px; }
.final-cta p { color: #aaa; margin-bottom: 40px; font-size: 1.05rem; }

/* ── Footer ── */
footer {
  background: var(--white); border-top: 1px solid var(--gray-border);
  padding: 48px 0 40px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; margin-bottom: 32px;
}
.footer-logo {
  display: flex; align-items: center; gap: 10px;
}
.footer-logo img.logo-mark { height: 30px; width: auto; display: block; }
.footer-logo img.logo-wordmark { height: 24px; width: auto; vertical-align: middle; }
.footer-logo { display: flex; align-items: flex-end; gap: 8px; text-decoration: none; }
.footer-logo .logo-text { font-size: 1.1rem; }
.footer-links {
  display: flex; align-items: center; gap: 24px;
  list-style: none; flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.875rem; color: var(--gray-body);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--black); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--gray-border);
  font-size: 0.825rem; color: #999;
}
.footer-bottom a { color: #999; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--green); }

/* ── Page Hero (inner pages) ── */
.page-hero { padding: 80px 0 64px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.page-hero p { font-size: 1.1rem; max-width: 540px; }

/* ── Contact Form ── */
.contact-section { padding: 80px 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 32px; font-size: 1.05rem; }
.contact-info .email-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--green); font-size: 1rem;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { font-size: 0.875rem; font-weight: 500; color: var(--black); }
input, textarea, select {
  padding: 12px 16px; border: 1.5px solid var(--gray-border);
  border-radius: 10px; font-family: 'Inter', sans-serif;
  font-size: 0.95rem; color: var(--black);
  transition: border-color 0.2s;
  background: var(--white); outline: none; width: 100%;
}
input:focus, textarea:focus { border-color: var(--green); }
textarea { resize: vertical; min-height: 140px; }
.submit-btn {
  background: var(--green); color: var(--white);
  padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; width: 100%;
  transition: background 0.2s;
}
.submit-btn:hover { background: var(--green-dark); }

/* ── Password Gate ── */
.gate-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--white);
}
.gate-card {
  text-align: center; max-width: 420px; width: 100%; padding: 0 24px;
}
.gate-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 48px; }
.gate-logo img.logo-mark { height: 40px; width: auto; vertical-align: middle; }
.gate-logo img.logo-wordmark { height: 32px; width: auto; vertical-align: middle; }
.gate-card h2 { margin-bottom: 8px; }
.gate-card .gate-sub { margin-bottom: 36px; font-size: 0.95rem; }
.gate-form { display: flex; flex-direction: column; gap: 16px; }
.gate-input {
  padding: 14px 18px; border: 1.5px solid var(--gray-border);
  border-radius: 10px; font-size: 1rem;
  text-align: center; letter-spacing: 2px;
  width: 100%; outline: none; transition: border-color 0.2s;
}
.gate-input:focus { border-color: var(--green); }
.gate-btn {
  background: var(--green); color: var(--white);
  padding: 14px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer; width: 100%;
  transition: background 0.2s;
}
.gate-btn:hover { background: var(--green-dark); }
.gate-error {
  color: #e53e3e; font-size: 0.875rem;
  display: none; margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .stat-cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 500px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: none !important; }
  .trust-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--gray-border); }
  .trust-item:last-child { border-bottom: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .kya-card { flex-direction: column; gap: 16px; }
}
@media (max-width: 768px) {
  section { padding: 72px 0; }
  .hero { padding: 80px 0 72px; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--gray-border); flex-direction: column; gap: 0; padding: 8px 0; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 24px; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}
