/* ============================================
   4TYN.COM - PHASE 2 PREMIUM UI/UX
   ============================================ */

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #12121a;
  --bg-elevated: #1a1a2e;
  --accent-primary: #8b5cf6;
  --accent-secondary: #d946ef;
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #d946ef 100%);
  --text-primary: #f2f2f7;
  --text-secondary: #9b9ba8;
  --text-muted: #6b7280;
  --border-color: #2a2a3e;
  --success: #34d399;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.3);
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.tny-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}
.tny-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tny-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.tny-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
}
.tny-logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}
.tny-nav-links { display: flex; align-items: center; gap: 32px; }
.tny-nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.tny-nav-link:hover { color: var(--text-primary); }
.tny-nav-cta {
  background: var(--accent-gradient);
  color: white;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.tny-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Hero */
.tny-hero {
  padding: 160px 24px 100px;
  text-align: center;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(217, 70, 239, 0.1) 0%, transparent 50%),
    var(--bg-dark);
}
.tny-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #c4b5fd;
  margin-bottom: 32px;
}
.tny-hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: tny-pulse 2s infinite;
}
@keyframes tny-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.tny-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.tny-hero h1 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tny-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
}
.tny-hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.tny-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}
.tny-btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.35);
}
.tny-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.45);
}
.tny-btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.tny-btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--accent-primary);
}

/* Demo Section */
.tny-demo {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.tny-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}
.tny-section-header h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
}
.tny-section-header p {
  color: var(--text-secondary);
  font-size: 17px;
}
.tny-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.tny-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition-fast);
}
.tny-panel:hover { border-color: rgba(139, 92, 246, 0.4); }
.tny-panel-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.tny-textarea {
  width: 100%;
  min-height: 200px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;
  resize: vertical;
}
.tny-textarea:focus { outline: none; border-color: var(--accent-primary); }
.tny-output {
  min-height: 200px;
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 15px;
  line-height: 1.7;
}
.tny-humanize-btn {
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.tny-humanize-btn:hover { opacity: 0.95; transform: translateY(-2px); }
.tny-humanize-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Pricing */
.tny-pricing {
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-elevated) 50%, var(--bg-dark) 100%);
}
.tny-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.tny-pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
}
.tny-pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}
.tny-pricing-card.featured {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}
.tny-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: white;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.tny-pricing-name { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.tny-pricing-price {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 20px 0;
}
.tny-pricing-price span {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 400;
}
.tny-pricing-features {
  list-style: none;
  padding: 0;
  margin: 32px 0;
  text-align: left;
}
.tny-pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}
.tny-pricing-features li:last-child { border-bottom: none; }
.tny-pricing-features li .check { color: var(--success); font-weight: bold; }
.tny-pricing-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: block;
}
.tny-pricing-btn:hover { opacity: 0.95; transform: translateY(-2px); }
.tny-pricing-btn.secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}
.tny-pricing-btn.secondary:hover { background: var(--bg-elevated); }

/* Dashboard */
.tny-dashboard {
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
}
.tny-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.tny-dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.tny-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.tny-stat-value {
  font-size: 36px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tny-stat-label { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.tny-progress-bar {
  background: var(--bg-elevated);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin-top: 12px;
}
.tny-progress-fill {
  background: var(--accent-gradient);
  height: 100%;
  border-radius: 999px;
  transition: width 0.5s ease;
}

/* Mobile */
@media (max-width: 768px) {
  .tny-nav-links { display: none; }
  .tny-hero h1 { font-size: 32px; }
  .tny-demo-grid { grid-template-columns: 1fr; }
  .tny-pricing-grid { grid-template-columns: 1fr; }
}

/* Animations */
.tny-fade-up {
  animation: tny-fade-up 0.6s ease forwards;
  opacity: 0;
}
@keyframes tny-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
