/* ============================================================
   MIRJY TECHNOLOGIES - Marketing Site
   Design scheme matched to HotelSaas / ResInv / PreOrder:
   - Fonts: Space Grotesk (body), Bebas Neue (display), JetBrains Mono (labels)
   - Flat teal accent on ink-dark surfaces, cream/warm light sections
   - Sharp 1px borders, solid colors. No gradients. No glow. No pills.
   ============================================================ */

:root {
  /* Palette (ResInv base + PreOrder teal) */
  --ink:        #171512;
  --ink-2:      #1f1d19;
  --ink-3:      #26241f;
  --cream:      #faf7f2;
  --cream-2:    #f1ece3;
  --card:       #ffffff;
  --line:       #e7e0d4;
  --line-dark:  #33302a;
  --teal:       #0e9f8a;
  --teal-deep:  #0b7f6e;
  --teal-soft:  #e2f4ef;
  --teal-text:  #5ee0c9;
  --amber:      #f59e0b;
  --danger:     #dc2626;
  --muted:      #7c7468;
  --muted-dark: #b3ac9f;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 10px 30px rgba(23, 21, 18, .08);
  --shadow-lg: 0 24px 60px rgba(23, 21, 18, .14);

  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

section, header, footer {
  overflow-x: clip;
  max-width: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container-mj {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

@media (max-width: 640px) {
  .container-mj {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 380px) {
  .container-mj {
    padding-left: 16px;
    padding-right: 16px;
  }
}

section { padding: 84px 0; position: relative; }
@media (max-width: 768px) {
  section { padding: 56px 0; }
}

::selection { background: var(--teal); color: #fff; }

/* ============ TYPE ============ */
.display-font {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 1.02;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-soft);
  border: 1px solid rgba(14, 159, 138, .25);
  border-radius: 6px;
  padding: 6px 14px;
  margin-bottom: 16px;
}
.on-dark .eyebrow,
.eyebrow.on-dark {
  color: var(--teal-text);
  background: rgba(94, 224, 201, .08);
  border-color: rgba(94, 224, 201, .3);
}

.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 52px);
  letter-spacing: 1.5px;
  line-height: 1.04;
  color: var(--ink);
}
.section-title em { font-style: normal; color: var(--teal); }
.section-sub { color: var(--muted); margin-top: 14px; font-size: 15.5px; }

@media (max-width: 640px) {
  .section-head { margin: 0 auto 36px; }
  .section-title {
    font-size: clamp(28px, 8vw, 36px) !important;
    letter-spacing: 1px;
    line-height: 1.08;
  }
  .section-sub { font-size: 14.5px; margin-top: 10px; }
  .eyebrow { font-size: 10px; padding: 5px 12px; margin-bottom: 12px; }
}

/* ============ BUTTONS (rectangles, no pills) ============ */
.btn-mj {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .18s cubic-bezier(.22,1,.36,1), background .18s, border-color .18s, color .18s, box-shadow .18s;
}
.btn-mj:active { transform: translateY(1px); }

.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14,159,138,.28); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); }

.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-2px); }

