:root {
  --tp-navy: #0d1324;
  --tp-slate: #2b3445;
  --tp-blue: #2563ff;
  --tp-blue-dark: #1e52d9;
  --tp-teal: #00d4c9;
  --tp-white: #ffffff;
  --tp-muted: #8b93a7;
  --tp-surface: #f4f6fb;
  --tp-card: #ffffff;
  --tp-border: rgba(13, 19, 36, 0.08);
  --tp-shadow: 0 12px 40px rgba(13, 19, 36, 0.1);
  --tp-shadow-sm: 0 4px 16px rgba(13, 19, 36, 0.06);
  --tp-radius: 1rem;
  --tp-radius-sm: 0.75rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--tp-navy);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(37, 99, 255, 0.12), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(0, 212, 201, 0.08), transparent 50%),
    linear-gradient(180deg, #eef2fb 0%, var(--tp-surface) 45%, #e8edf7 100%);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

a {
  color: var(--tp-blue);
  text-decoration: none;
}

a:hover {
  color: var(--tp-blue-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.tp-main {
  flex: 1 0 auto;
}

/* ── Navbar ── */
.tp-nav {
  background: rgba(13, 19, 36, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(37, 99, 255, 0.3);
  box-shadow: 0 8px 24px rgba(13, 19, 36, 0.18);
  padding: 0.55rem 0;
}

.tp-nav .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--tp-white) !important;
}

.tp-nav .navbar-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.tp-brand-text .tp-trigger {
  color: var(--tp-white);
}

.tp-brand-text .tp-pc {
  color: #6b9aff;
}

.tp-nav .nav-link {
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 500;
  padding: 0.4rem 0.85rem !important;
  border-radius: 0.5rem;
  transition: background 0.15s, color 0.15s;
}

.tp-nav .nav-link:hover,
.tp-nav .nav-link.active {
  color: var(--tp-white) !important;
  background: rgba(255, 255, 255, 0.08);
}

.tp-nav .nav-cta {
  background: var(--tp-blue) !important;
  color: var(--tp-white) !important;
  margin-left: 0.35rem;
}

.tp-nav .nav-cta:hover {
  background: var(--tp-blue-dark) !important;
}

.tp-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.25);
}

.tp-nav .navbar-toggler-icon {
  filter: invert(1);
}

/* ── Hero ── */
.tp-hero {
  position: relative;
  padding: 4rem 0 3.5rem;
  color: var(--tp-white);
  background:
    radial-gradient(900px 480px at 80% 20%, rgba(37, 99, 255, 0.35), transparent 60%),
    radial-gradient(700px 400px at 10% 80%, rgba(0, 212, 201, 0.18), transparent 55%),
    linear-gradient(145deg, #0a1020 0%, var(--tp-navy) 50%, #121a30 100%);
  overflow: hidden;
  margin: -1rem -12px 0;
  padding-left: 12px;
  padding-right: 12px;
}

.tp-hero .container {
  position: relative;
  z-index: 1;
}

.tp-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.tp-hero-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tp-teal);
  margin-bottom: 0.85rem;
}

.tp-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.tp-hero h1 .tp-pc {
  color: #6b9aff;
}

.tp-hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 32rem;
  margin: 0 0 1.75rem;
}

.tp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tp-hero-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.tp-hero-visual {
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tp-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* ── Buttons ── */
.btn-primary {
  --bs-btn-bg: var(--tp-blue);
  --bs-btn-border-color: var(--tp-blue);
  --bs-btn-hover-bg: var(--tp-blue-dark);
  --bs-btn-hover-border-color: var(--tp-blue-dark);
  --bs-btn-active-bg: #1846bf;
  --bs-btn-active-border-color: #1846bf;
  font-weight: 600;
  border-radius: 0.65rem;
  padding: 0.65rem 1.35rem;
}

.btn-outline-light {
  font-weight: 600;
  border-radius: 0.65rem;
  padding: 0.65rem 1.35rem;
}

.btn-outline-secondary {
  --bs-btn-color: var(--tp-slate);
  --bs-btn-border-color: #c5ccda;
  --bs-btn-hover-bg: var(--tp-navy);
  --bs-btn-hover-border-color: var(--tp-navy);
  --bs-btn-hover-color: var(--tp-white);
  font-weight: 600;
  border-radius: 0.65rem;
}

.btn-teal {
  background: var(--tp-teal);
  border-color: var(--tp-teal);
  color: var(--tp-navy);
  font-weight: 700;
  border-radius: 0.65rem;
  padding: 0.65rem 1.35rem;
}

.btn-teal:hover {
  background: #00bfb5;
  border-color: #00bfb5;
  color: var(--tp-navy);
}

.btn-lg {
  padding: 0.8rem 1.6rem;
  font-size: 1.05rem;
}

/* ── Sections ── */
.tp-section {
  padding: 3.5rem 0;
}

.tp-section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--tp-border);
  border-bottom: 1px solid var(--tp-border);
}

