/* TalkTalkAI Website Styles */

/* ===== CSS Variables ===== */
:root {
  --brand: #0ea5e9;
  --brand-dark: #0284c7;
  --ink: #0b1220;
  --muted: #63758a;
  --bg: #ffffff;
  --shade: #f5f7fa;
  --border: #e6e9ef;
}

/* ===== Reset & Base ===== */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, Cantarell, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s;
}

a:hover {
  text-decoration: underline;
}

section {
  overflow: hidden;
}

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 40px 0;
}

@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Header & Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.nav-links {
  display: none;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
}

.nav-links a:hover {
  color: var(--brand);
  text-decoration: none;
}

.nav-links a.active {
  font-weight: 700;
  color: var(--brand);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
  #navToggle {
    display: none;
  }
}

.mobile-nav {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.mobile-nav a:hover {
  background: var(--shade);
  text-decoration: none;
}

/* ===== Logo & Branding ===== */
.logo {
  height: 28px;
  width: 28px;
  margin-right: 8px;
  vertical-align: middle;
}

.logo-sm {
  height: 20px;
  width: 20px;
  margin-right: 8px;
}

.brand {
  font-weight: 600;
  font-size: 17px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  border: 1px solid #d2d7e0;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  background: var(--bg);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn:hover {
  background: #f8fafc;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

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

.btn-outline {
  background: var(--bg);
  border: 1px solid #cfd6e2;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

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

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.gap {
  gap: 12px;
}

/* ===== Hero Section ===== */
.hero {
  padding: 60px 0 40px;
}

.hero h1 {
  font-size: 36px;
  line-height: 1.1;
  margin: 12px 0 0;
  font-weight: 800;
}

@media (min-width: 900px) {
  .hero h1 {
    font-size: 48px;
  }
}

.lead {
  color: var(--muted);
  font-size: 18px;
  margin-top: 12px;
  line-height: 1.5;
}

.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e1e6ef;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  background: var(--bg);
  font-weight: 600;
  color: var(--brand);
}

.pill-row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  color: var(--muted);
  flex-wrap: wrap;
  padding-left: 0;
  list-style: none;
  font-size: 14px;
}

.pill-row li:before {
  content: '✓ ';
  color: var(--brand);
  font-weight: 700;
  margin-right: 4px;
}

.gradient {
  background: linear-gradient(180deg, #f0f9ff, #fff);
}

.shade {
  background: var(--shade);
}

/* ===== Demo Panel ===== */
.panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: 0 10px 30px rgba(2, 8, 23, 0.08);
  padding: 16px;
}

.panel-header {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--shade);
  color: #556477;
  font-size: 14px;
  font-weight: 600;
}

.chatbox {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
  min-height: 180px;
  font-size: 14px;
  line-height: 1.6;
}

.chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.chip {
  border: 1px solid #e1e6ef;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  background: var(--bg);
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  background: var(--shade);
  border-color: var(--brand);
}

.chat-input-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.input {
  flex: 1;
  border: 1px solid #cfd6e2;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* ===== Cards & Grid ===== */
.cards-3, .cards-2 {
  display: grid;
  gap: 20px;
  padding: 40px 0;
}

.cards-3 {
  grid-template-columns: 1fr;
}

.cards-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .cards-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  background: var(--bg);
  box-shadow: 0 4px 12px rgba(2, 8, 23, 0.04);
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(2, 8, 23, 0.08);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 700;
}

.card p {
  margin: 8px 0;
  color: var(--ink);
  line-height: 1.6;
}

.card ul {
  margin: 12px 0;
  padding-left: 20px;
}

.card ul li {
  margin: 6px 0;
  line-height: 1.5;
}

/* ===== Pricing Cards ===== */
.price-grid {
  gap: 24px;
}

.price {
  position: relative;
  text-align: center;
  padding: 32px 24px;
}

.price h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.price .cost {
  font-size: 42px;
  font-weight: 800;
  color: var(--brand);
  margin: 16px 0;
}

.period {
  font-size: 16px;
  color: var(--muted);
  font-weight: 500;
  margin-left: 4px;
}

.price ul {
  text-align: left;
  padding-left: 20px;
  margin: 24px 0;
  min-height: 200px;
}

.price ul li {
  margin: 10px 0;
}

.price .btn {
  margin-top: 20px;
}

.popular {
  border-color: var(--brand);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.15);
}

.bubble {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
}

/* ===== CTA Section ===== */
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 0;
  flex-wrap: wrap;
}

.cta h2 {
  margin: 0;
  font-size: 28px;
}

.cta p {
  margin: 6px 0 0 0;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  background: var(--bg);
  margin-bottom: 12px;
  cursor: pointer;
}

.faq-list details:hover {
  box-shadow: 0 4px 12px rgba(2, 8, 23, 0.06);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}

.faq-list details[open] summary {
  margin-bottom: 12px;
  color: var(--brand);
}

.faq-list details p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

/* ===== Forms ===== */
.form label {
  display: block;
  margin: 16px 0 6px 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid #cfd6e2;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.form textarea {
  resize: vertical;
  min-height: 100px;
}

.form button[type="submit"] {
  margin-top: 20px;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 24px 0;
  background: var(--shade);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--brand);
  text-decoration: none;
}

/* ===== Utility Classes ===== */
.center {
  text-align: center;
}

.pad {
  padding: 40px 0;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 13px;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.legal {
  max-width: 800px;
  margin: 0 auto;
}

.legal h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 24px;
}

.legal p {
  line-height: 1.7;
  margin: 12px 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .cta {
    flex-direction: column;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .price-grid {
    grid-template-columns: 1fr;
  }
}
