/* Accent Web Design — Modern dark/light theme */

:root {
  --bg-dark: #0a0c1b;
  --bg-dark-elevated: #12182a;
  --hero-glow-purple: rgba(124, 58, 237, 0.55);
  --hero-glow-blue: rgba(59, 130, 246, 0.25);
  --bg-light: #ffffff;
  --bg-muted: #f5f7fa;
  --bg-footer: #f5f7fa;
  --accent-purple: #7c3aed;
  --accent-blue: #3b82f6;
  --accent-cyan: #60a5fa;
  --gradient-accent: linear-gradient(135deg, #a855f7 0%, #6366f1 45%, #3b82f6 100%);
  --gradient-accent-hover: linear-gradient(135deg, #9333ea 0%, #4f46e5 45%, #2563eb 100%);
  --white: #ffffff;
  --border: rgba(255, 255, 255, 0.1);
  --border-light: rgba(15, 23, 42, 0.08);
  --shadow: 0 4px 24px rgba(10, 14, 26, 0.08);
  --shadow-lg: 0 20px 50px rgba(10, 14, 26, 0.15);
  --shadow-card: 0 2px 12px rgba(10, 14, 26, 0.06);
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 1rem;
  --radius-pill: 999px;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --header-height: 4.5rem;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 75rem;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #94a3b8;
  --text-on-light: #0f172a;
  --text-muted: #64748b;
  --icon-accent: #60a5fa;
  --icon-bg: rgba(96, 165, 250, 0.1);

  /* Legacy aliases for inner-page markup */
  --linen: var(--bg-muted);
  --cream: var(--bg-muted);
  --forest: var(--bg-dark);
  --forest-deep: var(--bg-dark);
  --sand: #e2e8f0;
  --sage: var(--accent-blue);
  --sage-soft: var(--icon-bg);
  --moss: var(--accent-purple);
  --clay: var(--accent-purple);
  --clay-hover: #6d28d9;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-on-light);
  background: var(--bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-blue); }

:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.display-hero {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-on-dark);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-on-light);
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.section-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  max-width: 40rem;
}

