﻿:root {
  --bg: #090b11;
  --bg-soft: #0f1420;
  --surface: rgba(18, 23, 34, 0.72);
  --surface-strong: rgba(20, 26, 39, 0.92);
  --border: rgba(255,255,255,0.08);
  --text: #f5f7fb;
  --muted: #98a2b3;
  --primary: #4fd1ff;
  --secondary: #8c7cff;
  --accent: #ff8a7a;
  --success: #37d67a;
  --shadow: 0 30px 80px rgba(0,0,0,0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 15% 20%, rgba(79,209,255,0.16), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(140,124,255,0.16), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(255,138,122,0.08), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #0c1019 100%);
  color: var(--text);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.navbar {
  padding-top: .55rem;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(6,10,22,.82), rgba(6,10,22,.42) 58%, transparent 100%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navbar .container {
  background: rgba(13,18,32,.72);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
  padding: .5rem .85rem;
  display: flex;
  align-items: center;
  min-height: 78px;
  gap: .85rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-main-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: .18rem;
}
.nav-main-links .nav-link {
  color: var(--muted) !important;
  font-weight: 600;
  font-size: .96rem;
  line-height: 1.2;
  letter-spacing: .012em;
  border-radius: 999px;
  padding: .44rem .82rem !important;
  transition: color .18s ease, background .18s ease;
}
.nav-main-links .nav-link:hover, .nav-main-links .nav-link:focus {
  color: var(--text) !important;
  background: rgba(255,255,255,.09);
}
.nav-item-mega {
  position: relative;
}
.nav-link-mega {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.nav-link-mega i {
  font-size: .68rem;
  opacity: .75;
  transition: transform .18s ease;
}
.mega-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  width: min(660px, 82vw);
  background: linear-gradient(145deg, rgba(20,26,40,.96), rgba(13,19,33,.96));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0,0,0,.42);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  padding: 1.2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 40;
}
.nav-item-mega:hover .mega-panel,
.nav-item-mega:focus-within .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav-item-mega:hover .nav-link-mega i,
.nav-item-mega:focus-within .nav-link-mega i {
  transform: rotate(180deg);
}
.mega-col {
  min-width: 0;
  padding-right: .2rem;
}
.mega-col + .mega-col {
  border-left: 1px solid rgba(255,255,255,.06);
  padding-left: 1rem;
}
.mega-title {
  display: block;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(173,187,214,.62);
  margin-bottom: .6rem;
  font-weight: 700;
}
.mega-link {
  display: block;
  color: rgba(233,239,251,.9);
  font-weight: 600;
  font-size: .92rem;
  line-height: 1.35;
  padding: .5rem .5rem;
  border-radius: 10px;
  transition: background .18s ease, color .18s ease;
}
.mega-link-title {
  display: block;
  color: #eef3ff;
  font-weight: 700;
  margin-bottom: .2rem;
  line-height: 1.3;
}
.mega-link-note {
  display: block;
  color: rgba(173,187,214,.78);
  font-size: .8rem;
  font-weight: 500;
  line-height: 1.35;
}
.mega-link:hover,
.mega-link:focus {
  background: rgba(79,209,255,.12);
  color: #fff;
}
.mega-link:hover .mega-link-note,
.mega-link:focus .mega-link-note {
  color: rgba(223,233,255,.92);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex-shrink: 0;
}
.nav-login {
  color: rgba(235,239,255,.9);
  font-size: .93rem;
  font-weight: 600;
  padding: .42rem .58rem;
  border-radius: 10px;
  transition: background .18s ease, color .18s ease;
}
.nav-login:hover,
.nav-login:focus {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .56rem 1.02rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: #081021;
  background: linear-gradient(135deg, #f3f7ff, #dbe8ff);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 6px 18px rgba(18,31,66,.25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.nav-cta:hover,
.nav-cta:focus {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(18,31,66,.32);
}
.navbar-toggler {
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1) !important;
  padding: .35rem .5rem;
}
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(79,209,255,.2); }

@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex: 1;
  }
}

.hero {
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}
/* Radial glow orbs */
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(79,209,255,.13) 0%, rgba(140,124,255,.07) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 180px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 1;
}
.hero > * { position: relative; z-index: 2; }
.hero-logo-wrapper {
  position: relative;
  max-width: 180px;
  height: auto;
  margin: 0 auto;
}
.hero-logo-wrapper::before {
  content: "";
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,209,255,.18) 0%, transparent 65%);
  animation: pulse-glow 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse-glow {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}
