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

:root {
  --ink: #0b1220;
  --ink-soft: #64748b;
  --bg: #faf9f7;
  --card: #ffffff;
  --border: rgba(11, 18, 32, 0.08);
  --accent: #4f6bed;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 24px 40px;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(11,18,32,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,18,32,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: transparent;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
}
.navbar .logo-avatar { pointer-events: auto; }

.navbar.nav-hidden {
  transform: translateY(-140%);
  opacity: 0;
}

.logo-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.logo-avatar:hover { transform: translateY(-1px); opacity: 0.85; }
.logo-avatar:active { transform: scale(0.97); }

.jt-logo {
  display: inline-flex;
  align-items: baseline;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  font-size: clamp(22px, 5.5vw, 30px);
}

.jt-logo .letter-fixed {
  font-weight: 800;
  font-size: inherit;
  line-height: 1;
  color: var(--ink);
}

.jt-logo .letter-expand {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  font-weight: 700;
  font-size: inherit;
  line-height: 1;
  color: var(--ink);
  transition: max-width 1.6s cubic-bezier(0.65, 0, 0.35, 1),
              opacity 1.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.jt-logo .space {
  display: inline-block;
  width: 0;
  transition: width 1.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.jt-logo.expanded .letter-expand { max-width: 200px; opacity: 1; }
.jt-logo.expanded .space { width: 0.3em; transition-delay: 0.2s; }
.jt-logo.expanded .exp-ulia { transition-delay: 0.15s; }
.jt-logo.expanded .exp-a { transition-delay: 0.3s; }
.jt-logo.expanded .exp-usch { transition-delay: 0.45s; }

/* ===== INTRO ===== */
.intro {
  margin: 0 0 32px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: -0.01em;
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: 0.08s;
}
.intro em {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
  font-size: 17px;
}

/* ===== LINKS ===== */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
  padding: 17px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  opacity: 0;
  animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.link-item:nth-child(1) { animation-delay: 0.12s; }
.link-item:nth-child(2) { animation-delay: 0.2s; }

.link-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(11,18,32,0.10);
  border-color: rgba(79, 107, 237, 0.35);
}
.link-item:active { transform: scale(0.98); }

.icon-badge {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f3fb;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.link-item:hover .icon-badge {
  background: var(--accent);
  color: #fff;
}
.icon-badge svg { width: 20px; height: 20px; }

.link-label { display: flex; flex-direction: column; line-height: 1.25; }
.link-label .sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}

.arrow {
  margin-left: auto;
  width: 18px;
  height: 18px;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
}
.link-item:hover .arrow { opacity: 1; transform: translateX(0); }

/* ===== FOOTER ===== */
.footer {
  margin-top: 44px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

@media (max-width: 600px) {
  .jt-logo { font-size: 21px; }
  .navbar { padding: 14px 20px; }
}

@media (max-width: 360px) {
  body { padding: 100px 18px 24px; }
  .navbar { padding: 18px 18px; }
  .jt-logo { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
