:root {
  --color-brand: #f5812e;
  --color-brand-dark: #d76e1d;
  --color-brand-light: #ffe4cf;
  --color-surface: #ffffff;
  --color-surface-muted: #f9f6f3;
  --color-ink: #1f2933;
  --color-ink-subtle: #4b5563;
  --color-border: rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --shadow-hard: 0 26px 60px rgba(15, 23, 42, 0.18);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --max-content-width: 1280px;
  --font-family-base: 'Inter', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family-base);
  color: var(--color-ink);
  background: var(--color-surface-muted);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

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

section {
  scroll-margin-top: 6rem;
}

.container {
  width: min(100%, calc(var(--max-content-width) + 3rem));
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
}

.brand-word {
  display: block;
  width: clamp(120px, 18vw, 180px);
}

.nav-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
}

.nav-toggle span {
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  position: relative;
  display: inline-block;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  transition: transform 0.3s ease;
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(6px);
}

.nav-toggle.is-open span {
  background: transparent;
}

.nav-toggle.is-open span::before {
  transform: rotate(45deg);
}

.nav-toggle.is-open span::after {
  transform: rotate(-45deg);
}

.site-nav {
  position: absolute;
  inset: 100% 0 auto;
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  border-bottom: 1px solid var(--color-border);
  display: none;
}

.site-nav.is-open {
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
  display: flex;
  flex-direction: column;
}

.site-nav li a {
  padding: 0.75rem 1.5rem;
  display: block;
  color: var(--color-ink);
  font-weight: 600;
}

.site-nav li a:hover,
.site-nav li a:focus,
.site-nav li a[aria-current="page"] {
  background: rgba(245, 129, 46, 0.12);
  color: var(--color-brand-dark);
}

.hero {
  /* Updated: remove brand color/overlay, use white background with image */
  /* Restored: plain white base with background image (no extra fade) */
  background: #ffffff url('../img/background.png') center/cover no-repeat;
  position: relative;
  color: var(--color-ink);
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}
/* Remove dark overlay */
.hero::after { content: none; }

/* Brand tint overlay: adjustable warm wash without harming readability
   To tweak intensity: adjust the rgba() alpha values below (e.g. 0.42 -> 0.32 / 0.50)
   To make it uniform: replace gradient with rgba(245,129,46,0.25)
*/
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(245,129,46,0.42) 0%,
    rgba(245,129,46,0.18) 55%,
    rgba(245,129,46,0.05) 100%);
  mix-blend-mode: multiply; /* Gives a subtle richness; remove if too strong */
  pointer-events: none;
  z-index: 0;
}

/* Ensure content sits above overlay */
.hero-inner { position: relative; z-index: 1; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.hero-content {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.hero-content h1 {
  font-size: clamp(2.7rem, 6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1.35rem;
}

.hero-content p {
  margin: 0 0 1.75rem;
  color: var(--color-ink-subtle);
  font-size: 1.07rem;
}

.hero-card {
  /* Solid background (removed opacity) and no blur */
  background: #ffffff;
  color: var(--color-ink);
  padding: 2.4rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 60px rgba(15, 23, 42, 0.16);
}

.hero-card h1 {
  color: var(--color-ink);
}

.hero-card p {
  color: var(--color-ink-subtle);
}

.hero-card .badge {
  background: rgba(245, 129, 46, 0.18);
  color: var(--color-brand);
}

.hero-card .button.primary {
  background: var(--color-brand);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(245, 129, 46, 0.32);
}

.hero-card .button.secondary {
  color: var(--color-brand);
  border-color: rgba(245, 129, 46, 0.35);
}

.hero-card .hero-actions {
  margin-top: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: #ffffff;
  color: var(--color-brand);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.button.primary:hover,
.button.primary:focus {
  transform: translateY(-1px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}

.button.secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-stats {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.stat-card strong {
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.8vw, 2.6rem);
  line-height: 1.1;
}

.section-header p {
  margin: 0;
  color: var(--color-ink-subtle);
}

.section--surface {
  background: var(--color-surface);
}

.section--muted {
  background: var(--color-surface-muted);
}

.section--brand {
  background: var(--color-brand);
  color: #ffffff;
}

.section--brand p {
  color: rgba(255, 255, 255, 0.85);
}

.page-hero {
  background: var(--color-brand);
  color: #ffffff;
  padding: clamp(3.5rem, 6vw, 5rem) 0;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.1rem);
  margin: 0 0 1rem;
  line-height: 1.1;
}

.page-hero p {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feature-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-ink-subtle);
}

.feature-card a {
  font-weight: 600;
  color: var(--color-brand-dark);
}

.feature-card a:hover,
.feature-card a:focus {
  text-decoration: underline;
}

.muted {
  color: var(--color-ink-subtle);
}

.icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--color-brand-light);
  color: var(--color-brand);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
}

.icon-circle .entypo {
  line-height: 1;
}

.split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  align-items: center;
}

