/* ── Deep Navy Blue Global Styles ── */
/* Fonts loaded via <link> in index.html for non-blocking render */
:root {
  /* ── Deep Navy Blue Theme ── */
  --bg-app: #f0f3f7;
  --bg-card: #ffffff;
  --bg-sidebar: #0c1f36;
  
  --text-primary: #1a2b42;
  --text-secondary: #5a6b80;
  --text-inverse: #f8fafc;
  
  --primary: #1e3a5f;
  --primary-hover: #16304f;
  --primary-light: #2d5a8e;
  --primary-bg: rgba(30, 58, 95, 0.08);
  --accent: #2d5a8e;
  
  --success: #0d9668;
  --warning: #d97706;
  --danger: #dc2626;
  
  --border-light: #dce3ed;
  --border-focus: rgba(30, 58, 95, 0.3);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Noto Sans TC', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(30, 58, 95, 0.06);
  --shadow-md: 0 4px 8px -1px rgba(30, 58, 95, 0.1), 0 2px 4px -2px rgba(30, 58, 95, 0.06);
  --shadow-lg: 0 12px 24px -4px rgba(30, 58, 95, 0.12), 0 4px 8px -4px rgba(30, 58, 95, 0.08);
  
  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: var(--font-sans);
    background-color: var(--bg-app);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
/* Base Elements */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.25;
}
a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--primary);
}
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}
input,
textarea,
select {
    font-family: inherit;
}
/* Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    overflow-x: hidden;
    position: relative;
}
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    overflow-y: auto;
    min-height: 0;
}
@media (max-width: 768px) {
    .main-content {
        padding: 0.75rem;
    }
}
/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(30, 58, 95, 0.15);
}
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    gap: 0.5rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    box-shadow: 0 2px 4px rgba(30, 58, 95, 0.2);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 58, 95, 0.25);
}
.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}
.btn-outline:hover {
    background-color: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}
/* Forms */
.form-group {
    margin-bottom: 1.25rem;
}
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}
.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background: white;
}
.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--border-focus);
}
/* Header */
.app-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}
/* Split View for Document Gen */
.split-view {
    display: flex;
    gap: 2rem;
    height: calc(100vh - 80px);
}
.split-sidebar {
    width: 300px;
    flex-shrink: 0;
    height: 100%;
    overflow-y: auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 1rem;
}
.split-main {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    background: #dce3ed;
    border-radius: var(--radius-lg);
    display: flex;
    justify-content: center;
    padding: 2rem;
}
.a4-paper {
    background: white;
    width: 21cm;
    min-height: 29.7cm;
    padding: 2cm;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
}
/* Selection color */
::selection {
    background: rgba(30, 58, 95, 0.2);
    color: var(--text-primary);
}
/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(30, 58, 95, 0.2);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 58, 95, 0.35);
}
/* ── Mobile Responsive ── */
@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (max-width: 767px) {
    .app-header {
        padding: 0.5rem 0.75rem;
        gap: 0.25rem;
    }

    .main-content {
        padding: 0.75rem;
    }

    .card {
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    .split-view {
        flex-direction: column;
        height: auto;
    }

    .split-sidebar {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    .split-main {
        padding: 0.5rem;
    }

    .a4-paper {
        width: 100%;
        padding: 1rem;
        min-height: auto;
    }

    /* Admin tabs scroll on mobile */
    .admin-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 1rem;
    }
    .admin-tabs::-webkit-scrollbar {
        display: none;
    }
    .admin-tab {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    /* Safe area for notch phones */
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
}
@media (max-width: 480px) {
    .main-content {
        padding: 0.5rem;
    }
}
/* ══════════════════════════════════════════
   BidCenter RWD — Mobile-first overrides
   ══════════════════════════════════════════ */
/* Bid Center wrapper */
@media (max-width: 767px) {
    .bid-center-wrap {
        padding: 0.5rem !important;
    }

    /* Header: stack title and tabs vertically */
    .bid-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.5rem !important;
    }
    .bid-header h2 {
        font-size: 1.1rem !important;
    }
    .bid-header p {
        font-size: 0.65rem !important;
        line-height: 1.3 !important;
    }

    /* Tab toggle: horizontal scroll */
    .bid-tabs {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        width: 100% !important;
    }
    .bid-tabs button {
        flex-shrink: 0 !important;
        font-size: 0.7rem !important;
        padding: 0.35rem 0.6rem !important;
    }

    /* Stats cards */
    .bid-stats-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.35rem !important;
    }
    .bid-stats-grid > div {
        padding: 0.4rem !important;
    }
    .bid-stats-grid > div > div:first-child {
        width: 24px !important;
        height: 24px !important;
    }

    /* Search bar */
    .bid-search-row {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .bid-search-row button {
        width: 100% !important;
        padding: 0.6rem !important;
    }
    .bid-search-row input {
        font-size: 0.85rem !important;
    }

    /* Filter grid */
    .bid-filter-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
    }

    /* Hot keywords */
    .bid-hot-keywords {
        gap: 0.3rem !important;
    }
    .bid-hot-keywords button {
        font-size: 0.65rem !important;
        padding: 0.15rem 0.5rem !important;
    }

    /* Table → Card layout on mobile */
    .bid-table-wrap {
        overflow-x: visible !important;
    }
    .bid-table {
        display: block !important;
    }
    .bid-table thead {
        display: none !important;
    }
    .bid-table tbody {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    .bid-table tbody tr {
        display: flex !important;
        flex-direction: column !important;
        background: #fff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        padding: 0.75rem !important;
        gap: 0.3rem !important;
        box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
    }
    .bid-table tbody tr:hover {
        border-color: #6366f1 !important;
    }
    .bid-table tbody td {
        padding: 0.15rem 0 !important;
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.3rem !important;
    }
    /* Add labels before cells on mobile */
    .bid-table tbody td::before {
        font-size: 0.6rem;
        font-weight: 700;
        color: #94a3b8;
        min-width: 48px;
        flex-shrink: 0;
    }
    .bid-table tbody td.td-agency::before { content: "機關"; }
    .bid-table tbody td.td-title::before { content: "標案"; }
    .bid-table tbody td.td-status::before { content: "狀態"; }
    .bid-table tbody td.td-budget::before { content: "預算"; }
    .bid-table tbody td.td-award::before { content: "決標"; }
    .bid-table tbody td.td-discount::before { content: "折數"; }
    .bid-table tbody td.td-date::before { content: "日期"; }
    .bid-table tbody td.td-track::before { content: ""; min-width: 0px; }

    /* Money cells on mobile: inline */
    .bid-table tbody td.td-budget,
    .bid-table tbody td.td-award,
    .bid-table tbody td.td-discount {
        display: inline-flex !important;
        font-size: 0.78rem !important;
    }
    /* Group money in a row */
    .bid-money-row {
        display: flex !important;
        gap: 0.5rem !important;
        flex-wrap: wrap !important;
        align-items: center !important;
    }

    /* Pagination */
    .bid-pagination {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: center !important;
    }
    .bid-pagination button {
        font-size: 0.75rem !important;
        padding: 0.35rem 0.7rem !important;
    }

    /* Detail slideover */
    .bid-detail-slideover {
        width: 100vw !important;
        max-width: 100vw !important;
        right: 0 !important;
    }

    /* Entity history slideover */
    .entity-slideover-panel {
        width: 100vw !important;
        max-width: 100vw !important;
    }

    /* District dropdown */
    .district-dropdown {
        width: calc(100vw - 2rem) !important;
        left: -1rem !important;
    }

    /* City/district filter: horizontal scroll on mobile */
    .bid-city-filter {
        gap: 0.4rem !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.3rem !important;
    }
    .bid-city-filter::-webkit-scrollbar {
        display: none;
    }

    /* Info bar */
    .bid-info-bar {
        flex-direction: column !important;
        gap: 0.25rem !important;
    }
}
/* Tablet tweaks */
@media (min-width: 768px) and (max-width: 1023px) {
    .bid-center-wrap {
        padding: 1rem !important;
    }
    .bid-header {
        flex-wrap: wrap !important;
    }
    .bid-filter-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .bid-detail-slideover {
        width: 60vw !important;
    }
    .entity-slideover-panel {
        width: 55vw !important;
    }
}
/* Spin animation used by Loader2 */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spin {
    animation: spin 1s linear infinite;
}/* ================================
   Rich Text Editor (TipTap) Styles
   ================================ */

.rte-container {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: white;
}

/* Toolbar */
.rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    padding: 0.4rem 0.6rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 5;
}

