/* ==========================================================================
   Aestus CDC Website Stylesheet
   Modern, responsive, high-performance styling matching templ views
   ========================================================================== */

:root {
  /* Brand palette from the aestus-cdc logo: deep blue to mint on charcoal */
  --brand-primary: #207891;   /* filled surfaces (buttons); white text on it */
  --brand-hover: #1a6479;
  --brand-accent: #57c7b9;    /* text, icons and outlines on charcoal */
  --brand-mint: #64d8c3;
  --brand-steel: #61a0b1;
  --brand-light: rgba(87, 199, 185, 0.12);
  --brand-border: rgba(87, 199, 185, 0.35);
  --brand-shadow: rgba(32, 120, 145, 0.35);
  --brand-gradient: linear-gradient(135deg, #61a0b1 0%, #6adcc4 100%);
  --brand-gradient-fill: linear-gradient(135deg, #207891 0%, #3193a0 100%);

  /* Semantic UI Colors */
  --color-success: #57c7b9;
  --color-success-light: rgba(87, 199, 185, 0.12);
  --color-error: #f87171;
  --color-error-light: rgba(248, 113, 113, 0.12);
  --color-warning: #fbbf24;

  /* Surfaces & Typography (charcoal) */
  --text-primary: #eef4f3;
  --text-secondary: #a9b9bb;
  --text-muted: #7d8f92;
  --bg-page: #1d2326;
  --bg-card: #232b2e;
  --bg-card-subtle: #2a3438;
  --border-color: #34413f;
  --border-focus: #57c7b9;

  /* Elevation & Shape */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);

  /* Typography Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color-scheme: dark;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.nav-container,
.hero-container,
.section-container,
.footer-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
}

.section {
  padding: 88px 0;
}

.section-dark {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.03) 0%, rgba(15, 23, 42, 0.07) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-dark {
  background: #182024;
  border-color: #2c3836;
}


/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.navbar {
  background-color: rgba(29, 35, 38, 0.92);
}


.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.brand-name strong {
  color: var(--brand-accent);
  font-weight: 800;
}

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

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

.nav-links a:hover {
  color: var(--brand-accent);
}

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

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 2px 6px var(--brand-shadow);
}

.btn-primary:hover {
  background-color: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--brand-shadow);
}

.btn-outline {
  border-color: var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.04);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.06);
}


.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 80px 0 40px;
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--brand-light);
  color: var(--brand-accent);
  border: 1px solid var(--brand-border);
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(87, 199, 185, 0.25);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title span {
  color: var(--brand-accent);
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 740px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

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

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   Terminal UI Preview
   ========================================================================== */

.preview-section {
  padding: 20px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-color);
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.control-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.preview-address-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 5px 20px;
  font-size: 12px;
  font-family: monospace;
  color: var(--text-secondary);
  max-width: 480px;
  width: 100%;
  margin: 0 16px;
  justify-content: center;
}

.preview-user-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Features Section
   ========================================================================== */

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-border);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background-color: var(--brand-light);
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 22px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Onboarding Steps / Architecture Section
   ========================================================================== */

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

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-number {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--brand-accent);
  opacity: 0.85;
  margin-bottom: 16px;
  line-height: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-desc code {
  background-color: var(--bg-page);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13.5px;
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Sources & Targets Catalog Section
   ========================================================================== */

.connectors-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.connector-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.connector-panel-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.connector-panel-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--brand-light);
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.connector-panel-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.connector-panel-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.connector-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.connector-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background-color: var(--bg-page);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.connector-item:hover {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.connector-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.connector-name-group {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.connector-name-group i {
  color: var(--brand-accent);
  font-size: 18px;
  width: 20px;
  text-align: center;
}

.connector-type-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-live {
  background-color: var(--color-success-light);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-progress {
  background-color: #fffbeb;
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-roadmap {
  background-color: var(--bg-card-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.connector-item-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.connector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.connector-tag {
  font-size: 11.5px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

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

.badge-live {
  background-color: rgba(100, 216, 195, 0.14);
  color: #64d8c3;
  border-color: rgba(100, 216, 195, 0.45);
}
.badge-progress {
  background-color: rgba(97, 160, 177, 0.16);
  color: #8cc3d2;
  border-color: rgba(97, 160, 177, 0.5);
}
.connector-item {
  background-color: var(--bg-card);
}
.connector-tag {
  background-color: var(--bg-card-subtle);
}


/* ==========================================================================
   FAQ Section
   ========================================================================== */

.section-faq {
  background-color: var(--bg-page);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.faq-item h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.faq-item p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item code {
  background-color: var(--bg-page);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  border: 1px solid var(--border-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
  padding: 72px 0 36px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 48px;
  align-items: flex-start;
}

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

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 340px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--brand-accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-simple {
  padding: 32px 0;
  margin-top: auto;
}

/* ==========================================================================
   Early-Access Modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  transition: opacity 0.2s ease;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-dialog {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-primary);
  background-color: var(--bg-page);
}

.modal-header {
  margin-bottom: 24px;
  text-align: left;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.modal-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.modal-error {
  background-color: var(--color-error-light);
  border: 1px solid #fca5a5;
  color: var(--color-error);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 20px;
  font-weight: 500;
}

.modal-error.hidden {
  display: none !important;
}

.google-auth-section {
  margin-bottom: 20px;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider span {
  padding: 0 12px;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  height: 44px;
  padding: 8px 14px;
  font-size: 14.5px;
  font-family: var(--font-sans);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(87, 199, 185, 0.15);
}

/* Subdomain Slug Input Wrapper */
.input-slug-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-page);
  overflow: hidden;
  transition: var(--transition);
}

.input-slug-wrapper:focus-within {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(87, 199, 185, 0.15);
}

.slug-prefix,
.slug-suffix {
  padding: 0 10px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: monospace;
  user-select: none;
  background-color: var(--bg-page);
  white-space: nowrap;
}

.form-control-slug {
  border: none !important;
  border-radius: 0 !important;
  background-color: var(--bg-card) !important;
  flex: 1;
  padding: 8px 10px;
  font-family: monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-accent);
}

.form-control-slug:focus {
  box-shadow: none !important;
}

.slug-feedback {
  font-size: 12.5px;
  margin-top: 6px;
  font-weight: 500;
}

/* Modal Actions */
.modal-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

.spinner.hidden {
  display: none !important;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Success Page
   ========================================================================== */

.success-container {
  max-width: 680px;
  margin: 48px auto;
  padding: 0 24px;
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  width: 100%;
}

.success-icon-badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: var(--color-success-light);
  color: var(--color-success);
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.success-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.success-steps-box {
  background-color: var(--bg-page);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
  text-align: left;
}

.success-steps-box h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.success-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.success-step-item:last-child {
  margin-bottom: 0;
}

.step-bullet {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--brand-light);
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.step-text strong {
  font-size: 14px;
  color: var(--text-primary);
  display: block;
}

.step-text p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 2px 0 0 0;
}

.session-reference {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.session-reference code {
  background-color: var(--bg-page);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.hidden {
  display: none !important;
}

.overflow-hidden {
  overflow: hidden !important;
}

.text-primary {
  color: var(--brand-accent) !important;
}

.text-success {
  color: var(--color-success) !important;
}

.text-danger {
  color: var(--color-error) !important;
}

.text-warning {
  color: var(--color-warning) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding: 56px 0 24px;
  }
  .hero-trust {
    gap: 16px;
    flex-direction: column;
    align-items: center;
  }
  .preview-section {
    padding: 10px 16px 56px;
  }
  .preview-address-bar {
    display: none;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
  .modal-dialog {
    padding: 24px 18px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Terminal UI Preview, Pipeline Diagram, Notices
   ========================================================================== */
.terminal {
  background: #161c1f;
  padding: 22px 24px;
  overflow-x: auto;
}

.terminal .term-lines {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: #cbd5e1;
  white-space: pre;
}

.term-title { color: #64d8c3; font-weight: 700; }
.term-head { color: #94a3b8; font-weight: 700; }
.term-ok { color: #57c7b9; }
.term-warn { color: #fbbf24; }
.term-muted { color: #8a94a6; }

.diagram-card {
  background: #232b2e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 12px;
  margin-bottom: 40px;
}

.diagram-card img {
  display: block;
  width: 100%;
  height: auto;
}

.steps-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

textarea.form-control {
  height: auto;
  min-height: 84px;
  resize: vertical;
  line-height: 1.5;
}

.modal-notice {
  text-align: center;
  padding: 12px 8px 4px;
}

.modal-notice i {
  font-size: 34px;
  margin-bottom: 12px;
}

.modal-notice p {
  margin: 6px 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-notice strong {
  color: var(--text-primary);
  font-size: 17px;
}

.footer-maker {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 340px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .steps-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .steps-grid-4 {
    grid-template-columns: 1fr;
  }
  .terminal .term-lines {
    font-size: 11px;
  }
}

/* ==========================================================================
   Brand Imagery
   ========================================================================== */
.brand-wordmark {
  display: block;
  height: 26px;
  width: auto;
}

.footer .brand-wordmark {
  height: 24px;
  margin-bottom: 12px;
}

.hero-banner {
  display: block;
  width: 100%;
  max-width: 820px;
  height: auto;
  margin: 0 auto 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 60px -24px rgba(32, 120, 145, 0.55), var(--shadow-lg);
}

@media (max-width: 768px) {
  .hero-banner {
    margin-bottom: 24px;
  }
}

.modal-notice a,
.faq-item a,
.footer-maker a {
  color: var(--brand-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
