/* Shared styles for mchinnovation.com and uchat.mchinnovation.com */
:root {
  --violet: #6E4FE3;
  --violet-deep: #46368C;
  --lilac: #D9CEF6;
  --tint: #F3F1FA;
  --bg: #FFFFFF;
  --bg-soft: #F4F4F7;
  --card: #FFFFFF;
  --text: #16151D;
  --muted: #6B6B76;
  --line: #E6E4EE;
  --on-violet: #FFFFFF;
  --radius: 18px;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0E15;
    --bg-soft: #17151F;
    --card: #1C1A26;
    --text: #F2F0F8;
    --muted: #A5A2B4;
    --line: #2B2838;
    --tint: #1F1B2E;
    --lilac: #3A3060;
    --violet: #8B70F0;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0E15; --bg-soft: #17151F; --card: #1C1A26; --text: #F2F0F8;
  --muted: #A5A2B4; --line: #2B2838; --tint: #1F1B2E; --lilac: #3A3060; --violet: #8B70F0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--violet); margin-bottom: .8em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 20px; }
.nav { display: flex; gap: 22px; align-items: center; font-size: .95rem; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: 1rem; border: 1px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--violet); color: var(--on-violet) !important; }
.btn-primary:hover { background: var(--violet-deep); }
.btn-ghost { border-color: var(--line); color: var(--text) !important; background: var(--card); }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Sections */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 640px; }

/* Hero */
.hero { padding: 96px 0 80px; background: radial-gradient(1200px 500px at 85% -10%, var(--lilac), transparent 60%), var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-mark { justify-self: center; width: min(260px, 60%); filter: drop-shadow(0 30px 60px rgba(70,54,140,.25)); }

/* Cards */
.grid { display: grid; gap: 20px; }
.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: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p:last-child { margin-bottom: 0; }
.card .tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); background: var(--tint); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--violet); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }

