/* =========================================================
   Morphers Technologies Interface — design tokens
   Display: Space Grotesk | Body: IBM Plex Sans | Utility: IBM Plex Mono
   ========================================================= */
:root {
  --bg: #F4F6F8;
  --bg-alt: #EAEEF2;
  --surface: #FFFFFF;
  --border: #DCE3EA;
  --ink: #14202B;
  --ink-soft: #4B5A68;
  --ink-faint: #8A94A6;

  --blue: #2255DD;
  --blue-deep: #16389C;
  --teal: #00A99A;
  --amber: #FF7A30;

  --hero-bg: #101826;
  --hero-bg-alt: #182234;
  --hero-ink: #EDF1F5;
  --hero-ink-soft: #A9B7C6;
  --hero-line: #26344A;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px -12px rgba(16, 24, 38, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(16, 24, 38, 0.14);

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--amber);
  transform: rotate(45deg);
  display: inline-block;
}
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #1A1002; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #FF8A47; }
.btn-outline { border-color: var(--hero-line); color: var(--hero-ink); }
.btn-outline:hover { border-color: var(--blue); }
.btn-ghost { border-color: var(--border); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 14px; font-size: 12.5px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 248, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 44px; width: auto; }
.brand-text { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.1; }
.brand-text span { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: 0.08em; color: var(--ink-faint); text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 880px) {
  .nav-links { position: fixed; top: 74px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--border); max-height: 0; overflow: hidden; transition: max-height .25s ease; }
  .nav-links.open { max-height: 400px; }
  .nav-links a { padding: 14px 24px; width: 100%; border-bottom: 1px solid var(--bg-alt); }
  .nav-toggle { display: block; }
  .nav-actions .btn-ghost { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--hero-bg) 0%, var(--hero-bg-alt) 100%);
  color: var(--hero-ink);
  padding: 76px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--hero-line) 1px, transparent 1px), linear-gradient(90deg, var(--hero-line) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 20%, black, transparent);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); color: #fff; max-width: 620px; }
.hero-sub { color: var(--hero-ink-soft); font-size: 17px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-stat b { font-family: var(--font-display); font-size: 26px; color: #fff; display: block; }
.hero-stat span { font-family: var(--font-mono); font-size: 12px; color: var(--hero-ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }

/* Signature graphic: interlocking-diamond interface mark + rotating app window */
.hero-art { position: relative; }
.mark-wrap { position: absolute; top: -30px; right: 6%; width: 150px; opacity: 0.9; }
.mark-wrap svg { width: 100%; height: auto; }
.mark-diamond { fill: none; stroke-width: 2.5; stroke-dasharray: 6 5; animation: dashmove 12s linear infinite; }
.mark-diamond.d1 { stroke: var(--teal); }
.mark-diamond.d2 { stroke: var(--blue); animation-direction: reverse; }
.mark-bolt { fill: var(--amber); animation: boltpulse 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes dashmove { to { stroke-dashoffset: -110; } }
@keyframes boltpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.app-window {
  background: #0C1320;
  border: 1px solid var(--hero-line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.55);
  overflow: hidden;
  margin-top: 30px;
}
.app-window-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #0F1826; border-bottom: 1px solid var(--hero-line); }
.app-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3A4A60; }
.app-window-bar span { font-family: var(--font-mono); font-size: 11.5px; color: var(--hero-ink-soft); margin-left: 6px; }
.app-tabs { display: flex; gap: 4px; padding: 10px 14px 0; }
.app-tab { font-family: var(--font-mono); font-size: 11.5px; padding: 7px 12px; color: var(--hero-ink-soft); border-radius: 6px 6px 0 0; cursor: default; }
.app-tab.on { background: #101B2C; color: var(--teal); }
.app-screen { padding: 18px; min-height: 190px; }
.app-screen .row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--hero-line); font-size: 13px; }
.app-screen .row b { color: #fff; font-weight: 500; }
.app-screen .tag { font-family: var(--font-mono); font-size: 10.5px; padding: 2px 8px; border-radius: 20px; background: rgba(0,169,154,0.15); color: var(--teal); }
.app-screen .tag.blue { background: rgba(34,85,221,0.18); color: #6C97FF; }
.app-screen .bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: 6px; }
.app-screen .bar-chart div { flex: 1; background: linear-gradient(180deg, var(--teal), var(--blue)); border-radius: 4px 4px 0 0; opacity: 0.85; }

/* ---------- Section shell ---------- */
section { padding: 76px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); }
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Services grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #C6D2DE; }
.service-num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.service-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; margin: 14px 0 16px; color: var(--blue); }
.service-card h3 { font-size: 19px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; margin-bottom: 14px; }
.service-card .learn { margin-top: auto; font-family: var(--font-mono); font-size: 12.5px; color: var(--blue); }

/* ---------- Product / store grid ---------- */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-chip { font-family: var(--font-mono); font-size: 12.5px; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--ink-soft); }
.filter-chip.active, .filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .products-grid { grid-template-columns: 1fr; } }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--bg-alt), #dfe6ee); display: flex; align-items: center; justify-content: center; position: relative; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb .ph { font-family: var(--font-mono); color: var(--ink-faint); font-size: 12px; }
.product-badge { position: absolute; top: 10px; left: 10px; background: var(--amber); color: #1A1002; font-family: var(--font-mono); font-size: 10.5px; padding: 3px 9px; border-radius: 20px; }
.product-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal); margin-bottom: 6px; }
.product-body h3 { font-size: 16.5px; margin-bottom: 8px; }
.product-body p { font-size: 13.5px; flex: 1; }
.product-price { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.product-price b { font-family: var(--font-display); font-size: 18px; }
.product-price span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }

/* ---------- Why us / feature list ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; } }
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.feature-list li { display: flex; gap: 16px; }
.feature-num { font-family: var(--font-mono); color: var(--blue); font-size: 13px; padding-top: 3px; }
.feature-list h4 { font-size: 16px; margin-bottom: 4px; }
.feature-list p { font-size: 14.5px; margin-bottom: 0; }
.about-panel { background: var(--hero-bg); color: var(--hero-ink); border-radius: var(--radius); padding: 34px; }
.about-panel .stat-row { display: flex; gap: 24px; margin-top: 26px; flex-wrap: wrap; }
.about-panel .stat-row div b { display: block; font-family: var(--font-display); font-size: 24px; color: #fff; }
.about-panel .stat-row div span { font-family: var(--font-mono); font-size: 11px; color: var(--hero-ink-soft); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 760px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.testi-card p { font-size: 15.5px; color: var(--ink); font-style: italic; }
.testi-who { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); margin-top: 14px; }
.testi-who b { color: var(--ink); font-style: normal; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue-deep), var(--blue)); color: #fff; border-radius: var(--radius); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; font-size: 26px; }
.cta-band p { color: #DCE6FF; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-card:last-child { border-bottom: none; }
.contact-ic { width: 38px; height: 38px; border-radius: 9px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; color: var(--blue); flex-shrink: 0; }
.contact-card h4 { font-size: 14.5px; margin-bottom: 2px; }
.contact-card p { font-size: 14px; margin: 0; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 7px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 14.5px; background: var(--surface); color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--blue); outline: none; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-top: 10px; }
.map-box iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--hero-bg); color: var(--hero-ink-soft); padding: 56px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h5 { color: #fff; font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 36px; filter: brightness(0) invert(1); opacity: 0.9; }
.footer-brand b { color: #fff; font-family: var(--font-display); }
.footer-bottom { border-top: 1px solid var(--hero-line); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 34px; height: 34px; border: 1px solid var(--hero-line); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.social-row a:hover { border-color: var(--blue); color: #fff; }

/* ---------- Page header (inner pages) ---------- */
.page-header { background: var(--hero-bg); color: #fff; padding: 54px 0 46px; }
.page-header p { color: var(--hero-ink-soft); max-width: 600px; }
.breadcrumb { font-family: var(--font-mono); font-size: 12px; color: var(--hero-ink-soft); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--teal); }

/* ---------- Misc ---------- */
.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 14px; }
.flash-success { background: #E4F7F0; color: #0A6B4F; border: 1px solid #B7E9D6; }
.flash-error { background: #FDECEC; color: #B23B3B; border: 1px solid #F5C4C4; }
.badge-wa { position: fixed; bottom: 22px; right: 22px; background: #22C35E; color: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px -6px rgba(34,195,94,0.55); z-index: 60; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-faint); font-family: var(--font-mono); font-size: 14px; }
