/* ============================================
   TIELK DESIGN SYSTEM
   Dark theme, amber-to-purple brand gradient
   ============================================ */

/* --- Brand Tokens --- */
:root {
  --brand-amber: #F7931A;
  --brand-coral: #E8532C;
  --brand-pink: #D946A8;
  --brand-purple: #9B6BC7;
  --brand-gradient: linear-gradient(135deg, #F7931A, #E8532C, #D946A8, #9B6BC7);
  --brand-glow: rgba(247, 147, 26, 0.25);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.2; color: #fff; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
p { color: #a0a0a0; line-height: 1.7; }
.text-gradient {
  background: linear-gradient(135deg, #F7931A, #E8532C, #D946A8, #9B6BC7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-cyan { color: #F7931A; }
.text-brand { color: #F7931A; }
.text-white { color: #fff; }
.text-muted { color: #888; }
.text-center { text-align: center; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hide-mobile { display: none !important; }
}
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}
.nav-inner {
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  margin-right: 48px;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: space-between;
}
.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  color: #ccc;
  border-radius: 8px;
  transition: all 0.2s;
  position: relative;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-link .arrow { font-size: 0.7rem; margin-left: 4px; opacity: 0.6; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-left: 24px;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 12px;
  min-width: 280px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.nav-dropdown:hover .nav-dropdown-content { display: block; }
.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  transition: background 0.2s;
}
.dropdown-item:hover { background: rgba(255,255,255,0.05); }
.dropdown-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.dropdown-icon.builder { background: rgba(155, 107, 199, 0.15); color: #9B6BC7; }
.dropdown-icon.chat { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.dropdown-icon.agent { background: rgba(247, 147, 26, 0.15); color: #F7931A; }
.dropdown-icon.learn { background: rgba(105, 240, 174, 0.15); color: #69f0ae; }
.dropdown-label { font-size: 0.9rem; font-weight: 600; color: #fff; }
.dropdown-desc { font-size: 0.8rem; color: #888; margin-top: 2px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px;
    gap: 4px;
  }
  .nav.open .nav-actions {
    display: flex;
    position: absolute;
    top: calc(100% + 200px);
    left: 0;
    right: 0;
    background: #111;
    padding: 0 24px 24px;
    justify-content: center;
  }
  .nav-dropdown-content {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 16px;
    min-width: unset;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.25s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #F7931A, #E8532C);
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #e8841a, #d4471f);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(247, 147, 26, 0.3);
}
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
}
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: #ccc; padding: 8px 16px; }
.btn-ghost:hover { color: #fff; }

/* --- Cards --- */
.card {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
}
.card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.card-dark {
  background: #0f0f0f;
  border: 1px solid rgba(255,255,255,0.04);
}
.card-glow:hover {
  border-color: rgba(247, 147, 26, 0.2);
  box-shadow: 0 12px 40px rgba(247, 147, 26, 0.06);
}

/* --- Hero Section --- */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(247, 147, 26, 0.06) 0%, rgba(155, 107, 199, 0.04) 50%, transparent 70%);
  pointer-events: none;
}
.hero h1 { margin-bottom: 24px; position: relative; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 40px; position: relative; }
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
}

/* --- Banner Bar --- */
.banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: linear-gradient(90deg, #F7931A, #E8532C, #9B6BC7);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  transition: transform 0.3s ease;
}
.banner.hidden { transform: translateY(-100%); }
.nav.banner-hidden { top: 0 !important; }
.banner a { text-decoration: underline !important; }

/* --- Feature Grid --- */
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-icon.purple { background: rgba(155, 107, 199, 0.12); color: #9B6BC7; }
.feature-icon.cyan { background: rgba(247, 147, 26, 0.12); color: #F7931A; }
.feature-icon.orange { background: rgba(232, 83, 44, 0.12); color: #E8532C; }
.feature-icon.green { background: rgba(105, 240, 174, 0.12); color: #69f0ae; }
.feature-icon.blue { background: rgba(56, 189, 248, 0.12); color: #38bdf8; }
.feature-icon.pink { background: rgba(217, 70, 168, 0.12); color: #D946A8; }

/* --- Product Cards (large) --- */
.product-card {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.product-card.builder::before { background: linear-gradient(90deg, #9B6BC7, #c9a3e8); }
.product-card.chat::before { background: linear-gradient(90deg, #38bdf8, #7dd3fc); }
.product-card.agent::before { background: linear-gradient(90deg, #F7931A, #fbbf24); }
.product-card.learn::before { background: linear-gradient(90deg, #69f0ae, #b9f6ca); }
.product-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.product-card h3 { font-size: 1.5rem; }
.product-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: fit-content;
}
.tag.purple { background: rgba(155, 107, 199, 0.15); color: #c9a3e8; }
.tag.cyan { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; }
.tag.orange { background: rgba(247, 147, 26, 0.15); color: #fbbf24; }
.tag.green { background: rgba(105, 240, 174, 0.15); color: #b9f6ca; }

/* --- Pricing --- */
.pricing-card {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  border-color: rgba(247, 147, 26, 0.3);
  background: linear-gradient(180deg, rgba(247, 147, 26, 0.04) 0%, #141414 100%);
  box-shadow: 0 0 40px rgba(247, 147, 26, 0.06);
}
.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin: 16px 0 4px;
}
.pricing-card .price span { font-size: 1rem; font-weight: 400; color: #888; }
.pricing-card .features-list {
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.pricing-card .features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #bbb;
}
.pricing-card .features-list li .check { color: #F7931A; font-weight: 700; flex-shrink: 0; }
.pricing-card .features-list li .no { color: #555; flex-shrink: 0; }

/* --- Stats --- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: 0.9rem;
  color: #888;
  margin-top: 8px;
}

/* --- Testimonials --- */
.testimonial {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 32px;
}
.testimonial-text {
  font-size: 1.05rem;
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F7931A, #E8532C, #9B6BC7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}
.testimonial-name { font-weight: 600; color: #fff; font-size: 0.9rem; }
.testimonial-role { color: #888; font-size: 0.8rem; }

/* --- Logo Row --- */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.5;
}
.logo-row span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.02em;
}

/* --- Integration Icons --- */
.integration-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.integration-icon {
  width: 56px;
  height: 56px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.2s;
}
.integration-icon:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(247, 147, 26, 0.08) 0%, rgba(155, 107, 199, 0.06) 50%, transparent 70%);
  pointer-events: none;
}

/* --- Footer --- */
.footer {
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 60px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p {
  font-size: 0.85rem;
  color: #666;
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.6;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  color: #999;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8rem;
  color: #555;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
}
.footer-bottom-links a { color: #555; transition: color 0.2s; }
.footer-bottom-links a:hover { color: #999; }

/* --- Divider --- */
.divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

/* --- Badges & Tags --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(247, 147, 26, 0.08);
  color: #F7931A;
  border: 1px solid rgba(247, 147, 26, 0.15);
}

/* --- Tabs / Toggle --- */
.tab-group {
  display: inline-flex;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.06);
}
.tab {
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #888;
  transition: all 0.2s;
}
.tab.active {
  background: linear-gradient(135deg, #F7931A, #E8532C);
  color: #fff;
  font-weight: 600;
}
.tab:not(.active):hover { color: #fff; }

/* --- Comparison Table --- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table th, .compare-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}
.compare-table th {
  color: #fff;
  font-weight: 600;
  background: rgba(255,255,255,0.02);
}
.compare-table td { color: #aaa; }

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-up { animation: fadeUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* --- Utility --- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.max-w-600 { max-width: 600px; }
.max-w-800 { max-width: 800px; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* --- Fonts (Google Fonts preload) --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');


.lang-switch .lang-sep{color:#333;font-size:0.7rem}

/* Language Dropdown — integrated in nav-actions */
.lang-dropdown{position:relative}
.lang-toggle{display:flex;align-items:center;gap:6px;background:transparent;border:1px solid rgba(255,255,255,0.12);color:#999;font-size:0.8rem;font-weight:500;padding:6px 10px;border-radius:8px;cursor:pointer;transition:all 0.2s;font-family:inherit}
.lang-toggle:hover{color:#F7931A;border-color:rgba(247,147,26,0.3);background:rgba(247,147,26,0.04)}
.lang-toggle svg{width:15px;height:15px;stroke:currentColor;opacity:0.7;flex-shrink:0}
.lang-toggle:hover svg{opacity:1}
.lang-toggle .lang-code{letter-spacing:0.04em}
.lang-dropdown-menu{display:none;position:absolute;top:calc(100% + 8px);right:0;background:#141414;border:1px solid rgba(255,255,255,0.1);border-radius:12px;padding:6px;min-width:185px;box-shadow:0 12px 48px rgba(0,0,0,0.6);max-height:380px;overflow-y:auto;z-index:10001}
.lang-dropdown:hover .lang-dropdown-menu{display:block}
.lang-option{display:flex;align-items:center;gap:8px;padding:7px 12px;border-radius:8px;font-size:0.82rem;color:#999;transition:all 0.15s;text-decoration:none !important;white-space:nowrap}
.lang-option:hover{background:rgba(255,255,255,0.06);color:#fff}
.lang-option.active{color:#F7931A;font-weight:600}
.lang-dropdown-menu::-webkit-scrollbar{width:4px}
.lang-dropdown-menu::-webkit-scrollbar-track{background:transparent}
.lang-dropdown-menu::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.1);border-radius:4px}
