/* =========================================================
   RAGHUTECHHUB — PREMIUM UI REFRESH
   Replace the existing <style>...</style> contents with this CSS.
   Works with the current HTML class names and existing JS.
========================================================= */

:root {
  color-scheme: dark;
  --bg: #080d19;
  --bg-soft: #0d1424;
  --surface: #111b2e;
  --surface-raised: #16233a;
  --surface-hover: #1b2b47;
  --border: rgba(167, 188, 229, .15);
  --border-strong: rgba(130, 157, 255, .42);
  --text: #f4f7ff;
  --muted: #9baac4;
  --blue: #7c91ff;
  --blue-deep: #536cf0;
  --cyan: #5ce8d4;
  --purple: #b49aff;
  --green: #75edc3;
  --danger: #ff9eae;
  --radius: 22px;
  --shadow: 0 22px 60px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 38px;
  color: var(--text);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(ellipse at 12% -8%, rgba(83, 108, 240, .22), transparent 35%),
    radial-gradient(ellipse at 95% 18%, rgba(36, 196, 179, .10), transparent 28%),
    linear-gradient(180deg, #080d19 0%, #0a1020 48%, #080d19 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input { font: inherit; }
button, a, [onclick] { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, [onclick]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
::selection { color: #07111d; background: var(--cyan); }
.shell { width: min(100% - 56px, 1420px); margin: 0 auto; }

/* Header */
.topbar {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(28px, calc((100vw - 1420px) / 2));
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 13, 25, .82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font: 700 19px/1.2 "Space Grotesk", sans-serif;
  letter-spacing: -.55px;
  cursor: pointer;
  white-space: nowrap;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 15px;
  color: white;
  background: linear-gradient(145deg, #8295ff, #6652db 70%, #453db7);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: 0 8px 24px rgba(92, 105, 230, .28), inset 0 1px rgba(255,255,255,.25);
}
.brand em { color: var(--cyan); font-style: normal; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-btn, .profile {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 15px;
  color: #e8edff;
  background: rgba(20, 31, 52, .9);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.top-btn { font-size: 23px; }
.top-btn:hover, .profile:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.profile-wrap { position: relative; }
.profile {
  overflow: hidden;
  color: white;
  font-weight: 700;
  background: linear-gradient(145deg, #273f78, #17213b);
  border-color: rgba(124, 145, 255, .55);
}
.profile img { width: 100%; height: 100%; object-fit: cover; }
.profile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 90;
  width: 230px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #111b2e;
  box-shadow: var(--shadow);
}
.profile-menu.show { display: block; animation: popIn .18s ease-out; }
.user-name {
  margin-bottom: 13px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.logout {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(255, 126, 149, .2);
  border-radius: 12px;
  color: #ffb7c2;
  background: rgba(255, 89, 120, .08);
  text-align: left;
  transition: background .2s ease;
}
.logout:hover { background: rgba(255, 89, 120, .16); }

/* Main layout and sidebar */
.layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 30px;
  padding-top: 30px;
}
.sidebar {
  align-self: start;
  position: sticky;
  top: 100px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(17, 27, 46, .96), rgba(11, 18, 32, .94));
  box-shadow: 0 14px 38px rgba(0,0,0,.12);
}
.side-label {
  padding: 16px 12px 8px;
  color: #7385a7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.side-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 3px 0;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #aab8d0;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.side-link .ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 11px;
  color: #b9c7e4;
  background: #1a2942;
  font-size: 16px;
}
.side-link:hover, .side-link.active {
  color: #fff;
  border-color: rgba(124,145,255,.18);
  background: linear-gradient(100deg, rgba(104,124,255,.18), rgba(76,93,160,.06));
}
.side-link:hover { transform: translateX(2px); }
.side-link.active .ico {
  color: white;
  background: linear-gradient(145deg, #8295ff, #6257df);
  box-shadow: 0 6px 15px rgba(92,105,230,.22);
}
.side-bottom {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(92,232,212,.15);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(24,75,78,.25), rgba(13,24,40,.7));
}
.side-bottom b { color: #d9fff6; font-size: 11px; }
.side-bottom p { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
main { min-width: 0; }

/* Intro */
.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 5px 0 25px;
}
.eyebrow, .section-kicker {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.welcome h1 {
  margin: 9px 0 10px;
  font: 700 clamp(29px, 3.3vw, 45px)/1.12 "Space Grotesk", sans-serif;
  letter-spacing: -1.8px;
  text-wrap: balance;
}
.welcome p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.date-chip {
  flex: 0 0 auto;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: #c3cfea;
  background: rgba(17, 27, 46, .85);
  font-size: 11px;
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 270px;
  overflow: hidden;
  padding: clamp(25px, 3vw, 38px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 27px;
  background:
    radial-gradient(circle at 82% 18%, rgba(92,232,212,.24), transparent 26%),
    radial-gradient(circle at 95% 105%, rgba(124,145,255,.28), transparent 40%),
    linear-gradient(115deg, #17264a 0%, #263d78 49%, #145d69 115%);
  box-shadow: 0 24px 65px rgba(30, 48, 106, .22), inset 0 1px rgba(255,255,255,.1);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  pointer-events: none;
}
.hero::before { width: 350px; height: 350px; right: -25px; top: -190px; }
.hero::after { width: 255px; height: 255px; right: 23px; top: -142px; }
.hero-content { position: relative; z-index: 2; max-width: 620px; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #eaf7ff;
  background: rgba(255,255,255,.09);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.15px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #75f3c6;
  box-shadow: 0 0 0 4px rgba(117,243,198,.13), 0 0 15px rgba(117,243,198,.7);
}
.hero h2 {
  margin: 18px 0 12px;
  color: #fff;
  font: 700 clamp(29px, 3vw, 42px)/1.1 "Space Grotesk", sans-serif;
  letter-spacing: -1.6px;
  text-wrap: balance;
}
.hero p { max-width: 500px; margin: 0; color: #d7e2ff; font-size: 12px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 23px; }
.btn-primary, .btn-ghost {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 11px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  color: #142044;
  background: linear-gradient(135deg, #fff, #e1f5ff);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.btn-ghost { color: white; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.btn-ghost:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }
.hero-art {
  position: absolute;
  z-index: 1;
  right: 7%;
  bottom: -15px;
  color: #e8fff9;
  font-size: clamp(120px, 15vw, 205px);
  line-height: 1;
  opacity: .17;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,.2));
  transform: rotate(-12deg);
  animation: floatMark 6s ease-in-out infinite;
}

/* Highlights */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 32px;
}
.stat {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(20,31,52,.96), rgba(12,20,35,.96));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
  transition: transform .2s ease, border-color .2s ease;
}
.stat:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.stat-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(124,145,255,.12);
  border-radius: 14px;
  background: rgba(124,145,255,.13);
  font-size: 20px;
}
.stat:nth-child(2) .stat-icon { background: rgba(92,232,212,.12); border-color: rgba(92,232,212,.12); }
.stat:nth-child(3) .stat-icon { background: rgba(180,154,255,.13); border-color: rgba(180,154,255,.13); }
.stat small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.stat strong { display: block; color: #f1f5ff; font: 700 clamp(14px, 1.5vw, 20px)/1.25 "Space Grotesk", sans-serif; overflow-wrap: anywhere; }

/* Section headings */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
  margin: 32px 0 16px;
}
.section-head h2 {
  margin: 6px 0 0;
  color: var(--text);
  font: 700 22px/1.3 "Space Grotesk", sans-serif;
  letter-spacing: -.65px;
}
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

/* Feature cards */
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.tool-card {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 148px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  overflow: hidden;
  padding: 21px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: linear-gradient(145deg, rgba(21,32,54,.98), rgba(12,20,35,.98));
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 8px 22px rgba(0,0,0,.07);
  cursor: pointer;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease, background .24s ease;
}
.tool-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 130px;
  height: 130px;
  top: -82px;
  right: -50px;
  border-radius: 50%;
  background: rgba(124,145,255,.09);
  filter: blur(2px);
  transition: transform .3s ease;
}
.tool-card::after {
  content: "↗";
  position: absolute;
  top: 16px;
  right: 17px;
  color: #7f91b5;
  font-size: 16px;
  transition: color .2s ease, transform .2s ease;
}
.tool-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124,145,255,.48);
  background: linear-gradient(145deg, #192844, #111c30);
  box-shadow: 0 17px 38px rgba(0,0,0,.18), 0 0 0 1px rgba(124,145,255,.05);
}
.tool-card:hover::before { transform: scale(1.45); }
.tool-card:hover::after { color: var(--cyan); transform: translate(2px,-2px); }
.tool-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 16px;
  color: white;
  background: linear-gradient(145deg, #3e58ad, #5d6fe0);
  box-shadow: 0 9px 21px rgba(49,68,147,.25), inset 0 1px rgba(255,255,255,.18);
  font-size: 23px;
  transition: transform .25s ease;
}
.tool-card:hover .tool-icon { transform: translateY(-2px) rotate(-3deg); }
.tool-card:nth-child(2) .tool-icon { background: linear-gradient(145deg, #087f82, #35b9a6); box-shadow: 0 9px 21px rgba(22,145,138,.18); }
.tool-card:nth-child(3) .tool-icon { background: linear-gradient(145deg, #a85b27, #e7a34e); box-shadow: 0 9px 21px rgba(193,121,45,.18); }
.tool-card:nth-child(4) .tool-icon { background: linear-gradient(145deg, #6c42a8, #9d82f5); box-shadow: 0 9px 21px rgba(125,85,197,.18); }
.tool-card:nth-child(5) .tool-icon { background: linear-gradient(145deg, #1b7c58, #48c99a); box-shadow: 0 9px 21px rgba(37,159,107,.18); }
.tool-card:nth-child(6) .tool-icon { background: linear-gradient(145deg, #9b3f66, #ec7ca3); box-shadow: 0 9px 21px rgba(193,76,126,.18); }
.tool-info { min-width: 0; padding: 2px 13px 0 0; }
.tool-info h3 { margin: 1px 0 8px; color: #f2f5ff; font-size: 13px; font-weight: 800; line-height: 1.45; }
.tool-info p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.pill {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(92,232,212,.18);
  border-radius: 8px;
  color: #91f4df;
  background: rgba(92,232,212,.07);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

/* Mission strip */
.mission {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0;
  padding: 17px 19px;
  border: 1px solid rgba(92,232,212,.18);
  border-radius: 18px;
  background: linear-gradient(100deg, rgba(16,66,68,.42), rgba(16,28,46,.88));
}
.mission-icon { flex: 0 0 auto; font-size: 23px; }
.mission strong { display: block; color: #8ef1de; font-size: 11px; letter-spacing: 1.2px; }
.mission p { margin: 6px 0 0; color: #b4c6d8; font-size: 11px; line-height: 1.7; }
.mission-link { flex: 0 0 auto; margin-left: auto; color: var(--cyan); font-size: 11px; font-weight: 800; white-space: nowrap; }
.mission-link:hover { color: #fff; }

/* About and footer */
.about {
  margin-top: 30px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: 23px;
  background: linear-gradient(145deg, rgba(17,27,46,.95), rgba(11,18,32,.95));
}
.about h2 { margin: 7px 0 14px; font: 700 23px/1.3 "Space Grotesk", sans-serif; letter-spacing: -.65px; }
.about p { margin: 10px 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.about-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin-top: 19px; }
.about-list span {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #cfdaef;
  background: rgba(22,35,58,.75);
  font-size: 10px;
  line-height: 1.6;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 35px;
  padding: 24px 0 10px;
  border-top: 1px solid var(--border);
  color: #8493af;
  font-size: 10px;
  line-height: 1.8;
}
.footer b { color: #d6e0f5; }
.footer-links { display: flex; flex-wrap: wrap; gap: 15px; }
.footer-links a { transition: color .2s ease; }
.footer-links a:hover { color: var(--cyan); }

/* Search */
#overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2,6,17,.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
#overlay.show { display: block; }
.mobile-sidebar-close { display: none; }
.search-panel {
  display: none;
  margin: 0 0 20px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.search-panel.show { display: block; animation: slideDown .2s ease-out; }
.search-panel input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  outline: none;
  color: var(--text);
  background: #080f1e;
}
.search-panel input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(124,145,255,.12); }
#searchResults { display: grid; gap: 8px; margin-top: 10px; }
#searchResults div {
  padding: 12px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #dce6fb;
  background: #17233a;
  font-size: 12px;
  cursor: pointer;
}
#searchResults div:hover { border-color: var(--border-strong); background: #202f4d; }

/* Login modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3,7,19,.78);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}
.modal.show { display: flex; }
.modal-content {
  position: relative;
  width: min(100%, 420px);
  padding: 34px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 26px;
  background: radial-gradient(circle at 50% 0%, rgba(89,111,216,.17), transparent 42%), linear-gradient(145deg, #17233b, #0b1221);
  box-shadow: 0 30px 100px rgba(0,0,0,.55);
  text-align: center;
  animation: popIn .22s ease-out;
}
.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 35px;
  height: 35px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #d7e0f3;
  background: #1a2942;
  font-size: 22px;
  line-height: 1;
}
.close-btn:hover { background: #263956; }
.modal-logo { margin: 10px 0 20px; font: 700 21px "Space Grotesk", sans-serif; }
.modal-logo em { color: var(--cyan); font-style: normal; }
.modal-content h2 { margin: 0 0 9px; font: 700 25px "Space Grotesk", sans-serif; letter-spacing: -.7px; }
.modal-content p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.google-login-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
  padding: 14px;
  border: 0;
  border-radius: 14px;
  color: #182238;
  background: linear-gradient(135deg, #fff, #e9efff);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.google-login-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.23); }
.google-login-btn img { width: 19px; height: 19px; }
.login-note { margin-top: 15px; font-size: 10px !important; }

/* Mobile bottom navigation */
.mobile-nav { display: none; }

/* Animations */
@keyframes floatMark { 0%,100% { transform: translateY(0) rotate(-12deg); } 50% { transform: translateY(-10px) rotate(-7deg); } }
@keyframes popIn { from { opacity: 0; transform: translateY(7px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* Tablet */
@media (min-width: 1400px) {
  .layout { gap: 34px; }
  .tool-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 1100px) {
  .shell { width: calc(100% - 40px); }
  .topbar { padding: 0 20px; }
  .layout { grid-template-columns: 218px minmax(0,1fr); gap: 20px; }
  .sidebar { padding: 12px; }
  .tool-grid { gap: 12px; }
  .tool-card { padding: 17px; gap: 12px; }
  .hero-art { right: 1%; opacity: .12; }
}
@media (max-width: 800px) {
  .layout { grid-template-columns: 190px minmax(0,1fr); gap: 16px; }
  .shell { width: calc(100% - 32px); }
  .topbar { padding: 0 16px; }
  .stats { gap: 8px; }
  .stat { padding: 13px; gap: 9px; }
  .stat-icon { width: 37px; height: 37px; border-radius: 12px; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 120px; }
  .hero { padding: 25px; }
}

/* Phone */
@media (max-width: 700px) {
  body { padding-bottom: 92px; }
  .shell { width: calc(100% - 30px); }
  .topbar { height: 67px; padding: 0 15px; }
  .brand { gap: 9px; font-size: 16px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 12px; }
  .top-actions { gap: 7px; }
  .top-btn, .profile { width: 38px; height: 38px; border-radius: 12px; }
  .layout { display: block; padding-top: 20px; }
  .sidebar {
    position: fixed;
    z-index: 100;
    top: 0;
    bottom: 0;
    left: -300px;
    width: 280px;
    max-width: calc(100vw - 55px);
    overflow-y: auto;
    padding: 20px 16px;
    border-radius: 0 23px 23px 0;
    background: #0d1627;
    box-shadow: 20px 0 60px rgba(0,0,0,.25);
    transition: left .25s ease;
  }
  .sidebar.open { left: 0; }
  .mobile-sidebar-close {
    display: block;
    margin-left: auto;
    width: 35px;
    height: 35px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: white;
    background: #1a2740;
    font-size: 22px;
  }
  .sidebar-top { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
  .sidebar-top .brand { font-size: 16px; }
  .welcome { align-items: flex-start; flex-direction: column; gap: 10px; margin: 4px 0 20px; }
  .welcome h1 { max-width: 520px; font-size: clamp(29px, 8vw, 36px); letter-spacing: -1.2px; }
  .welcome p { max-width: 440px; font-size: 12px; }
  .date-chip { display: none; }
  .hero { min-height: 265px; padding: 23px 20px; border-radius: 23px; }
  .hero h2 { max-width: 340px; font-size: clamp(27px, 7.5vw, 34px); }
  .hero p { max-width: 330px; font-size: 11px; }
  .hero-art { right: -6px; bottom: 2px; font-size: 130px; opacity: .11; }
  .hero-actions { gap: 8px; margin-top: 19px; }
  .btn-primary, .btn-ghost { min-height: 41px; padding: 11px 13px; font-size: 10px; }
  .stats { gap: 8px; margin: 13px 0 27px; }
  .stat { display: block; padding: 12px 10px; border-radius: 15px; }
  .stat-icon { margin-bottom: 9px; }
  .stat small { min-height: 26px; font-size: 9px; }
  .stat strong { font-size: clamp(12px, 3.2vw, 16px); }
  .section-head { margin: 27px 0 14px; }
  .section-head h2 { font-size: 20px; }
  .section-head p { font-size: 10px; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .tool-card { display: block; min-height: 171px; padding: 14px 12px; border-radius: 17px; }
  .tool-card::after { top: 12px; right: 12px; font-size: 13px; }
  .tool-icon { width: 42px; height: 42px; margin-bottom: 13px; border-radius: 13px; font-size: 20px; }
  .tool-info { padding: 0 0 0; }
  .tool-info h3 { margin-bottom: 7px; font-size: 11px; line-height: 1.5; }
  .tool-info p { font-size: 10px; line-height: 1.65; }
  .pill { margin-top: 10px; padding: 4px 6px; font-size: 7px; letter-spacing: .4px; }
  .mission { align-items: flex-start; gap: 10px; margin: 22px 0; padding: 14px; }
  .mission-icon { font-size: 19px; }
  .mission strong { font-size: 10px; }
  .mission p { font-size: 10px; }
  .mission-link { display: none; }
  .about { margin-top: 23px; padding: 19px; border-radius: 19px; }
  .about h2 { font-size: 20px; }
  .about p { font-size: 11px; }
  .about-list { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .about-list span { padding: 10px; font-size: 9px; }
  .footer { display: block; margin-top: 27px; padding-top: 18px; }
  .footer-links { gap: 13px; margin-top: 9px; }
  .mobile-nav {
    position: fixed;
    z-index: 60;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 5px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    background: rgba(14,23,40,.92);
    box-shadow: 0 15px 45px rgba(0,0,0,.4), inset 0 1px rgba(255,255,255,.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  .mobile-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 2px;
    border: 0;
    border-radius: 12px;
    color: #8797b5;
    background: transparent;
    font-size: 9px;
    transition: color .2s ease, background .2s ease;
  }
  .mobile-nav button span { font-size: 18px; line-height: 1.2; }
  .mobile-nav button.active { color: var(--cyan); background: rgba(92,232,212,.08); }
  .modal-content { padding: 30px 23px; border-radius: 23px; }
}
@media (max-width: 380px) {
  .shell { width: calc(100% - 24px); }
  .brand { font-size: 14px; }
  .hero { padding: 21px 17px; }
  .hero h2 { font-size: 26px; }
  .stats { gap: 6px; }
  .stat { padding: 10px 7px; }
  .stat strong { font-size: 11px; }
  .tool-grid { gap: 8px; }
  .tool-card { padding: 12px 10px; min-height: 178px; }
  .tool-info h3 { font-size: 10px; }
  .tool-info p { font-size: 9px; }
  .about-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
