:root {
  --bg-main: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  --bg-elevated: rgba(255, 255, 255, 0.98);
  --text-main: #0f172a;
  --text-muted: #475569;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --border-subtle: rgba(148, 163, 184, 0.15);
  --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -2px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  --shadow-soft: 0 2px 12px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.2);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

:root.dark {
  --bg-main: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --bg-elevated: rgba(30, 41, 59, 0.98);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #818cf8;
  --accent-hover: #a5b4fc;
  --border-subtle: rgba(148, 163, 184, 0.12);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 60px rgba(129, 140, 248, 0.3);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbMove1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(100px, -50px) scale(1.1);
  }
  66% {
    transform: translate(-50px, 100px) scale(0.9);
  }
}

@keyframes orbMove2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-100px, 100px) scale(0.9);
  }
  66% {
    transform: translate(50px, -50px) scale(1.1);
  }
}

@keyframes orbMove3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(75px, 75px) scale(1.05);
  }
}

.particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.gradient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.gradient-orb--1 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  top: -250px;
  right: -250px;
  animation: orbMove1 20s ease-in-out infinite;
}

.gradient-orb--2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  bottom: -200px;
  left: -200px;
  animation: orbMove2 25s ease-in-out infinite;
}

.gradient-orb--3 {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  top: 50%;
  left: 50%;
  animation: orbMove3 30s ease-in-out infinite;
}


/* Layout */

.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px;
  padding-top: 70px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
}

/* Sidebar */

