:root {
  /* Core Colors - Orange Brand */
  --brand-primary: #e86b1c;
  --brand-primary-hover: #d25a12;
  --brand-secondary: #00d2c6;
  
  /* Light theme defaults */
  --page-bg: #faf9f7;
  --surface-bg: #ffffff;
  --surface-bg-alt: #fff2ea;
  --border-color: #e2e8f0;
  --text-primary: #212529;
  --text-muted: #6c757d;
  --text-heading: #111827;
  
  /* Feature Colors */
  --input-bg: #ffffff;
  --input-border: #ced4da;
  --focus-border: #f3a36f;
  --focus-shadow: rgba(232, 107, 28, 0.25);
  --hero-bg: #111827;
  --hero-text: #ffffff;

  /* Aliases for existing template uses (navbar/footer/features CTAs use var(--card-bg); features section uses var(--bg-light)). Added in Phase 1 per design to fix latent bugs on theme toggle. */
  --card-bg: #ffffff;
  --bg-light: #f8f9fa;
}

[data-bs-theme="dark"] {
  /* Dark theme overrides */
  --page-bg: #111827;
  --surface-bg: #1f2937;
  --surface-bg-alt: #374151;
  --border-color: #374151;
  --text-primary: #e2e8f0;
  --text-muted: #9ca3af;
  --text-heading: #ffffff;
  
  /* Feature Colors */
  --input-bg: #374151;
  --input-border: #4a5568;
  --focus-border: #f3a36f;
  --focus-shadow: rgba(232, 107, 28, 0.25);
  --hero-bg: #111827;
  --hero-text: #ffffff;

  /* Aliases for existing template uses (dark theme). */
  --card-bg: #1f2937;
  --bg-light: #0f172a;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-heading);
}

.text-teal { color: var(--brand-secondary) !important; }
.bg-blue { background-color: var(--surface-bg) !important; }
.text-blue { color: var(--text-heading); }

/* Custom Buttons */
.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease-in-out;
}
.btn-primary:hover {
  background-color: var(--brand-primary-hover);
  border-color: var(--brand-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 107, 28, 0.3);
}
.btn-outline-primary {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
}
.btn-outline-primary:hover {
  background-color: var(--brand-primary);
  color: #ffffff;
}

/* Code Blocks */
pre {
  background-color: #111827 !important; 
  color: #e2e8f0 !important;
  border-radius: 0.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
code { color: var(--brand-primary); font-weight: 600; }

/* Hero Section */
.hero-section {
  padding: 6rem 0;
  background-color: var(--hero-bg);
  color: var(--hero-text);
  border-bottom: 4px solid var(--brand-primary);
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: radial-gradient(circle at top right, rgba(232, 107, 28, 0.05) 0%, transparent 40%);
}
.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--hero-text);
}
.hero-subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Feature Cards */
.feature-card {
  background-color: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 2rem;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-color: var(--brand-primary);
}
.feature-icon {
  font-size: 2.5rem;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

/* Blueprint section */
.blueprint-card {
  background-color: var(--surface-bg);
  background-image: 
    linear-gradient(rgba(128,128,128,0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128,128,128,0.1) 1px, transparent 1px);
  background-size: 20px 20px, 20px 20px;
  color: var(--text-primary);
  border: 1px dashed var(--brand-primary);
  border-radius: 0.5rem;
  padding: 2rem;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Navbar */
.navbar-brand { font-weight: 800; letter-spacing: -0.5px; color: var(--text-heading); }
.nav-link { font-weight: 500; }

/* ========================================
   Account / Auth Pages (login, register, forgot, reset)
   Centered card forms matching WebEdify marketing branding.
   Used by templates/layout/account.html + templates/account/*.html
   ======================================== */

.account-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--page-bg);
}

.account-header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--card-bg);
}

.account-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.account-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.account-card {
    background-color: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.account-card-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.account-card-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.35rem;
}

.account-card-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.account-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.account-form label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    color: var(--text-muted);
}

.account-form input[type="email"],
.account-form input[type="password"],
.account-form input[type="text"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-form input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--focus-shadow);
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 0.25rem;
}

.btn-submit:hover:not(:disabled) {
    background-color: var(--brand-primary-hover);
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Alerts for account forms */
.account-alert {
    display: none;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.account-alert.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.25);
    color: #dc3545;
}

[data-bs-theme="dark"] .account-alert.alert-error {
    background-color: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

.account-alert.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #10b981;
}

[data-bs-theme="dark"] .account-alert.alert-success {
    background-color: rgba(52, 211, 153, 0.12);
    color: #34d399;
}

/* Links under card (back to login, etc) */
.account-links {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
}

.account-links a {
    color: var(--brand-primary);
    text-decoration: none;
}

.account-links a:hover {
    text-decoration: underline;
}

.account-links .text-muted {
    color: var(--text-muted);
}

/* Small helper text */
.account-form small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

@media (max-width: 480px) {
    .account-card {
        padding: 1.5rem 1.25rem;
    }
}

/* ========================================
   Product screenshots
   Sample-data captures of the platform, used as visual proof on
   home, /why, /features and /solutions.
   ======================================== */

.screenshot {
    margin: 0;
}

.screenshot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.screenshot figcaption {
    margin-top: 0.85rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Light/dark capture pairs — the active theme picks the matching image.
   Selectors carry the img type so they outrank `.screenshot img` above. */
.screenshot img.screenshot-dark { display: none; }
[data-bs-theme="dark"] .screenshot img.screenshot-light { display: none; }
[data-bs-theme="dark"] .screenshot img.screenshot-dark { display: block; }
