/* Takvan Main Stylesheet - Lightweight & Modern */

/* Google Fonts Import for Vazirmatn (with fallback) */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');

/* Utilities & Grid */
.tk-container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.tk-container-sm {
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.tk-flex { display: flex; }
.tk-flex-col { flex-direction: column; }
.tk-items-center { align-items: center; }
.tk-justify-between { justify-content: space-between; }
.tk-justify-center { justify-content: center; }
.tk-gap-2 { gap: 8px; }
.tk-gap-4 { gap: 16px; }
.tk-gap-6 { gap: 24px; }
.tk-gap-8 { gap: 32px; }

.tk-grid {
  display: grid;
  gap: 24px;
}

.tk-grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.tk-grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.tk-grid-4 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

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

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--tk-dark);
  font-weight: 800;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 12px;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
  margin-top: 0;
  margin-bottom: 16px;
}

a {
  color: var(--tk-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--tk-primary-hover);
}

/* Header & Navigation */
.tk-site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--tk-border);
  box-shadow: var(--tk-shadow-sm);
  padding: 12px 0;
}

.tk-site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tk-site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--tk-dark);
}

.tk-site-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--tk-primary), #3b82f6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
}

.tk-site-logo-img {
  width: 48px;
  height: 30px;
  max-height: 36px;
  max-width: 56px;
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  transition: transform 0.2s ease;
}

.tk-site-logo:hover .tk-site-logo-img {
  transform: scale(1.05);
}

.tk-nav-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 24px;
}

@media (min-width: 900px) {
  .tk-nav-menu {
    display: flex;
  }
}

.tk-nav-menu a {
  color: var(--tk-slate);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}

.tk-nav-menu a:hover,
.tk-nav-menu .current-menu-item a {
  color: var(--tk-primary);
}

.tk-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tk-mobile-toggle {
  display: block;
  background: none;
  border: 1px solid var(--tk-border);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--tk-dark);
}

@media (min-width: 900px) {
  .tk-mobile-toggle { display: none; }
}

/* Mobile Drawer */
.tk-mobile-drawer {
  display: none;
  position: fixed;
  top: 61px;
  right: 0;
  left: 0;
  background: #ffffff;
  padding: 20px;
  border-bottom: 2px solid var(--tk-border);
  box-shadow: var(--tk-shadow-lg);
  z-index: 49;
}

.tk-mobile-drawer.active {
  display: block;
}

.tk-mobile-nav {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tk-mobile-nav a {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--tk-border);
}

/* Buttons */
.tk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--tk-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tk-btn-primary {
  background-color: var(--tk-primary);
  color: #fff !important;
}

.tk-btn-primary:hover {
  background-color: var(--tk-primary-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.tk-btn-accent {
  background-color: var(--tk-accent);
  color: #fff !important;
}

.tk-btn-accent:hover {
  background-color: var(--tk-accent-hover);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.tk-btn-outline {
  border-color: var(--tk-border);
  background-color: #fff;
  color: var(--tk-slate) !important;
}

.tk-btn-outline:hover {
  border-color: var(--tk-primary);
  color: var(--tk-primary) !important;
  background-color: var(--tk-primary-light);
}

.tk-btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--tk-radius);
}

.tk-btn-sm {
  padding: 6px 14px;
  font-size: 0.85rem;
}

/* Hero Section */
.tk-hero {
  padding: 60px 0 80px;
  background: radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(5, 150, 105, 0.05) 0%, transparent 40%);
  position: relative;
  overflow: hidden;
}

.tk-hero-content {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.tk-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--tk-primary-light);
  color: var(--tk-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.tk-hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--tk-dark);
  line-height: 1.25;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .tk-hero-title {
    font-size: 2rem;
  }
}

.tk-hero-desc {
  font-size: 1.15rem;
  color: var(--tk-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.tk-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.tk-hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--tk-muted);
}

.tk-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tk-trust-item svg {
  color: var(--tk-accent);
}

/* App Showcase Mockup */
.tk-showcase {
  margin-top: 40px;
  position: relative;
  border-radius: var(--tk-radius);
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(241, 245, 249, 0.6));
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.tk-showcase-window {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--tk-border);
}

.tk-window-bar {
  background: #f1f5f9;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--tk-border);
}

.tk-window-dots {
  display: flex;
  gap: 6px;
}

.tk-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.tk-window-title {
  font-size: 0.85rem;
  color: var(--tk-muted);
  font-weight: 600;
}

.tk-showcase-body {
  padding: 24px;
  background: #f8fafc;
}

/* Features Grid */
.tk-section {
  padding: 80px 0;
}

.tk-section-alt {
  background-color: #ffffff;
}

.tk-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 50px;
}

