/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1.1rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 12px 16px 20px;
  flex-direction: column;
  gap: 4px;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: #eff6ff;
  color: var(--color-primary);
  text-decoration: none;
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    border: none;
    padding: 0;
    background: transparent;
    gap: 4px;
  }

  .site-nav a {
    padding: 8px 14px;
  }

  .header-cta {
    display: inline-flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

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

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}

.btn-outline:hover {
  background: #eff6ff;
  color: var(--color-primary);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* Hero home */
.hero-home {
  padding: 56px 0 64px;
  text-align: center;
}

.hero-home .logo-lg {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-size: 2.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.hero-home h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 12px;
}

.hero-home .tagline {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 20px;
}

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

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

.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.card-icon.blue { background: #dbeafe; }
.card-icon.green { background: #dcfce7; }
.card-icon.orange { background: #ffedd5; }
.card-icon.purple { background: #ede9fe; }

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.card p {
  font-size: 0.95rem;
  margin: 0;
}

/* Feature dot list */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 8px;
}

.feature-dot.blue { background: var(--color-primary); }
.feature-dot.green { background: var(--color-green); }
.feature-dot.orange { background: var(--color-orange); }

.feature-list strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 4px;
}

.feature-list span {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Flow diagram */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 4px;
  padding: 24px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.flow-step {
  padding: 10px 16px;
  background: #eff6ff;
  color: var(--color-primary);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.flow-arrow {
  color: var(--color-muted);
  font-size: 0.85rem;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  position: relative;
  padding: 0 0 32px 56px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 44px;
  bottom: 4px;
  width: 2px;
  background: var(--color-border);
}

.steps h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
}

/* Guide cards */
.guide-cards {
  display: grid;
  gap: 20px;
}

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

.guide-card {
  display: block;
  padding: 28px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.guide-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.guide-card h3 {
  color: var(--color-text);
  margin-bottom: 8px;
}

.guide-card p {
  margin: 0 0 16px;
}

.guide-card .link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--color-text);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--color-primary);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item .faq-body {
  padding: 0 20px 16px;
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Tabs (features page) */
.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.role-tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.role-tab:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.role-tab.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.role-panel {
  display: none;
}

.role-panel.is-active {
  display: block;
}

/* QR block */
.qr-block {
  text-align: center;
  padding: 32px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.qr-block img {
  width: 180px;
  height: 180px;
  margin: 0 auto 16px;
  border-radius: 12px;
}

.qr-block p {
  margin: 0;
  font-size: 0.95rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 48px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-top: 48px;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.cta-band .btn-outline {
  border-color: #fff;
  color: #fff;
}

.cta-band .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 0 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}

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

.footer-brand .brand {
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: #94a3b8;
  margin: 0;
}

.footer-col h4 {
  color: #e2e8f0;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #94a3b8;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #334155;
  font-size: 0.85rem;
  text-align: center;
  color: #64748b;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 24px;
}

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

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb span {
  margin: 0 6px;
}

/* About contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.contact-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-muted);
}

.contact-list strong {
  color: var(--color-text);
  display: inline-block;
  min-width: 80px;
}

.about-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 280px;
    align-items: start;
  }
}
