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

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

body {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin: 0;
}

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;
}

.accent-font {
  font-family: "Playfair Display", serif;
  font-style: italic; font-weight: 800; color: var(--accent);
}

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

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10002;
  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.nav-hidden {
  transform: translateY(-140%); opacity: 0;
}
.navbar .logo-avatar { pointer-events: auto; }
.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: 800; 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; }

/* === BOTTOM NAV === */
.bottom-nav {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10003;
  display: flex; align-items: center; gap: 6px; padding: 10px 12px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid var(--border); border-radius: 100px;
  box-shadow: 0 8px 32px rgba(11,18,32,0.12), 0 1px 3px rgba(0,0,0,0.04);
}
.bottom-nav a, .bottom-nav button {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--ink); background: transparent; border: none; cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav a:hover, .bottom-nav button:hover { background: rgba(79,107,237,0.08); color: var(--accent); transform: translateY(-1px); }
.bottom-nav svg { width: 20px; height: 20px; }

/* === COMMAND PALETTE === */
.cmd-backdrop {
  position: fixed; inset: 0; z-index: 10004;
  background: rgba(11,18,32,0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
body.menu-open .cmd-backdrop { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }

.cmd-palette {
  position: fixed; z-index: 10005;
  top: min(20vh, 160px); left: 50%; transform: translateX(-50%) scale(0.96);
  width: min(520px, calc(100vw - 32px));
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(11,18,32,0.18), 0 2px 6px rgba(0,0,0,0.06);
  overflow: hidden;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16,1,0.3,1);
}
body.menu-open .cmd-palette {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) scale(1);
}

.cmd-input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.cmd-input-wrap svg { width: 18px; height: 18px; color: var(--ink-soft); flex-shrink: 0; }
.cmd-input {
  flex: 1; border: none; outline: none; background: none;
  font-family: inherit; font-size: 16px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.01em;
}
.cmd-input::placeholder { color: var(--ink-soft); }
.cmd-kbd {
  font-size: 10px; font-weight: 600; font-family: inherit;
  color: var(--ink-soft); background: rgba(11,18,32,0.05);
  padding: 3px 7px; border-radius: 5px; border: 1px solid var(--border);
}
@media (pointer: coarse) { .cmd-kbd { display: none; } }

.cmd-list {
  max-height: 320px; overflow-y: auto; padding: 8px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.cmd-group-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-soft);
  padding: 10px 12px 6px;
}
.cmd-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none; color: var(--ink);
  transition: background 0.1s;
}
.cmd-item.active, .cmd-item:hover { background: rgba(79,107,237,0.08); }
.cmd-item.active .cmd-item-icon { background: var(--accent); color: #fff; }

.cmd-item-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(11,18,32,0.04); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.1s, color 0.1s;
}
.cmd-item-icon svg { width: 16px; height: 16px; }

.cmd-item-text { flex: 1; min-width: 0; }
.cmd-item-title { font-size: 14px; font-weight: 600; }
.cmd-item-sub { font-size: 11px; color: var(--ink-soft); margin-top: 1px; }

.cmd-item-badge {
  font-size: 10px; font-weight: 600; color: var(--ink-soft);
  padding: 2px 8px; border-radius: 4px;
  background: rgba(11,18,32,0.04); flex-shrink: 0;
}

.cmd-empty {
  text-align: center; padding: 32px 16px;
  font-size: 13px; color: var(--ink-soft);
}

.cmd-footer {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 20px; border-top: 1px solid var(--border);
  font-size: 10px; color: var(--ink-soft);
}
.cmd-footer kbd {
  display: inline-block; padding: 1px 5px; margin: 0 2px;
  border: 1px solid var(--border); border-radius: 3px;
  font-family: inherit; font-size: 10px; background: rgba(255,255,255,0.6);
}
@media (pointer: coarse) { .cmd-footer { display: none; } }

/* === MENU BUTTON === */
.nav-menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: none; border: none; color: var(--ink);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.nav-menu-btn:hover { background: rgba(79,107,237,0.08); color: var(--accent); transform: translateY(-1px); }
.nav-menu-btn svg { width: 20px; height: 20px; }

/* === SCROLL HINT === */
.scroll-hint {
  margin-top: 48px;
  animation: bounce 2s ease infinite;
  color: var(--ink-dim);
}
.scroll-hint svg { width: 24px; height: 24px; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* === HERO === */
.hero {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 100px 24px 60px; min-height: 100vh;
}
.hero-inner { max-width: 600px; animation: rise 0.8s cubic-bezier(0.16,1,0.3,1) both; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 10px; background: var(--accent-soft);
  border: 1px solid rgba(79,107,237,0.15); border-radius: 100px;
  font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 28px;
}
.hero-badge-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.4;} }

