:root {
  --primary: #7C3AED;
  --primary-dark: #5B21B6;
  --primary-light: #A78BFA;
  --ink: #17131f;
  --ink-soft: #57506b;
  --bg: #faf9fc;
  --surface: #ffffff;
  --border: #ece7f5;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(90, 40, 180, 0.10);
  --shadow-sm: 0 4px 16px rgba(90, 40, 180, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.tn-shell { display: flex; min-height: 100vh; }

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.tn-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #17171c 0%, #0c0c0f 100%);
  color: #fff;
  padding: 28px 20px 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.tn-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
  padding: 0 8px;
}
.tn-brand-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  box-shadow: 0 0 14px rgba(167,139,250,.8);
}
.tn-brand-sub { color: rgba(255,255,255,.45); font-size: 12px; padding: 0 8px 22px; }

.tn-lang-switch {
  margin: 0 8px 22px;
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 4px;
  font-size: 12px;
}
.tn-lang-switch a {
  padding: 5px 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.6);
}
.tn-lang-switch a.active { background: var(--primary); color: #fff; font-weight: 700; }

.tn-menu-title {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
  padding: 10px 12px 8px;
}
.tn-menu { list-style: none; margin: 0; padding: 0; }
.tn-menu > li { margin-bottom: 2px; }
.tn-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255,255,255,.82);
}
.tn-menu-link:hover { background: rgba(255,255,255,.06); }
.tn-menu-link.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 6px 18px rgba(124,58,237,.35); }
.tn-submenu { list-style: none; margin: 2px 0 10px; padding: 0 0 0 14px; border-left: 1px solid rgba(255,255,255,.08); }
.tn-submenu li { margin: 1px 0; }
.tn-submenu a {
  display: block;
  padding: 8px 14px;
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
  border-radius: 10px;
}
.tn-submenu a:hover { color: #fff; background: rgba(255,255,255,.06); }
.tn-submenu a.active { color: #fff; font-weight: 700; background: rgba(124,58,237,.35); }

/* ── Main content ────────────────────────────────────────────────────── */
.tn-main { flex: 1; min-width: 0; }
.tn-topbar {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 18px 40px; gap: 14px;
}
.tn-mobile-bar { display: none; align-items: center; gap: 12px; padding: 14px 18px; }
.tn-menu-toggle {
  display: none;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; box-shadow: var(--shadow-sm);
}
.tn-mobile-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; color: var(--ink); }
.tn-sidebar-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(10,5,20,.5);
  z-index: 39; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.tn-sidebar-backdrop.open { opacity: 1; pointer-events: auto; }

/* Hero / banner slider — centered, moderate-sized card (not full page
   width) so the whole uploaded banner shows without needing an aggressive
   crop; sized off the 1600x700 upload guideline via aspect-ratio. */
.tn-hero-wrap { padding: 0 40px; margin: 0 auto 8px; max-width: 1260px; }
.tn-hero {
  position: relative; max-width: 1180px; margin: 0 auto;
  aspect-ratio: 1600 / 700; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
}
.tn-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: top center;
  display: flex; align-items: flex-end;
  opacity: 0; transform: scale(1.045);
  transition: opacity 1.1s cubic-bezier(.4,0,.2,1), transform 1.6s cubic-bezier(.4,0,.2,1);
}
.tn-slide.active { opacity: 1; transform: scale(1); }
.tn-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,7,30,.82) 0%, rgba(15,7,30,.15) 55%, rgba(15,7,30,.05) 100%);
}
.tn-slide-text { position: relative; z-index: 1; color: #fff; padding: 30px 36px; max-width: 640px; }
.tn-slide-text h2 { font-size: 26px; margin: 0 0 8px; font-weight: 800; letter-spacing: -0.5px; }
.tn-slide-text p { margin: 0; color: rgba(255,255,255,.85); font-size: 14px; }
.tn-hero-dots { position: absolute; bottom: 16px; right: 20px; z-index: 2; display: flex; gap: 7px; }
.tn-hero-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.35); cursor: pointer; transition: .2s; }
.tn-hero-dots span.active { background: #fff; width: 22px; border-radius: 4px; }

.tn-container { padding: 32px 40px 70px; max-width: 1260px; margin: 0 auto; }

.tn-page-head { margin-bottom: 26px; }
.tn-eyebrow { color: var(--primary); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.tn-page-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.6px; margin: 0 0 10px; }
.tn-page-head .tn-summary { color: var(--ink-soft); font-size: 16px; max-width: 780px; }

/* Homepage intro block only — bigger + centered, per request */
.tn-page-head-center { text-align: center; margin-bottom: 38px; }
.tn-page-head-center h1 { font-size: 42px; margin: 0 0 16px; }
.tn-page-head-center .tn-summary { font-size: 17.5px; max-width: 780px; margin: 0 auto; }

.tn-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 34px;
}
.tn-body { font-size: 15.5px; color: #35304a; }
.tn-body p { margin: 0 0 14px; }
.tn-body ul { margin: 0 0 14px; padding-left: 20px; }
.tn-body li { margin-bottom: 6px; }

/* Feature grid on homepage */
.tn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 8px; }
.tn-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tn-feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tn-feature-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px; margin-bottom: 14px;
}
.tn-feature-card h3 { font-size: 16px; margin: 0 0 6px; font-weight: 700; }
.tn-feature-card p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }

/* Screenshot gallery */
.tn-gallery-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: 34px 0 16px; }
.tn-gallery { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.tn-shot-full {
  width: 230px; border-radius: 32px; border: 8px solid #17131f;
  box-shadow: 0 20px 45px rgba(20,10,40,.28);
  overflow: hidden;
}
.tn-shot-half {
  width: 170px; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.tn-shot-caption { font-size: 12px; color: var(--ink-soft); text-align: center; margin-top: 8px; }
.tn-shot-full img, .tn-shot-half img { cursor: zoom-in; }

/* Lightbox — click a screenshot to enlarge, click again to close */
.tn-lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10,5,20,.86);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.tn-lightbox.open { opacity: 1; pointer-events: auto; }
.tn-lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  cursor: zoom-out;
  transform: scale(.94);
  transition: transform .25s ease;
}
.tn-lightbox.open img { transform: scale(1); }

.tn-footer {
  border-top: 1px solid var(--border); padding: 34px 40px 40px; color: var(--ink-soft); font-size: 13px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
}
.tn-footer .tn-footer-tagline { font-weight: 600; color: var(--ink); font-size: 13.5px; }

/* Closing CTA panel — fills the visual gap below the feature grid with
   something on-brand instead of empty white space. */
.tn-cta {
  margin: 54px auto 10px;
  max-width: 1260px;
  width: calc(100% - 80px);
  border-radius: 26px;
  padding: 54px 40px;
  text-align: center;
  background: linear-gradient(135deg, #1a1030 0%, #2a1750 55%, #4c1d95 100%);
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.tn-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(167,139,250,.35), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(124,58,237,.3), transparent 50%);
}
.tn-cta-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.tn-cta h2 { font-size: 26px; font-weight: 800; margin: 0 0 12px; letter-spacing: -0.4px; }
.tn-cta p { margin: 0; color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.6; }

@media (max-width: 860px) {
  .tn-sidebar {
    position: fixed; left: -300px; top: 0; z-index: 40; width: 260px;
    transition: left .25s ease; box-shadow: 0 0 40px rgba(0,0,0,.4);
  }
  .tn-sidebar.open { left: 0; }
  .tn-sidebar-backdrop { display: block; }
  .tn-mobile-bar { display: flex; }
  .tn-menu-toggle { display: flex; }
  .tn-topbar { display: none; }

  .tn-hero-wrap, .tn-container, .tn-footer, .tn-cta {
    padding-left: 18px; padding-right: 18px; margin-left: 0; margin-right: 0; width: 100%; max-width: 100%;
  }
  .tn-hero { max-width: 100%; aspect-ratio: 1600 / 900; }
  .tn-slide-text { padding: 20px 22px; }
  .tn-slide-text h2 { font-size: 19px; }
  .tn-slide-text p { font-size: 12.5px; }

  .tn-page-head-center h1, .tn-page-head h1 { font-size: 24px; }
  .tn-page-head-center .tn-summary, .tn-page-head .tn-summary { font-size: 14.5px; }
  .tn-container { padding-top: 22px; }

  .tn-grid { grid-template-columns: 1fr; }
  .tn-card { padding: 22px 20px; }

  .tn-cta { padding: 36px 22px; margin-top: 36px; }
  .tn-cta h2 { font-size: 20px; }
  .tn-cta p { font-size: 13.5px; }

  .tn-gallery { justify-content: center; }
}

@media (max-width: 480px) {
  .tn-hero { aspect-ratio: 1600 / 1100; border-radius: 16px; }
  .tn-slide-text h2 { font-size: 16px; }
  .tn-page-head-center h1, .tn-page-head h1 { font-size: 21px; }
  .tn-shot-full { width: 190px; }
  .tn-shot-half { width: 140px; }
}