.hero-devices {
  display: grid;
  gap: 1.2rem;
  align-self: stretch;
  margin-top: 1.5rem;
}

.device-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.45rem 1.9rem;
  color: var(--color-ink);
  display: flex;
  align-items: flex-start;
  gap: 1.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.device-copy {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.device-card strong {
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  color: var(--color-ink);
  margin: 0;
}

.device-card p {
  color: var(--color-ink-subtle);
  font-size: 1rem;
  margin: 0;
  line-height: 1.55;
}

.device-icon {
  font-size: 3.1rem;
  line-height: 1;
  color: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
}

.entypo-large {
  font-size: 2.4rem;
}

.fa-2x {
  font-size: 2.4rem;
}

.split img,
.screenshot-card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  background: var(--color-brand-light);
  color: var(--color-brand-dark);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.timeline {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.timeline-item::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--color-brand);
  margin-top: 0.6rem;
  box-shadow: 0 0 0 6px rgba(245, 129, 46, 0.15);
}

.timeline-item strong {
  display: block;
  font-size: 1.05rem;
}

.list-check {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.list-check li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--color-ink-subtle);
}

.list-check li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-brand);
  font-weight: 700;
}

.screenshot-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.screenshot-card {
  padding: 1rem;
  background: var(--color-surface);
}

.screenshot-card h4 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}

.screenshot-stack {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}

.screenshot-stack img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.screenshot-stack img:nth-child(2) {
  position: absolute;
  top: 16%;
  left: -12%;
  width: 72%;
  transform: rotate(-7deg);
}

.screenshot-stack img:nth-child(3) {
  position: absolute;
  bottom: -12%;
  right: -6%;
  width: 68%;
  transform: rotate(5deg);
}

.release-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.release-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.release-header p {
  color: var(--color-ink-subtle);
  max-width: 760px;
}

.release-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.release-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.release-card h3 {
  margin: 0;
}

.release-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-ink-subtle);
}

body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  z-index: 1000;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  width: min(92vw, 960px);
  max-height: calc(100vh - 2.5rem);
  display: flex;
  z-index: 1;
}

.modal-surface {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl, 24px);
  box-shadow: 0 42px 120px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  padding: clamp(2rem, 5vw, 3.25rem);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  background: rgba(15, 23, 42, 0.06);
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: var(--color-ink);
  cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
  background: rgba(15, 23, 42, 0.12);
  outline: none;
}

.release-modal-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.release-modal-header p {
  margin: 0;
  color: var(--color-ink-subtle);
}

.release-modal-header .badge {
  width: fit-content;
}

.release-modal-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (min-width: 768px) {
  .release-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.media-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  align-items: center;
}

.media-card h2 {
  margin: 0;
}