.rte-toolbar-select {
    height: 30px;
    padding: 0 0.4rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-primary);
    background: white;
    cursor: pointer;
    outline: none;
    max-width: 120px;
}

.rte-toolbar-select--narrow {
    max-width: 70px;
}

.rte-toolbar-select:focus {
    border-color: var(--primary);
}

.rte-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.rte-toolbar-btn:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.rte-toolbar-btn--active {
    background: var(--primary);
    color: white;
}

.rte-toolbar-btn--active:hover {
    background: var(--primary-hover);
    color: white;
}

.rte-toolbar-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.rte-toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border-light);
    margin: 0 4px;
}

/* Editor Content Area */
.rte-content {
    min-height: 120px;
}

.rte-content .tiptap {
    padding: 1rem 1.2rem;
    outline: none;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary);
    min-height: 120px;
}

.rte-content .tiptap:focus {
    background: #fefffe;
}

.rte-content .tiptap p {
    margin: 0 0 0.5em 0;
}

.rte-content .tiptap h1,
.rte-content .tiptap h2,
.rte-content .tiptap h3 {
    margin: 1em 0 0.5em 0;
    line-height: 1.3;
}

.rte-content .tiptap h1 {
    font-size: 1.5rem;
}

.rte-content .tiptap h2 {
    font-size: 1.25rem;
}

