/* ==========================================================================
   Upper Den — Global Stylesheet
   Premium SaaS-inspired design system (HTML5 / CSS3 only)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy: #0b1220;          /* primary dark / charcoal-navy */
  --navy-800: #111a2e;
  --navy-700: #1a2842;

  /* Accent (modern technology blue) */
  --accent: #2f6bff;
  --accent-600: #1e56e6;
  --accent-100: #e8efff;

  /* Neutrals */
  --white: #ffffff;
  --surface: #f7f9fc;       /* light background */
  --surface-2: #eef2f8;
  --ink: #0d1526;           /* headings */
  --muted: #5b6577;         /* body text */
  --border: #e5eaf2;

  /* Effects */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(13, 21, 38, 0.06);
  --shadow: 0 10px 30px rgba(13, 21, 38, 0.08);
  --shadow-lg: 0 24px 60px rgba(13, 21, 38, 0.14);
  --ring: 0 0 0 4px rgba(47, 107, 255, 0.15);

  /* Layout */
  --container: 1160px;
  --gutter: 24px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  color: var(--muted);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

p { text-wrap: pretty; }

ul { list-style: none; padding: 0; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.section--surface { background: var(--surface); }
.section--navy { background: var(--navy); color: #c7d0e0; }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section--navy .eyebrow { background: rgba(47, 107, 255, 0.16); color: #9dbaff; }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.1rem; }

.lead { font-size: 1.2rem; color: var(--muted); }

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

.text-center { text-align: center; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(47, 107, 255, 0.28); }
.btn-primary:hover { background: var(--accent-600); box-shadow: 0 12px 26px rgba(47, 107, 255, 0.36); }

.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #c9d4e6; }

.btn-ghost-light { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.2); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); }

.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   5. Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.nav__logo img { height: 26px; width: auto; }

.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__links { display: flex; align-items: center; gap: 2px; }

.nav__link {
  position: relative;
  padding: 10px 14px;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav__link:hover { color: var(--accent); background: var(--surface); }
.nav__link.is-active { color: var(--accent); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown__toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; font: inherit; cursor: pointer; }
.dropdown__toggle svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.has-dropdown:hover .dropdown__toggle svg { transform: rotate(180deg); }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 0.95rem; color: var(--ink); }
.dropdown a:hover { background: var(--surface); color: var(--accent); }
.dropdown small { display: block; color: var(--muted); font-weight: 400; }

