/* =========================================================
   Mic & Mac Solutions — shared design system
   ========================================================= */
/* @import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  /* ---- brand palette, sampled from the company mark ---- */
  --maroon-950: #260504;
  --maroon-900: #3A0A08;
  --maroon-800: #5C0F0B;
  --red-700: #8F160F;
  --red-600: #B4303C;
  --red-500: #C8434B;
  --rose-400: #E47878;
  --rose-300: #F0A6A2;
  --pink-500: #D53E93;
  --pink-600: #B32E7A;
  --gold-400: #EFA83A;
  --gold-300: #F5C567;

  --bg: #FBF3EE;
  --surface: #FFFFFF;
  --surface-alt: #F4E5DD;
  --surface-raised: #FFFFFF;
  --ink: #2A1210;
  --ink-soft: #6E4C46;
  --ink-faint: #9A7A73;
  --border: rgba(42, 18, 16, .12);
  --border-strong: rgba(42, 18, 16, .22);
  --shadow: 0 20px 45px -20px rgba(38, 5, 4, .28);
  --shadow-sm: 0 8px 20px -12px rgba(38, 5, 4, .25);
  --ring: rgba(180, 48, 60, .35);

  --grad-brand: linear-gradient(135deg, var(--red-600) 0%, var(--pink-500) 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(180, 48, 60, .12), rgba(213, 62, 147, .12));
  --grad-dark: linear-gradient(180deg, var(--maroon-900) 0%, var(--maroon-950) 100%);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1220px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;

  --watermark-filter: invert(1);
  --watermark-opacity: 0.04;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #180807;
    --surface: #241010;
    --surface-alt: #2E1513;
    --surface-raised: #2A1211;
    --ink: #F7E9E4;
    --ink-soft: #D8B6AF;
    --ink-faint: #A8807A;
    --border: rgba(255, 235, 230, .12);
    --border-strong: rgba(255, 235, 230, .2);
    --shadow: 0 20px 45px -18px rgba(0, 0, 0, .55);
    --shadow-sm: 0 8px 20px -12px rgba(0, 0, 0, .5);
    --rose-400: #E88888;
    --red-600: #D6444F;
    --pink-500: #E8579E;
    --gold-400: #F3B94E;
    --watermark-filter: none;
    --watermark-opacity: 0.06;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #180807;
  --surface: #241010;
  --surface-alt: #2E1513;
  --surface-raised: #2A1211;
  --ink: #F7E9E4;
  --ink-soft: #D8B6AF;
  --ink-faint: #A8807A;
  --border: rgba(255, 235, 230, .12);
  --border-strong: rgba(255, 235, 230, .2);
  --shadow: 0 20px 45px -18px rgba(0, 0, 0, .55);
  --shadow-sm: 0 8px 20px -12px rgba(0, 0, 0, .5);
  --rose-400: #E88888;
  --red-600: #D6444F;
  --pink-500: #E8579E;
  --gold-400: #F3B94E;
  --watermark-filter: none;
  --watermark-opacity: 0.06;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
  z-index: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/logo/watermark-log.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: max(1000px, 70vw);
  opacity: var(--watermark-opacity);
  filter: var(--watermark-filter);
  pointer-events: none;
  z-index: -1;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  text-wrap: balance;
  letter-spacing: -.01em;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

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

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--red-600);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 88px;
}

.section-tight {
  padding-block: 56px;
}

@media (max-width:720px) {
  .section {
    padding-block: 56px;
  }

  .section-tight {
    padding-block: 40px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.section-head {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
}

.section-head p {
  font-size: 17px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 14px 28px -12px rgba(180, 48, 60, .55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -12px rgba(180, 48, 60, .65);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--red-600);
  color: var(--red-600);
  transform: translateY(-2px);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .35);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, .2);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13.5px;
}

.btn-block {
  width: 100%;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
  isolation: isolate;
  background: var(--grad-dark);
  color: #F3DDD9;
}