.media-shot {
  width: 100%;
  max-width: clamp(520px, 52vw, 780px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  border: 1px solid rgba(15, 23, 42, 0.08);
  justify-self: center;
}

.phone-shot {
  max-width: clamp(240px, 32vw, 360px);
}


.mobile-showcase {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.phone-stack {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  justify-items: center;
  align-items: center;
  position: relative;
  left: -5rem;
}

.phone-frame {
  width: min(100%, 240px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  overflow: hidden;
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.mobile-feature-list {
  display: grid;
  gap: 1.75rem;
}

.mobile-feature {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
}

.mobile-feature h3 {
  margin: 0;
}

.mobile-feature .list-check {
  margin: 0;
}

.mobile-feature .icon-circle {
  justify-self: flex-start;
}

.admin-report {
  align-items: start;
}

.admin-report-stack {
  display: grid;
  gap: 1.35rem;
  justify-items: center;
}

.admin-report-frame {
  margin: 0;
  width: 100%;
  max-width: clamp(520px, 52vw, 780px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  overflow: hidden;
}

.admin-report-frame img {
  width: 100%;
  height: auto;
  display: block;
}


.admin-header {
  display: grid;
  gap: 0.75rem;
  align-items: start;
}

.admin-header .badge {
  width: fit-content;
}

.admin-copy {
  display: grid;
  gap: 1.5rem;
}

.admin-report-header {
  display: grid;
  gap: 0.75rem;
  align-items: start;
}

.admin-report-header .badge {
  width: fit-content;
}

.admin-report-copy {
  display: grid;
  gap: 1.5rem;
}

.accessibility-header {
  display: grid;
  gap: 0.75rem;
  align-items: start;
}

.accessibility-header .badge {
  width: fit-content;
}

.accessibility-copy {
  display: grid;
  gap: 1.5rem;
}

.api-header {
  display: grid;
  gap: 0.75rem;
  align-items: start;
}

.api-header .badge {
  width: fit-content;
}

.api-media {
  align-items: start;
}

.api-frame {
  margin: 0;
  border-radius: var(--radius-xl, 24px);
  box-shadow: var(--shadow-hard);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  background: #ffffff;
}

.api-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.api-copy {
  display: grid;
  gap: 1.5rem;
}

.user-header {
  display: grid;
  gap: 0.75rem;
  align-items: start;
}

.user-header .badge {
  width: fit-content;
}

.user-stack {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
}

.user-frame {
  margin: 0;
  border-radius: var(--radius-xl, 24px);
  box-shadow: var(--shadow-hard);
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  background: #ffffff;
}

.user-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.user-details {
  display: grid;
  gap: 1.5rem;
}

.ai-showcase {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.ai-visual {
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  text-align: center;
}

.ai-visual-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

.dashboard-frame {
  width: min(100%, 480px);
  padding: 1.5rem;
  border-radius: var(--radius-xl, 24px);
  background: linear-gradient(145deg, rgba(245, 129, 46, 0.12), rgba(15, 23, 42, 0.05));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-hard);
}

.dashboard-frame--compact {
  width: min(100%, 360px);
  padding: 1.25rem;
}

.dashboard-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-lg) - 0.35rem);
  box-shadow: var(--shadow-soft);
}

.ai-shot {
  max-width: none;
}

.ai-caption {
  margin: 0;
  color: var(--color-ink-subtle);
  font-size: 0.95rem;
  line-height: 1.6;
}

.ai-feature .list-check {
  margin: 0;
}

.media-card {
  display: grid;
  gap: 1.2rem;
}

.media-card.analytics-frames {
  gap: 1.25rem;
  justify-items: center;
}

.analytics-frames .tablet-frame {
  max-width: clamp(280px, 45vw, 520px);
  width: 100%;
}

.analytics-frames .tablet-frame img {
  width: 100%;
  height: auto;
}

.media-card .icon-circle {
  justify-self: flex-start;
}

.media-card .badge {
  width: fit-content;
}

.tablet-frame {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.88);
  /* Reduced vertical padding (was 3rem 0 2rem) */
  padding: 2rem 0 1.25rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.88);
}

