/* Ticketing Pro B2B – Clean Stylesheet */

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

:root {
  --primary: #5a5cf0;
  --secondary: #17c5b3;
  --text: #142033;
  --text-light: #61708b;
  --bg: #f5f8fc;
  --border: #dce5f0;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.topbar {
  background: var(--text);
  color: var(--white);
  padding: 12px 0;
  font-size: 14px;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-links {
  display: flex;
  gap: 24px;
}

.topbar-links a {
  color: var(--white);
  display: inline-block;
}

.header-main {
  padding: 16px 0;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: bold;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
}

.brand strong {
  font-size: 18px;
}

.brand small {
  display: block;
  font-size: 12px;
  font-weight: normal;
  color: var(--text-light);
}

.nav-panel {
  display: flex;
  gap: 30px;
  align-items: center;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: var(--text);
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

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

.header-actions {
  display: flex;
  gap: 12px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: #4a4cd0;
  transform: translateY(-2px);
}

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

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

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

/* Sections */
.section {
  padding: 60px 0;
}

.section h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

/* Hero */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #f5f8fc 0%, var(--white) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
}

/* Calculator */
.calc-form {
  background: var(--bg);
  padding: 40px;
  border-radius: 12px;
}

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

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.field input,
.field select,
.field textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(90, 92, 240, 0.1);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.result {
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.result span {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.result strong {
  font-size: 20px;
  display: block;
}

.result.positive {
  color: var(--secondary);
}

.result.negative {
  color: #c63b56;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(90, 92, 240, 0.1);
}

.form-group.checkbox {
  flex-direction: row;
  align-items: flex-start;
}

.form-group.checkbox input {
  margin-top: 4px;
  margin-right: 8px;
}

.form-group.checkbox label {
  margin: 0;
  font-weight: normal;
}

/* Footer */
footer {
  background: var(--text);
  color: var(--white);
  padding: 60px 0 20px;
  margin-top: 80px;
}

footer a {
  color: var(--white);
  transition: opacity 0.2s;
}

footer a:hover {
  opacity: 0.8;
}

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

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-panel {
    display: none;
  }

  .nav-toggle {
    display: block;
    padding: 0;
    width: 30px;
    height: 30px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .section h2 {
    font-size: 1.8rem;
  }

  .topbar-inner {
    flex-direction: column;
    gap: 12px;
  }

  .topbar-links {
    flex-direction: column;
    gap: 12px;
  }

  .section {
    padding: 40px 0;
  }
}

/* Utilities */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.alert {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert-success {
  background: #ecf5f0;
  color: var(--secondary);
  border: 1px solid var(--secondary);
}

.alert-error {
  background: #fce8eb;
  color: #c63b56;
  border: 1px solid #c63b56;
}

.text-center {
  text-align: center;
}

.mb-20 {
  margin-bottom: 20px;
}

.mt-40 {
  margin-top: 40px;
}

/* ===== HERO EXTENDED ===== */
.hero {
  padding: 100px 0;
  background: linear-gradient(135deg, #f5f8fc 0%, var(--white) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-proof {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.proof-item {
  display: flex;
  flex-direction: column;
}

.proof-item strong {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.proof-item span {
  font-size: 13px;
  color: var(--text-light);
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== TRUST SECTION ===== */
.section-trust {
  background: linear-gradient(135deg, rgba(90, 92, 240, 0.05) 0%, rgba(23, 197, 179, 0.05) 100%);
}

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

.trust-stat {
  text-align: center;
  padding: 30px 20px;
}

.trust-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.trust-label {
  display: block;
  font-size: 14px;
  color: var(--text-light);
}

/* ===== SECTION BG ===== */
.section-bg {
  background: var(--bg);
}

/* ===== USE CASE CARDS ===== */
.use-case-card {
  background: var(--white);
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.use-case-card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.uc-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.use-case-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text);
}

.use-case-card p {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.use-case-card ul {
  font-size: 13px;
  color: var(--text-light);
}

/* ===== PRICING TEASER ===== */
.section-pricing-teaser {
  background: linear-gradient(135deg, rgba(90, 92, 240, 0.05) 0%, rgba(23, 197, 179, 0.05) 100%);
}

/* ===== CALCULATOR ===== */
.section-calc {
  background: var(--white);
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.field input,
.field select,
.field textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(90, 92, 240, 0.1);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.result {
  background: var(--bg);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.result span {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.result strong {
  font-size: 1.6rem;
  display: block;
  color: var(--text);
}

.result.positive {
  color: var(--secondary);
  background: rgba(23, 197, 179, 0.1);
}

.result.positive strong {
  color: var(--secondary);
}

.result.negative {
  color: #c63b56;
  background: rgba(198, 59, 86, 0.1);
}

.result.negative strong {
  color: #c63b56;
}

/* ===== TESTIMONIALS ===== */
.section-testimonials {
  background: var(--bg);
}

/* ===== FAQ ===== */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  padding: 12px;
  margin: -12px;
  color: var(--primary);
  user-select: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-item summary:hover {
  color: #4a4cd0;
}

.faq-item summary::before {
  content: '▶';
  display: inline-block;
  transition: transform 0.2s;
  font-size: 12px;
}

.faq-item[open] summary::before {
  transform: rotate(90deg);
}

.faq-item[open] summary {
  color: var(--text);
}

.faq-item p {
  margin-top: 16px;
  color: var(--text-light);
  line-height: 1.7;
  font-size: 15px;
}

/* ===== FINAL CTA ===== */
.section-final-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 80px 0;
}

.section-final-cta h2 {
  color: var(--white);
  font-size: 2.8rem;
}

.section-final-cta p {
  color: rgba(255, 255, 255, 0.9);
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .proof-item {
    flex: 1;
    min-width: 120px;
  }

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

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section h2 {
    font-size: 2rem;
  }

  .faq-item summary {
    font-size: 14px;
  }

  .section-final-cta h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

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

  .trust-number {
    font-size: 1.8rem;
  }

  .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-proof {
    gap: 16px;
  }

  .section {
    padding: 40px 0;
  }
}

/* ===== EYEBROW ===== */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
