/* ==========================================================================
   QEntry Website - Modern Enterprise Queue Solution
   Colors: Deep Navy (#001d3d, #003566), Gold (#ffc300, #ffd60a), Clean Slate
   ========================================================================== */

:root {
  --navy-950: #000f1f;
  --navy-900: #001d3d;
  --navy-850: #00284d;
  --navy-800: #003566;
  --navy-700: #0d4b85;
  --navy-600: #1961a8;
  --gold-500: #ffc300;
  --gold-400: #ffd60a;
  --gold-300: #ffea75;
  --gold-100: #fff9db;
  --gold-50:  #fffdeb;

  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --emerald-500: #10b981;
  --emerald-100: #d1fae5;
  --emerald-900: #064e3b;
  --rose-500: #f43f5e;
  --rose-100: #ffe4e6;
  --amber-500: #f59e0b;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 30px rgba(255, 195, 0, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: #ffffff;
  color: var(--slate-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
}

.section-dark {
  background-color: var(--navy-900);
  color: #ffffff;
}

.section-slate {
  background-color: var(--slate-50);
}

/* Typography Helpers */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--gold-100);
  color: var(--navy-900);
  border: 1px solid var(--gold-500);
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-dark .section-tag {
  background-color: rgba(255, 195, 0, 0.15);
  border-color: var(--gold-500);
  color: var(--gold-400);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy-900);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-dark .section-title {
  color: #ffffff;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--slate-600);
  max-width: 680px;
  margin-bottom: 48px;
}

.section-dark .section-desc {
  color: var(--slate-300);
}

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Header & Sticky Navbar */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  z-index: 1000;
  transition: all 0.25s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(255, 255, 255, 0.98);
}

.navbar {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy-800);
  flex: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
}

/* The menu sits in the middle; brand left, sign-in and demo right. */
.site-header nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 36px;
}

.nav-mobile-only {
  display: none;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--navy-900);
}

/* A thin gold rule grows under the hovered link. */
.nav-menu .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-menu .nav-link:hover::after {
  transform: scaleX(1);
}

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

.nav-actions .btn {
  padding: 9px 18px;
  box-shadow: none;
}

.nav-actions .btn-primary:hover {
  transform: none;
  box-shadow: none;
}

.nav-login {
  position: relative;
}

.nav-login summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  list-style: none;
  padding: 8px 0;
}

.nav-login summary::-webkit-details-marker {
  display: none;
}

.nav-login svg {
  transition: transform 0.2s ease;
}

.nav-login[open] svg {
  transform: rotate(180deg);
}

.login-menu {
  position: absolute;
  right: -12px;
  top: calc(100% + 10px);
  width: 260px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 2px;
}

.login-menu a {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--navy-900);
}

.login-menu a:hover,
.login-menu a:focus-visible {
  background: var(--slate-50);
}

.login-menu strong {
  font-size: 0.95rem;
}

.login-menu span {
  font-size: 0.85rem;
  color: var(--slate-500);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
  box-shadow: 0 4px 14px rgba(255, 195, 0, 0.35);
}

.btn-primary:hover {
  background-color: var(--gold-400);
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 195, 0, 0.45);
}

.btn-navy {
  background-color: var(--navy-800);
  color: #ffffff;
}

.btn-navy:hover {
  background-color: var(--navy-900);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 53, 102, 0.35);
}

.btn-outline {
  border-color: var(--slate-300);
  background-color: transparent;
  color: var(--slate-700);
}

.btn-outline:hover {
  border-color: var(--navy-800);
  color: var(--navy-800);
  background-color: var(--slate-50);
}

.btn-outline-gold {
  border-color: var(--gold-500);
  color: var(--gold-400);
  background-color: rgba(255, 195, 0, 0.08);
}

.btn-outline-gold:hover {
  background-color: var(--gold-500);
  color: var(--navy-900);
}

.btn-lg {
  padding: 14px 30px;
  font-size: 1.05rem;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy-800);
}

/* Hero Section */
.hero-section {
  padding-top: 64px;
  padding-bottom: 96px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 1) 100%);
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 195, 0, 0.18) 0%, rgba(0, 53, 102, 0.05) 60%, transparent 80%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 940px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-900);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title span.highlight {
  color: var(--navy-800);
  position: relative;
  display: inline-block;
}

.hero-title span.highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 100%;
  height: 12px;
  background-color: rgba(255, 195, 0, 0.4);
  z-index: -1;
  border-radius: 4px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--slate-200);
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-700);
}

.hero-badge-item svg {
  color: var(--emerald-500);
}

/* Hero Mockup Preview */
.hero-mockup-wrapper {
  margin-top: 60px;
  position: relative;
  border-radius: var(--radius-xl);
  padding: 12px;
  background: linear-gradient(135deg, rgba(0, 53, 102, 0.2), rgba(255, 195, 0, 0.3));
  box-shadow: var(--shadow-xl);
}

