/* ══════════════════════════════
   TubeStack Landing Page CSS
   Font: Sora + Clash Display
   ══════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800;900&display=swap');

.ts-page *, .ts-page *::before, .ts-page *::after { box-sizing: border-box; margin: 0; padding: 0; }
.ts-page { font-family: 'Sora', sans-serif; background: #050810; color: #e2e8f0; line-height: 1.6; }
.ts-cont  { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.ts-grad  { background: linear-gradient(135deg,#6366f1 0%,#f59e0b 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Buttons ── */
.ts-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 22px; border-radius: 10px; font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; border: none; transition: all 0.2s; white-space: nowrap; }
.ts-btn.primary { background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff; }
.ts-btn.primary:hover { opacity: 0.88; transform: translateY(-1px); color: #fff; }
.ts-btn.ghost   { background: transparent; border: 1px solid rgba(255,255,255,0.15); color: #94a3b8; }
.ts-btn.ghost:hover { border-color: #6366f1; color: #818cf8; }
.ts-btn.outline { background: transparent; border: 1px solid rgba(255,255,255,0.15); color: #e2e8f0; }
.ts-btn.outline:hover { border-color: #6366f1; color: #818cf8; }
.ts-btn.lg { padding: 14px 30px; font-size: 15px; }

/* ════════ HEADER ════════ */
.ts-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(5,8,16,0.8); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.06); transition: background 0.3s; }
.ts-header.scrolled { background: rgba(5,8,16,0.98); }
.ts-hinner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1100px; margin: 0 auto; }
.ts-logo { font-size: 20px; font-weight: 800; color: #f1f5f9; text-decoration: none; letter-spacing: -0.02em; }
.ts-nav  { display: flex; align-items: center; gap: 28px; }
.ts-nav a { color: #64748b; text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.ts-nav a:hover { color: #f1f5f9; }
.ts-hcta { display: flex; align-items: center; gap: 10px; }
.ts-burger { display: none; background: none; border: 1px solid rgba(255,255,255,0.12); color: #94a3b8; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 16px; }
.ts-mob-nav { display: none; flex-direction: column; gap: 4px; padding: 14px 24px; border-top: 1px solid rgba(255,255,255,0.06); background: #0c1120; }
.ts-mob-nav a { color: #94a3b8; text-decoration: none; padding: 10px 0; font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ts-mob-nav.open { display: flex; }

/* ════════ HERO ════════ */
.ts-hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; text-align: center; }
.ts-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.12; }
.ts-orb1 { width: 600px; height: 600px; background: #6366f1; top: -150px; left: -100px; animation: ts-fl 9s ease-in-out infinite; }
.ts-orb2 { width: 400px; height: 400px; background: #f59e0b; bottom: -100px; right: -80px; animation: ts-fl 11s ease-in-out infinite reverse; }
.ts-orb3 { width: 350px; height: 350px; background: #ec4899; top: 35%; left: 50%; transform: translate(-50%,-50%); animation: ts-fl 7s ease-in-out infinite 2s; }
@keyframes ts-fl { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-24px)} }
.ts-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(99,102,241,0.04) 1px,transparent 1px), linear-gradient(90deg,rgba(99,102,241,0.04) 1px,transparent 1px); background-size: 64px 64px; }
.ts-hero .ts-cont { position: relative; z-index: 1; }
.ts-hero-badge { display: inline-block; padding: 6px 18px; background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25); border-radius: 20px; font-size: 13px; font-weight: 600; color: #a5b4fc; margin-bottom: 28px; }
.ts-hero h1 { font-size: clamp(36px,6vw,68px); font-weight: 900; color: #f1f5f9; line-height: 1.1; margin-bottom: 22px; letter-spacing: -0.03em; }
.ts-hero-sub { font-size: 18px; color: #64748b; max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }
.ts-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.ts-stats { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 20px 32px; max-width: 660px; margin: 0 auto; gap: 0; }
.ts-stat { text-align: center; padding: 0 28px; }
.ts-snum { display: block; font-size: 28px; font-weight: 800; color: #f1f5f9; }
.ts-slbl { font-size: 11px; color: #475569; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.ts-sdiv { width: 1px; height: 40px; background: rgba(255,255,255,0.07); }

/* ════════ SECTIONS ════════ */
.ts-section { padding: 90px 0; }
.ts-sec-hdr { text-align: center; margin-bottom: 54px; }
.ts-sec-badge { display: inline-block; padding: 5px 16px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2); border-radius: 20px; font-size: 12px; font-weight: 600; color: #818cf8; margin-bottom: 16px; }
.ts-sec-hdr h2 { font-size: clamp(28px,4vw,42px); font-weight: 800; color: #f1f5f9; margin-bottom: 12px; letter-spacing: -0.02em; }
.ts-sec-hdr p  { font-size: 16px; color: #64748b; max-width: 540px; margin: 0 auto; }

/* ════════ TOOLS GRID ════════ */
.ts-tools-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.ts-tc { background: #0c1120; border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; padding: 22px; transition: border-color 0.2s, transform 0.2s; position: relative; overflow: hidden; }
.ts-tc::before { content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; background: linear-gradient(135deg,rgba(255,255,255,0.03),transparent); }
.ts-tc:hover { transform: translateY(-3px); }
.ts-tc:hover::before { opacity: 1; }
.ts-tc-green:hover  { border-color: #10b981; }
.ts-tc-purple:hover { border-color: #8b5cf6; }
.ts-tc-blue:hover   { border-color: #3b82f6; }
.ts-tc-amber:hover  { border-color: #f59e0b; }
.ts-tc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ts-tc-em  { font-size: 30px; }
.ts-tc-tag { padding: 3px 10px; background: rgba(255,255,255,0.06); border-radius: 20px; font-size: 10px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .05em; }
.ts-tc h3 { font-size: 15px; font-weight: 700; color: #f1f5f9; margin-bottom: 8px; }
.ts-tc p  { font-size: 12px; color: #64748b; line-height: 1.65; }

/* ════════ HOW IT WORKS ════════ */
.ts-how { background: #0a0f1e; }
.ts-steps { display: flex; align-items: flex-start; gap: 0; justify-content: center; }
.ts-step { flex: 1; max-width: 280px; text-align: center; padding: 28px 20px; background: #0c1120; border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; }
.ts-step-n  { font-size: 11px; font-weight: 700; color: #334155; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.ts-step-em { font-size: 34px; margin-bottom: 12px; display: block; }
.ts-step h3 { font-size: 16px; font-weight: 700; color: #f1f5f9; margin-bottom: 8px; }
.ts-step p  { font-size: 13px; color: #64748b; line-height: 1.65; }
.ts-arrow   { font-size: 22px; color: #1e293b; padding: 0 16px; margin-top: 72px; flex-shrink: 0; }

/* ════════ AUTH SECTION ════════ */
.ts-auth-layout { display: flex; align-items: flex-start; gap: 60px; }
.ts-auth-left   { flex: 1; }
.ts-auth-left h2 { font-size: clamp(26px,3.5vw,38px); font-weight: 800; color: #f1f5f9; margin-bottom: 14px; line-height: 1.2; letter-spacing: -0.02em; }
.ts-auth-left p  { font-size: 15px; color: #64748b; margin-bottom: 28px; }
.ts-perks  { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ts-perks li { font-size: 15px; color: #94a3b8; font-weight: 500; }
.ts-auth-right { width: 420px; flex-shrink: 0; }
.ts-already-in { background: #0c1120; border: 1px solid rgba(255,255,255,0.07); border-radius: 20px; padding: 36px; text-align: center; }
.ts-already-in h3 { font-size: 20px; color: #f1f5f9; font-weight: 700; margin-bottom: 8px; }
.ts-already-in p  { color: #64748b; }

/* ════════ FOOTER ════════ */
.ts-footer { background: #080d18; border-top: 1px solid rgba(255,255,255,0.06); padding: 56px 0 28px; }
.ts-footer-top { display: flex; gap: 60px; margin-bottom: 40px; }
.ts-footer-brand { flex: 1; }
.ts-footer-brand p { font-size: 13px; color: #334155; max-width: 240px; line-height: 1.7; margin-top: 12px; }
.ts-footer-links { display: flex; gap: 48px; }
.ts-fcol { display: flex; flex-direction: column; gap: 10px; }
.ts-fcol h4 { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.ts-fcol a  { font-size: 13px; color: #334155; text-decoration: none; transition: color 0.2s; }
.ts-fcol a:hover { color: #94a3b8; }
.ts-footer-bot { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 22px; text-align: center; }
.ts-footer-bot p { font-size: 12px; color: #1e293b; }

/* Responsive */
@media (max-width: 900px) {
    .ts-nav, .ts-hcta { display: none; }
    .ts-burger { display: block; }
    .ts-tools-grid { grid-template-columns: repeat(2,1fr); }
    .ts-steps { flex-direction: column; align-items: center; }
    .ts-arrow { transform: rotate(90deg); margin: 0; padding: 8px 0; }
    .ts-auth-layout { flex-direction: column; }
    .ts-auth-right { width: 100%; }
    .ts-footer-top { flex-direction: column; gap: 32px; }
    .ts-footer-links { flex-wrap: wrap; gap: 28px; }
    .ts-stat { padding: 0 16px; }
}
@media (max-width: 600px) {
    .ts-tools-grid { grid-template-columns: 1fr; }
    .ts-stats { flex-direction: column; gap: 16px; padding: 20px; }
    .ts-sdiv { width: 60px; height: 1px; }
}