.hero-title-row {
  display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 20px;
}
.hero-logo {
  width: 56px; height: 56px; border-radius: 14px;
  box-shadow: 0 4px 16px rgba(22,163,74,0.2);
  flex-shrink: 0;
}
.hero h1 { font-size: clamp(36px,6vw,60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.hero p.subtitle { font-size: clamp(15px,2.5vw,17px); color: var(--ink-soft); max-width: 480px; margin: 0 auto; font-weight: 400; }

/* === MOCKUP STYLES === */
.phone-row {
  display: flex; gap: 24px; justify-content: center; align-items: flex-start;
  flex-wrap: wrap; max-width: 960px; margin: 0 auto; padding: 0 16px;
}
.phone-group { display: flex; flex-direction: column; align-items: center; }
.phone-frame {
  width: 200px; flex-shrink: 0; border-radius: 24px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(11,18,32,0.10), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid var(--border); background: var(--card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.phone-frame:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(11,18,32,0.14); }
.phone-frame img { width: 100%; height: auto; display: block; }
.mockup-label {
  text-align: center; margin-top: 14px; font-size: 12px; font-weight: 800;
  color: var(--ink-soft); letter-spacing: 0.03em; text-transform: uppercase;
}

/* Desktop: 2x2 grid */
.desktop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.desktop-group { display: flex; flex-direction: column; align-items: center; }
.desktop-frame {
  width: 100%; border-radius: 10px; overflow: hidden;
  box-shadow: 0 8px 30px rgba(11,18,32,0.08), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid var(--border); background: var(--card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.desktop-frame:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11,18,32,0.12); }
.desktop-frame img { width: 100%; height: auto; display: block; }

/* === SECTIONS === */
section { padding: 80px 24px; position: relative; z-index: 1; }
.container { max-width: 960px; margin: 0 auto; }
.section-label {
  text-align: center; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px;
}
.section-title {
  text-align: center; font-size: clamp(26px,5vw,38px); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 12px;
}
.section-desc {
  text-align: center; font-size: 15px; color: var(--ink-soft);
  max-width: 520px; margin: 0 auto 48px;
}

/* === FEATURES === */
.feature-deck {
  position: relative;
  max-width: 900px; margin: 0 auto;
  height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.feature-card {
  position: absolute;
  width: 300px; min-height: 200px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex; flex-direction: column;
  box-shadow: 0 4px 24px rgba(11,18,32,0.06);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.45s ease,
              border-color 0.35s ease, background 0.35s ease;
  cursor: default;
}
.feature-card.dimmed {
  background: var(--border-light);
  border-color: var(--border);
}
.feature-card.dimmed .feature-icon {
  background: rgba(11,18,32,0.04); color: var(--ink-dim);
}
.feature-card.dimmed h3 { color: var(--ink-dim); }
.feature-card.dimmed p { color: var(--ink-dim); }
.feature-card.active {
  border-color: rgba(79,107,237,0.35);
  box-shadow: 0 20px 60px rgba(11,18,32,0.14), 0 0 0 1px rgba(79,107,237,0.1);
}
.feature-card.active .feature-icon { background: var(--accent); color: #fff; }
.feature-card .feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; transition: background 0.3s, color 0.3s;
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card h3 {
  font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
  text-transform: uppercase; margin-bottom: 10px; color: var(--ink);
  transition: color 0.3s;
}
.feature-card p {
  font-size: 13px; color: var(--ink-soft); line-height: 1.55; margin: 0;
  transition: color 0.3s;
}
.feature-deck-mobile {
  display: none;
}
@media (pointer: coarse) {
  .feature-deck { display: none; }
  .feature-deck-mobile {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
    max-width: 680px; margin: 0 auto;
  }
  .feature-deck-mobile .feature-card {
    position: relative; width: auto; min-height: auto;
    transform: none !important;
  }
  .feature-deck-mobile .feature-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 36px rgba(11,18,32,0.10);
  }
}

/* === FOOTER === */
.site-footer {
  position: relative; z-index: 1; text-align: center;
  padding: 48px 24px 100px;
  margin-top: 32px;
}
.footer-link {
  font-size: 12px; color: var(--ink-soft); font-weight: 500;
  text-decoration: none; opacity: 0.5; transition: opacity 0.2s;
}
.footer-link:hover { opacity: 0.8; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 80px 20px 40px; min-height: auto; }
  .hero h1 { font-size: clamp(28px,8vw,42px); }
  .hero-title-row { gap: 10px; margin-bottom: 16px; }
  .hero-logo { width: 40px; height: 40px; border-radius: 10px; }
  section { padding: 56px 20px; }
  .section-desc { margin-bottom: 32px; }
  .feature-deck-mobile { grid-template-columns: 1fr; gap: 12px; }
  .phone-row { gap: 14px; padding: 0 8px; }
  .phone-frame { width: 44vw; max-width: 180px; }
  .desktop-grid { grid-template-columns: 1fr; gap: 16px; max-width: 500px; }
  .bottom-nav { bottom: 16px; padding: 8px 10px; }
  .bottom-nav a, .bottom-nav button { width: 38px; height: 38px; }
}
@media (max-width: 600px) {
  .jt-logo { font-size: 21px; }
  .navbar { padding: 14px 20px; }
}
@media (max-width: 480px) {
  .hero { padding: 72px 16px 32px; }
  .phone-frame { width: 42vw; max-width: 150px; border-radius: 18px; }
  .phone-row { gap: 10px; padding: 0 4px; }
  .mockup-label { font-size: 10px; margin-top: 10px; }
  .section-title { font-size: clamp(22px,6vw,30px); }
  .feature-card { padding: 22px 20px; border-radius: 14px; }
  .feature-card h3 { font-size: 13px; }
  .feature-icon { width: 38px; height: 38px; margin-bottom: 12px; }
  .navbar { padding: 14px 18px; }
  .scroll-hint { margin-top: 28px; }
}
@media (max-width: 360px) {
  .navbar { padding: 18px 18px; }
  .jt-logo { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