.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { border-color: var(--teal-text); color: var(--teal-text); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn-lg { padding: 16px 34px; font-size: 15.5px; }
.btn-block { width: 100%; }

@media (max-width: 560px) {
  .btn-mj {
    padding: 12px 20px;
    font-size: 14px;
    white-space: normal;
  }
  .btn-lg {
    padding: 13px 22px;
    font-size: 14px;
  }
}

/* ============ NAV ============ */
.announce-bar {
  background: var(--ink);
  color: #f2ede4;
  text-align: center;
  font-size: 13px;
  padding: 9px 16px;
  letter-spacing: .3px;
  position: relative;
  z-index: 60;
}
.announce-bar strong { color: var(--teal-text); font-weight: 600; }
@media (max-width: 480px) {
  .announce-bar {
    font-size: 12px;
    padding: 8px 14px;
    line-height: 1.4;
  }
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-nav.scrolled { box-shadow: 0 10px 30px rgba(23,21,18,.08); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 13px;
  padding-bottom: 13px;
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img { height: 42px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 1.6px;
  line-height: 1;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--cream-2); color: var(--teal-deep); }
.nav-links a.cta {
  background: var(--teal);
  color: #fff;
  margin-left: 8px;
  font-weight: 600;
}
.nav-links a.cta:hover { background: var(--teal-deep); color: #fff; }

.nav-phone {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-phone:hover { color: var(--teal-deep); }

.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 10px 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--cream);
  box-shadow: var(--shadow);
}
.mobile-menu a {
  padding: 13px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.mobile-menu a:hover { background: var(--cream-2); }
.mobile-menu a.cta {
  background: var(--teal);
  color: #fff;
  text-align: center;
  justify-content: center;
  margin-top: 8px;
}
.mobile-menu.open { display: flex; animation: fadeUp .3s ease both; }

@media (max-width: 900px) {
  .nav-links, .nav-phone { display: none !important; }
  .nav-burger { display: block; }
}
@media (max-width: 480px) {
  .brand img { height: 36px; }
  .nav-burger { width: 38px; height: 38px; font-size: 15px; }
}
@media (min-width: 901px) { .mobile-menu { display: none !important; } }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: var(--ink);
  color: #f5f0e8;
  overflow: hidden;
}
/* Flat dot grid texture (SVG pattern, no gradients) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='1.5' cy='1.5' r='1.1' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 56px;
  align-items: center;
  padding-top: 92px;
  padding-bottom: 96px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal-text);
  border: 1px solid rgba(94,224,201,.35);
  border-radius: 6px;
  padding: 7px 14px;
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-text);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 7.5vw, 84px);
  letter-spacing: 2px;
  line-height: .98;
  color: #fff;
}
.hero-title .typed-line {
  color: var(--teal-text);
  display: inline-block;
  min-height: 1em;
}
.typed-cursor { color: var(--teal-text); }

.hero-sub {
  color: #b9b2a6;
  font-size: 16.5px;
  max-width: 500px;
  margin: 22px 0 30px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  gap: 34px;
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-meta .hm-val {
  font-family: var(--font-display);
  font-size: 27px;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1.1;
}
.hero-meta .hm-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: #8f887b;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-top: 4px;
}

.hero-media { position: relative; }
.hero-media .hero-img-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  animation: floatY 8s ease-in-out infinite;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 1.02;
  object-fit: cover;
  display: block;
}
.hero-card {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 15px 19px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 270px;
}
.hero-card .hc-ico {
  width: 42px; height: 42px;
  min-width: 42px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.hero-card .hc-t { font-weight: 700; font-size: 13.5px; }
.hero-card .hc-s { font-size: 11.5px; color: var(--muted); }

.hero-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
}
.hero-strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 44px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #9d968a;
}
.hero-strip-inner i { color: var(--teal-text); margin-right: 7px; }

@media (max-width: 940px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 54px;
    padding-bottom: 60px;
    gap: 40px;
  }
  .hero-media { max-width: 100%; width: 100%; }
  .hero-card { left: 12px; bottom: -16px; max-width: calc(100% - 24px); }
}
@media (max-width: 640px) {
  .hero-strip { padding: 14px 0; }
  .hero-strip-inner {
    gap: 8px 16px;
    font-size: 10.5px;
    letter-spacing: 1px;
    justify-content: center;
  }
}
@media (max-width: 560px) {
  .hero-inner {
    padding-top: 38px;
    padding-bottom: 48px;
    gap: 30px;
  }
  .hero-eyebrow {
    font-size: 10px;
    padding: 6px 12px;
    margin-bottom: 16px;
    max-width: 100%;
  }
  .hero-title {
    font-size: clamp(32px, 9vw, 46px);
    letter-spacing: 1px;
    line-height: 1.02;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .hero-sub {
    font-size: 14.5px;
    margin: 16px 0 24px;
    line-height: 1.55;
  }
  .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-cta .btn-mj {
    width: 100%;
    padding: 13px 20px;
    font-size: 14px;
  }
  .hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 26px;
    padding-top: 18px;
  }
  .hero-meta .hm-val { font-size: 24px; }
  .hero-meta .hm-label { font-size: 9px; letter-spacing: 1px; }

  .hero-media .hero-img-frame { border-radius: 14px; }
  .hero-card {
    position: static;
    margin-top: 14px;
    max-width: 100%;
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }
}

/* ============ STATS ============ */
.stats-band {
  background: var(--ink);
  color: #f5f0e8;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 58px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat-cell { text-align: center; padding: 10px; }
.stat-number {
  font-family: var(--font-display);
  font-size: 46px;
  letter-spacing: 1.5px;
  color: var(--teal-text);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #9d968a;
  margin-top: 8px;
}
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 38px; }
}
@media (max-width: 480px) {
  .stats-band { padding: 40px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .stat-cell { padding: 8px 4px; }
  .stat-number { font-size: clamp(26px, 8vw, 32px); }
  .stat-label { font-size: 9.5px; letter-spacing: 1px; }
}

/* ============ CLIENTS ============ */
.clients-section {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}
.clients-track {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) transparent;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 900px) {
  .clients-track {
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .clients-section { padding: 44px 0; }
  .clients-track {
    padding: 6px 12px 14px;
    gap: 12px;
    scroll-snap-type: x mandatory;
  }
  .client-tile {
    flex: 0 0 160px;
    padding: 16px 12px;
    scroll-snap-align: start;
  }
  .client-logo-frame { height: 60px; }
  .client-logo-frame img { max-height: 60px; max-width: 120px; }
}
.clients-track::-webkit-scrollbar { height: 6px; }
.clients-track::-webkit-scrollbar-thumb { background: rgba(14,159,138,.4); border-radius: 3px; }

.client-tile {
  flex: 0 0 200px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transition: transform .2s cubic-bezier(.22,1,.36,1), border-color .2s, box-shadow .2s;
}
.client-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(14,159,138,.5);
  box-shadow: var(--shadow);
}
.client-logo-frame {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.client-logo-frame img { max-height: 84px; max-width: 150px; object-fit: contain; }
.client-name { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.client-industry {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============ SERVICES ============ */
.grid { display: grid; gap: 18px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cols-3, .cols-2, .cols-4 { grid-template-columns: 1fr; }
  .service-card { padding: 24px 20px; }
  .service-card h3 { font-size: 22px; }
}

.service-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s, border-color .22s;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14,159,138,.4);
}
.service-ico {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 20px;
}
.service-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 1.2px;
  color: var(--ink);
  margin-bottom: 10px;
}
.service-card > p { color: var(--muted); font-size: 14px; flex: 0; }
.service-list { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 14px; }
.service-list li {
  font-size: 13.5px;
  color: var(--ink);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.service-list li i { color: var(--teal); font-size: 11px; }
.service-link {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.service-link:hover { gap: 12px; }
.service-link { transition: gap .2s; }

/* ============ WORK / CASE STUDIES ============ */
.work-section { background: var(--ink); color: #f5f0e8; }
.work-section .section-title { color: #fff; }
.work-section .section-sub { color: #a49d90; }

.work-card {
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s cubic-bezier(.22,1,.36,1), border-color .22s;
}
.work-card:hover { transform: translateY(-6px); border-color: rgba(94,224,201,.4); }
.work-media { position: relative; overflow: hidden; }
.work-media-ph {
  aspect-ratio: 16 / 10;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-3);
  color: var(--line-dark);
  font-size: 34px;
}
.work-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.work-card:hover .work-media img { transform: scale(1.06); }
.work-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(23,21,18,.85);
  color: var(--teal-text);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 6px;
  border: 1px solid rgba(94,224,201,.3);
}
.work-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.work-body h3 {
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: 1.2px;
  color: #fff;
  margin-bottom: 8px;
}
.work-body > p { color: #a49d90; font-size: 13.5px; flex: 1; }
.work-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-dark);
}
.work-meta .wm-val {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--teal-text);
}
.work-meta .wm-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8f887b;
}
.work-link {
  margin-top: 18px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal-text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap .2s;
}
.work-link:hover { gap: 12px; }

@media (max-width: 640px) {
  .work-body { padding: 18px 16px 20px; }
  .work-body h3 { font-size: 22px; }
  .work-meta { gap: 8px; margin-top: 14px; padding-top: 12px; }
  .work-meta .wm-val { font-size: 19px; }
  .work-meta .wm-label { font-size: 8.5px; }
}

/* ============ PROCESS ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
@media (max-width: 960px) { .process-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .process-step {
    padding: 16px 10px;
  }
  .process-step h6 {
    font-size: 13px;
  }
  .process-step p {
    font-size: 11.5px;
    line-height: 1.45;
  }
}
@media (max-width: 360px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
}

.process-step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 18px 20px;
  text-align: center;
  position: relative;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.process-step:hover {
  transform: translateY(-5px);
  border-color: rgba(14,159,138,.45);
  box-shadow: var(--shadow);
}
.process-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--teal-deep);
  background: var(--teal-soft);
  border: 1px solid rgba(14,159,138,.25);
  border-radius: 6px;
  padding: 3px 9px;
  display: inline-block;
  margin-bottom: 12px;
}
.process-step h6 {
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 5px;
  color: var(--ink);
}
.process-step p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ============ ABOUT / WHY ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-chip {
    top: 12px;
    right: 12px;
    padding: 10px 16px;
  }
  .about-chip .ac-val { font-size: 24px; }
  .about-chip .ac-label { font-size: 8.5px; }
}

.about-media { position: relative; }
.about-media img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/3.4;
  object-fit: cover;
}
.about-chip {
  position: absolute;
  top: -18px;
  right: -14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.about-chip .ac-val {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 1.5px;
  color: var(--teal-text);
  line-height: 1;
}
.about-chip .ac-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #b3ac9f;
  margin-top: 4px;
}

.check-list { margin-top: 22px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.check-list li i {
  color: var(--teal-deep);
  background: var(--teal-soft);
  border-radius: 7px;
  padding: 6px;
  font-size: 11px;
  min-width: 26px;
  text-align: center;
  margin-top: 1px;
}
.check-list li strong { display: block; font-size: 14.5px; }
.check-list li span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 560px) {
  .check-list li { font-size: 13.5px; gap: 10px; }
  .check-list li strong { font-size: 13.5px; }
  .check-list li span { font-size: 12.5px; }
}

/* ============ PRICING ============ */
.pricing-section { background: var(--cream-2); }

.plan-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.plan-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  transition: all .18s;
}
.plan-tab:hover { border-color: var(--teal); color: var(--teal-deep); }
.plan-tab.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 960px) { .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

.plan-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .22s cubic-bezier(.22,1,.36,1), box-shadow .22s, border-color .22s;
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-card.featured {
  border: 2px solid var(--teal);
}
.plan-flag {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
}
.plan-flag.dark { background: var(--ink); }

.plan-tier {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.plan-name {
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: 1.4px;
  color: var(--ink);
  margin-bottom: 4px;
}
.plan-desc { color: var(--muted); font-size: 13px; min-height: 40px; }

.dur-tabs {
  display: flex;
  gap: 6px;
  margin: 18px 0 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 4px;
  background: var(--cream);
}
.dur-tab {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 4px;
  border: none;
  background: transparent;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 500;
  transition: all .15s;
}
.dur-tab.active { background: var(--ink); color: #fff; }

.plan-price {
  font-family: var(--font-display);
  font-size: 44px;
  letter-spacing: 1.5px;
  color: var(--ink);
  line-height: 1;
}
.plan-price .cur { font-size: 22px; color: var(--teal-deep); margin-right: 4px; }
.plan-save {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-top: 6px;
  min-height: 16px;
}
.plan-feats { margin: 20px 0 24px; display: grid; gap: 9px; flex: 1; }
.plan-feats li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink);
}
.plan-feats li i { color: var(--teal); margin-top: 3px; font-size: 12px; }

.plan-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 18px;
}
.plan-note a { color: var(--teal-deep); font-weight: 600; }
.plan-note a:hover { text-decoration: underline; }