.rte-content .tiptap h3 {
    font-size: 1.1rem;
}

.rte-content .tiptap ul,
.rte-content .tiptap ol {
    padding-left: 1.5rem;
    margin: 0.5em 0;
}

.rte-content .tiptap li {
    margin: 0.25em 0;
}

.rte-content .tiptap blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin: 1em 0;
    color: var(--text-secondary);
    font-style: italic;
}

.rte-content .tiptap hr {
    border: none;
    border-top: 2px solid var(--border-light);
    margin: 1.5em 0;
}

/* Table Styles */
.rte-content .tiptap table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
    table-layout: fixed;
    overflow: hidden;
}

.rte-content .tiptap td,
.rte-content .tiptap th {
    border: 1px solid #cbd5e1;
    padding: 0.5rem 0.75rem;
    vertical-align: top;
    min-width: 80px;
    position: relative;
}

.rte-content .tiptap th {
    background: #f1f5f9;
    font-weight: 600;
    text-align: left;
}

.rte-content .tiptap td.selectedCell,
.rte-content .tiptap th.selectedCell {
    background: #dbeafe;
}

.rte-content .tiptap .tableWrapper {
    overflow-x: auto;
    margin: 1em 0;
}

/* Image */
.rte-content .tiptap img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 0.5em 0;
}

.rte-content .tiptap img.ProseMirror-selectednode {
    outline: 2px solid var(--primary);
}

/* Mark highlight */
.rte-content .tiptap mark {
    border-radius: 2px;
    padding: 0 2px;
}

/* Placeholder */
.rte-content .tiptap p.is-editor-empty:first-child::before {
    content: attr(data-placeholder);
    float: left;
    color: #94a3b8;
    pointer-events: none;
    height: 0;
    font-style: italic;
}/* ================================
   Admin Panel Styles
   ================================ */

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0;
}

.admin-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 2rem;
}

.admin-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-tab:hover {
    color: var(--primary);
}

.admin-tab--active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* Knowledge Base */
.kb-upload-zone {
    border: 2px dashed var(--border-light);
    background: #f8fafc;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.kb-upload-zone:hover,
.kb-upload-zone--active {
    border-color: var(--primary);
    background: #eff6ff;
}

.kb-entry-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    background: white;
    transition: box-shadow var(--transition-fast);
}

.kb-entry-card:hover {
    box-shadow: var(--shadow-md);
}

.kb-tag {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #eff6ff;
    color: var(--primary);
    margin: 0.15rem;
}

.kb-tag--green {
    background: #f0fdf4;
    color: #16a34a;
}

.kb-tag--purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.kb-tag--orange {
    background: #fff7ed;
    color: #ea580c;
}

.kb-tag--blue {
    background: #eff6ff;
    color: #2563eb;
}

/* Knowledge Base Edit Modal */
.kb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.15s ease;
}

.kb-modal {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.2s ease;
}

.kb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.kb-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 4px;
    border-radius: 4px;
    transition: background 0.15s;
}

.kb-modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.kb-modal-body {
    padding: 1.5rem;
}

.kb-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
}

.kb-form-group {
    margin-bottom: 1rem;
}

.kb-form-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Rule Editor */
.rule-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    background: white;
    margin-bottom: 1rem;
}

.rule-card--override {
    border-color: #fbbf24;
    background: #fffbeb;
}