.tk-section-subtitle {
  color: var(--tk-primary);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.tk-section-title {
  font-size: 2rem;
  color: var(--tk-dark);
}

.tk-card {
  background: #ffffff;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius);
  padding: 28px;
  box-shadow: var(--tk-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tk-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--tk-shadow-lg);
  border-color: #cbd5e1;
}

.tk-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--tk-primary-light);
  color: var(--tk-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.tk-card-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.tk-card-desc {
  color: var(--tk-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Multi-App Section */
.tk-app-card {
  background: #ffffff;
  border-radius: var(--tk-radius);
  border: 1px solid var(--tk-border);
  overflow: hidden;
  box-shadow: var(--tk-shadow);
  display: flex;
  flex-direction: column;
}

.tk-app-header {
  padding: 24px;
  border-bottom: 1px solid var(--tk-border);
  display: flex;
  align-items: center;
  gap: 16px;
}

.tk-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.tk-app-body {
  padding: 24px;
  flex-grow: 1;
}

.tk-app-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.tk-app-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--tk-slate);
  font-size: 0.95rem;
  border-bottom: 1px dashed #f1f5f9;
}

.tk-app-features li svg {
  color: var(--tk-accent);
  flex-shrink: 0;
}

.tk-app-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid var(--tk-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Pricing Section */
.tk-pricing-card {
  background: #ffffff;
  border-radius: var(--tk-radius);
  border: 1px solid var(--tk-border);
  padding: 32px 24px;
  box-shadow: var(--tk-shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.tk-pricing-card.popular {
  border-color: var(--tk-primary);
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.2);
  transform: scale(1.03);
  z-index: 2;
}

.tk-popular-badge {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%);
  background: linear-gradient(90deg, #2563eb, #1d4ed8);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 9999px;
  box-shadow: var(--tk-shadow-sm);
}

.tk-pricing-title {
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.tk-pricing-desc {
  color: var(--tk-muted);
  font-size: 0.9rem;
  min-height: 40px;
}

.tk-pricing-price {
  margin: 20px 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.tk-price-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--tk-dark);
}

.tk-price-unit {
  color: var(--tk-muted);
  font-size: 0.9rem;
}

.tk-pricing-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 32px 0;
  flex-grow: 1;
}

.tk-pricing-features li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--tk-slate);
}

.tk-pricing-features li svg {
  color: var(--tk-accent);
}

/* Steps - How It Works */
.tk-step-card {
  text-align: center;
  padding: 24px;
}

.tk-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--tk-primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* FAQ Accordion */
.tk-faq-item {
  background: #ffffff;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.tk-faq-trigger {
  width: 100%;
  text-align: right;
  padding: 18px 20px;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tk-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tk-faq-content {
  padding: 0 20px 18px 20px;
  color: var(--tk-slate);
  font-size: 0.95rem;
  line-height: 1.8;
  display: none;
}

.tk-faq-item.open .tk-faq-content {
  display: block;
}

.tk-faq-item.open .tk-faq-icon {
  transform: rotate(180deg);
}

/* Fast Checkout Styles */
.tk-checkout-wrapper {
  background: #ffffff;
  border-radius: var(--tk-radius);
  border: 1px solid var(--tk-border);
  box-shadow: var(--tk-shadow);
  padding: 32px;
  margin-top: 24px;
}

.tk-system-id-box {
  background: #f0fdf4;
  border: 2px dashed #86efac;
  border-radius: var(--tk-radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}

.tk-system-id-box label {
  display: block;
  font-weight: 800;
  color: #166534;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.tk-system-id-input {
  width: 100%;
  padding: 12px 16px;
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  border: 2px solid #bbf7d0;
  border-radius: 8px;
  background: #ffffff;
  text-transform: uppercase;
}

.tk-system-id-input:focus {
  outline: none;
  border-color: var(--tk-accent);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.tk-field-hint {
  font-size: 0.85rem;
  color: #15803d;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* User Account & License Dashboard */
.tk-license-card {
  background: #ffffff;
  border: 1px solid var(--tk-border);
  border-radius: var(--tk-radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--tk-shadow-sm);
}

.tk-license-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--tk-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.tk-license-key-box {
  background: #f8fafc;
  border: 1px solid var(--tk-border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tk-copy-btn {
  background: var(--tk-primary-light);
  color: var(--tk-primary);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.tk-copy-btn:hover {
  background: var(--tk-primary);
  color: #fff;
}

.tk-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.tk-badge-success {
  background: var(--tk-accent-light);
  color: var(--tk-accent);
}

.tk-badge-warning {
  background: #fef3c7;
  color: var(--tk-warning);
}

.tk-badge-danger {
  background: #fee2e2;
  color: var(--tk-danger);
}

/* Footer */
.tk-site-footer {
  background: var(--tk-dark);
  color: #94a3b8;
  padding: 60px 0 24px;
  margin-top: 60px;
}

.tk-site-footer h4 {
  color: #ffffff;
  margin-bottom: 18px;
}

.tk-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tk-footer-links li {
  margin-bottom: 10px;
}

.tk-footer-links a {
  color: #94a3b8;
  transition: color 0.2s;
}

.tk-footer-links a:hover {
  color: #ffffff;
}

.tk-footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  margin-top: 48px;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Toast Notification */
.tk-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: var(--tk-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: var(--tk-shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
  pointer-events: none;
}

.tk-toast.show {
  opacity: 1;
  transform: translateY(0);
}

