/* ============================================
   METRICTY — DESIGN SYSTEM & GLOBAL STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@300;400;500&family=Playfair+Display:ital,wght@1,400;1,600&display=swap');

/* ── TOKENS ── */
:root {
  --bg:        #f5f2eb;
  --bg2:       #edeae0;
  --ink:       #1a1a18;
  --ink2:      #2e2e2a;
  --muted:     #7a7870;
  --rule:      #d8d4c8;
  --white:     #faf8f3;
  --teal:      #0f7c6e;
  --teal-d:    #0a5c52;
  --teal-lt:   #e0f0ed;
  --amber:     #d4860a;
  --amber-lt:  #fdf3e0;
  --font-main: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-serif:'Playfair Display', serif;
  --radius:    10px;
  --shadow:    0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-main);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-d); }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; font-weight: 700; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.italic-accent { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--teal); }

/* ── LAYOUT ── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: 720px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section--dark { background: var(--ink); color: var(--bg); }
.section--tint { background: var(--bg2); }
.section--white { background: var(--white); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: .9rem;
  padding: .8rem 1.75rem;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn--primary:hover {
  background: var(--teal-d);
  border-color: var(--teal-d);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15,124,110,.3);
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.btn--outline-white {
  background: transparent;
  color: rgba(245,242,235,.8);
  border-color: rgba(245,242,235,.25);
}
.btn--outline-white:hover {
  border-color: rgba(245,242,235,.6);
  color: #fff;
}
.btn--lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn--sm { padding: .55rem 1.1rem; font-size: .8rem; }

/* ── EYEBROW LABEL ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--teal);
  flex-shrink: 0;
}
.section--dark .eyebrow { color: #6ee7d8; }
.section--dark .eyebrow::before { background: #6ee7d8; }

/* ── CALLOUT / BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem .9rem;
  border-radius: 100px;
  background: var(--teal-lt);
  color: var(--teal);
  border: 1px solid rgba(15,124,110,.2);
}
.badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1}50%{opacity:.3} }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow .25s, transform .25s;
}
.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.card__icon {
  width: 48px; height: 48px;
  background: var(--teal-lt);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

/* ── NAV ── */
#site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(26,26,24,.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(245,242,235,.08);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -.03em;
  color: var(--bg);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: #0f7c6e; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0; padding: 0;
  flex: 1;
}
.nav-links li a {
  font-size: .85rem;
  font-weight: 400;
  color: rgba(245,242,235,.5);
  padding: .5rem 1rem;
  border-radius: 5px;
  text-decoration: none;
  transition: color .2s, background .2s;
}
.nav-links li a:hover,
.nav-links li.current-menu-item a {
  color: rgba(245,242,235,.9);
  background: rgba(255,255,255,.06);
}

.nav-cta { margin-left: auto; display: flex; align-items: center; gap: .75rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: rgba(245,242,235,.7);
  font-size: 1.4rem;
  margin-left: auto;
}

/* ── FOOTER ── */
#site-footer {
  background: var(--ink2);
  color: rgba(245,242,235,.5);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand .nav-logo { display: block; margin-bottom: 1rem; font-size: 1.5rem; }
.footer-tagline { font-size: .85rem; line-height: 1.65; max-width: 260px; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(245,242,235,.3);
  margin-bottom: 1.25rem;
  font-weight: 400;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a {
  font-size: .85rem;
  color: rgba(245,242,235,.45);
  transition: color .2s;
}
.footer-col ul li a:hover { color: rgba(245,242,235,.9); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245,242,235,.2);
}

/* ── HOME HERO ── */
.home-hero {
  background: var(--ink);
  color: var(--bg);
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(245,242,235,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,242,235,.03) 1px, transparent 1px);
  background-size: 70px 70px;
  animation: gridScroll 25s linear infinite;
}
@keyframes gridScroll {
  from { background-position: 0 0; }
  to   { background-position: 70px 70px; }
}
.home-hero::after {
  content: '';
  position: absolute;
  top: -150px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(15,124,110,.15) 0%, transparent 65%);
  pointer-events: none;
}
.home-hero .container { position: relative; z-index: 1; }
.hero-badge { margin-bottom: 2rem; }
.hero-h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .95;
  margin-bottom: 1.75rem;
  color: var(--bg);
}
.hero-h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: #6ee7d8; }
.hero-sub {
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(245,242,235,.55);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .82rem;
  color: rgba(245,242,235,.4);
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
}
.hero-social-proof::before {
  content: '';
  width: 32px; height: 1px;
  background: rgba(245,242,235,.2);
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--ink2);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 1rem 2rem;
  border-right: 1px solid rgba(255,255,255,.06);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: -.03em;
  color: #0f7c6e;
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(245,242,235,.35);
}

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

