:root {
    --ts-bg: #0F1117;
    --ts-bg-alt: #1A1D25;
    --ts-surface: #1A1D25;
    --ts-border: #2B2F3A;
    --ts-text: #FFFFFF;
    --ts-muted: #b1b5c6;
    --ts-accent: #FF7A32;
    --ts-accent-hover: #E45E1B;
    --ts-accent-soft: rgba(255, 122, 50, 0.1);
}

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    background: radial-gradient(circle at top, #141727, #05060a);
    color: var(--ts-text);
}

a {
    color: inherit;
    text-decoration: none;
}

.ts-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* HEADER */

.ts-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(5, 6, 10, 0.92), rgba(5, 6, 10, 0.75));
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ts-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    max-width: none;
    padding: 0 1.5rem;
}

.ts-logo {
    display: inline-flex;
    align-items: center;
    margin-left: 0;
}

.ts-logo img {
    height: 32px;
    width: auto;
}

.ts-nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.ts-nav a {
    color: var(--ts-muted);
}

.ts-nav a:hover {
    color: var(--ts-text);
}

/* HERO */

.ts-hero {
    padding: 4.5rem 0 3.5rem;
}

.ts-hero-grid {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .ts-hero-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    }
}

.ts-hero-text h1 {
    font-size: clamp(2.1rem, 3vw + 1rem, 3.1rem);
    line-height: 1.1;
    margin: 0 0 1rem;
}

.ts-hero-subtitle {
    margin: 0 0 1.75rem;
    color: var(--ts-muted);
    max-width: 32rem;
}

.ts-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ts-hero-caption {
    font-size: 0.85rem;
    color: var(--ts-muted);
}

/* HERO IMAGE – DASHBOARD MOCKUP */
.ts-hero-image {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.ts-hero-image-link {
  position: relative;
  display: block;
  border-radius: 24px;
  overflow: hidden;
  max-width: 720px;
  transform: translateX(6%);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(148, 163, 184, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ts-hero-image-link:hover {
  transform: translateX(6%) scale(1.02);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 122, 50, 0.4);
}

.ts-hero-image-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  transition: transform 0.3s ease;
}

.ts-hero-image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.ts-hero-image-link:hover .ts-hero-image-overlay {
  opacity: 1;
}

.ts-hero-image-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #ff7a32, #ff944d);
  border-radius: 8px;
  color: #020617;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 10px 40px rgba(255, 122, 50, 0.4);
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.ts-hero-image-link:hover .ts-hero-image-cta {
  transform: translateY(-3px);
}

/* LIGHTBOX MODAL */
.ts-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
  cursor: zoom-out;
}

.ts-lightbox.active {
  display: flex;
}

.ts-lightbox-content {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
}

.ts-lightbox-img {
  display: block;
  max-width: 95vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ts-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 1001;
}

.ts-lightbox-close:hover {
  background: rgba(255, 122, 50, 0.3);
}

.ts-lightbox-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  pointer-events: none;
}

/* BUTTONS */