.rule-confidence {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.rule-confidence--high {
    color: #16a34a;
}

.rule-confidence--mid {
    color: #f59e0b;
}

.rule-confidence--low {
    color: #ef4444;
}

/* Test Panel */
.test-result-card {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
}

.test-score {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
}

.test-score--pass {
    color: #16a34a;
}

.test-score--fail {
    color: #ef4444;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.admin-badge--processing {
    background: #fef3c7;
    color: #92400e;
}

.admin-badge--ready {
    background: #d1fae5;
    color: #065f46;
}

.admin-badge--error {
    background: #fecaca;
    color: #991b1b;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
    transition: width 0.3s;
}/* ══════════════════════════════════════════════════════════════
   SEO Public Pages — bidding.tw
   Premium styles for About, FAQ, Features, Pricing pages
   ══════════════════════════════════════════════════════════════ */

/* ── Design Tokens (scoped to SEO pages) ── */
.seo-page {
  --seo-primary: #6366f1;
  --seo-primary-hover: #4f46e5;
  --seo-primary-light: #818cf8;
  --seo-accent: #22d3ee;
  --seo-accent-hover: #06b6d4;
  --seo-dark: #0f172a;
  --seo-dark-mid: #1e293b;
  --seo-dark-light: #334155;
  --seo-navy: #1e3a5f;
  --seo-light: #f8fafc;
  --seo-gray-50: #f9fafb;
  --seo-gray-100: #f3f4f6;
  --seo-gray-200: #e5e7eb;
  --seo-gray-300: #d1d5db;
  --seo-gray-400: #9ca3af;
  --seo-gray-500: #6b7280;
  --seo-gray-600: #4b5563;
  --seo-gray-700: #374151;
  --seo-gray-800: #1f2937;
  --seo-text: #1a2b42;
  --seo-text-muted: #64748b;
  --seo-success: #10b981;
  --seo-warning: #f59e0b;
  --seo-danger: #ef4444;
  --seo-radius: 0.75rem;
  --seo-radius-lg: 1rem;
  --seo-radius-xl: 1.25rem;
  --seo-radius-full: 9999px;
  --seo-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --seo-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --seo-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06);
  --seo-shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.16), 0 8px 16px rgba(15, 23, 42, 0.08);
  --seo-shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --seo-transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --seo-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --seo-transition-spring: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --seo-max-width: 1100px;
  --seo-max-width-wide: 1280px;
}


/* ── Keyframe Animations ── */
@keyframes seoFadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes seoFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes seoSlideInLeft {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes seoSlideInRight {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes seoPulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.2); }
  50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.35); }
}

@keyframes seoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes seoCountUp {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes seoShimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}


/* ══════════════════════════════════════════
   Page Wrapper
   ══════════════════════════════════════════ */
.seo-page {
  min-height: 100vh;
  background: #ffffff;
  color: var(--seo-text);
  font-family: 'Inter', 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.seo-page *,
.seo-page *::before,
.seo-page *::after {
  box-sizing: border-box;
}

/* Reset app-level constraints so SEO pages are full-width */
.seo-page .main-content {
  max-width: none;
  padding: 0;
  margin: 0;
  overflow-y: visible;
}


/* ══════════════════════════════════════════
   Navigation
   ══════════════════════════════════════════ */
.seo-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background var(--seo-transition), box-shadow var(--seo-transition);
}

.seo-nav.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.seo-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.seo-nav-brand img {
  height: 32px;
  width: auto;
}

.seo-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--seo-radius);
  transition: color var(--seo-transition-fast), background var(--seo-transition-fast);
  cursor: pointer;
}

.seo-nav-links a:hover,
.seo-nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.seo-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--seo-primary), var(--seo-primary-hover));
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--seo-radius-full);
  text-decoration: none;
  transition: all var(--seo-transition-fast);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
  cursor: pointer;
  border: none;
}

.seo-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, var(--seo-primary-light), var(--seo-primary));
}

/* Mobile nav toggle */
.seo-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  padding: 0.5rem;
  cursor: pointer;
}


/* ══════════════════════════════════════════
   Hero Section
   ══════════════════════════════════════════ */
.seo-hero {
  position: relative;
  background: linear-gradient(165deg, var(--seo-dark) 0%, var(--seo-navy) 55%, #264a73 100%);
  color: #ffffff;
  text-align: center;
  padding: 5rem 2rem 4.5rem;
  overflow: hidden;
}

/* Decorative background pattern */
.seo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 350px at 80% 30%, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle grid pattern overlay */
.seo-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.seo-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--seo-max-width);
  margin: 0 auto;
  animation: seoFadeInUp 0.8s ease-out;
}

.seo-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--seo-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--seo-primary-light);
  letter-spacing: 0.02em;
}

.seo-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
}

.seo-hero h1 .highlight {
  background: linear-gradient(135deg, var(--seo-accent), var(--seo-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.seo-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.7);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.seo-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero variant — compact (for inner pages) */
.seo-hero.compact {
  padding: 3.5rem 2rem 3rem;
}

.seo-hero.compact h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}


/* ══════════════════════════════════════════
   Content Area
   ══════════════════════════════════════════ */
.seo-content {
  background: #ffffff;
  max-width: var(--seo-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.seo-content.wide {
  max-width: var(--seo-max-width-wide);
}

.seo-content.full-bleed {
  max-width: none;
  padding: 0;
}


/* ══════════════════════════════════════════
   Section
   ══════════════════════════════════════════ */
.seo-section {
  padding: 4rem 0;
}

.seo-section.compact {
  padding: 2.5rem 0;
}

.seo-section.spacious {
  padding: 5.5rem 0;
}

.seo-section-alt {
  padding: 4rem 2rem;
  background: var(--seo-gray-50);
  border-top: 1px solid var(--seo-gray-200);
  border-bottom: 1px solid var(--seo-gray-200);
}

.seo-section-dark {
  padding: 4rem 2rem;
  background: var(--seo-dark);
  color: #ffffff;
}

.seo-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.seo-section-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--seo-text);
  letter-spacing: -0.02em;
}

.seo-section-dark .seo-section-header h2 {
  color: #ffffff;
}

.seo-section-header p {
  font-size: 1.05rem;
  color: var(--seo-text-muted);
  line-height: 1.7;
}

.seo-section-dark .seo-section-header p {
  color: rgba(255, 255, 255, 0.65);
}

.seo-section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--seo-primary);
  margin-bottom: 0.75rem;
}