/* ============ CTA BAND ============ */
.cta-band {
  background: var(--ink);
  color: #f5f0e8;
  border-radius: 22px;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='1.5' cy='1.5' r='1.1' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: 1.8px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.cta-band h2 em { font-style: normal; color: var(--teal-text); }
.cta-band p {
  color: #b9b2a6;
  max-width: 520px;
  margin: 14px auto 30px;
  font-size: 15.5px;
  position: relative;
  z-index: 1;
}
.cta-band .hero-cta { justify-content: center; position: relative; z-index: 1; }
.cta-band .btn-mj { position: relative; z-index: 1; }

@media (max-width: 640px) {
  .cta-band {
    padding: 38px 20px;
    border-radius: 16px;
  }
  .cta-band h2 {
    font-size: clamp(26px, 7vw, 36px);
    letter-spacing: 1px;
    line-height: 1.1;
  }
  .cta-band p {
    font-size: 14px;
    margin: 12px auto 22px;
  }
  .cta-band .hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .cta-band .hero-cta .btn-mj {
    width: 100%;
    padding: 13px 20px;
    font-size: 14px;
  }
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
@media (max-width: 600px) {
  .contact-card {
    padding: 22px 18px;
    border-radius: var(--radius-sm);
  }
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px dashed var(--line);
}
.contact-row:last-child { border-bottom: none; }
@media (max-width: 600px) {
  .contact-row {
    gap: 12px;
    padding: 12px 0;
  }
}
.contact-ico {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 11px;
  background: var(--teal-soft);
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
@media (max-width: 600px) {
  .contact-ico {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 15px;
  }
}
.contact-row .cr-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-row .cr-val {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.contact-row a.cr-val:hover { color: var(--teal-deep); }

.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.contact-form .input,
.contact-form select.input,
.contact-form textarea.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .contact-form .input,
  .contact-form select.input,
  .contact-form textarea.input {
    font-size: 16px; /* Prevents iOS auto-zoom on input focus */
    padding: 12px 14px;
  }
}
.contact-form .input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-soft);
}
.contact-form textarea.input { resize: vertical; min-height: 96px; }

/* ============ FAQ ============ */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.faq-q i { color: var(--teal-deep); transition: transform .25s; font-size: 13px; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a-inner { padding: 0 22px 20px; color: var(--muted); font-size: 14px; line-height: 1.7; }
@media (max-width: 600px) {
  .faq-q { padding: 15px 16px; font-size: 14px; gap: 12px; }
  .faq-a-inner { padding: 0 16px 16px; font-size: 13px; }
}

/* ============ FOOTER ============ */
.site-foot {
  background: var(--ink);
  color: #b9b2a6;
  padding: 64px 0 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 36px;
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .site-foot { padding: 44px 0 24px; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom {
    margin-top: 32px;
    padding-top: 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }

.foot-brand img { height: 46px; margin-bottom: 14px; }
.foot-brand p { font-size: 13.5px; max-width: 300px; color: #a49d90; }
.foot-heading {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.foot-links a {
  display: block;
  color: #a49d90;
  font-size: 13.5px;
  padding: 5px 0;
  transition: color .15s, padding-left .15s;
}
.foot-links a:hover { color: var(--teal-text); padding-left: 4px; }
.foot-contact div { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; font-size: 13.5px; }
.foot-contact i { color: var(--teal-text); margin-top: 3px; font-size: 12px; }
.foot-contact a:hover { color: var(--teal-text); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 44px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #7d766b;
}
.foot-socials { display: flex; gap: 8px; }
.foot-socials a {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all .15s;
}
.foot-socials a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ============ TO TOP ============ */
#toTop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: none;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: all .3s cubic-bezier(.22,1,.36,1);
  box-shadow: var(--shadow-lg);
}
#toTop.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#toTop:hover { background: var(--teal); }
@media (max-width: 600px) {
  #toTop {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    font-size: 13px;
  }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* Hero entrance (staggered) */
.hero .h-anim { opacity: 0; animation: fadeUp .8s cubic-bezier(.22,1,.36,1) forwards; }
.hero .h-anim.d1 { animation-delay: .08s; }
.hero .h-anim.d2 { animation-delay: .18s; }
.hero .h-anim.d3 { animation-delay: .3s; }
.hero .h-anim.d4 { animation-delay: .42s; }
.hero .h-anim.d5 { animation-delay: .54s; }

/* Scroll reveal fallback (works without AOS too) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .h-anim { opacity: 1; animation: none; }
  .hero-media .hero-img-frame { animation: none; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Image placeholder pulse while loading */
.img-ph { animation: phPulse 1.6s ease-in-out infinite; }
@keyframes phPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .75; }
}

/* Zoom on hover for card imagery */
.zoom-img { overflow: hidden; }
.zoom-img img { transition: transform .6s cubic-bezier(.22,1,.36,1); }
.zoom-img:hover img { transform: scale(1.07); }

/* ============ FORM MESSAGES ============ */
.form-msg {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  margin-bottom: 16px;
}
.form-msg.show { display: flex; animation: fadeUp .3s ease both; }
.form-msg.ok { background: #e5f6ec; border: 1px solid #bfe5cf; color: #166534; }
.form-msg.err { background: #fdecea; border: 1px solid #f5c6c0; color: #b91c1c; }

/* ============ PAGE HEADER (inner pages) ============ */
.page-hdr {
  background: var(--ink);
  color: #f5f0e8;
  padding: 128px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hdr::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Ccircle cx='1.5' cy='1.5' r='1.1' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hdr .page-hdr-inner { position: relative; z-index: 1; }
.page-hdr h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 64px);
  letter-spacing: 2px;
  color: #fff;
}
.page-hdr h1 em { font-style: normal; color: var(--teal-text); }
.page-hdr p { color: #b9b2a6; margin-top: 10px; max-width: 560px; font-size: 15.5px; }

/* ============ MISC ============ */
.divider { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
.mono { font-family: var(--font-mono); }
.text-teal { color: var(--teal-deep); }
.text-muted-mj { color: var(--muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.center { text-align: center; }

/* Keep old classes used elsewhere working */
.mirjy-nav { background: var(--ink); }

/* Stack two-column form rows on small phones */
@media (max-width: 560px) {
  .quote-row-2, .apply-row-2 {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}

/* ============ AOS MOBILE OVERFLOW & SHAKE ELIMINATION ============ */
@media (max-width: 768px) {
  /* Prevent horizontal transform shifts from creating horizontal scrollbars and jitter */
  [data-aos="fade-left"],
  [data-aos="fade-right"] {
    transform: translate3d(0, 20px, 0) !important;
  }
  [data-aos="fade-left"].aos-animate,
  [data-aos="fade-right"].aos-animate {
    transform: translate3d(0, 0, 0) !important;
  }
  [data-aos] {
    transition-property: transform, opacity !important;
  }
}