.ts-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.ts-btn-primary {
    background: linear-gradient(135deg, var(--ts-accent), #ff944d);
    color: #05060a;
    box-shadow: 0 10px 30px rgba(255, 107, 43, 0.35);
}

.ts-btn-primary:hover {
    filter: brightness(1.05);
}

.ts-btn-ghost {
    border-color: var(--ts-border);
    background: rgba(10, 12, 20, 0.85);
    color: var(--ts-text);
}

.ts-btn-ghost:hover {
    border-color: var(--ts-accent);
}

.ts-btn-full {
    width: 100%;
    margin-top: 0.25rem;
}

/* Loading button state */
.ts-btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.ts-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ts-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes ts-spin {
    to { transform: rotate(360deg); }
}

/* GENERIC SECTIONS */

.ts-section {
    padding: 3.25rem 0;
}

.ts-section-lead {
    color: var(--ts-muted);
    margin-top: 0.25rem;
    max-width: 34rem;
}

/* WHO IT'S FOR */

.ts-who-for {
    background: radial-gradient(circle at top, #171a2c, #070812);
    border-top: 1px solid var(--ts-border);
    border-bottom: 1px solid var(--ts-border);
}

.ts-who-for h2 {
    margin-top: 0;
}

.ts-pill-grid {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ts-pill {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--ts-border);
    background: rgba(10, 12, 20, 0.9);
    font-size: 0.8rem;
    color: var(--ts-muted);
}

/* BENEFITS */

.ts-card-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .ts-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ts-card {
    padding: 1.1rem 1rem;
    border-radius: 1rem;
    background: rgba(10, 12, 20, 0.95);
    border: 1px solid var(--ts-border);
    font-size: 0.9rem;
}

.ts-card h3 {
    margin-top: 0;
    margin-bottom: 0.45rem;
}

/* FEATURES */

.ts-features {
    background: #05060a;
}

.ts-feature-grid {
    margin-top: 2rem;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .ts-feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ts-feature {
    padding: 1.15rem 1rem 1.1rem;
    border-radius: 1rem;
    background: rgba(13, 15, 26, 0.95);
    border: 1px solid var(--ts-border);
    font-size: 0.9rem;
}

.ts-feature h3 {
    margin-top: 0;
    margin-bottom: 0.35rem;
}

.ts-feature ul {
    padding-left: 1.1rem;
    margin: 0.25rem 0 0;
    color: var(--ts-muted);
}

/* CALLOUT */

.ts-callout {
    background: linear-gradient(135deg, #171a2c, #070812);
    border-top: 1px solid var(--ts-border);
    border-bottom: 1px solid var(--ts-border);
}

.ts-callout-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .ts-callout-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.ts-bullet-list {
    padding-left: 1.1rem;
    margin-top: 0.65rem;
    color: var(--ts-muted);
}

/* TESTIMONIAL */

.ts-testimonial-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.ts-comingsoon-label {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.6);
    margin-bottom: 12px;
}

.ts-testimonial-quote {
    font-style: italic;
    margin-bottom: 0.4rem;
}

.ts-testimonial-name {
    color: var(--ts-muted);
    font-size: 0.9rem;
}

/* PRICING */

.ts-pricing {
    background: #05060a;
    position: relative;
}

.ts-pricing h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.ts-pricing .ts-section-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
}

.ts-pricing-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

@media (min-width: 640px) {
    .ts-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ts-pricing-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ts-pricing-card {
    position: relative;
    background: rgba(13, 15, 26, 0.95);
    border: 1px solid var(--ts-border);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ts-pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 122, 50, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.ts-pricing-featured {
    border-color: var(--ts-accent);
    box-shadow: 0 10px 30px rgba(255, 122, 50, 0.2);
}

.ts-pricing-featured::before {
    content: "Most Popular";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--ts-accent), #ff944d);
    color: #05060a;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ts-pricing-tier {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
}

.ts-pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.ts-pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--ts-text);
}

.ts-pricing-period {
    font-size: 0.9rem;
    color: var(--ts-muted);
}

.ts-pricing-target {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ts-muted);
    margin-bottom: 1.25rem;
    min-height: 3em;
}

.ts-pricing-includes {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ts-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.ts-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex: 1;
}

.ts-pricing-features li {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--ts-muted);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.ts-pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--ts-accent);
    font-weight: 700;
}

.ts-pricing-card .ts-btn {
    margin-top: auto;
    font-size: 0.85rem;
    padding: 0.65rem 1.2rem;
}

.ts-pricing-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.6);
    margin-top: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ */

.ts-faq-grid {
    margin-top: 1.75rem;
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .ts-faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ts-faq-item {
    background: rgba(9, 11, 20, 0.95);
    border-radius: 1rem;
    border: 1px solid var(--ts-border);
    padding: 1rem;
    font-size: 0.9rem;
}

.ts-faq-item h3 {
    margin-top: 0;
}

/* EARLY ACCESS FORM */

.ts-early-access {
    background: radial-gradient(circle at top, #181c31, #05060a);
    border-top: 1px solid var(--ts-border);
}

.ts-early-access-inner {
    display: grid;
    gap: 1.75rem;
}

@media (min-width: 900px) {
    .ts-early-access-inner {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        align-items: flex-start;
    }
}

.ts-early-access-form form {
    background: rgba(10, 12, 20, 0.95);
    border-radius: 1.25rem;
    border: 1px solid var(--ts-border);
    padding: 1.25rem;
}

.ts-form-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.85rem;
}

.ts-form-row label {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    color: var(--ts-muted);
}

.ts-form-row input,
.ts-form-row textarea,
.ts-form-row select {
    border-radius: 0.6rem;
    border: 1px solid var(--ts-border);
    padding: 0.55rem 0.6rem;
    font-size: 0.9rem;
    background: #05060a;
    color: var(--ts-text);
}

.ts-form-row input:focus,
.ts-form-row textarea:focus {
    outline: 1px solid var(--ts-accent);
    border-color: var(--ts-accent);
}

.ts-field-error {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: #ff8b8b;
}

/* MESSAGES */

.ts-messages {
    margin-bottom: 1rem;
}

.ts-message {
    padding: 0.65rem 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
}

.ts-message-success {
    background: #143220;
    border: 1px solid #28c76f;
}

/* PAGE FILL - pushes footer to bottom on short pages */
.ts-page-fill {
    min-height: calc(100vh - 72px - 80px); /* viewport - header - footer */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FOOTER */

.ts-footer {
    border-top: 1px solid var(--ts-border);
    padding: 1.25rem 0 1.75rem;
    background: #05060a;
}

.ts-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--ts-muted);
}

@media (min-width: 768px) {
    .ts-footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.ts-footer-links {
    display: flex;
    gap: 1rem;
}

/* ===========================================
   MOBILE RESPONSIVE STYLES
   =========================================== */

@media (max-width: 767px) {
    /* Header - smaller logo, tighter nav */
    .ts-header-inner {
        padding: 0 1rem;
        height: auto;
        min-height: 56px;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .ts-logo img {
        height: 80px;
    }
    
    .ts-nav {
        gap: 1rem;
        font-size: 0.8rem;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    
    /* Hero section - reduce padding */
    .ts-hero {
        padding: 2rem 0 2rem;
    }
    
    .ts-hero-grid {
        gap: 1.5rem;
    }
    
    /* Hero image - center on mobile, remove offset */
    .ts-hero-image {
        justify-content: center;
    }
    
    .ts-hero-image-link {
        transform: none;
        max-width: 100%;
        border-radius: 16px;
    }
    
    .ts-hero-image-link:hover {
        transform: scale(1.01);
    }
    
    .ts-hero-image-img {
        border-radius: 16px;
    }
    
    /* Always show overlay hint on mobile (touch devices) */
    .ts-hero-image-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(2, 6, 23, 0.85) 0%, transparent 60%);
        align-items: flex-end;
        padding-bottom: 20px;
    }
    
    .ts-hero-image-cta {
        transform: translateY(0);
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Early access form - prevent overflow */
    .ts-early-access {
        overflow-x: hidden;
    }
    
    .ts-early-access-inner {
        gap: 1.25rem;
        max-width: 100%;
        overflow: hidden;
    }
    
    .ts-early-access-copy {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    .ts-early-access-copy h2 {
        font-size: 1.5rem;
    }
    
    .ts-early-access-copy .ts-section-lead {
        font-size: 0.9rem;
    }
    
    .ts-early-access-form {
        max-width: 100%;
        width: 100%;
    }
    
    .ts-early-access-form form {
        padding: 1rem;
        margin: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .ts-form-row {
        max-width: 100%;
    }
    
    .ts-form-row input,
    .ts-form-row textarea,
    .ts-form-row select {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 0.65rem 0.75rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Container - ensure no overflow */
    .ts-container {
        padding: 0 1rem;
        overflow-x: hidden;
    }
    
    /* General section padding adjustments */
    .ts-section {
        padding: 2.5rem 0;
    }
    
    /* Lightbox adjustments */
    .ts-lightbox {
        padding: 1rem;
    }
    
    .ts-lightbox-hint {
        font-size: 0.75rem;
        bottom: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .ts-logo img {
        height: 60px;
    }
    
    .ts-nav {
        gap: 0.6rem;
        font-size: 0.75rem;
    }
    
    .ts-hero-text h1 {
        font-size: 1.75rem;
    }
}