.hero-logo {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(79,209,255,0.45)) drop-shadow(0 2px 8px rgba(140,124,255,0.3));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(79,209,255,.08);
  border: 1px solid rgba(79,209,255,.18);
  color: var(--primary);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(79,209,255,.4);
  animation: ping 1.8s ease infinite;
  flex-shrink: 0;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(79,209,255,.55); }
  70% { box-shadow: 0 0 0 7px rgba(79,209,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,209,255,0); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
}
.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.lead {
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  max-width: 52ch;
  line-height: 1.75;
  margin: 0 auto 2rem;
}
/* Social proof */
.social-proof {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  font-size: .82rem;
  color: var(--muted);
}
.proof-avatars {
  display: flex;
}
.proof-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -7px;
  font-size: .5rem;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
}
.proof-avatar:first-child { margin-left: 0; }
.proof-stars {
  color: #fbbf24;
  font-size: .7rem;
  letter-spacing: .05em;
}
.btn-primary-custom {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 0;
  color: white;
  padding: .95rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 18px 40px rgba(79,209,255,.22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(79,209,255,.32);
  color: white;
}
.btn-secondary-custom {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  padding: .95rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn-secondary-custom:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  background: rgba(79,209,255,.06);
  color: var(--text);
}
.hero-card, .glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.hero-card {
  padding: 1.1rem;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 30%);
  pointer-events: none;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .6rem .9rem;
}
.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.window-bar-win {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .35rem .6rem .9rem;
}
.window-bar-win .win-title {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 500;
}
.win-controls {
  display: flex;
  align-items: center;
  gap: 0;
}
.win-btn {
  width: 32px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .7rem;
  transition: background .15s ease;
}
.win-btn:hover { background: rgba(255,255,255,.08); }
.win-btn-close:hover { background: #e81123; color: white; }
.platform-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
}
.app-shell {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
}
.sidebar-demo {
  min-height: 560px;
  background: rgba(9,12,18,.65);
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 1.2rem;
}
.main-demo {
  min-height: 560px;
  background: linear-gradient(180deg, rgba(13,17,25,.96), rgba(10,13,19,.92));
  padding: 1.3rem;
}
.demo-pill, .status-chip, .mini-chip {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 600;
}
.demo-pill {
  padding: .55rem .8rem;
  background: rgba(255,255,255,.04);
  color: #c8d0dc;
  margin-bottom: .65rem;
  width: 100%;
  justify-content: flex-start;
}
.status-chip {
  padding: .45rem .75rem;
  background: rgba(79,209,255,.12);
  color: var(--primary);
  border: 1px solid rgba(79,209,255,.16);
}
.mini-chip {
  padding: .35rem .65rem;
  background: rgba(140,124,255,.12);
  color: #d5ccff;
  border: 1px solid rgba(140,124,255,.16);
}
.chat-bubble {
  padding: 1rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  max-width: 88%;
  font-size: .96rem;
  line-height: 1.6;
}
.bubble-mia {
  background: rgba(79,209,255,.10);
  border: 1px solid rgba(79,209,255,.12);
}
.bubble-user {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
  margin-left: auto;
}
.typing {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  animation: bounce 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%,80%,100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }

/* ── OS Desktop Simulation ── */
.desktop-frame {
  height: 560px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.04);
  background: #000;
  display: flex;
  flex-direction: column;
}
.desktop-area {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.wallpaper-mac {
  background: linear-gradient(135deg, #1c1440 0%, #1a2760 25%, #0d4a6e 50%, #2a1b5e 75%, #5c2d91 100%);
}
.wallpaper-win {
  background: linear-gradient(135deg, #001d3d 0%, #003566 30%, #0077b6 60%, #023e8a 100%);
}
/* macOS Menubar */
.mac-menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  height: 24px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(20px);
  font-size: .6rem;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  letter-spacing: .01em;
}
.mac-menubar .menu-items { display: flex; gap: 10px; }
.mac-menubar .menu-right { display: flex; align-items: center; gap: 8px; opacity: .7; }
/* macOS Dock */
.mac-dock {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  padding: 4px 8px;
  background: rgba(255,255,255,.1);
  border-radius: 14px;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.12);
  z-index: 5;
}
.dock-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: .8rem;
  color: white;
  transition: transform .15s;
}
.dock-icon:hover { transform: translateY(-4px) scale(1.15); }
.dock-active-dot {
  position: relative;
}
.dock-active-dot::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.7);
}
/* Windows Taskbar */
.win-taskbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 2px;
  z-index: 5;
}
.taskbar-center {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}
.taskbar-btn {
  width: 34px;
  height: 30px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: .75rem;
  color: rgba(255,255,255,.7);
  transition: background .15s;
}
.taskbar-btn:hover { background: rgba(255,255,255,.08); }
.taskbar-btn.tb-active {
  position: relative;
}
.taskbar-btn.tb-active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  width: 14px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--primary);
}
.taskbar-search {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  height: 24px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
  font-size: .58rem;
  color: rgba(255,255,255,.4);
}
.taskbar-clock {
  position: absolute;
  right: 10px;
  font-size: .58rem;
  color: rgba(255,255,255,.65);
  text-align: right;
  line-height: 1.3;
}
/* Desktop Icons */
.desktop-icons {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 2;
}
.desktop-icons-right { top: 10px; right: 12px; }
.desktop-icons-left { top: 10px; left: 12px; }
.desktop-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 52px;
}
.desktop-icon-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: .85rem;
  color: white;
}
.desktop-icon-item span {
  font-size: .5rem;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 4px rgba(0,0,0,.7);
  text-align: center;
  line-height: 1.2;
}
/* Floating Mia Window */
.floating-window {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
  background: var(--surface);
  z-index: 3;
}
.floating-mac { top: 34px; bottom: 50px; }
.floating-win { top: 10px; bottom: 50px; }
.floating-window .fw-bar {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .55rem;
  background: rgba(30,33,42,.95);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.floating-window .fw-bar .window-dot { width: 9px; height: 9px; }
.fw-bar-title {
  font-size: .6rem;
  color: var(--muted);
  flex: 1;
  text-align: center;
  margin-right: 30px;
}
.fw-bar-win {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .2rem .4rem .2rem .6rem;
  background: rgba(30,33,42,.95);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.fw-bar-win .fwt { font-size: .58rem; color: var(--muted); font-weight: 500; }
.fw-bar-win .fwc { display: flex; }
.fw-bar-win .fwc span {
  width: 28px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: .55rem;
  color: var(--muted);
}
.fw-bar-win .fwc span:last-child:hover { background: #e81123; color: white; }
.floating-content {
  background: linear-gradient(180deg, rgba(13,17,25,.97), rgba(10,13,19,.94));
  height: calc(100% - 28px);
  overflow: hidden;
  display: flex;
  flex-direction: row;
}
/* App Sidebar */
.app-sidebar {
  width: 36%;
  min-width: 0;
  background: rgba(0,0,0,.35);
  border-right: 1px solid rgba(255,255,255,.05);
  display: flex;
  flex-direction: column;
  padding: .45rem .4rem;
  gap: 0;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .35rem .5rem;
  border-bottom: 1px solid rgba(255,255,255,.05);
  margin-bottom: .4rem;
}
.sidebar-brand img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.sidebar-brand span {
  font-size: .6rem;
  font-weight: 700;
  color: var(--text);
}
.sidebar-new-btn {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .4rem;
  border-radius: 7px;
  font-size: .52rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(79,209,255,.07);
  border: 1px solid rgba(79,209,255,.14);
  margin-bottom: .45rem;
  cursor: pointer;
  transition: background .15s;
}
.sidebar-new-btn:hover { background: rgba(79,209,255,.13); }
.sidebar-new-btn i { font-size: .55rem; }
.sidebar-group-label {
  font-size: .44rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.25);
  padding: .25rem .35rem .15rem;
}
.sidebar-conv {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .32rem .4rem;
  border-radius: 7px;
  font-size: .55rem;
  color: var(--muted);
  transition: background .15s;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-left: 2px solid transparent;
  margin-bottom: .05rem;
}
.sidebar-conv:hover { background: rgba(255,255,255,.04); }
.sidebar-conv.sc-active {
  background: rgba(79,209,255,.08);
  color: var(--text);
  font-weight: 600;
  border-left-color: var(--primary);
}
.sidebar-conv i { font-size: .52rem; flex-shrink: 0; }
.sc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-left: auto;
  animation: ping 2s ease infinite;
}
.sidebar-spacer { flex: 1; }
.sidebar-shortcuts {
  display: flex;
  align-items: center;
  gap: .2rem;
  padding: .3rem .35rem;
  border-top: 1px solid rgba(255,255,255,.05);
  margin-bottom: .25rem;
}
.sidebar-shortcut-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: .55rem;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.sidebar-shortcut-btn:hover { background: rgba(255,255,255,.06); color: var(--text); }
.sidebar-user {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .35rem;
}
.sidebar-user-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  font-size: .48rem;
  color: white;
  flex-shrink: 0;
  font-weight: 700;
}
.sidebar-user-info {
  flex: 1;
  min-width: 0;
}
.sidebar-user-name {
  font-size: .54rem;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-plan-badge {
  display: inline-block;
  font-size: .42rem;
  font-weight: 700;
  padding: .05rem .3rem;
  border-radius: 4px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.plan-free { background: rgba(255,159,67,.15); color: #ff9f43; }
.plan-plus { background: rgba(140,124,255,.2); color: #a89fff; }
.plan-pro { background: rgba(79,209,255,.15); color: var(--primary); }
/* App Main Area */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: .55rem;
  min-width: 0;
}
/* Input bar */
.fc-input-bar {
  display: flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem;
  margin-top: auto;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
}
.fc-input-field {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: .55rem;
  color: var(--muted);
  padding: 0 .3rem;
}
.fc-input-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .55rem;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.fc-input-btn:hover { color: var(--primary); background: rgba(79,209,255,.1); }
.fc-mic-btn {
  background: rgba(79,209,255,.12);
  color: var(--primary);
}
.fc-mic-btn:hover { background: rgba(79,209,255,.2); }
/* Credits bar */
.fc-credits {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem .45rem;
  font-size: .48rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,.04);
  margin-top: .3rem;
}
.fc-credits-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  overflow: hidden;
}
.fc-credits-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.fc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .55rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.fc-header .fc-title { font-size: .72rem; font-weight: 700; }
.fc-header .fc-sub { font-size: .55rem; color: var(--muted); }
.fc-header .fc-status {
  padding: .15rem .45rem;
  border-radius: 999px;
  font-size: .55rem;
  font-weight: 600;
  background: rgba(79,209,255,.12);
  color: var(--primary);
  border: 1px solid rgba(79,209,255,.16);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.fc-chat { flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.fc-bubble {
  padding: .45rem .65rem;
  border-radius: 12px;
  font-size: .65rem;
  line-height: 1.5;
  max-width: 88%;
}
.fc-mia {
  background: rgba(79,209,255,.08);
  border: 1px solid rgba(79,209,255,.1);
}
.fc-user {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.05);
  margin-left: auto;
}
.fc-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fc-typing {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
}
.fc-typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
  animation: bounce 1.2s infinite ease-in-out;
}
.fc-typing span:nth-child(2) { animation-delay: .15s; }
.fc-typing span:nth-child(3) { animation-delay: .3s; }

@media (max-width: 991.98px) {
  .desktop-frame { height: 430px; }
  .navbar { padding-top: .35rem; }
  .navbar .container {
    border-radius: 14px;
    padding: .5rem .7rem;
  }
  .navbar-collapse {
    margin-top: .62rem;
    background: rgba(4,10,22,.78);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: .45rem;
  }
  .nav-main-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: .08rem;
  }
  .nav-item-mega {
    position: static;
  }
  .nav-main-links .nav-link {
    width: 100%;
    border-radius: 9px;
  }
  .mega-panel {
    position: static;
    width: 100%;
    margin-top: .2rem;
    transform: none;
    grid-template-columns: 1fr;
    gap: .7rem;
    padding: .65rem;
    border-radius: 10px;
  }
  .mega-col + .mega-col {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.06);
    padding-left: 0;
    padding-top: .62rem;
  }
  .mega-link-note {
    font-size: .78rem;
  }
  .nav-actions {
    margin-top: .45rem;
    padding-top: .45rem;
    border-top: 1px solid rgba(255,255,255,.07);
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-login, .nav-cta {
    width: 100%;
    text-align: center;
  }
  .floating-window { width: 90%; }
  .desktop-icons { display: none; }
  .app-sidebar { display: none; }
}
@media (max-width: 575.98px) {
  .desktop-frame { height: 360px; }
  .floating-window { width: 94%; }
  .mac-dock { gap: 3px; padding: 3px 6px; }
  .dock-icon { width: 26px; height: 26px; font-size: .65rem; }
}