.text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container-awd {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.section { padding-block: clamp(4rem, 8vw, 6rem); position: relative; }

.section--dark,
.section--forest {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--dark .section-lead,
.section--forest .section-lead { color: var(--text-on-dark-muted); }

.section--dark .section-title,
.section--forest .section-title { color: var(--text-on-dark); }

.section--white { background: var(--bg-light); color: var(--text-on-light); }
.section--light,
.section--linen,
.section--cream { background: var(--bg-muted); color: var(--text-on-light); }

.section--dark .text-secondary,
.section--forest .text-secondary { color: var(--text-on-dark-muted) !important; }

.section > .container-awd { position: relative; z-index: 1; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--header-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  /* Do not use backdrop-filter here — it creates a containing block and
     clips the Bootstrap offcanvas (fixed) menu to the header height. */
  overflow: visible;
}

.site-header--dark,
body.has-dark-hero .site-header {
  background: rgba(10, 12, 27, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.site-header--dark.is-scrolled,
body.has-dark-hero .site-header.is-scrolled {
  background: rgba(10, 12, 27, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border-light);
  box-shadow: var(--shadow);
}

body.has-dark-hero .site-header.is-scrolled {
  background: rgba(10, 12, 27, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header .navbar {
  height: var(--header-height);
  padding: 0;
  overflow: visible;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand:hover { opacity: 0.92; }

.navbar-brand__logo {
  display: block;
  height: 2.25rem;
  width: auto;
}

.site-footer__brand {
  display: inline-block;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.site-footer__brand:hover { opacity: 0.9; }

.site-footer__logo {
  display: block;
  height: 2rem;
  width: auto;
}

.nav-link {
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition);
}

body:not(.has-dark-hero) .nav-link {
  color: var(--text-muted) !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-on-dark) !important;
}

body:not(.has-dark-hero) .nav-link:hover,
body:not(.has-dark-hero) .nav-link.active {
  color: var(--text-on-light) !important;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.2);
  padding: 0.375rem 0.625rem;
}

body:not(.has-dark-hero) .navbar-toggler { border-color: var(--border-light); }

.navbar-toggler-icon {
  filter: invert(1);
}

body:not(.has-dark-hero) .navbar-toggler-icon { filter: none; }

.navbar-toggler:focus { box-shadow: 0 0 0 2px var(--accent-blue); }

.offcanvas-awd {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-left: 1px solid var(--border);
}

.offcanvas-awd .offcanvas-header { border-bottom: 1px solid var(--border); }
.offcanvas-awd .offcanvas-title { font-family: var(--font-display); color: var(--text-on-dark); }
.offcanvas-awd .btn-close { filter: invert(1); }

@media (max-width: 991.98px) {
  .site-header .offcanvas.offcanvas-end {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(100%, 20rem);
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
    z-index: 1055;
  }

  .offcanvas-awd .navbar-nav {
    gap: 0.25rem;
    padding-top: 0.5rem;
  }

  .offcanvas-awd .nav-link {
    font-size: 1.0625rem;
    padding: 0.75rem 0.25rem !important;
  }
}

@media (min-width: 992px) {
  .site-header .offcanvas {
    position: static;
    visibility: visible !important;
    transform: none !important;
    background: transparent;
    border: none;
  }
  .site-header .offcanvas .offcanvas-header { display: none; }
  .site-header .offcanvas .offcanvas-body { display: flex; padding: 0; }
}

/* Buttons */
.btn-awd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-awd:active { transform: scale(0.98); }

.btn-primary-awd {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.btn-primary-awd:hover {
  background: var(--gradient-accent-hover);
  color: var(--white);
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
}

.btn-outline-awd {
  background: transparent;
  color: var(--text-on-dark);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-awd:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  border-color: rgba(255, 255, 255, 0.6);
}

.section--white .btn-outline-awd,
.section--light .btn-outline-awd {
  color: var(--text-on-light);
  border-color: #cbd5e1;
}

.section--white .btn-outline-awd:hover,
.section--light .btn-outline-awd:hover {
  background: var(--bg-muted);
  color: var(--text-on-light);
  border-color: #94a3b8;
}

.btn-light-awd {
  background: var(--white);
  color: var(--bg-dark);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-light-awd:hover {
  background: #f1f5f9;
  color: var(--bg-dark);
  transform: translateY(-1px);
}

.btn-awd .bi { transition: transform var(--transition); }
.btn-awd:hover .bi-arrow-right { transform: translateX(3px); }

.btn-awd.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }

/* Hero */
.hero {
  min-height: 92vh;
  min-height: 92dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.hero .container-awd {
  position: relative;
  z-index: 1;
}

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__glow::before {
  content: "";
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 70%;
  height: 85%;
  background: radial-gradient(
    ellipse at center,
    var(--hero-glow-purple) 0%,
    rgba(99, 102, 241, 0.3) 35%,
    var(--hero-glow-blue) 55%,
    transparent 72%
  );
}

.hero__glow::after {
  content: "";
  position: absolute;
  right: 10%;
  bottom: 10%;
  width: 45%;
  height: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(168, 85, 247, 0.25) 0%,
    transparent 65%
  );
}

.hero__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-on-dark-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  padding: 0.375rem 0.875rem;
  margin-bottom: 1.5rem;
}

.hero__content { max-width: 36rem; }

.hero__lead {
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  color: var(--text-on-dark-muted);
  margin-bottom: 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* Device mockups */
.mockup-stack {
  position: relative;
  min-height: 20rem;
  filter: drop-shadow(0 24px 48px rgba(124, 58, 237, 0.2));
}

.browser-frame {
  background: #1e293b;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  background: #0f172a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-frame__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; }
.browser-frame__dot:nth-child(1) { background: #ef4444; }
.browser-frame__dot:nth-child(2) { background: #eab308; }
.browser-frame__dot:nth-child(3) { background: #22c55e; }

.browser-frame__url {
  flex: 1;
  margin-left: 0.75rem;
  font-size: 0.6875rem;
  color: var(--text-on-dark-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
}

.browser-frame__screen {
  aspect-ratio: 16 / 10;
  background: #1e293b;
  overflow: hidden;
}

.browser-frame__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.mockup-stack .browser-frame--back {
  position: absolute;
  top: 2%;
  right: 2%;
  width: 92%;
  z-index: 0;
  transform: rotateY(-16deg) rotateX(6deg) rotateZ(1deg);
  box-shadow:
    var(--shadow-lg),
    0 0 60px rgba(124, 58, 237, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-frame {
  background: #1a1a2e;
  border-radius: 2rem;
  border: 3px solid #2d2d44;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  padding: 0.5rem;
}

.phone-frame::before {
  content: "";
  display: block;
  width: 28%;
  height: 0.25rem;
  background: #2d2d44;
  border-radius: var(--radius-pill);
  margin: 0.25rem auto 0.5rem;
}

.phone-frame__screen {
  border-radius: 1.25rem;
  overflow: hidden;
  aspect-ratio: 9 / 19;
  background: #0f172a;
}

.phone-frame__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.mockup-stack .phone-frame--front {
  position: absolute;
  left: 4%;
  bottom: 6%;
  z-index: 2;
  width: 30%;
  margin: 0;
  transform: rotateY(14deg) rotateX(-5deg) rotateZ(-10deg);
  box-shadow:
    var(--shadow-lg),
    0 0 40px rgba(124, 58, 237, 0.2);
}

/* Credibility strip */
.cred-strip {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: 1.5rem;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.cred-item {
  text-align: center;
  padding: 0.5rem 1rem;
}

.cred-item__icon {
  font-size: 1.5rem;
  color: var(--icon-accent);
  margin-bottom: 0.75rem;
}

.cred-item__value {
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  font-weight: 600;
  line-height: 1.3;
}

.cred-item__label {
  font-size: 0.8125rem;
  color: var(--text-on-dark-muted);
  margin-top: 0.25rem;
}

/* Service cards */
.service-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-bg);
  border-radius: var(--radius-sm);
  color: var(--icon-accent);
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: var(--text-on-light);
}

.service-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.service-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-purple);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.section--dark .service-card,
.section--forest .service-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.section--dark .service-card__title,
.section--forest .service-card__title { color: var(--text-on-dark); }

.section--dark .service-card__text,
.section--forest .service-card__text { color: var(--text-on-dark-muted); }

/* Project cards */
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

a.project-card:hover {
  color: inherit;
  text-decoration: none;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__image img { transform: scale(1.03); }

.project-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.125rem 1.25rem 1.25rem;
  gap: 0.25rem;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
  line-height: 1.35;
  color: var(--text-on-light);
}

.project-card__subtitle {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin-bottom: 0;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}

.tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  background: var(--icon-bg);
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  margin-top: 0.25rem;
}

.project-card__body > .service-card__link {
  margin-top: auto;
  padding-top: 0.5rem;
}

.work-section__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.75rem;
}

.work-section__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-purple);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.work-section__link:hover { color: var(--accent-blue); }

/* Case study */
.case-study { display: grid; gap: 2.5rem; align-items: center; }

@media (min-width: 992px) {
  .case-study { grid-template-columns: 1fr 1.1fr; }
}

.case-study__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-purple);
  margin-bottom: 0.75rem;
}

/* Capabilities */
.capability-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
}

.capability-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-on-dark);
}

.capability-item .bi { color: var(--icon-accent); font-size: 1.125rem; }

/* Code window */
.code-window {
  background: var(--bg-dark-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.code-window__bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-window__body { padding: 1.25rem; overflow-x: auto; color: #94a3b8; }
.code-window .kw { color: #c084fc; }
.code-window .fn { color: #60a5fa; }
.code-window .str { color: #e2e8f0; }
.code-window .cm { color: #64748b; }

/* CTA section */
.cta-section {
  background: var(--bg-dark);
  padding-block: clamp(4rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.cta-band {
  position: relative;
  z-index: 1;
  color: var(--text-on-dark);
  max-width: 36rem;
}

.cta-band .section-title { color: var(--text-on-dark); }

.cta-band .section-lead {
  color: var(--text-on-dark-muted);
  max-width: none;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

.cta-band__ribbon {
  position: absolute;
  right: 0;
  bottom: -15%;
  top: auto;
  transform: none;
  width: 52%;
  max-width: 32rem;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
}

.cta-band__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

.cta-band__contacts a {
  color: var(--text-on-dark-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.cta-band__contacts a:hover { color: var(--accent-cyan); }

/* Footer */
.site-footer {
  background: var(--bg-footer);
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-block: 3.5rem 2rem;
}

.site-footer__desc {
  font-size: 0.9375rem;
  max-width: 22rem;
  line-height: 1.6;
}

.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a { color: var(--text-muted); font-size: 0.9375rem; }
.footer-nav a:hover { color: var(--text-on-light); }

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-on-light);
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text-on-light); }

/* Page hero */
.page-hero {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 3rem;
  position: relative;
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.page-hero .display-hero { color: var(--text-on-dark); }
.page-hero .section-lead { color: var(--text-on-dark-muted); }
.page-hero .section-eyebrow,
.page-hero__eyebrow { color: var(--accent-cyan); }

/* Forms */
.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
  color: var(--text-on-light);
}

.form-control, .form-select {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  background: var(--white);
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-control.is-invalid { border-color: #ef4444; }
.invalid-feedback { font-size: 0.8125rem; color: #dc2626; margin-top: 0.25rem; }
.form-note { font-size: 0.8125rem; color: var(--text-muted); }

.contact-sidebar {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-sidebar h2 {
  color: var(--text-on-dark);
  font-family: var(--font-display);
}

.contact-sidebar a { color: var(--accent-cyan); }
.contact-sidebar a:hover { color: var(--text-on-dark); }

.contact-sidebar__item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-sidebar__item:last-child { margin-bottom: 0; }

.contact-sidebar__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--icon-bg);
  border-radius: var(--radius-sm);
  color: var(--icon-accent);
  flex-shrink: 0;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

/* Work filters */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }

.filter-btn {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid #e2e8f0;
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--icon-bg);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

/* Service detail */
.service-block { padding-block: 3rem; border-bottom: 1px solid var(--border-light); }
.service-block:last-child { border-bottom: none; }

.service-block__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.text-dark-secondary { color: var(--text-muted) !important; }

/* Mobile CTA */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1020;
  padding: 0.75rem 1rem;
  background: rgba(10, 12, 27, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 767.98px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 4rem; }
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

.text-accent { color: var(--accent-purple) !important; }

.text-center .section-lead { margin-inline: auto; }

@media (min-width: 768px) {
  .mockup-stack { min-height: 24rem; }
}

@media (min-width: 992px) {
  .mockup-stack {
    min-height: 28rem;
    perspective: 1400px;
    perspective-origin: 65% 50%;
  }

  .mockup-stack .browser-frame--back,
  .mockup-stack .phone-frame--front {
    transform-style: preserve-3d;
  }
}

@media (max-width: 991.98px) {
  .hero {
    min-height: auto;
    padding-block: calc(var(--header-height) + 3rem) 4rem;
  }

  .mockup-stack { margin-top: 3rem; min-height: 18rem; }
  .mockup-stack .browser-frame--back { display: none; }

  .mockup-stack .phone-frame--front {
    position: relative;
    left: auto;
    bottom: auto;
    width: 42%;
    margin-top: 0;
    margin-right: auto;
    margin-left: auto;
    transform: none;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.05);
  }

  .mockup-stack {
    filter: none;
  }

  .cta-band__ribbon { display: none; }
}