.tp-section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.tp-section-sub {
  color: var(--tp-slate);
  max-width: 36rem;
  margin: 0 0 2rem;
}

.tp-section-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.tp-section-header .tp-section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* ── Cards / feature grid ── */
.tp-card {
  background: var(--tp-card);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow-sm);
  padding: 1.5rem;
  height: 100%;
  transition: transform 0.15s, box-shadow 0.15s;
}

.tp-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--tp-shadow);
}

.tp-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(37, 99, 255, 0.12), rgba(0, 212, 201, 0.15));
  color: var(--tp-blue);
}

.tp-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.tp-card p {
  margin: 0;
  color: var(--tp-slate);
  font-size: 0.95rem;
}

.tp-panel {
  background: var(--tp-card);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow-sm);
  padding: 1.75rem;
}

/* ── Steps / timeline ── */
.tp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.tp-step {
  position: relative;
  background: var(--tp-card);
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius);
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  box-shadow: var(--tp-shadow-sm);
}

.tp-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tp-blue), #4f7dff);
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.tp-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.tp-step p {
  margin: 0;
  color: var(--tp-slate);
  font-size: 0.95rem;
}

/* Guide numbered steps */
.tp-guide-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.tp-guide-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tp-blue), #4f7dff);
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(37, 99, 255, 0.3);
}

.tp-guide-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.25rem 0 0.65rem;
}

.tp-guide-body p,
.tp-guide-body li {
  color: var(--tp-slate);
}

.tp-guide-body ol,
.tp-guide-body ul {
  padding-left: 1.2rem;
  margin-bottom: 0.75rem;
}

.tp-guide-body code,
.tp-inline-code {
  background: rgba(37, 99, 255, 0.08);
  color: var(--tp-navy);
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  font-size: 0.9em;
}

.tp-speech {
  background: linear-gradient(135deg, rgba(37, 99, 255, 0.08), rgba(0, 212, 201, 0.1));
  border-left: 4px solid var(--tp-teal);
  border-radius: 0 var(--tp-radius-sm) var(--tp-radius-sm) 0;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--tp-navy);
  margin: 1rem 0;
}

/* ── Alexa band ── */
.tp-alexa-band {
  background:
    radial-gradient(700px 300px at 90% 50%, rgba(0, 212, 201, 0.15), transparent 60%),
    linear-gradient(135deg, var(--tp-navy) 0%, #151d33 100%);
  color: var(--tp-white);
  border-radius: var(--tp-radius);
  overflow: hidden;
  padding: 2.5rem;
  box-shadow: var(--tp-shadow);
}

.tp-alexa-band h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.tp-alexa-band p {
  color: rgba(255, 255, 255, 0.75);
}

.tp-alexa-band img {
  border-radius: var(--tp-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── FAQ ── */
.tp-faq .accordion-item {
  border: 1px solid var(--tp-border);
  border-radius: var(--tp-radius-sm) !important;
  margin-bottom: 0.65rem;
  overflow: hidden;
  background: var(--tp-card);
}

.tp-faq .accordion-button {
  font-weight: 600;
  color: var(--tp-navy);
  background: var(--tp-card);
  box-shadow: none;
}

.tp-faq .accordion-button:not(.collapsed) {
  color: var(--tp-blue);
  background: rgba(37, 99, 255, 0.04);
}

.tp-faq .accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 255, 0.15);
}

.tp-faq .accordion-body {
  color: var(--tp-slate);
}

/* ── Page header (internal) ── */
.tp-page-header {
  margin-bottom: 1.75rem;
}

.tp-page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
}