/* ══════════════════════════════════════════
   Responsive Grid
   ══════════════════════════════════════════ */
.seo-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.seo-grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.seo-grid-4 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .seo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .seo-grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .seo-grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

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


/* ══════════════════════════════════════════
   Cards
   ══════════════════════════════════════════ */
.seo-card {
  background: #ffffff;
  border: 1px solid var(--seo-gray-200);
  border-radius: var(--seo-radius-lg);
  padding: 2rem;
  transition:
    transform var(--seo-transition),
    box-shadow var(--seo-transition),
    border-color var(--seo-transition);
  position: relative;
  overflow: hidden;
}

.seo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--seo-shadow-lg);
  border-color: rgba(99, 102, 241, 0.2);
}

.seo-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--seo-radius);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(34, 211, 238, 0.08));
  color: var(--seo-primary);
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  transition: transform var(--seo-transition-spring);
}

.seo-card:hover .seo-card-icon {
  transform: scale(1.1) rotate(-3deg);
}

.seo-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--seo-text);
}

.seo-card p {
  font-size: 0.925rem;
  color: var(--seo-text-muted);
  line-height: 1.7;
}

/* Card with top accent border */
.seo-card.accent-top {
  border-top: 3px solid var(--seo-primary);
}

/* Card on dark bg */
.seo-card.dark {
  background: var(--seo-dark-mid);
  border-color: rgba(255, 255, 255, 0.06);
}

.seo-card.dark:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.seo-card.dark h3 { color: #ffffff; }
.seo-card.dark p { color: rgba(255, 255, 255, 0.6); }


/* ══════════════════════════════════════════
   Stat Block
   ══════════════════════════════════════════ */
.seo-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: var(--seo-max-width);
  margin: 0 auto;
}

.seo-stat {
  text-align: center;
  padding: 2rem 1rem;
  animation: seoCountUp 0.6s ease-out both;
}

.seo-stat-number {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--seo-primary-light), var(--seo-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.seo-stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

/* Stats on white bg */
.seo-stat.on-light .seo-stat-label {
  color: var(--seo-text-muted);
}

@media (min-width: 768px) {
  .seo-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* ══════════════════════════════════════════
   CTA Section
   ══════════════════════════════════════════ */
.seo-cta {
  position: relative;
  background: linear-gradient(165deg, var(--seo-dark) 0%, var(--seo-navy) 60%, #264a73 100%);
  color: #ffffff;
  text-align: center;
  padding: 5rem 2rem;
  overflow: hidden;
}

.seo-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 300px at 30% 80%, rgba(99, 102, 241, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 400px 250px at 75% 20%, rgba(34, 211, 238, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.seo-cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.seo-cta h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.seo-cta p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.seo-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}


/* ══════════════════════════════════════════
   Buttons
   ══════════════════════════════════════════ */
.seo-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--seo-primary), var(--seo-primary-hover));
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--seo-radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--seo-transition);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  white-space: nowrap;
}

.seo-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, var(--seo-primary-light), var(--seo-primary));
}

.seo-cta-btn:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.seo-cta-btn:focus-visible {
  outline: 2px solid var(--seo-accent);
  outline-offset: 3px;
}

/* Large variant */
.seo-cta-btn.lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Small variant */
.seo-cta-btn.sm {
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

/* Accent colored */
.seo-cta-btn.accent {
  background: linear-gradient(135deg, var(--seo-accent), var(--seo-accent-hover));
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.3);
}

.seo-cta-btn.accent:hover {
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.4);
}

/* Outline button */
.seo-cta-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--seo-radius-full);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--seo-transition);
  white-space: nowrap;
}

.seo-cta-btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.seo-cta-btn-outline:active {
  transform: translateY(0);
}

.seo-cta-btn-outline:focus-visible {
  outline: 2px solid var(--seo-accent);
  outline-offset: 3px;
}

/* Outline on white bg */
.seo-cta-btn-outline.on-light {
  color: var(--seo-primary);
  border-color: var(--seo-primary);
}

.seo-cta-btn-outline.on-light:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: var(--seo-primary-hover);
}


/* ══════════════════════════════════════════
   FAQ Accordion
   ══════════════════════════════════════════ */
