/* MIA Tech Studio – dark neon theme matching the app icons (magenta → violet → cyan) */
:root {
  color-scheme: dark;
  --bg: #07060c;
  --surface: #0e0c18;
  --card: #120f1f;
  --text: #eeeaf8;
  --muted: #a49fbb;
  --border: #241f38;
  --magenta: #ff3df2;
  --violet: #7b3bff;
  --cyan: #22e4ff;
  --accent: #b78bff;
  --grad: linear-gradient(90deg, var(--magenta), var(--violet) 50%, var(--cyan));
  --glow: 0 0 0 1px rgba(183, 139, 255, .16), 0 10px 40px rgba(123, 59, 255, .18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--cyan); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 6, 12, .78);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 50%; }
.brand b { font-weight: 700; letter-spacing: .2px; white-space: nowrap; }
.brand b span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
@media (max-width: 560px) { .nav { gap: 14px; } .nav a { font-size: 14px; } .nav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--magenta), var(--violet) 55%, #3d7bff); color: #fff; box-shadow: 0 6px 24px rgba(255, 61, 242, .25); }
.btn-primary:hover { color: #fff; box-shadow: 0 8px 32px rgba(255, 61, 242, .38); }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 96px 0 84px;
  background: url("/assets/banner.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--border);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(7, 6, 12, .25), rgba(7, 6, 12, .8) 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-logo {
  width: 104px; height: 104px; margin: 0 auto 26px; border-radius: 50%;
  box-shadow: 0 0 60px rgba(255, 61, 242, .35), 0 0 120px rgba(34, 228, 255, .2);
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.1; margin: 0 auto 18px; max-width: 760px; letter-spacing: -.02em; }
.hero p { color: #cfc9e4; font-size: 1.15rem; max-width: 620px; margin: 0 auto 30px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Sections */
section { padding: 80px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); margin: 0 0 10px; letter-spacing: -.01em; }
.section-head p { color: var(--muted); margin: 0 auto; max-width: 560px; }

/* App cards: 3–4 per row on PC, fewer on smaller screens */
.app-grid {
  display: grid; gap: 18px; justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(210px, 240px));
}
.app-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: linear-gradient(180deg, rgba(123, 59, 255, .08), rgba(34, 228, 255, .02)), var(--card);
  border: 1px solid var(--border); border-radius: 20px; padding: 20px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.app-card:hover { transform: translateY(-3px); border-color: rgba(183, 139, 255, .45); box-shadow: var(--glow); }
.app-icon { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 14px; filter: drop-shadow(0 0 18px rgba(255, 61, 242, .3)); }
.app-card h3 { font-size: 1.1rem; margin: 0 0 2px; }
.app-card .tag { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.app-card p { color: #cfc9e4; font-size: 14.5px; line-height: 1.55; margin: 0 0 14px; flex: 1; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  color: var(--cyan); background: rgba(34, 228, 255, .07); border: 1px solid rgba(34, 228, 255, .25);
  border-radius: 999px; padding: 4px 10px; margin-bottom: 16px; white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; }
.card-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.card-actions .btn { justify-content: center; }
.btn-sm { padding: 7px 10px; font-size: 13.5px; border-radius: 10px; }
.btn-sm svg { width: 14px; height: 14px; }
.app-card-soon { background: transparent; border-style: dashed; }
.soon-icon {
  display: grid; place-items: center; color: var(--accent); filter: none;
  background: rgba(183, 139, 255, .08); border: 1px dashed rgba(183, 139, 255, .4);
}
.soon-icon svg { width: 26px; height: 26px; }
.gallery-icon {
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .25), transparent 45%),
              linear-gradient(135deg, var(--magenta), var(--violet) 50%, var(--cyan));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.gallery-icon svg { width: 32px; height: 32px; }
.soon-chip { color: var(--accent); background: rgba(183, 139, 255, .08); border-color: rgba(183, 139, 255, .3); }
@media (max-width: 520px) { .app-grid { grid-template-columns: 1fr; } }

/* Principles */
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.feature .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(255, 61, 242, .2), rgba(34, 228, 255, .18)); color: #fff;
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* Contact */
.contact {
  text-align: center; border-radius: 24px; padding: 52px 24px;
  background: radial-gradient(ellipse at top, rgba(255, 61, 242, .14), transparent 60%),
              radial-gradient(ellipse at bottom right, rgba(34, 228, 255, .12), transparent 60%), var(--card);
  border: 1px solid var(--border); box-shadow: var(--glow);
}
.contact h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2rem); }
.contact p { color: var(--muted); margin: 0 0 24px; }
.contact .email { display: block; margin-top: 14px; color: var(--muted); font-size: 14px; word-break: break-all; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); text-decoration: none; margin-right: 18px; }
.site-footer nav a:last-child { margin-right: 0; }
.site-footer a:hover { color: var(--text); }

/* Policy / long-form pages */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 16px 72px; }
.doc .doc-head { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; }
.doc .doc-head img { width: 56px; height: 56px; border-radius: 14px; }
.doc h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); line-height: 1.2; margin: 0; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 6px 0 28px; }
.doc h2 { font-size: 1.2rem; margin: 40px 0 10px; scroll-margin-top: 80px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc p, .doc li { color: #d9d4ea; }
.doc strong { color: var(--text); }
.glance {
  background: linear-gradient(180deg, rgba(34, 228, 255, .06), rgba(123, 59, 255, .05));
  border: 1px solid rgba(34, 228, 255, .22); border-radius: 16px; padding: 6px 22px 10px; margin: 0 0 12px;
}
.glance h2 { margin-top: 16px; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin: 20px 0 8px; }
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin: 3px 0; font-size: 15px; break-inside: avoid; }
.toc a { text-decoration: none; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.notfound .code { font-size: 5.5rem; font-weight: 800; line-height: 1; margin: 0 0 8px; }
.notfound p { color: var(--muted); margin: 0 0 24px; }

/* Bigger tap areas for small text links on phones */
.nav a { padding: 10px 0; }
.site-footer nav a { display: inline-block; padding: 8px 0; }
