/* ttonkapi.com - Main Stylesheet */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #0ea5e9;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: var(--dark);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 6rem 20px;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-cta .btn-secondary {
  color: white;
  border-color: white;
}

.hero-cta .btn-secondary:hover {
  background: white;
  color: var(--primary);
}

.hero-code {
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
  overflow-x: auto;
}

.hero-code pre {
  margin: 0;
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.875rem;
}

/* Features */
.features {
  padding: 6rem 20px;
  background: white;
}

.features h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  border-radius: 12px;
  background: var(--light);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
}

/* Models */
.models {
  padding: 6rem 20px;
}

.models h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.model-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.model-card h4 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.model-card ul {
  list-style: none;
}

.model-card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.model-card li:last-child {
  border-bottom: none;
}

/* Pricing */
.pricing-preview, .pricing {
  padding: 6rem 20px;
  background: white;
}

.pricing h2, .pricing-preview h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.pricing-grid, .pricing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--light);
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  position: relative;
  border: 2px solid transparent;
}

.pricing-card.featured {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 10px 30px rgba(99,102,241,0.2);
}

.pricing-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary);
}

.price span {
  font-size: 1rem;
  color: var(--gray);
}

.price-desc {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-card li {
  padding: 0.5rem 0;
}

.pricing-note {
  text-align: center;
  color: var(--gray);
  margin-top: 2rem;
}

/* FAQ */
.pricing-faq {
  max-width: 800px;
  margin: 4rem auto 0;
}

.pricing-faq h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-item {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.faq-item h4 {
  margin-bottom: 0.5rem;
}

/* Compare Table */
.pricing-compare {
  max-width: 800px;
  margin: 4rem auto 0;
}

.pricing-compare table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.pricing-compare th,
.pricing-compare td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.pricing-compare th {
  background: var(--light);
  font-weight: 600;
}

.compare-note {
  text-align: center;
  color: var(--gray);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Dashboard */
.dashboard {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  padding: 2rem;
  min-height: calc(100vh - 200px);
}

.dashboard-sidebar {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  height: fit-content;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 1.5rem;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.user-name {
  font-weight: 600;
}

.user-email {
  font-size: 0.875rem;
  color: var(--gray);
}

.dashboard-nav a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--gray);
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.dashboard-nav a:hover,
.dashboard-nav a.active {
  background: var(--light);
  color: var(--primary);
}

.dashboard-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--gray);
}

.quick-actions h2 {
  margin-bottom: 1.5rem;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: var(--light);
  border-radius: 8px;
  text-decoration: none;
  color: var(--dark);
  transition: all 0.2s;
}

.action-card:hover {
  background: var(--primary);
  color: white;
}

.action-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Docs */
.docs {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 3rem;
  padding: 3rem 20px;
}

.docs-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.docs-sidebar h3 {
  margin-bottom: 1rem;
}

.docs-sidebar ul {
  list-style: none;
}

.docs-sidebar li {
  margin-bottom: 0.5rem;
}

.docs-sidebar a {
  text-decoration: none;
  color: var(--gray);
  transition: color 0.2s;
}

.docs-sidebar a:hover {
  color: var(--primary);
}

.docs-content {
  max-width: 900px;
}

.docs-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.docs-content h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

.docs-content h3 {
  font-size: 1.25rem;
  margin: 1.5rem 0 1rem;
}

.docs-content p {
  margin-bottom: 1rem;
}

.docs-content pre {
  background: var(--dark);
  color: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.docs-content code {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.875rem;
}

.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.docs-content th,
.docs-content td {
  padding: 0.75rem;
  text-align: left;
  border: 1px solid #e2e8f0;
}

.docs-content th {
  background: var(--light);
}

/* Footer */
.footer {
  background: var(--dark);
  color: white;
  padding: 3rem 20px;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h4 {
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  color: #94a3b8;
}

/* Utilities */
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--gray);
}

.section-desc {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.billing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.billing-card {
  background: var(--light);
  padding: 1.5rem;
  border-radius: 8px;
}

.billing-card h4 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.payment-method {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .dashboard {
    grid-template-columns: 1fr;
  }
  
  .docs {
    grid-template-columns: 1fr;
  }
  
  .docs-sidebar {
    position: static;
  }
}