.seo-faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seo-faq-item {
  background: #ffffff;
  border: 1px solid var(--seo-gray-200);
  border-radius: var(--seo-radius-lg);
  overflow: hidden;
  transition: border-color var(--seo-transition), box-shadow var(--seo-transition);
}

.seo-faq-item:hover {
  border-color: rgba(99, 102, 241, 0.2);
}

.seo-faq-item.open {
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: var(--seo-shadow-md);
}

.seo-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--seo-text);
  text-align: left;
  cursor: pointer;
  transition: color var(--seo-transition-fast);
  font-family: inherit;
  line-height: 1.5;
}

.seo-faq-question:hover {
  color: var(--seo-primary);
}

.seo-faq-question:focus-visible {
  outline: 2px solid var(--seo-primary);
  outline-offset: -2px;
  border-radius: var(--seo-radius-lg);
}

.seo-faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--seo-gray-400);
  transition: transform var(--seo-transition), color var(--seo-transition-fast);
}

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

.seo-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.seo-faq-item.open .seo-faq-answer {
  max-height: 500px;
}

.seo-faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--seo-text-muted);
  line-height: 1.8;
}

.seo-faq-answer-inner a {
  color: var(--seo-primary);
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--seo-transition-fast);
}

.seo-faq-answer-inner a:hover {
  text-decoration-color: var(--seo-primary);
}


/* ══════════════════════════════════════════
   Pricing Cards
   ══════════════════════════════════════════ */
.seo-pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}

@media (min-width: 768px) {
  .seo-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.seo-pricing-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--seo-gray-200);
  border-radius: var(--seo-radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  transition:
    transform var(--seo-transition),
    box-shadow var(--seo-transition),
    border-color var(--seo-transition);
  display: flex;
  flex-direction: column;
}

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

/* Featured / recommended tier */
.seo-pricing-card.featured {
  border: 2px solid var(--seo-primary);
  box-shadow: var(--seo-shadow-lg), var(--seo-shadow-glow);
  transform: scale(1.03);
  z-index: 2;
}

.seo-pricing-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: var(--seo-shadow-xl), var(--seo-shadow-glow);
}

.seo-pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 1.25rem;
  background: linear-gradient(135deg, var(--seo-primary), var(--seo-primary-hover));
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--seo-radius-full);
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.seo-pricing-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--seo-text);
  margin-bottom: 0.5rem;
}

.seo-pricing-desc {
  font-size: 0.875rem;
  color: var(--seo-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.seo-pricing-price {
  margin-bottom: 0.25rem;
}

.seo-pricing-amount {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--seo-text);
  letter-spacing: -0.03em;
}

.seo-pricing-currency {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--seo-text-muted);
  margin-right: 0.125rem;
}

.seo-pricing-period {
  font-size: 0.875rem;
  color: var(--seo-text-muted);
  margin-bottom: 2rem;
}

.seo-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  text-align: left;
  flex: 1;
}

.seo-pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--seo-text-muted);
  line-height: 1.5;
}

.seo-pricing-features li::before {
  content: '✓';
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--seo-success);
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 50%;
}

.seo-pricing-features li.disabled {
  color: var(--seo-gray-400);
  text-decoration: line-through;
}

.seo-pricing-features li.disabled::before {
  content: '✕';
  background: rgba(156, 163, 175, 0.1);
  color: var(--seo-gray-400);
}

.seo-pricing-card .seo-cta-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.seo-pricing-card .seo-cta-btn-outline {
  width: 100%;
  justify-content: center;
  margin-top: auto;
  color: var(--seo-primary);
  border-color: var(--seo-primary);
}

.seo-pricing-card .seo-cta-btn-outline:hover {
  background: rgba(99, 102, 241, 0.06);
}


/* ══════════════════════════════════════════
   Feature Showcase (alternating layout)
   ══════════════════════════════════════════ */
.seo-feature-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3rem 0;
}

.seo-feature-row:nth-child(even) {
  flex-direction: row-reverse;
}

.seo-feature-text {
  flex: 1;
}

.seo-feature-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--seo-text);
}

.seo-feature-text p {
  font-size: 1rem;
  color: var(--seo-text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.seo-feature-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seo-feature-visual img {
  max-width: 100%;
  height: auto;
  border-radius: var(--seo-radius-lg);
  box-shadow: var(--seo-shadow-lg);
}

@media (max-width: 767px) {
  .seo-feature-row,
  .seo-feature-row:nth-child(even) {
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 0;
  }
}


/* ══════════════════════════════════════════
   Testimonial / Quote Card
   ══════════════════════════════════════════ */
.seo-testimonial {
  background: var(--seo-gray-50);
  border: 1px solid var(--seo-gray-200);
  border-radius: var(--seo-radius-lg);
  padding: 2rem;
  position: relative;
}

.seo-testimonial::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(99, 102, 241, 0.15);
  font-family: Georgia, serif;
  font-weight: 700;
}

.seo-testimonial blockquote {
  font-size: 1rem;
  color: var(--seo-text);
  font-style: italic;
  line-height: 1.8;
  margin: 0 0 1.25rem;
  padding-left: 0;
  border: none;
}

.seo-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.seo-testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--seo-primary), var(--seo-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
}