.section {
  padding: 5rem 0;
  position: relative;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3.3rem);
  letter-spacing: -0.05em;
  margin-bottom: .9rem;
}
.section-copy {
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.75;
  margin-bottom: 2.2rem;
}
.feature-card, .metric-card, .plan-card, .quote-card, .cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.feature-card {
  height: 100%;
  padding: 1.8rem;
  transition: transform .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(79,209,255,.24); }
.icon-wrap {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(79,209,255,.08);
  border: 1px solid rgba(79,209,255,.12);
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}
.feature-card h3, .plan-card h3, .quote-card h3 {
  font-size: 1.15rem;
  margin-bottom: .6rem;
  font-weight: 700;
}
.feature-card p, .quote-card p, .plan-card p, .metric-card p { color: var(--muted); font-size: .95rem; line-height: 1.65; }

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1.5rem;
}
.story-panel { padding: 2rem; }
.story-panel strong { color: var(--text); }

.metric-card { padding: 1.5rem; height: 100%; }
.metric-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.metric-icon-blue { background: rgba(79,209,255,.1); border: 1px solid rgba(79,209,255,.15); color: var(--primary); }
.metric-icon-purple { background: rgba(140,124,255,.1); border: 1px solid rgba(140,124,255,.15); color: var(--secondary); }
.metric-icon-green { background: rgba(55,214,122,.1); border: 1px solid rgba(55,214,122,.15); color: var(--success); }
.metric-icon-orange { background: rgba(255,138,122,.1); border: 1px solid rgba(255,138,122,.15); color: var(--accent); }
.metric-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.timeline {
  position: relative;
  padding-left: 1.4rem;
}
.timeline::before {
  content: "";
  position: absolute;
  left: .3rem;
  top: .4rem;
  bottom: .4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary), transparent);
}
.timeline-item {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 1.8rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -.15rem;
  top: .3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,209,255,.15), 0 0 12px rgba(79,209,255,.2);
}
.timeline-item:nth-child(2)::before { background: var(--secondary); box-shadow: 0 0 0 4px rgba(140,124,255,.15), 0 0 12px rgba(140,124,255,.2); }
.timeline-item:nth-child(3)::before { background: var(--success); box-shadow: 0 0 0 4px rgba(55,214,122,.15), 0 0 12px rgba(55,214,122,.2); }
.timeline-item:nth-child(4)::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(255,138,122,.15), 0 0 12px rgba(255,138,122,.2); }
.step-number {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .25rem;
}
.timeline-item:nth-child(2) .step-number { color: var(--secondary); }
.timeline-item:nth-child(3) .step-number { color: var(--success); }
.timeline-item:nth-child(4) .step-number { color: var(--accent); }