.nav__cta { margin-left: 12px; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span {
  width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  margin: 0 auto; transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 100px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 80% -10%, rgba(47, 107, 255, 0.10), transparent 70%),
    radial-gradient(50% 50% at 0% 10%, rgba(47, 107, 255, 0.06), transparent 60%);
  z-index: -1;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero__sub { font-size: 1.2rem; max-width: 560px; margin-bottom: 30px; }

.trust {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
}
.trust__avatars { display: flex; }
.trust__avatars span {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff;
  margin-left: -10px; background: var(--accent-100); color: var(--accent-600);
  display: grid; place-items: center; font-weight: 700; font-size: 0.8rem;
  box-shadow: var(--shadow-sm);
}
.trust__avatars span:first-child { margin-left: 0; }
.stars { color: #f5a623; letter-spacing: 2px; }

/* Hero dashboard mockup */
.mockup {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mockup__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.mockup__bar i { width: 11px; height: 11px; border-radius: 50%; background: #d7deea; display: inline-block; }
.mockup__bar i:nth-child(1){ background:#ff6058;} .mockup__bar i:nth-child(2){ background:#ffbd2e;} .mockup__bar i:nth-child(3){ background:#28c840;}
.mockup__bar .mockup__url { margin-left: 10px; font-size: 0.82rem; color: var(--muted); }
.mockup__body { padding: 22px; display: grid; gap: 16px; }
.mockup__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.mockup__stat { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.mockup__stat b { display: block; font-size: 1.4rem; color: var(--ink); }
.mockup__stat span { font-size: 0.78rem; color: var(--muted); }
.mockup__chart { height: 130px; border: 1px solid var(--border); border-radius: 12px; padding: 14px; display: flex; align-items: flex-end; gap: 10px; }
.mockup__chart i { flex: 1; background: linear-gradient(180deg, var(--accent), #7aa2ff); border-radius: 6px 6px 0 0; display: block; }
.mockup__row { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.mockup__row .dot { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-100); display: grid; place-items: center; color: var(--accent-600); }
.mockup__row .dot svg { width: 18px; height: 18px; }
.mockup__row p { margin: 0; font-size: 0.85rem; color: var(--ink); font-weight: 600; }
.mockup__row small { color: var(--muted); font-weight: 400; }
.mockup__row .tag { margin-left: auto; font-size: 0.72rem; font-weight: 700; color: #16a34a; background: #e7f8ee; padding: 4px 10px; border-radius: 999px; }

/* --------------------------------------------------------------------------
   7. Metric strip
   -------------------------------------------------------------------------- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.metric { text-align: center; }
.metric b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink); font-weight: 800; letter-spacing: -0.03em; }
.section--navy .metric b { color: #fff; }
.metric span { font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d5deee; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-100); color: var(--accent-600);
  display: grid; place-items: center; margin-bottom: 18px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.98rem; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--accent); font-weight: 600; font-size: 0.95rem; }
.card__link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.card__link:hover svg { transform: translateX(4px); }

.card--link { display: block; }
.card--dark { background: var(--navy-800); border-color: var(--navy-700); color: #b9c4d8; }
.card--dark h3 { color: #fff; }
.card--dark .card__icon { background: rgba(47,107,255,0.16); color: #9dbaff; }

/* Feature list with check icons */
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; color: var(--ink); font-weight: 500; }
.check-list li svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.section--navy .check-list li { color: #dbe3f0; }

/* --------------------------------------------------------------------------
   9. Steps (How it works)
   -------------------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; }
.step__num {
  counter-increment: step;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 1.1rem; margin-bottom: 18px;
}
.step__num::before { content: "0" counter(step); }

/* --------------------------------------------------------------------------
   10. Split / alternating feature sections
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media {
  background: linear-gradient(160deg, var(--surface), #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.split h2 { margin-bottom: 16px; }
.split p { margin-bottom: 20px; }

/* Panel used inside split media */
.panel { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; box-shadow: var(--shadow-sm); }
.panel + .panel { margin-top: 14px; }
.panel__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.panel__head .dot { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-100); color: var(--accent-600); display: grid; place-items: center; }
.panel__head .dot svg { width: 20px; height: 20px; }
.panel__head b { color: var(--ink); }
.panel__bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.panel__bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* --------------------------------------------------------------------------
   11. Testimonials
   -------------------------------------------------------------------------- */
.testimonial { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); height: 100%; }
.testimonial .stars { margin-bottom: 14px; }
.testimonial p { color: var(--ink); font-size: 1.02rem; }
.testimonial__author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testimonial__author .av { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-100); color: var(--accent-600); display: grid; place-items: center; font-weight: 700; }
.testimonial__author b { color: var(--ink); display: block; font-size: 0.95rem; }
.testimonial__author span { font-size: 0.85rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); text-align: center; color: #c7d0e0; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 50% 0%, rgba(47,107,255,0.28), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; }

/* --------------------------------------------------------------------------
   13. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); text-align: center; background: var(--surface); border-bottom: 1px solid var(--border); position: relative; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero p { max-width: 640px; margin: 18px auto 0; font-size: 1.15rem; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: 0.92rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: #fff; box-shadow: var(--ring); outline: none; }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 0.85rem; margin-top: 6px; }
.form-success {
  display: none; margin-top: 18px; padding: 14px 16px; border-radius: 12px;
  background: #e7f8ee; color: #157a3e; border: 1px solid #b8e6c9; font-weight: 600;
}
.form-success.is-visible { display: block; }

/* Contact layout */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-info .dot { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-100); color: var(--accent-600); display: grid; place-items: center; flex: none; }
.contact-info .dot svg { width: 20px; height: 20px; }
.contact-info b { color: var(--ink); display: block; }

/* --------------------------------------------------------------------------
   15. Case studies
   -------------------------------------------------------------------------- */
.case { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: 1fr 1fr; }
.case:hover { box-shadow: var(--shadow); }
.case__media { background: var(--navy); color: #fff; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; }
.case__media .tag { align-self: flex-start; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: rgba(47,107,255,0.2); color: #9dbaff; padding: 5px 12px; border-radius: 999px; }
.case__result { display: flex; gap: 26px; margin-top: 24px; }
.case__result b { display: block; font-size: 1.8rem; color: #fff; }
.case__result span { font-size: 0.8rem; color: #9fb0cc; }
.case__body { padding: 36px; }
.case__body h3 { margin-bottom: 8px; }
.case__body h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin: 18px 0 6px; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #97a3ba; padding: 72px 0 32px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__brand img { height: 24px; margin-bottom: 18px; }
.footer__brand p { max-width: 280px; font-size: 0.95rem; }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer ul li { padding: 6px 0; }
.footer a { font-size: 0.95rem; transition: color 0.15s ease; }
.footer a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: 0.88rem; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14); display: grid; place-items: center; }
.footer__social a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.footer__social svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   17. Scroll reveal animation
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-width: 560px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .case, .case--reverse { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: #fff;
    padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-140%);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__links { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { padding: 12px 14px; }
  .has-dropdown .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 2px solid var(--border);
    border-radius: 0; margin: 4px 0 4px 14px; padding: 0 0 0 8px;
  }
  .has-dropdown:hover .dropdown__toggle svg { transform: none; }
  .nav__cta { margin: 12px 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   Case study cards (case-studies.html)
   -------------------------------------------------------------------------- */
.case-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-card .tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; background: var(--accent-100); color: var(--accent-600);
  padding: 5px 12px; border-radius: 999px; margin: 0;
}
.case-card h3 { color: var(--ink); font-size: 1.2rem; margin: 0; }
.case-card p { margin: 0; font-size: 0.96rem; }
.case-metrics { display: flex; gap: 22px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); }
.case-metrics > div { display: flex; flex-direction: column; }
.case-metrics b { color: var(--accent-600); font-size: 1.35rem; line-height: 1.2; }
.case-metrics span { font-size: 0.76rem; color: var(--muted); }
.fineprint { margin-top: 26px; text-align: center; font-size: 0.82rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Testimonial quotes
   -------------------------------------------------------------------------- */
.quote {
  background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 28px 30px; box-shadow: var(--shadow-sm); margin: 0;
}
.quote p { color: var(--ink); font-size: 1.08rem; line-height: 1.6; margin: 0 0 16px; }
.quote footer { font-size: 0.88rem; font-weight: 600; color: var(--muted); }

/* --------------------------------------------------------------------------
   Stat row (about.html)
   -------------------------------------------------------------------------- */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  background: var(--navy); border-radius: var(--radius-lg); padding: 40px 36px;
}
.stat { text-align: center; }
.stat b { display: block; font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.1; }
.stat span { font-size: 0.85rem; color: #9fb0cc; }

/* --------------------------------------------------------------------------
   Contact form + methods
   -------------------------------------------------------------------------- */
.contact-methods { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.contact-method {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-method:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.contact-method .dot { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-100); color: var(--accent-600); display: grid; place-items: center; flex: none; }
.contact-method .dot svg { width: 20px; height: 20px; }
.contact-method b { display: block; color: var(--ink); font-size: 0.95rem; }
.contact-method span { font-size: 0.88rem; color: var(--muted); }
.contact-form-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-status { margin-top: 16px; font-weight: 600; font-size: 0.92rem; }
.form-status.is-success { color: #157a3e; }
.form-status.is-error { color: #c02626; }

@media (max-width: 760px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .steps, .metrics { grid-template-columns: 1fr; }
  .field-row, .form-row { grid-template-columns: 1fr; }
  .case-metrics { gap: 16px; }
  .btn-row .btn { width: 100%; }
  .hero__sub { font-size: 1.08rem; }
  body { font-size: 16px; }
}