.seo-testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--seo-text);
}

.seo-testimonial-role {
  font-size: 0.8rem;
  color: var(--seo-text-muted);
}


/* ══════════════════════════════════════════
   Step / Process
   ══════════════════════════════════════════ */
.seo-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  counter-reset: step;
}

.seo-step {
  display: flex;
  gap: 1.25rem;
  counter-increment: step;
}

.seo-step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--seo-primary), var(--seo-primary-hover));
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.seo-step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.375rem;
  color: var(--seo-text);
}

.seo-step-content p {
  font-size: 0.925rem;
  color: var(--seo-text-muted);
  line-height: 1.7;
}

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

  .seo-step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}


/* ══════════════════════════════════════════
   Tags / Chips
   ══════════════════════════════════════════ */
.seo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.75rem;
  background: rgba(99, 102, 241, 0.08);
  color: var(--seo-primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--seo-radius-full);
  white-space: nowrap;
}

.seo-tag.green {
  background: rgba(16, 185, 129, 0.08);
  color: var(--seo-success);
}

.seo-tag.amber {
  background: rgba(245, 158, 11, 0.08);
  color: var(--seo-warning);
}

.seo-tag.cyan {
  background: rgba(34, 211, 238, 0.08);
  color: var(--seo-accent-hover);
}


/* ══════════════════════════════════════════
   Divider
   ══════════════════════════════════════════ */
.seo-divider {
  border: none;
  border-top: 1px solid var(--seo-gray-200);
  margin: 3rem 0;
}


/* ══════════════════════════════════════════
   Footer
   ══════════════════════════════════════════ */
.seo-footer {
  background: var(--seo-dark);
  color: rgba(255, 255, 255, 0.55);
  padding: 3.5rem 2rem 2rem;
  font-size: 0.875rem;
}

.seo-footer-inner {
  max-width: var(--seo-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .seo-footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}

.seo-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.seo-footer-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.seo-footer-brand p {
  line-height: 1.7;
  max-width: 300px;
}

.seo-footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.seo-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.seo-footer-col a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--seo-transition-fast);
  cursor: pointer;
}

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

.seo-footer-bottom {
  max-width: var(--seo-max-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.seo-footer-socials {
  display: flex;
  gap: 0.75rem;
}

.seo-footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  transition: background var(--seo-transition-fast), color var(--seo-transition-fast);
}

.seo-footer-socials a:hover {
  background: rgba(99, 102, 241, 0.2);
  color: #ffffff;
}


/* ══════════════════════════════════════════
   Utility: Fade-in on scroll (JS toggles .in-view)
   ══════════════════════════════════════════ */
.seo-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.seo-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

.seo-animate.delay-1 { transition-delay: 0.1s; }
.seo-animate.delay-2 { transition-delay: 0.2s; }
.seo-animate.delay-3 { transition-delay: 0.3s; }
.seo-animate.delay-4 { transition-delay: 0.4s; }
.seo-animate.delay-5 { transition-delay: 0.5s; }

.seo-animate.slide-left {
  transform: translateX(-32px);
}
.seo-animate.slide-left.in-view {
  transform: translateX(0);
}

.seo-animate.slide-right {
  transform: translateX(32px);
}
.seo-animate.slide-right.in-view {
  transform: translateX(0);
}


/* ══════════════════════════════════════════
   Utility: Text styles
   ══════════════════════════════════════════ */
.seo-text-gradient {
  background: linear-gradient(135deg, var(--seo-primary-light), var(--seo-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.seo-text-center { text-align: center; }
.seo-text-left { text-align: left; }
.seo-text-muted { color: var(--seo-text-muted); }

.seo-prose {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--seo-text-muted);
}

.seo-prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--seo-text);
  margin: 2.5rem 0 1rem;
}

.seo-prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--seo-text);
  margin: 2rem 0 0.75rem;
}

.seo-prose p {
  margin-bottom: 1.25rem;
}

.seo-prose ul,
.seo-prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.seo-prose li {
  margin-bottom: 0.5rem;
}

.seo-prose strong {
  color: var(--seo-text);
  font-weight: 700;
}

.seo-prose a {
  color: var(--seo-primary);
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.3);
  text-underline-offset: 2px;
}

.seo-prose a:hover {
  text-decoration-color: var(--seo-primary);
}


/* ══════════════════════════════════════════
   Spacing Utilities
   ══════════════════════════════════════════ */