.footer-inner {
  display: grid;
  gap: 1.25rem; /* was 2rem */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.footer small {
  display: block;
  margin-top: 1rem; /* was 1.75rem */
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem; /* slightly smaller */
  line-height: 1.2;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-logos {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.footer-brand-logos .brand-word {
  width: 160px;
}

.mars-mark {
  width: 140px;
  height: auto;
}

.footer-contact ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-contact li .entypo {
  font-size: 1.1rem;
}

.badge-light {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.chip-grid li {
  background: rgba(15, 23, 42, 0.08);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-ink-subtle);
}

/* === Footer compression adjustments === */
/* Goal: make logo/brand column similar height to contact block by reducing internal spacing */
.footer-inner {
  align-items: stretch;
}

.footer-brand {
  gap: 0.75rem; /* was 1rem */
}

.footer-brand-logos {
  margin-top: 0; /* remove extra top spacing */
  gap: 0.9rem; /* slightly tighter */
}

/* Slightly reduce logo widths to shrink vertical wrapping */
.footer-brand-logos .brand-word { width: 140px; }
.footer-brand-logos .mars-mark { width: 120px; }

/* Tighter paragraph to reduce column height */
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0; /* remove default margin that adds height */
}

/* Vertically center both columns within same vertical footprint on wider screens */
@media (min-width: 768px) {
  .footer-brand, .footer-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 320px);
    align-items: stretch;
  }

  .hero-devices {
    margin-top: 0;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .site-nav {
    position: static;
    background: transparent;
    box-shadow: none;
    border: none;
    display: block !important;
  }

  .site-nav ul {
    flex-direction: row;
    gap: 1.4rem;
    padding: 0;
  }

  .site-nav li a {
    color: rgba(255, 255, 255, 0.85);
    padding: 0;
  }

  .site-nav li a:hover,
  .site-nav li a:focus,
  .site-nav li a[aria-current="page"] {
    background: none;
    color: #ffffff;
  }

  .nav-toggle {
    display: none;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
  }

  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-report {
    align-items: center;
  }

  .admin-report-stack {
    width: 100%;
    max-width: clamp(520px, 52vw, 780px);
  }

  .admin-report-frame {
    width: 100%;
    max-width: clamp(520px, 52vw, 780px);
  }

  .mobile-showcase {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
  }

  .phone-stack {
    position: relative;
    grid-template-columns: none;
    justify-items: center;
    min-height: clamp(360px, 56vw, 520px);
    padding: 1.5rem 0;
  }

  .phone-frame {
    width: clamp(220px, 26vw, 320px);
  }

  .phone-frame--primary {
    position: relative;
    z-index: 2;
  }

  .phone-frame--secondary,
  .phone-frame--tertiary {
    position: absolute;
    top: 50%;
    width: clamp(200px, 22vw, 280px);
    z-index: 1;
  }

  .phone-frame--secondary {
    left: 8%;
    transform: translate(-65%, -50%) rotate(-8deg);
  }

  .phone-frame--tertiary {
    right: 8%;
    transform: translate(65%, -40%) rotate(10deg);
  }

  .ai-showcase {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 3rem;
  }

  .ai-visual {
    justify-items: flex-start;
    text-align: left;
  }

  .ai-visual-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    align-items: stretch;
    gap: 1.5rem;
  }

  .ai-caption {
    text-align: left;
    max-width: 420px;
  }

  .dashboard-frame {
    width: clamp(320px, 36vw, 520px);
    padding: 1.75rem;
  }

  .dashboard-frame--compact {
    width: clamp(260px, 28vw, 420px);
    padding: 1.35rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .hero-content {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.9fr);
    align-items: stretch;
  }

  .hero-devices {
    margin-top: 0;
  }

  .media-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 3.5rem;
  }
}

@media (min-width: 1200px) {
  .split {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 3.75rem;
  }

  .hero-devices {
    gap: 1.8rem;
  }

  .media-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .container {
    padding: 0 1.15rem;
  }

  .header-inner {
    padding: 0.85rem 1.2rem;
  }

  .hero {
    background: var(--color-surface-muted);
    padding: 3.5rem 0;
  }

  .hero::before {
    content: none;
  }

  .hero-content h1 {
    font-size: 2.35rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-card {
    padding: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-devices {
    margin-top: 1.3rem;
    gap: 1rem;
  }

  .device-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.3rem 1.4rem;
  }

  .device-icon {
    font-size: 2.6rem;
    min-width: auto;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .feature-grid {
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }

  .list-check {
    margin-top: 1.1rem;
    gap: 0.65rem;
  }

  .list-check li {
    padding-left: 1.5rem;
  }

  .split {
    gap: 2.25rem;
  }

  .media-grid {
    gap: 2rem;
  }

  .dashboard-frame {
    margin: 0 auto;
  }

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

  .ai-visual-grid {
    justify-items: center;
  }

  .phone-stack {
    left: 0;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .footer-inner {
    gap: 2rem;
  }

  .footer-contact li {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.1rem;
  }

  .hero-card {
    padding: 1.8rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section-header h2 {
    font-size: 1.9rem;
  }

  .feature-card {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