.plans-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 991px) { .plans-wrap { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .plans-wrap { grid-template-columns: 1fr; } }
.plan-card {
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.plan-card.featured {
  border-color: rgba(79,209,255,.3);
  box-shadow: 0 24px 50px rgba(79,209,255,.14);
}
.plan-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .35rem;
}
.plan-subtitle {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}
.price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: -.04em;
  margin-bottom: .15rem;
}
.price-note {
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 1.5rem;
}
.plan-cta {
  display: block;
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  text-align: center;
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.plan-cta:hover { transform: translateY(-1px); }
.plan-cta-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.plan-cta-outline:hover { border-color: var(--primary); color: var(--text); background: rgba(79,209,255,.06); }
.plan-cta-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  color: white;
  box-shadow: 0 12px 30px rgba(79,209,255,.2);
}
.plan-cta-primary:hover { box-shadow: 0 16px 40px rgba(79,209,255,.3); color: white; }
.plan-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 1.25rem;
}
.plan-includes {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.plan-includes i { color: var(--primary); font-size: .75rem; }
.plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin-bottom: .7rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.plan-list i { color: var(--text); margin-top: .2rem; font-size: .8rem; flex-shrink: 0; }
.plan-footer-note {
  margin-top: auto;
  padding-top: 1rem;
  font-size: .8rem;
  color: var(--muted);
}
.plan-footer-note a { color: var(--primary); text-decoration: underline; }

.quote-card { padding: 2rem; }
.quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: rgba(79,209,255,.55);
  font-family: Georgia, serif;
}
.brand-mark {
  border-radius: 14px;
  background: rgba(79,209,255,.08);
  border: 1px solid rgba(79,209,255,.12);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cta-card {
  padding: 2.4rem;
  overflow: hidden;
  position: relative;
}
.cta-card::after {
  content: "";
  position: absolute;
  inset: auto -15% -50% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,209,255,.22), transparent 70%);
  pointer-events: none;
}
.footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
}
.social-link {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-right: .5rem;
  transition: transform .2s ease, border-color .2s ease;
}
.social-link:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-grid;
  place-items: center;
}