.tp-page-header p {
  color: var(--tp-slate);
  margin: 0;
  max-width: 40rem;
}

.tp-cover {
  border-radius: var(--tp-radius);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--tp-shadow);
  border: 1px solid var(--tp-border);
}

.tp-cover img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

/* ── Auth forms ── */
.tp-auth-wrap {
  max-width: 440px;
  margin: 1.5rem auto 2.5rem;
}

.tp-auth-wrap .tp-panel {
  padding: 2rem;
}

.tp-auth-wrap h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.tp-auth-wrap .tp-auth-sub {
  color: var(--tp-slate);
  margin-bottom: 1.5rem;
}

.tp-form-footer {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--tp-slate);
}

/* ── Tables / badges ── */
.table {
  background: var(--tp-card);
  border-radius: var(--tp-radius);
  overflow: hidden;
  border: 1px solid var(--tp-border);
  box-shadow: var(--tp-shadow-sm);
  margin-bottom: 0;
}

.table > :not(caption) > * > * {
  padding: 0.85rem 1rem;
  vertical-align: middle;
}

.table thead th {
  background: rgba(13, 19, 36, 0.03);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tp-slate);
  border-bottom-width: 1px;
}

.tp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.tp-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.tp-badge-online {
  background: rgba(0, 212, 201, 0.15);
  color: #0a8f88;
}

.tp-badge-offline {
  background: rgba(139, 147, 167, 0.2);
  color: var(--tp-slate);
}

.tp-badge-default {
  background: rgba(37, 99, 255, 0.12);
  color: var(--tp-blue);
}

.tp-badge-default::before {
  display: none;
}

/* ── Callouts ── */
.tp-callout {
  border-radius: var(--tp-radius-sm);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border: 1px solid transparent;
}

.tp-callout-info {
  background: rgba(37, 99, 255, 0.07);
  border-color: rgba(37, 99, 255, 0.18);
  color: var(--tp-slate);
}

.tp-callout-warn {
  background: rgba(255, 193, 7, 0.12);
  border-color: rgba(200, 150, 0, 0.25);
  color: var(--tp-slate);
}

.tp-callout-success {
  background: rgba(0, 212, 201, 0.1);
  border-color: rgba(0, 212, 201, 0.3);
  color: var(--tp-slate);
}

.tp-callout strong {
  color: var(--tp-navy);
}

/* ── Download page ── */
.tp-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.tp-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tp-meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--tp-border);
  font-size: 0.95rem;
}

.tp-meta-list li:last-child {
  border-bottom: none;
}

.tp-meta-list .label {
  color: var(--tp-muted);
  font-weight: 600;
}

.tp-meta-list .value {
  color: var(--tp-navy);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.tp-hash {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.78rem;
}

/* ── Footer ── */
.tp-footer {
  flex-shrink: 0;
  background: var(--tp-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(37, 99, 255, 0.25);
}

.tp-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.tp-footer a:hover {
  color: var(--tp-white);
}

.tp-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  color: var(--tp-white) !important;
  margin-bottom: 0.75rem;
}

.tp-footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.tp-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.tp-footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Forms / alerts / misc ── */
.card,
.form-control,
.alert {
  border-radius: var(--tp-radius-sm);
}

.form-control {
  padding: 0.65rem 0.85rem;
  border-color: #d0d6e4;
}

.form-control:focus {
  border-color: var(--tp-blue);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 255, 0.2);
}

.form-label {
  font-weight: 600;
  color: var(--tp-slate);
}

.alert {
  border: none;
}

.tp-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--tp-slate);
}

.tp-empty strong {
  display: block;
  color: var(--tp-navy);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .tp-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tp-hero-visual {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
  }

  .tp-steps {
    grid-template-columns: 1fr;
  }

  .tp-hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .tp-alexa-band {
    padding: 1.5rem;
  }

  .tp-guide-step {
    grid-template-columns: 40px 1fr;
    gap: 0.85rem;
  }

  .tp-guide-num {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}
