/* ── Landing page — Tune Slice / Apple aesthetic ────────── */

/* ── Shared tokens ──────────────────────────────────────── */
.ts-section-inner,
.ts-nav-inner,
.ts-cta-inner,
.ts-hero-inner,
.ts-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Nav ─────────────────────────────────────────────────── */
.ts-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 52px;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(245, 245, 247, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.ts-nav.ts-nav-scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.ts-nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}
.ts-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  text-decoration: none;
  flex-shrink: 0;
}
.ts-brand-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}
.ts-brand-mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.ts-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 40px;
  flex: 1;
}
.ts-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.ts-nav-link:hover { color: var(--text-primary); }
.ts-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ── Buttons — uses global .btn system ──────────────────── */
/* .ts-btn-cta : large landing CTA, only on this page */
.ts-btn-cta {
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,113,227,0.28);
  letter-spacing: -0.1px;
  transition: var(--transition);
}
.ts-btn-cta:hover  { background: var(--accent-hover); box-shadow: 0 6px 28px rgba(0,113,227,0.34); }
.ts-btn-cta:active { transform: scale(0.98); }
.ts-btn-cta-ghost {
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--border-focus);
  letter-spacing: -0.1px;
  transition: var(--transition);
}
.ts-btn-cta-ghost:hover { background: var(--accent-light); }

/* ── Hero ────────────────────────────────────────────────── */
.ts-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.ts-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 55% at 50% -5%, rgba(0,113,227,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.ts-hero-inner {
  position: relative;
  z-index: 1;
}
.ts-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  margin-bottom: 28px;
}
.ts-headline {
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -2.5px;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.ts-headline-accent {
  color: var(--accent);
}
.ts-subhead {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 580px;
  margin: 0 auto 40px;
  font-weight: 400;
}
.ts-beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  margin-bottom: 72px;
  letter-spacing: 0.01em;
}
.ts-beta-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255,159,10,0.18);
}

/* ── Waveform ────────────────────────────────────────────── */
.ts-waveform {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 64px;
  opacity: 0.22;
}
.ts-waveform span {
  display: block;
  width: 3px;
  min-height: 4px;
  background: var(--accent);
  border-radius: 2px;
  animation: ts-pulse 1.6s ease-in-out infinite alternate;
}
@keyframes ts-pulse {
  0%   { opacity: 1;   transform: scaleY(1); }
  100% { opacity: 0.4; transform: scaleY(0.25); }
}

/* ── Social icons ────────────────────────────────────────── */
.ts-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px 24px 48px;
  background: var(--bg);
}
.ts-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}
.ts-social-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-light);
}

/* ── Footer ──────────────────────────────────────────────── */
.ts-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.ts-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ts-footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}
.ts-footer-links {
  display: flex;
  gap: 24px;
}
.ts-footer a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .15s;
}
.ts-footer a:hover {
  color: var(--text);
}

/* ── Marquee ─────────────────────────────────────────────── */
.ts-marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 14px 0;
}
.ts-marquee {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: ts-scroll 28s linear infinite;
  width: max-content;
}
.ts-marquee span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
}
.ts-dot {
  color: var(--border) !important;
}
@keyframes ts-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Features ────────────────────────────────────────────── */
.ts-features {
  padding: 96px 0;
  background: var(--bg);
}
.ts-section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.ts-section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1.5px;
  margin-bottom: 14px;
  line-height: 1.08;
}
.ts-section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 64px;
}