.hero-mockup {
  background-color: var(--navy-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  color: white;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

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

.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
}

.mockup-dot.red { background-color: #ef4444; }
.mockup-dot.yellow { background-color: #f59e0b; }
.mockup-dot.green { background-color: #10b981; }

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mockup-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 18px;
}

.mockup-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.mockup-meta {
  font-size: 0.82rem;
  color: var(--slate-300);
}

/* 6 Apps Interactive Tabs */
.apps-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--slate-100);
  padding: 6px;
  border-radius: var(--radius-lg);
  max-width: 900px;
  margin: 0 auto 40px auto;
  flex-wrap: wrap;
}

.apps-tab-btn {
  background: none;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.apps-tab-btn:hover {
  color: var(--navy-900);
}

.apps-tab-btn.active {
  background-color: #ffffff;
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}

.apps-tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.apps-tab-pane.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-detail-card {
  background-color: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.app-detail-card h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 12px;
}

.app-detail-card p {
  color: var(--slate-600);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.app-features-list {
  list-style: none;
  margin-bottom: 28px;
}

.app-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--slate-700);
}

.app-features-list li svg {
  color: var(--gold-500);
  flex-shrink: 0;
  margin-top: 3px;
}

.app-preview-visual {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  border-radius: var(--radius-xl);
  padding: 32px;
  color: white;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Call Flows Grid */
.flows-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.flow-card {
  background-color: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.flow-card:hover {
  border-color: var(--navy-800);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.flow-card.featured {
  border-color: var(--gold-500);
  background: linear-gradient(180deg, var(--gold-50) 0%, #ffffff 100%);
  position: relative;
}

.flow-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.flow-badge-blue { background-color: #e0f2fe; color: #0369a1; }
.flow-badge-emerald { background-color: var(--emerald-100); color: var(--emerald-900); }
.flow-badge-amber { background-color: #fef3c7; color: #92400e; }
.flow-badge-gold { background-color: var(--gold-500); color: var(--navy-950); }

.flow-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.flow-card p {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.flow-steps-pill {
  background-color: var(--slate-100);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy-900);
}

/* Progressive Queue Pipeline Visualizer */
.pipeline-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  margin-top: 40px;
}

.pipeline-node {
  background-color: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
}

.pipeline-node-num {
  width: 28px;
  height: 28px;
  background-color: var(--navy-800);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.pipeline-node h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 6px;
}

.pipeline-node p {
  font-size: 0.86rem;
  color: var(--slate-600);
  line-height: 1.45;
}

/* Comparison Matrix Table */
.comparison-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  background-color: #ffffff;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.95rem;
}

.comparison-table th {
  background-color: var(--slate-100);
  font-weight: 800;
  color: var(--navy-900);
}

.comparison-table th.col-highlight {
  background-color: var(--navy-800);
  color: var(--gold-400);
}

.comparison-table td.col-highlight {
  background-color: var(--gold-50);
  font-weight: 700;
  color: var(--navy-900);
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background-color: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  transition: all 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
  border-color: var(--gold-500);
  position: relative;
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gold-500);
  color: var(--navy-900);
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 24px;
  min-height: 42px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--slate-700);
  margin-bottom: 12px;
}

.pricing-features li svg {
  color: var(--emerald-500);
  flex-shrink: 0;
}

/* FAQ Accordion */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: var(--navy-800);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  transition: transform 0.25s ease;
  font-size: 1.2rem;
}

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

.faq-answer {
  display: none;
  padding: 0 24px 20px 24px;
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* CTA Footer Box */
.cta-box {
  background: linear-gradient(135deg, var(--navy-850), var(--navy-950));
  border-radius: var(--radius-xl);
  padding: 64px 40px;
  text-align: center;
  color: white;
  border: 1px solid rgba(255, 195, 0, 0.3);
  box-shadow: var(--shadow-xl);
}

.cta-box h2 {
  font-size: 2.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-box p {
  font-size: 1.15rem;
  color: var(--slate-300);
  max-width: 640px;
  margin: 0 auto 32px auto;
}

/* Site Footer */
.site-footer {
  background-color: var(--navy-950);
  color: var(--slate-400);
  padding-top: 64px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--slate-400);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

/* Modal Popup */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalIn 0.25s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--slate-500);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(0, 53, 102, 0.1);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .flows-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Below this the menu would wrap: it folds into the toggle, with the sign-in links in it. */
@media (max-width: 960px) {
  .navbar { height: 64px; justify-content: space-between; }
  .site-header nav { flex: 0; }
  .nav-menu { display: none; }
  .nav-login { display: none; }
  .nav-actions { gap: 8px; }
  .mobile-toggle { display: block; }

  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    padding: 8px 16px 16px;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: var(--shadow-lg);
    gap: 0;
  }

  .nav-menu.mobile-open .nav-mobile-only { display: block; }

  .nav-menu.mobile-open .nav-link {
    display: block;
    padding: 14px 4px;
    font-size: 1rem;
    color: var(--navy-900);
    border-bottom: 1px solid var(--slate-100);
  }

  .nav-menu.mobile-open li:last-child .nav-link { border-bottom: 0; }
  .nav-menu.mobile-open .nav-link::after { display: none; }
  .nav-menu.mobile-open .nav-mobile-only .nav-link { color: var(--navy-700); font-weight: 600; }
}

@media (max-width: 768px) {

  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 2rem; }
  .apps-tab-pane.active { grid-template-columns: 1fr; }
  .pipeline-track { grid-template-columns: 1fr; }
  .mockup-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