/* blur lives on a pseudo-layer, not the header itself — a filter/backdrop-filter
   on the header would create a new containing block for its position:fixed
   mobile-nav child and break that panel's sizing. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  display: none;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.brand img {
  height: 44px;
  width: auto;
}

.brand small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .16em;
  color: #C79A94;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: #E6C4C0;
  transition: background .2s ease, color .2s ease;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.nav-links a.active {
  color: #fff;
  background: var(--grad-brand-soft);
  font-weight: 600;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
  transition: .25s;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

@media (max-width:960px) {
  .nav-links {
    position: fixed;
    inset: 0 0 0 auto;
    top: 73px;
    height: calc(100% - 73px);
    width: min(320px, 86vw);
    background: var(--grad-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 18px;
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    padding: 13px 16px;
    font-size: 16px;
  }

  .nav-cta .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: flex;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
  }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--grad-dark);
  color: #F3DDD9;
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 420px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(213, 62, 147, .18), transparent 70%);
  pointer-events: none;
}

.footer-top {
  padding-block: 72px 40px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 46px;
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.site-footer p {
  color: #D9B3AE;
  font-size: 14.5px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a {
  color: #E6C4C0;
  font-size: 14.5px;
  transition: color .2s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #E6C4C0;
  font-size: 14.5px;
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--rose-400);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: .2s;
}

.footer-social a:hover {
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #C79A94;
  position: relative;
  z-index: 1;
}

.footer-bottom a {
  color: #E6C4C0;
}

.footer-bottom a:hover {
  color: #fff;
}

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

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

/* ---------- hero shapes (facet motif echoing the mark) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 76px 90px;
}

.facet-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.facet {
  position: absolute;
  opacity: .5;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

/* ---------- badges / chips / stats ---------- */
.tech-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tech-chip:hover {
  border-color: var(--red-600);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat {
  text-align: left;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 13.5px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  letter-spacing: .03em;
}

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-brand-soft);
  color: var(--red-600);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.card p {
  font-size: 14.5px;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grid {
  display: grid;
  gap: 26px;
}

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

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width:980px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width:640px) {

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- entrance markers ----------
   Content is always visible at rest — nothing on the page depends on
   scrolling or JS to become readable. .is-visible only adds a brief,
   already-in-place fade+lift the first time an element crosses into
   view, purely decorative. */
.reveal,
.reveal-scale {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  animation: pop-in .6s ease both;
}

.reveal-scale.is-visible {
  animation: pop-in-scale .6s ease both;
}

@keyframes pop-in {
  from {
    opacity: .4;
    transform: translateY(14px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes pop-in-scale {
  from {
    opacity: .4;
    transform: scale(.97)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--grad-dark);
  padding: 64px 48px;
  color: #fff;
  text-align: center;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 90% at 15% 0%, rgba(180, 48, 60, .5), transparent 60%),
    radial-gradient(50% 90% at 85% 100%, rgba(213, 62, 147, .4), transparent 60%);
}

.cta-banner * {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(26px, 3.4vw, 38px);
}

.cta-banner p {
  color: #E6C4C0;
  max-width: 560px;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- breadcrumb / page header ---------- */
.page-hero {
  padding-block: 56px 60px;
  position: relative;
  overflow: hidden;
  background: var(--surface-alt);
}

.page-hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
}

.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.crumbs a:hover {
  color: var(--red-600);
}

/* ---------- forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red-600);
  box-shadow: 0 0 0 4px var(--ring);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---------- misc ---------- */
.divider {
  height: 1px;
  background: var(--border);
  border: 0;
  margin-block: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--font-mono);
}

.pill-live {
  background: rgba(52, 168, 83, .12);
  color: #2E8B4F;
}

:root[data-theme="dark"] .pill-live {
  background: rgba(52, 168, 83, .18);
  color: #6FD98A;
}

@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) .pill-live {
    background: rgba(52, 168, 83, .18);
    color: #6FD98A;
  }
}

.pill-soon {
  background: var(--grad-brand-soft);
  color: var(--red-600);
}

.text-gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.center {
  text-align: center;
}

/* ---------- theme toggle animations ---------- */
.theme-toggle {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle svg {
  position: absolute;
  /* bouncy, creative physical pop */
  transition: transform 0.65s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.5s ease;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

:root[data-theme="light"] .theme-toggle .icon-sun {
  opacity: 0;
  transform: translateY(-28px) rotate(-90deg);
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: translateY(28px) rotate(90deg);
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-moon {
    opacity: 0;
    transform: translateY(28px) rotate(90deg);
  }

  :root:not([data-theme="light"]) .theme-toggle .icon-sun {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

.theme-transition-active,
.theme-transition-active *,
.theme-transition-active *::before,
.theme-transition-active *::after {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}

/* ---------- view transitions for theme switch ---------- */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  z-index: 1;
}

::view-transition-new(root) {
  z-index: 2;
}