/* ============================================================
   Minidiel — studio site by BytieBell LTD
   Plain CSS, no dependencies, dark-first.
   ============================================================ */

:root {
  --bg:        #0b0b10;
  --bg-soft:   #12121b;
  --surface:   #16161f;
  --surface-2: #1c1c28;
  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.14);
  --text:      #f4f4f7;
  --muted:     #a2a2b4;
  --faint:     #6c6c80;
  --brand:     #8b7cf6;
  --brand-2:   #b39dff;
  --radius:    18px;
  --maxw:      1080px;
  --ease:      cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 400px at 12% -5%, rgba(139, 124, 246, 0.16), transparent 60%),
    radial-gradient(560px 420px at 92% 8%, rgba(248, 92, 110, 0.10), transparent 60%),
    radial-gradient(700px 500px at 60% 105%, rgba(43, 179, 240, 0.08), transparent 60%);
  pointer-events: none;
}

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

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-2);
  margin: 0 0 14px;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(11, 11, 16, 0.6);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
}
.brand .mark {
  width: 34px; height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(139, 124, 246, .4));
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: .02em;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--muted); font-weight: 500;
  transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) { .nav-links a:not(.btn) { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600; font-size: 14px;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text) !important;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); border-color: var(--brand); }
.btn.primary {
  background: linear-gradient(135deg, var(--brand), #6c5ce7);
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(108, 92, 231, .35);
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 64px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(44px, 8vw, 84px);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 6px;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 30%, #b9b3d6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .by {
  font-size: 14px; color: var(--faint); font-weight: 500;
  margin: 0 0 26px; letter-spacing: .02em;
}
.hero .by b { color: var(--muted); font-weight: 600; }
.hero .lede {
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Section chrome ---------- */
section { padding: 56px 0; }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.02em; margin: 0 0 12px; font-weight: 800;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- App grid ---------- */
.apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.card::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--a1), var(--a2));
  opacity: .9;
}
.card::after {
  content: "";
  position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, var(--a1), transparent 70%);
  opacity: .18; filter: blur(6px);
  transition: opacity .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-2);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .45);
}
.card:hover::after { opacity: .32; }

.card-top { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.icon {
  position: relative;
  width: 66px; height: 66px; border-radius: 16px; flex: 0 0 auto;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
  background: linear-gradient(135deg, var(--a1), var(--a2));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 30px;
  overflow: hidden; text-transform: lowercase;
}
.icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.icon.white { background: #fff; }
.card h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.card .cat { margin: 2px 0 0; font-size: 13px; color: var(--faint); }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border-2);
  color: var(--muted);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.pill.live .dot { background: #35d07f; box-shadow: 0 0 8px #35d07f; }
.pill.dev  .dot { background: #f5b13d; box-shadow: 0 0 8px #f5b13d; }

.card p.desc { color: var(--muted); font-size: 15px; margin: 16px 0 20px; }
.card-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.card-links a { font-size: 14px; font-weight: 600; color: var(--brand-2); }
.card-links a:hover { color: #fff; }
.card-links .sep { color: var(--faint); }
.gplay { display: inline-block; line-height: 0; transition: transform .2s var(--ease); }
.gplay svg { height: 46px; width: auto; display: block; }
.gplay:hover { transform: translateY(-1px); }

/* ---------- About ---------- */
.about-copy { max-width: 640px; }
.about-copy h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.02em; margin: 0 0 18px;
}
.about-copy p { color: var(--muted); font-size: 17px; }

/* ---------- Contact ---------- */
.contact-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(139,124,246,.12), rgba(248,92,110,.10));
  border: 1px solid var(--border-2);
  border-radius: 24px; padding: 56px 28px;
}
.contact-card h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 12px; letter-spacing: -.02em; }
.contact-card p { color: var(--muted); margin: 0 0 26px; font-size: 17px; }
.contact-card .email {
  font-size: clamp(20px, 3vw, 28px); font-weight: 700;
  background: linear-gradient(90deg, var(--brand-2), #f89bab);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  margin-top: 40px; padding: 44px 0 56px;
  color: var(--faint); font-size: 14px;
}
.foot-grid { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.legal-line { margin: 22px auto 0; max-width: 640px; line-height: 1.7; text-align: center; }
.legal-line b { color: var(--muted); }

/* ============================================================
   Legal pages (privacy / terms)
   ============================================================ */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 24px 80px; }
.legal .back { font-size: 14px; color: var(--brand-2); font-weight: 600; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -.02em; margin: 22px 0 6px; }
.legal .updated { color: var(--faint); font-size: 14px; margin: 0 0 34px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -.01em; }
.legal h3 { font-size: 17px; margin: 26px 0 8px; }
.legal p, .legal li { color: #c9c9d6; font-size: 16px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--brand-2); }
.legal .box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 22px; margin: 22px 0;
}
.legal hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