.sidebar {
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.97) 0%, rgba(30, 41, 59, 0.97) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border-radius: var(--radius-xl);
  padding: 24px 20px;
  color: #f1f5f9;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: box-shadow var(--transition-smooth);
  height: calc(100vh - 102px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.sidebar:hover {
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

.sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.avatar {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.avatar__frame {
  position: relative;
  padding: 4px;
  border-radius: 999px;
  box-shadow: var(--shadow-glow);
  animation: float 6s ease-in-out infinite;
}

.avatar__frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: conic-gradient(from 0deg, #6366f1, #8b5cf6, #06b6d4, #6366f1);
  animation: rotate 8s linear infinite;
  z-index: 0;
}

.avatar__image {
  position: relative;
  z-index: 1;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 3px solid var(--bg-elevated);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.4);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.avatar__image:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .avatar__frame,
  .avatar__frame::before {
    animation: none;
  }
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(2, 6, 23, 0.25);
  color: rgba(226, 232, 240, 0.95);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.lang-switch:hover {
  border-color: rgba(165, 180, 252, 0.75);
  background: rgba(2, 6, 23, 0.35);
}

.lang-switch__label {
  opacity: 0.75;
  transition: opacity var(--transition-fast);
}

.lang-switch[aria-checked="false"] .lang-switch__label:first-child {
  opacity: 1;
}

.lang-switch[aria-checked="true"] .lang-switch__label:last-child {
  opacity: 1;
}

.lang-switch__track {
  position: relative;
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
}

.lang-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.95);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  transition: transform var(--transition-smooth), background var(--transition-fast);
}

.lang-switch[aria-checked="true"] .lang-switch__thumb {
  transform: translateX(16px);
  background: rgba(165, 180, 252, 0.95);
}

.name {
  margin: 12px 0 0;
  font-size: 20px;
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.role {
  margin: 4px 0;
  text-align: center;
  font-size: 12px;
  color: #e0e7ff;
  line-height: 1.5;
  font-weight: 400;
}

.role--small {
  font-size: 11px;
  color: #cbd5f5;
  margin-top: 2px;
}

.sidebar-heading {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 0 0 8px;
  color: #a5b4fc;
  font-weight: 600;
}

.contact__list,
.links__list,
.badge-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact__list li {
  font-size: 12px;
  margin-bottom: 5px;
  line-height: 1.5;
}

.contact__label {
  font-weight: 600;
  color: #a5b4fc;
  margin-right: 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact a,
.links__list a {
  color: #ffffff;
  text-decoration: none;
  transition: all var(--transition-smooth);
  font-weight: 400;
}

.contact a:hover,
.links__list a:hover {
  color: #a5b4fc;
  transform: translateX(2px);
}

.links__list li {
  font-size: 12px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  background: rgba(165, 180, 252, 0.15);
  border: 1px solid rgba(165, 180, 252, 0.3);
  color: #e0e7ff;
  font-weight: 500;
  transition: all var(--transition-smooth);
}

.badge:hover {
  background: rgba(165, 180, 252, 0.25);
  border-color: rgba(165, 180, 252, 0.5);
  transform: translateY(-1px);
}

.sidebar-section {
  font-size: 13px;
}

.credits {
  font-size: 12px;
  margin: 0;
}

.copy-status {
  font-size: 11px;
  min-height: 16px;
  margin-top: 4px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  font-size: 12px;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  margin-top: 8px;
  width: 100%;
  padding: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(10px);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.lang-toggle {
  width: auto;
  padding: 6px 10px;
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}

/* Top nav */

.content {
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  border: 1px solid rgba(148, 163, 184, 0.15);
  position: relative;
  height: calc(100vh - 102px);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.content::-webkit-scrollbar {
  width: 6px;
}

.content::-webkit-scrollbar-track {
  background: transparent;
}

.content::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 6px;
}

.content::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

:root.dark .content {
  background: rgba(15, 23, 42, 0.92);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 0;
  margin: 0;
  background: transparent;
}

.top-nav__wrapper {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 10px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  transition: all var(--transition-smooth);
}

.top-nav.scrolled .top-nav__wrapper {
  background: linear-gradient(135deg, rgba(30, 41, 59, 1) 0%, rgba(15, 23, 42, 1) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

:root.dark .top-nav__wrapper {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(7, 11, 21, 0.98) 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

:root.dark .top-nav.scrolled .top-nav__wrapper {
  background: linear-gradient(135deg, rgba(15, 23, 42, 1) 0%, rgba(7, 11, 21, 1) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.top-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 1240px;
  margin: 0 auto;
}

.top-nav__link {
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: rgba(226, 232, 240, 0.9);
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.top-nav__link:hover {
  background: rgba(71, 85, 105, 0.4);
  color: #ffffff;
  border-color: rgba(148, 163, 184, 0.3);
}

.top-nav__link.is-active {
  background: rgba(71, 85, 105, 0.8);
  color: #ffffff;
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

:root.dark .top-nav__link.is-active {
  background: rgba(51, 65, 85, 0.9);
  color: #e2e8f0;
}


/* Sections */

.section {
  display: none;
  padding: 20px 24px 24px;
  animation: fadeInUp 0.6s ease-out;
  scroll-margin-top: 80px;
}

.section--active {
  display: block;
}

.section__title {
  margin: 8px 0 4px;
  font-size: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.section__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
}

.section__subtitle {
  font-size: 15px;
  margin: 8px 0 6px;
}

.section__lead {
  margin-top: 2px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

/* Cards */

.card {
  margin-top: 16px;
  padding: 24px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-smooth);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(99, 102, 241, 0.3);
}

.card__header {
  margin-bottom: 12px;
}

.card__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.card__meta {
  font-size: 14px;
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}

.card__meta--time {
  font-style: italic;
}

.card__list {
  margin: 12px 0 8px;
  padding-left: 4px;
  font-size: 15px;
  line-height: 1.7;
  list-style: none;
}

.card__list > li {
  position: relative;
  margin-bottom: 8px;
  padding: 4px 8px 4px 22px;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.card__list > li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.78em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gradient-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.card__list > li:hover {
  background: rgba(99, 102, 241, 0.06);
}

.card__list ul {
  margin-top: 8px;
  padding-left: 20px;
  list-style: disc;
}

.card__list ul li {
  margin-bottom: 6px;
}

.card__note {
  font-size: 12px;
  margin-top: 4px;
  color: var(--text-muted);
}

.card--research {
  margin-top: 14px;
}

/* Simple lists */

.simple-list {
  list-style: none;
  margin: 4px 0 0;
  padding-left: 0;
  font-size: 13px;
}

.simple-list li {
  margin-bottom: 3px;
}

/* Grid & columns */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 8px;
}

/* Pills */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 6px;
}

.pill {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  background: var(--bg-pill);
  color: #1f2937;
  transition: all var(--transition-smooth);
  cursor: default;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.pill:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
  background: linear-gradient(135deg, #dbeafe 0%, #e0ecff 100%);
}

:root.dark .pill {
  color: #e5e7eb;
}

/* Apps grid */

.apps-category {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 4px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.apps-category::before {
  content: '';
  width: 18px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--gradient-primary);
}

.apps-category::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-subtle), transparent);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.app-card {
  border-radius: var(--radius-lg);
  padding: 0;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.app-card:hover::before {
  opacity: 1;
}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(99, 102, 241, 0.3);
}

.app-card > * {
  position: relative;
  z-index: 1;
}

.app-card__title {
  margin: 0 0 6px;
  padding: 20px 20px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.app-card__meta {
  margin: 0 0 8px;
  padding: 0 20px;
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-card__text {
  margin: 0 0 16px;
  padding: 0 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  flex: 1;
}

.app-card__link {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  color: var(--accent);
  text-decoration: none;
  transition: all var(--transition-smooth);
  border-top: 1px solid var(--border-subtle);
  letter-spacing: 0.02em;
}

.app-card__link::after {
  content: '\2192';
  display: inline-block;
  transition: transform var(--transition-smooth);
}

.app-card:hover .app-card__link::after {
  transform: translateX(4px);
}

.app-card__link:hover {
  background: var(--gradient-primary);
  color: #ffffff;
}

:root.dark .app-card__link {
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.1) 0%, rgba(167, 139, 250, 0.1) 100%);
}

:root.dark .app-card__link:hover {
  background: var(--gradient-primary);
  color: #ffffff;
}

/* Footer */

.footer {
  border-top: 1px dashed var(--border-subtle);
  margin: 10px 24px 0;
  padding: 12px 0 20px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

/* Responsive */

@media (max-width: 960px) {
  html, body {
    height: auto;
    overflow: auto;
  }

  .page {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
    padding-top: 70px;
  }

  .sidebar {
    height: auto;
    overflow: visible;
    order: -1;
  }

  .content {
    height: auto;
    overflow: visible;
  }

  .top-nav__wrapper {
    padding: 8px 16px;
  }

  .top-nav__links {
    gap: 6px;
  }

  .top-nav__link {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .page {
    margin: 0 8px;
    padding: 8px;
    padding-top: 60px;
  }

  .content {
    border-radius: 16px;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .top-nav__wrapper {
    padding: 8px 12px;
  }

  .top-nav__links {
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
  }

  .top-nav__links::-webkit-scrollbar {
    display: none;
  }

  .top-nav__link {
    padding: 6px 10px;
    font-size: 11px;
    flex-shrink: 0;
  }

  .section {
    padding: 16px 16px 20px;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  .top-nav {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  .top-nav__wrapper {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}