.seo-mb-0 { margin-bottom: 0; }
.seo-mb-1 { margin-bottom: 0.5rem; }
.seo-mb-2 { margin-bottom: 1rem; }
.seo-mb-3 { margin-bottom: 1.5rem; }
.seo-mb-4 { margin-bottom: 2rem; }
.seo-mt-0 { margin-top: 0; }
.seo-mt-2 { margin-top: 1rem; }
.seo-mt-4 { margin-top: 2rem; }
.seo-pt-0 { padding-top: 0; }


/* ══════════════════════════════════════════
   Responsive — Mobile (max 767px)
   ══════════════════════════════════════════ */
@media (max-width: 767px) {
  /* Nav */
  .seo-nav {
    padding: 0 1rem;
    height: 56px;
  }

  .seo-nav-links {
    display: none;
    position: fixed;
    inset: 56px 0 0;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    padding: 1rem;
    gap: 0.125rem;
    z-index: 99;
    animation: seoFadeIn 0.2s ease;
  }

  .seo-nav-links.open {
    display: flex;
  }

  .seo-nav-links a {
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border-radius: var(--seo-radius);
  }

  .seo-nav-toggle {
    display: flex;
  }

  /* Hero */
  .seo-hero {
    padding: 3rem 1.25rem 2.5rem;
  }

  .seo-hero.compact {
    padding: 2.5rem 1.25rem 2rem;
  }

  .seo-hero p {
    font-size: 0.95rem;
  }

  .seo-hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .seo-hero-actions .seo-cta-btn,
  .seo-hero-actions .seo-cta-btn-outline {
    width: 100%;
  }

  /* Content */
  .seo-content {
    padding: 0 1rem;
  }

  /* Section */
  .seo-section {
    padding: 2.5rem 0;
  }

  .seo-section.spacious {
    padding: 3rem 0;
  }

  .seo-section-alt,
  .seo-section-dark {
    padding: 2.5rem 1rem;
  }

  .seo-section-header {
    margin-bottom: 2rem;
  }

  /* Cards */
  .seo-card {
    padding: 1.5rem;
  }

  /* Pricing */
  .seo-pricing-card {
    padding: 2rem 1.5rem;
  }

  .seo-pricing-card.featured {
    transform: none;
  }

  .seo-pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  /* FAQ */
  .seo-faq-question {
    padding: 1rem 1.25rem;
    font-size: 0.925rem;
  }

  .seo-faq-answer-inner {
    padding: 0 1.25rem 1.25rem;
  }

  /* CTA */
  .seo-cta {
    padding: 3rem 1.25rem;
  }

  .seo-cta-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .seo-cta-actions .seo-cta-btn,
  .seo-cta-actions .seo-cta-btn-outline {
    width: 100%;
  }

  /* Footer */
  .seo-footer {
    padding: 2.5rem 1.25rem 1.5rem;
  }

  .seo-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}


/* ══════════════════════════════════════════
   Responsive — Tablet (768px – 1023px)
   ══════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1023px) {
  .seo-hero {
    padding: 4rem 2rem 3.5rem;
  }

  .seo-section {
    padding: 3.5rem 0;
  }

  .seo-pricing-card.featured {
    transform: scale(1.02);
  }
}


/* ══════════════════════════════════════════
   Accessibility
   ══════════════════════════════════════════ */

/* Global focus-visible ring for SEO page interactive elements */
.seo-page a:focus-visible,
.seo-page button:focus-visible,
.seo-page [role="button"]:focus-visible,
.seo-page input:focus-visible,
.seo-page select:focus-visible,
.seo-page textarea:focus-visible {
  outline: 2px solid var(--seo-primary);
  outline-offset: 2px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .seo-page,
  .seo-page * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .seo-animate {
    opacity: 1;
    transform: none;
  }

  .seo-card:hover,
  .seo-pricing-card:hover,
  .seo-cta-btn:hover {
    transform: none;
  }
}

/* Skip to content link (hidden until focused) */
.seo-skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.5rem;
  background: var(--seo-primary);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--seo-radius);
  text-decoration: none;
  transition: top var(--seo-transition-fast);
}

.seo-skip-link:focus {
  top: 1rem;
}


/* ══════════════════════════════════════════
   Print Styles
   ══════════════════════════════════════════ */
@media print {
  .seo-nav,
  .seo-cta,
  .seo-footer,
  .seo-cta-btn,
  .seo-cta-btn-outline {
    display: none !important;
  }

  .seo-hero {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 2rem 0 !important;
  }

  .seo-hero h1 .highlight {
    -webkit-text-fill-color: var(--seo-primary) !important;
  }

  .seo-card,
  .seo-pricing-card,
  .seo-faq-item {
    box-shadow: none !important;
    border: 1px solid #cccccc !important;
    break-inside: avoid;
  }

  .seo-page {
    font-size: 11pt;
  }
}
