/* ============================================
   SalesFunnelCRM — Shared Design System
   Used across index, request-a-demo, request-a-brochure, ticket
   ============================================ */

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

:root {
  --navy: #0B1120;
  --navy-mid: #111827;
  --card: #131f35;
  --slate: #1E3A5F;
  --teal: #00D4AA;
  --teal-dim: #00a888;
  --teal-glow: rgba(0,212,170,0.15);
  --white: #F0F4FF;
  --muted: #8899BB;
  --border: rgba(136,153,187,0.15);
  --danger: #FF6B6B;
  --danger-glow: rgba(255,107,107,0.12);
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 68px;
  background: rgba(11,17,32,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 1.2rem;
  color: var(--white); text-decoration: none; letter-spacing: -0.5px;
}
.logo span { color: var(--teal); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: .9rem;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--teal); color: var(--navy);
  padding: .55rem 1.4rem; border-radius: 8px;
  font-weight: 700; font-size: .88rem; text-decoration: none;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: #00bfa0; transform: translateY(-1px); }
.nav-burger { display: none; background: none; border: none; color: var(--white); font-size: 1.4rem; cursor: pointer; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--teal); color: var(--navy);
  padding: .8rem 2rem; border-radius: 10px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 0 24px rgba(0,212,170,.25);
  border: none; cursor: pointer; font-family: 'Inter', sans-serif;
}
.btn-primary:hover { background: #00bfa0; transform: translateY(-2px); box-shadow: 0 0 36px rgba(0,212,170,.4); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-ghost {
  border: 1px solid var(--border); color: var(--white);
  padding: .8rem 2rem; border-radius: 10px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: border-color .2s, background .2s;
  background: transparent; cursor: pointer; font-family: 'Inter', sans-serif;
}
.btn-ghost:hover { border-color: var(--teal); background: var(--teal-glow); }

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  min-height: 56vh;
  display: flex; align-items: center;
  padding: 140px 5vw 60px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(0,212,170,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(30,58,95,0.4) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0; opacity: .035;
  background-image: linear-gradient(var(--teal) 1px, transparent 1px),
                    linear-gradient(90deg, var(--teal) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-content { position: relative; z-index: 1; max-width: 680px; }
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--teal-glow); border: 1px solid rgba(0,212,170,.3);
  border-radius: 100px; padding: .35rem 1rem;
  font-size: .78rem; font-weight: 600; color: var(--teal);
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.6rem;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -1.5px;
  margin-bottom: 1.2rem;
}
h1 em { font-style: normal; color: var(--teal); }
.hero-sub { font-size: 1.05rem; color: var(--muted); max-width: 540px; }

/* breadcrumb */
.crumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .82rem; color: var(--muted); margin-bottom: 1.4rem;
}
.crumb a { color: var(--muted); text-decoration: none; transition: color .2s; }
.crumb a:hover { color: var(--teal); }
.crumb .sep { opacity: .5; }
.crumb .current { color: var(--teal); }

/* ── SECTIONS ── */
section { padding: 100px 5vw; }
.section-label {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 1rem;
}
h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -1px; line-height: 1.15;
  margin-bottom: 1rem;
}
.section-sub { color: var(--muted); max-width: 520px; font-size: 1rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── FORM LAYOUT (shared by demo / brochure / ticket) ── */
.form-section {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem;
  align-items: flex-start;
}
@media (max-width: 900px) { .form-section { grid-template-columns: 1fr; gap: 3rem; } }

.form-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 2.6rem;
}
.form-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem; font-weight: 700; margin-bottom: .4rem;
}
.form-card .form-intro { color: var(--muted); font-size: .9rem; margin-bottom: 2rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 1.3rem; }
.field label {
  display: block; font-size: .82rem; font-weight: 600; color: var(--white);
  margin-bottom: .5rem;
}
.field label .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .75rem .9rem;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #5b6a8c; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow);
}
.field textarea { resize: vertical; min-height: 100px; font-family: 'Inter', sans-serif; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%238899BB' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
  padding-right: 2.2rem;
}
.field-error { display: none; color: var(--danger); font-size: .78rem; margin-top: .4rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-glow);
}
.field.has-error .field-error { display: block; }

.consent-row {
  display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1.6rem;
}
.consent-row input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 3px; accent-color: var(--teal); flex-shrink: 0;
}
.consent-row label { font-size: .8rem; color: var(--muted); line-height: 1.5; }

.form-submit { width: 100%; justify-content: center; margin-top: .4rem; }

.form-foot-note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 1.2rem; }
.form-foot-note a { color: var(--teal); text-decoration: none; }