.ts-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ts-feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px 30px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.ts-feat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.ts-feat-wide { grid-column: span 2; }
.ts-feat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.ts-icon-blue   { background: rgba(0,113,227,0.10);   color: var(--accent); }
.ts-icon-orange { background: rgba(255,149,0,0.12);   color: #FF9500; }
.ts-icon-purple { background: rgba(175,82,222,0.12);  color: #AF52DE; }
.ts-icon-green  { background: rgba(48,209,88,0.12);   color: #30D158; }
.ts-icon-red    { background: rgba(255,59,48,0.10);   color: var(--danger); }
.ts-icon-teal   { background: rgba(90,200,250,0.12);  color: #5AC8FA; }

.ts-feat-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.ts-feat-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Licenses ────────────────────────────────────────────── */
.ts-licenses {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ts-lic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ts-lic-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px 32px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.ts-lic-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.ts-lic-featured {
  background: var(--surface);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}
.ts-lic-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  white-space: nowrap;
}
.ts-lic-tier {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  display: inline-block;
  margin-bottom: 14px;
}
.ts-lic-basic     { background: rgba(90,200,250,0.14); color: #0A84FF; }
.ts-lic-unlimited { background: rgba(0,113,227,0.12);  color: var(--accent); }
.ts-lic-exclusive { background: rgba(175,82,222,0.12); color: #AF52DE; }
.ts-lic-price-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}
.ts-lic-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}
.ts-lic-perks {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.ts-lic-perks li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.ts-lic-perks li::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230071E3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
  flex-shrink: 0;
}

/* ── CTA ─────────────────────────────────────────────────── */
.ts-cta {
  padding: 120px 24px;
  text-align: center;
  background: var(--bg);
}
.ts-cta-title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -2px;
  margin-bottom: 16px;
  line-height: 1.06;
}
.ts-cta-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.5;
}

/* ── Footer ──────────────────────────────────────────────── */
.ts-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.ts-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ts-footer-brand { font-size: 14px; font-weight: 600; }
.ts-footer-copy {
  font-size: 13px;
  color: var(--text-tertiary);
}
.ts-footer-link {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--transition);
}
.ts-footer-link:hover { color: var(--text-secondary); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .ts-feat-grid  { grid-template-columns: 1fr 1fr; }
  .ts-feat-wide  { grid-column: span 2; }
  .ts-lic-grid   { grid-template-columns: 1fr; }
  .ts-nav-links  { display: none; }
  .ts-features   { padding: 64px 0; }
  .ts-licenses   { padding: 64px 0; }
  .ts-section-sub { margin-bottom: 40px; }
  .ts-cta { padding: 80px 24px; }
  .ts-hero { padding: 100px 20px 60px; }
}
@media (max-width: 560px) {
  .ts-nav-inner,
  .ts-section-inner,
  .ts-hero-inner,
  .ts-cta-inner,
  .ts-footer-inner { padding: 0 16px; }
  .ts-feat-grid    { grid-template-columns: 1fr; }
  .ts-feat-wide    { grid-column: span 1; }
  .ts-headline     { letter-spacing: -1.5px; padding: 0; font-size: clamp(32px, 8vw, 48px); }
  .ts-hero-actions { flex-direction: column; align-items: center; }
  .ts-hero { padding: 80px 16px 48px; min-height: auto; }
  .ts-subhead { font-size: 15px; margin-bottom: 28px; padding: 0 4px; }
  .ts-eyebrow { font-size: 11px; padding: 3px 12px; margin-bottom: 20px; }
  .ts-btn-cta,
  .ts-btn-cta-ghost { font-size: 15px; padding: 12px 24px; width: 100%; justify-content: center; }
  .ts-feat-card { padding: 22px 20px 24px; }
  .ts-lic-card { padding: 24px 20px 26px; }
  .ts-features { padding: 48px 0; }
  .ts-licenses { padding: 48px 0; }
  .ts-section-title { margin-bottom: 10px; }
  .ts-section-sub { margin-bottom: 32px; font-size: 15px; }
  .ts-cta { padding: 60px 16px; }
  .ts-cta-title { letter-spacing: -1px; }
  .ts-cta-sub { font-size: 15px; }
  .ts-footer-inner { flex-direction: column; text-align: center; gap: 10px; }
  .ts-footer-links { justify-content: center; gap: 16px; }
  .ts-beta-badge { margin-bottom: 40px; font-size: 12px; }
  .ts-socials { padding: 24px 16px 36px; gap: 12px; }
  .ts-waveform { height: 40px; gap: 3px; }
  .ts-waveform span { width: 2px; }
  .ts-brand-logo { height: 28px; }
  .ts-nav { height: 48px; }
  .ts-nav-actions .btn { padding: 6px 14px; font-size: 13px; }
}