@media (max-width: 1199px) {
  .plans-wrap { grid-template-columns: repeat(2, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
}
@media (max-width: 991px) {
  .hero { padding-top: 7rem; }
  .sidebar-demo { min-height: auto; }
  .main-demo { min-height: auto; }
}
@media (max-width: 767px) {
  .plans-wrap { grid-template-columns: 1fr; }
  .hero h1 { max-width: 100%; }
  .hero-card { margin-top: 2rem; }
  .chat-bubble { max-width: 100%; }
  .hero-logo-wrapper { max-width: 150px; }
}

/* Fade-in on scroll */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mia avatar in chat */
.mia-avatar {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Auth Modals */
.modal-content {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--text);
}
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem 1.25rem;
}
.modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}
.modal-body { padding: 2rem; }
.modal-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}
.auth-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  padding: .85rem 1rem;
  font-size: .95rem;
  width: 100%;
  transition: border-color .2s ease;
}
.auth-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,209,255,.12);
}
.auth-input::placeholder { color: var(--muted); }
.auth-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: .4rem;
}
.auth-btn {
  width: 100%;
  padding: .9rem;
  border-radius: 14px;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(79,209,255,.25);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
  font-size: .85rem;
  margin: 1.25rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-social-btn {
  width: 100%;
  padding: .75rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: border-color .2s ease, background .2s ease;
}
.auth-social-btn:hover {
  border-color: var(--primary);
  background: rgba(79,209,255,.04);
}
.auth-switch {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .9rem;
  color: var(--muted);
}
.auth-switch a {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }
.dev-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  color: #ffd67a;
  background: rgba(255,214,122,.12);
  border: 1px solid rgba(255,214,122,.2);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.notify-note {
  font-size: .82rem;
  color: var(--muted);
  text-align: center;
  margin-top: .85rem;
}
.download-modal .modal-content {
  background:
    radial-gradient(circle at 12% 10%, rgba(79,209,255,.13), transparent 42%),
    radial-gradient(circle at 88% 90%, rgba(140,124,255,.1), transparent 40%),
    linear-gradient(160deg, #0a1226 0%, #0b1328 48%, #0a1122 100%);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 28px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.07);
  border-radius: 24px;
}
.download-modal .modal-header {
  padding: 1rem 1.2rem 0;
}
.download-modal .modal-body {
  padding: .8rem 2rem 2rem;
}
.download-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-bottom: .95rem;
}
.download-head .modal-logo {
  margin-bottom: 0;
  height: 54px;
  filter: drop-shadow(0 8px 16px rgba(79,209,255,.32));
}
.download-modal .dev-badge {
  margin-bottom: 0 !important;
  padding: .42rem .82rem;
  font-size: .78rem;
  background: rgba(255,214,122,.14);
  border-color: rgba(255,214,122,.3);
}
.download-title {
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: .55rem;
}
.download-copy {
  color: #a8b4cf;
  font-size: 1.03rem;
  line-height: 1.58;
  max-width: 36ch;
  margin: 0 auto;
}
.download-input-wrap {
  position: relative;
}
.download-input-wrap .auth-input {
  padding-left: 2.65rem;
  background: rgba(6,12,26,.62);
  border-color: rgba(255,255,255,.1);
}
.download-input-wrap i {
  position: absolute;
  left: .95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #7c8fb4;
  font-size: .94rem;
  pointer-events: none;
}
.download-modal .auth-btn {
  margin-top: .35rem;
  padding: .98rem;
  border-radius: 16px;
  font-size: 1.03rem;
  background: linear-gradient(135deg, #55c8f4, #6aa8ff 42%, #8476f1);
  box-shadow: 0 16px 30px rgba(84,175,246,.25);
}
.download-modal .notify-note {
  margin-top: 1rem;
  color: #95a3c2;
  font-size: .88rem;
}
.download-modal .btn-close {
  opacity: .92;
}
@media (max-width: 575.98px) {
  .download-modal .modal-body {
    padding: .6rem 1.2rem 1.4rem;
  }
  .download-head {
    flex-direction: column;
    gap: .45rem;
  }
  .download-title {
    font-size: 1.45rem;
  }
  .download-copy {
    font-size: .96rem;
  }
}