/* ── HOW IT WORKS ── */
.steps-list { margin-top: 3rem; }
.step-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.step-item:last-child { border-bottom: none; }
.step-num {
  width: 56px; height: 56px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-main);
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.step-title { font-weight: 700; font-size: 1.1rem; margin-bottom: .5rem; }
.step-body { font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* ── INTEGRATIONS ── */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.integration-item {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink2);
}
.integration-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.integration-icon { font-size: 1.6rem; margin-bottom: .5rem; }

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: start;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  position: relative;
}
.pricing-card--featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  transform: scale(1.03);
  box-shadow: var(--shadow-lg);
}
.pricing-card__badge {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  background: var(--teal);
  color: #fff;
  padding: .3rem .9rem;
  border-radius: 0 0 6px 6px;
}
.pricing-card__tier {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}
.pricing-card--featured .pricing-card__tier { color: #6ee7d8; }
.pricing-card__name { font-size: 1.35rem; font-weight: 800; margin-bottom: .5rem; }
.pricing-card__price {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .25rem;
}
.pricing-card__price sup { font-size: 1.5rem; font-weight: 400; vertical-align: super; }
.pricing-card__price sub { font-size: .9rem; font-weight: 300; opacity: .5; }
.pricing-card__desc { font-size: .82rem; opacity: .55; margin-bottom: 2rem; }
.pricing-card__features { list-style: none; margin-bottom: 2rem; }
.pricing-card__features li {
  font-size: .87rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex; gap: .6rem; align-items: flex-start;
}
.pricing-card--featured .pricing-card__features li { border-color: rgba(255,255,255,.07); }
.pricing-card__features li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  font-size: .8rem;
  margin-top: .1rem;
}
.pricing-card--featured .pricing-card__features li::before { color: #6ee7d8; }
.pricing-annual {
  text-align: center;
  margin-top: 2rem;
  font-size: .85rem;
  color: var(--muted);
}
.pricing-annual strong { color: var(--teal); }

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2rem;
}
.testimonial-quote {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--ink2);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testimonial-author {
  display: flex; align-items: center; gap: .75rem;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal-lt);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  color: var(--teal);
  flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: .87rem; }
.testimonial-role { font-size: .78rem; color: var(--muted); }

/* ── CTA SECTION ── */
.cta-box {
  background: var(--ink);
  border-radius: 16px;
  padding: 5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(15,124,110,.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box h2 { color: var(--bg); position: relative; z-index: 1; }
.cta-box p { color: rgba(245,242,235,.5); position: relative; z-index: 1; margin: 1rem 0 2.5rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── FAQ ── */
.faq-list { margin-top: 2rem; }
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  text-align: left;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-question:hover { color: var(--teal); }
.faq-icon { font-size: 1.2rem; flex-shrink: 0; transition: transform .25s; color: var(--teal); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding-bottom: 1.5rem;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.75;
}
.faq-item.open .faq-answer { display: block; }

/* ── CONTACT FORM ── */
.contact-form { max-width: 580px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: .5rem;
  color: var(--ink2);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 7px;
  background: var(--white);
  font-family: var(--font-main);
  font-size: .9rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,124,110,.1);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--ink);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
}
.page-hero h1 { color: var(--bg); font-size: clamp(2rem, 5vw, 3.5rem); }
.page-hero p { color: rgba(245,242,235,.5); max-width: 560px; margin-top: .75rem; }

/* ── ABOUT PAGE ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.team-card { text-align: center; }
.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--teal-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}
.team-name { font-weight: 700; margin-bottom: .2rem; }
.team-role { font-size: .82rem; color: var(--muted); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.value-item {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2rem;
}
.value-num {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .15em;
  color: var(--teal);
  margin-bottom: .75rem;
}

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.divider { border: none; border-top: 1px solid var(--rule); margin: 3rem 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.two-col--flip .two-col__text { order: 2; }
.two-col--flip .two-col__visual { order: 1; }

/* ── MOBILE NAV ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn--outline-white { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(26,26,24,.98);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
    gap: .25rem;
  }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card--featured { transform: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .two-col--flip .two-col__text { order: 1; }
  .two-col--flip .two-col__visual { order: 2; }
  .cta-box { padding: 3rem 2rem; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .step-item { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