/* Feature product banner */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; background: linear-gradient(160deg, #7756E6, var(--violet-deep)); color: #fff; border-radius: 28px; padding: 56px; overflow: hidden; }
.feature h2, .feature p { color: #fff; }
.feature p { opacity: .88; }
.feature .eyebrow { color: var(--lilac); }
:root[data-theme="dark"] .feature .eyebrow { color: #D9CEF6; }
.feature .btn-primary { background: #fff; color: var(--violet-deep) !important; }
.feature .btn-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff !important; }
.feature-shots { display: flex; gap: 16px; justify-content: center; }
.feature-shots img { width: 46%; border-radius: 22px; box-shadow: 0 24px 48px rgba(0,0,0,.3); }
.feature-shots img:last-child { margin-top: 40px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; padding: 32px 22px; } }

/* Screenshots row */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shots figure { margin: 0; text-align: center; }
.shots img { border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(70,54,140,.14); }
.shots figcaption { margin-top: 14px; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .shots { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; } }

/* Lists / chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: .85rem; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--text); border: 1px solid var(--line); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Long-form pages (privacy, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 20px 96px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc h2 { font-size: 1.4rem; margin-top: 2.2em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.callout { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 28px 0; }
.callout ul { margin: 0; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--violet); font-weight: 700; font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0; font-size: .92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---- Homepage v2: atmospheric / nature-as-method ---- */
.hero-dark {
  position: relative;
  background:
    radial-gradient(900px 600px at 78% 8%, rgba(110,79,227,.42), transparent 62%),
    radial-gradient(700px 500px at 12% 95%, rgba(70,54,140,.40), transparent 60%),
    #0B0A12;
  color: #F4F2FB;
  overflow: hidden;
  padding: 136px 0 120px;
}
.hero-dark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .5; mix-blend-mode: screen;
}
.hero-dark .wrap { position: relative; z-index: 1; }
.hero-dark .hero-grid { grid-template-columns: 1.2fr .8fr; }
.hero-dark h1 { color: #FFFFFF; font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1.04; }
.hero-dark .hero-sub { font-size: 1.22rem; line-height: 1.6; color: #C9C3E4; max-width: 560px; margin-top: 10px; }
.hero-dark .eyebrow { color: #B9A8F5; }
.hero-dark .btn-ghost { background: transparent; border-color: rgba(255,255,255,.28); color: #fff !important; }
.hero-dark .btn-ghost:hover { border-color: rgba(255,255,255,.6); }
.hero-glow {
  justify-self: center; width: min(300px, 70%);
  filter: drop-shadow(0 0 50px rgba(139,112,240,.75)) drop-shadow(0 20px 60px rgba(0,0,0,.5));
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: translateY(0) scale(1); opacity:.96 } 50% { transform: translateY(-10px) scale(1.02); opacity:1 } }
@media (prefers-reduced-motion: reduce) { .hero-glow { animation: none; } }

/* Flagship panels */
.flagships { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.flagships-3 { grid-template-columns: repeat(3, 1fr); }
.flagships-3 .flagship { padding: 32px 28px; }
.flagships-3 .flagship h3 { font-size: 1.5rem; }
.flagships-3 .flagship p { font-size: 1rem; }
@media (max-width: 980px) { .flagships-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .flagships { grid-template-columns: 1fr; } }
.flagship {
  position: relative; display: flex; flex-direction: column;
  border-radius: 24px; padding: 38px 34px; min-height: 300px;
  border: 1px solid var(--line); background: var(--card); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.flagship:hover { transform: translateY(-3px); box-shadow: 0 28px 60px rgba(70,54,140,.18); text-decoration: none; }
.flagship .kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; }
.flagship h3 { font-size: 1.75rem; font-weight: 780; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--text); }
.flagship p { color: var(--muted); font-size: 1.05rem; margin-bottom: 20px; }
.flagship .go { margin-top: auto; font-weight: 650; color: var(--violet); display: inline-flex; align-items: center; gap: 7px; }
.flagship.dark { background: linear-gradient(165deg, #5B40C8, #342869); border-color: transparent; }
.flagship.dark .kicker { color: #D9CEF6; }
.flagship.dark h3 { color: #fff; }
.flagship.dark p { color: rgba(255,255,255,.82); }
.flagship.dark .go { color: #fff; }
.flagship .mark { position: absolute; right: -26px; bottom: -30px; width: 150px; opacity: .14; }
.flagship.dark .mark { opacity: .22; }

/* Method band (dark, mirrors hero) */
.method {
  background:
    radial-gradient(700px 400px at 85% 0%, rgba(110,79,227,.28), transparent 60%),
    #0B0A12;
  color: #EDEAF8; padding: 90px 0;
}
.method h2 { color: #fff; }
.method .eyebrow { color: #B9A8F5; }
.method .lede { color: #C3BDDC; }
.method-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 40px; counter-reset: step; }
@media (max-width: 720px) { .method-steps { grid-template-columns: 1fr; } }
.method-steps .step { border-top: 1px solid rgba(255,255,255,.16); padding-top: 20px; }
.method-steps .step .n { font-size: .8rem; letter-spacing:.14em; color: #9A8CD8; font-weight: 700; }
.method-steps .step h3 { color: #fff; font-size: 1.3rem; margin: 10px 0 8px; }
.method-steps .step p { color: #ADA6C8; margin: 0; font-size: .98rem; }

/* Quiet wider-work line */
.aside-line { text-align: center; max-width: 720px; margin: 0 auto; }
.aside-line p { font-size: 1.15rem; color: var(--muted); line-height: 1.6; }

@media (max-width: 860px) {
  .hero-dark .hero-grid { grid-template-columns: 1fr; }
  .hero-dark { padding: 104px 0 80px; }
  .hero-glow { width: min(180px, 48%); margin-top: 8px; grid-row: 1; }
  .hero-dark > .wrap > .hero-grid > div:first-child { order: 2; }
}

/* ---- Animated 3D hero emblem (spiral ⇄ double-pyramid) ---- */
.hero-mark {
  position: relative; justify-self: center;
  width: min(420px, 90%); aspect-ratio: 1 / 1;
  filter: drop-shadow(0 30px 60px rgba(70,54,140,.28));
}
.hero-mark #hero-canvas { position: absolute; inset: 0; display: block; }
.hero-mark-fallback {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 52%; height: auto; opacity: .95;
  filter: drop-shadow(0 0 26px rgba(139,112,240,.55));
}
.hero-mark.is-live .hero-mark-fallback { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-mark.is-live #hero-canvas { display: block; }
}
@media (max-width: 860px) {
  .hero-mark { width: min(300px, 74%); grid-row: 1; margin: 0 auto 6px; }
}

/* ---- Reveal-on-demand suite section (shown via "Explore uHawu") ---- */
.reveal { display: none; scroll-margin-top: 84px; }
.reveal:target { display: block; animation: revealIn .45s ease both; }
@keyframes revealIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.reveal-close { display: inline-block; margin-top: 10px; font-size: .9rem; font-weight: 650; color: var(--violet); }

/* ---- uHawu Family: uPhone feature, apps, device screens (v8) ---- */
.uphone { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.uphone-art img { width: 100%; height: auto; border-radius: 18px; display: block; }
.uphone-copy h3 { font-size: 2rem; font-weight: 780; letter-spacing: -0.02em; margin: 8px 0 10px; color: var(--text); }
.uphone-copy p { color: var(--muted); font-size: 1.05rem; }
.uphone-copy .pilot { color: var(--text); margin-top: 12px; }
.uphone-copy .btn-row { margin-top: 18px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8A6BF0; background: var(--tint); padding: 6px 12px; border-radius: 999px; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #8A6BF0; box-shadow: 0 0 0 4px rgba(138,107,240,.18); }
@media (max-width: 860px) { .uphone { grid-template-columns: 1fr; } }

.apps-head { margin: 42px 0 18px; }
.apps-head h3 { font-size: 1.4rem; font-weight: 760; letter-spacing: -0.01em; color: var(--text); }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.app img { width: 56px; height: 56px; border-radius: 14px; flex: 0 0 auto; }
.app h4 { font-size: 1.1rem; font-weight: 720; margin-bottom: 4px; color: var(--text); }
.app p { font-size: .95rem; }
@media (max-width: 760px) { .apps { grid-template-columns: 1fr; } }

.screens { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; }
.device { margin: 0; width: 210px; }
.device > img { width: 100%; height: auto; display: block; border-radius: 24px; border: 7px solid #141019; background: #141019; }
.device figcaption { margin-top: 12px; text-align: center; font-size: .9rem; color: var(--muted); max-width: 210px; }
.device-sealed .shade { aspect-ratio: 1080 / 2340; border-radius: 24px; border: 7px solid #141019; background: linear-gradient(165deg, #2a2240, #141019); display: flex; align-items: center; justify-content: center; }
.device-sealed .shade img { width: 88px; height: 88px; border-radius: 20px; border: 0; }

/* ---- uHawu shield hero (dome of diamonds) v9 ---- */
.shield-mark { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 460px; justify-self: center; }
.shield-mark canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
@media (max-width: 860px) { .shield-mark { max-width: 300px; margin: 0 auto; } }

/* ---- App icons (uChat) and the hero phone screenshot ---- */
.brand img.app-icon { width: 28px; border-radius: 7px; }
.flagship .mark.app-icon, .flagship.dark .mark.app-icon { position: static; width: 64px; opacity: 1; border-radius: 22%; margin-bottom: 18px; box-shadow: 0 12px 28px rgba(0,0,0,.25); }
.hero-shot { justify-self: center; height: auto; }
@media (max-width: 860px) {
  .hero-shot { grid-row: 1; margin: 0 auto 6px; }
}
