/* MCTI Apps — minimal professional theme */
:root {
  --brand: #0a7cff;
  --brand-600: #0b6fe0;
  --brand-700: #0b63c7;
  --bg: #0b0f14;
  --surface: #0f141b;
  --card: #121923;
  --text: #e8eef6;
  --muted: #aab6c5;
  --border: #1c2430;
  --ok: #18c29c;
  --warn: #ffd166;
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
  background: linear-gradient(180deg, var(--bg), #0c1119 40%, #0b1018 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 20, 27, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.navbar.scrolled {
  background: rgba(15, 20, 27, 0.92);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.2px; }
.brand img { display: block; }

.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 8px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--text); border-color: var(--brand); }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); color: var(--text); padding: 8px 10px; border-radius: 8px; }

/* Hero */
.hero { position: relative; padding: 72px 0 200px; overflow: hidden; min-height: calc(100vh - 64px); }
.hero::before { content: ""; position: absolute; inset: -20% -10% -30% -10%; pointer-events: none; filter: blur(28px);
  background:
    radial-gradient(750px 360px at 75% -10%, rgba(10,124,255,.28), transparent 60%),
    radial-gradient(500px 260px at 20% 0%, rgba(20,184,166,.18), transparent 60%);
  transform: translateY(0);
  animation: drift 18s var(--ease) infinite alternate;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.08) 40%, transparent 70%); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.1; margin: 0; }
.hero .sub { display: block; font-size: 16px; color: var(--muted); font-weight: 600; margin-top: 10px; }
.lead { margin: 16px 0 24px; color: #d6dfec; font-size: 18px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.note { margin-top: 10px; color: var(--muted); font-size: 14px; }

.device { width: 320px; height: 560px; border-radius: 28px; background: linear-gradient(180deg, #090e15, #0f1722); border: 1px solid var(--border); box-shadow: 0 10px 40px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(255,255,255,0.02); margin: 0 auto; position: relative; animation: floaty 7s var(--ease) infinite alternate; }
.screen { position: absolute; inset: 16px; border-radius: 22px; background: #0b1320; border: 1px solid #0b1a2c; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.status { grid-column: 1 / -1; height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(10,124,255,.6), rgba(20,184,166,.8), rgba(10,124,255,.6)); background-size: 200% 100%; animation: shimmer 3.5s linear infinite; opacity: 0.8; }
.tile { border-radius: 12px; background: linear-gradient(180deg, #0e1b2d, #0a1422); border: 1px solid #13233a; box-shadow: inset 0 1px 0 rgba(255,255,255,0.03); animation: pulse 4.5s var(--ease) infinite alternate; }
.tile.t1 { background: linear-gradient(180deg, rgba(10,124,255,0.18), rgba(10,124,255,0.04)); animation-delay: .2s; }
.tile.t2 { background: linear-gradient(180deg, rgba(20,184,166,0.18), rgba(20,184,166,0.05)); animation-delay: .6s; }
.tile.t3 { background: linear-gradient(180deg, rgba(243, 139, 168, 0.2), rgba(243, 139, 168, 0.04)); animation-delay: .9s; }
.tile.t4 { background: linear-gradient(180deg, rgba(255, 209, 102, 0.25), rgba(255, 209, 102, 0.06)); animation-delay: 1.2s; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: 28px; margin: 0 0 12px 0; }
.section-intro { color: var(--muted); margin: 0 0 24px; }

.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px; box-shadow: 0 4px 18px rgba(0,0,0,0.25); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: #d0d9e6; }
.card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 32px rgba(0,0,0,.35); }

.steps { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.step .num { width: 36px; height: 36px; background: var(--brand); color: white; border-radius: 10px; display: inline-grid; place-items: center; font-weight: 700; }

.app-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.app { display: grid; grid-template-columns: 48px 1fr; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; align-items: center; }
.app-icon { font-size: 28px; }
.app-body h3 { margin: 0 0 4px; font-size: 18px; }
.app-body p { margin: 0; color: #cbd7e9; }

.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.dl { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: center; text-decoration: none; color: var(--text); }
.dl:hover { border-color: var(--brand); }
.dl-logo { display: none; }

details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
details > summary { cursor: pointer; font-weight: 600; }
details > p { color: #d1dbea; margin: 10px 0 0; }

.contact-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--brand); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 600; background: #121a26; box-shadow: 0 3px 12px rgba(0,0,0,0.25); }
.btn:hover { border-color: var(--brand); color: #fff; }
.btn-primary { background: linear-gradient(180deg, var(--brand), var(--brand-700)); border-color: rgba(255,255,255,0.1); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-outline { background: transparent; }
.btn.disabled, .btn[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }
.btn:active { transform: translateY(1px); }

/* Footer */
.footer { border-top: 1px solid var(--border); background: rgba(10, 14, 20, 0.8); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.foot-left { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); }
.foot-links { display: inline-flex; gap: 14px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 120px; min-height: unset; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 64px; right: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px; flex-direction: column; gap: 8px; min-width: 220px; box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
  .nav-links a { padding: 8px 10px; border-radius: 8px; }
  .nav-links a:hover { background: #121a26; }
  .nav-links.open { display: flex; }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 34px; }
  .lead { font-size: 16px; }
  .cta { gap: 10px; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Keyframes */
@keyframes floaty {
  0% { transform: translateY(0) rotate(.15deg); }
  100% { transform: translateY(-10px) rotate(-.15deg); }
}
@keyframes shimmer {
  0% { background-position-x: 0%; }
  100% { background-position-x: 200%; }
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .95; }
  100% { transform: scale(1.02); opacity: 1; }
}
@keyframes drift {
  0% { transform: translateY(0); }
  100% { transform: translateY(16px); }
}