/* success state */
.form-success {
  display: none; text-align: center; padding: 2rem 0;
}
.form-success.visible { display: block; }
.form-success .check-circle {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--teal-glow); border: 1px solid rgba(0,212,170,.4);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.4rem;
}
.form-success h3 { margin-bottom: .6rem; }
.form-success p { color: var(--muted); font-size: .9rem; max-width: 380px; margin: 0 auto 1.6rem; }
.form-fields-wrap.hidden { display: none; }

/* ── SIDE INFO PANEL (used in demo/brochure/ticket) ── */
.side-panel { display: flex; flex-direction: column; gap: 1.5rem; }
.info-card {
  background: var(--navy-mid); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.6rem 1.8rem;
}
.info-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem; font-weight: 700; margin-bottom: .9rem;
  display: flex; align-items: center; gap: .6rem;
}
.info-card ul { list-style: none; display: flex; flex-direction: column; gap: .75rem; }
.info-card li { display: flex; align-items: flex-start; gap: .65rem; font-size: .85rem; color: var(--muted); }
.info-card li svg { flex-shrink: 0; margin-top: .2rem; color: var(--teal); }
.mini-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--teal-glow); border: 1px solid rgba(0,212,170,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}

.quote-card {
  background: linear-gradient(135deg, rgba(0,212,170,.08), transparent);
  border: 1px solid rgba(0,212,170,.2);
  border-radius: 16px; padding: 1.6rem 1.8rem;
}
.quote-card p { font-size: .88rem; color: #ccd6f0; font-style: italic; line-height: 1.6; margin-bottom: 1rem; }
.quote-card .author-name { font-weight: 700; font-size: .85rem; }
.quote-card .author-role { font-size: .76rem; color: var(--muted); }

/* ── STEPPER (process strip) ── */
.steps-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  background: var(--navy-mid);
}
.step-item { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 1.4rem; color: var(--teal);
  min-width: 38px;
}
.step-item h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .95rem; font-weight: 700; margin-bottom: .3rem; }
.step-item p { font-size: .83rem; color: var(--muted); }

/* ── TICKET STATUS LOOKUP ── */
.status-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  border-radius: 100px; padding: .3rem .85rem; font-size: .76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
}
.status-open { background: var(--teal-glow); color: var(--teal); border: 1px solid rgba(0,212,170,.3); }
.status-progress { background: rgba(255,193,7,.12); color: #FFC107; border: 1px solid rgba(255,193,7,.3); }
.status-closed { background: rgba(136,153,187,.12); color: var(--muted); border: 1px solid var(--border); }

.tabs { display: flex; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.tab-btn {
  background: var(--navy-mid); border: 1px solid var(--border); color: var(--muted);
  padding: .55rem 1.2rem; border-radius: 100px; font-size: .85rem; font-weight: 600;
  cursor: pointer; transition: all .2s; font-family: 'Inter', sans-serif;
}
.tab-btn.active { background: var(--teal-glow); border-color: rgba(0,212,170,.4); color: var(--teal); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.ticket-result {
  margin-top: 1.6rem; background: var(--navy-mid); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.4rem 1.6rem; display: none;
}
.ticket-result.visible { display: block; }
.ticket-result-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; flex-wrap: wrap; gap: .6rem; }
.ticket-result-head h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 1rem; font-weight: 700; }
.ticket-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 1rem; font-size: .82rem; }
.ticket-meta strong { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; font-weight: 600; }

/* ── FAQ ACCORDION ── */
.faq-list { display: flex; flex-direction: column; gap: .8rem; max-width: 720px; }
.faq-item {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--white);
  padding: 1.2rem 1.5rem; font-size: .95rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif;
}
.faq-q .chevron { transition: transform .25s; color: var(--teal); flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  padding: 0 1.5rem;
}
.faq-item.open .faq-a { max-height: 240px; padding-bottom: 1.2rem; }
.faq-a p { color: var(--muted); font-size: .88rem; line-height: 1.65; }

/* ── FOOTER ── */
footer {
  background: #080e1c;
  padding: 60px 5vw 32px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap;
  margin-bottom: 3rem;
}
.footer-brand { max-width: 280px; }
.footer-brand .logo { font-size: 1.1rem; display: inline-block; margin-bottom: 1rem; }
.footer-brand p { font-size: .85rem; color: var(--muted); line-height: 1.6; }
.footer-links h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1rem;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .85rem; transition: color .2s; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: var(--muted); flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a { color: var(--teal); text-decoration: none; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .badge-dot { animation: none; }
}

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
