/* ===================================
   Fonts
   =================================== */

@font-face {
    font-family: 'Mountains of Christmas';
    src: url('fonts/MountainsofChristmas-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Mountains of Christmas';
    src: url('fonts/MountainsofChristmas-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* ===================================
   CSS Variables & Reset
   =================================== */

:root {
    /* Colors */
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #4ade80;
    --text: #111827;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --bg: #ffffff;
    --bg-light: #f9fafb;
    --bg-green: #f0fdf4;

    /* Typography */
    --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;

    /* Sizing */
    --header-height: 70px;
    --container-width: 1200px;
    --radius: 12px;
    --radius-sm: 8px;
}

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

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

strong, b {
    font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   Header
   =================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 44px;
    width: auto;
}

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

.nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 12px 24px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--primary);
    background: var(--bg-light);
}

/* Spacer for fixed header */
.header-spacer {
    height: var(--header-height);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

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

.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-green) 100%);
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 640px;
    margin: 0 auto 40px;
}

.install-box {
    max-width: 500px;
    margin: 0 auto 32px;
    background: #0d1117;
    border-radius: var(--radius);
    padding: 20px 32px;
    border: 1px solid #30363d;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.install-box code {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: #7ee787;
    letter-spacing: 0.02em;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   Section Styles
   =================================== */

.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-light);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
}

/* ===================================
   How It Works
   =================================== */

.steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: box-shadow 0.3s;
}

.step:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.step-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.code-block {
    background: #0d1117;
    border-radius: var(--radius-sm);
    padding: 0;
    overflow-x: auto;
    margin-top: 16px;
    border: 1px solid #30363d;
}

.code-block pre {
    margin: 0;
    padding: 20px 24px;
    background: transparent;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: #e6edf3;
    display: block;
    white-space: pre;
}

/* Prism.js theme overrides - GitHub Dark style */
.code-block pre[class*="language-"],
pre[class*="language-"] {
    background: #0d1117 !important;
    border: 1px solid #30363d;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    padding: 20px 24px;
}

code[class*="language-"],
pre[class*="language-"] {
    color: #e6edf3 !important;
    font-family: var(--font-mono) !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #8b949e !important;
}

.token.punctuation {
    color: #e6edf3 !important;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: #79c0ff !important;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #a5d6ff !important;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #79c0ff !important;
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: #ff7b72 !important;
}

.token.function,
.token.class-name {
    color: #d2a8ff !important;
}

.token.regex,
.token.important,
.token.variable {
    color: #ffa657 !important;
}

.output-preview {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-green);
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary-light);
}

.output-preview h4 {
    color: var(--primary-dark);
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.output-preview img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===================================
   Why Choose Section
   =================================== */

.why-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.why-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.why-item .num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.why-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.why-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
    margin-bottom: 12px;
}

.why-item p:last-child {
    margin-bottom: 0;
}

.why-item ul {
    margin-top: 8px;
    margin-left: 0;
    padding-left: 0;
    list-style: none;
}

.why-item ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 15px;
    color: var(--text-light);
    padding-left: 20px;
    position: relative;
}

.why-item ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

@media (max-width: 600px) {
    .why-item {
        flex-direction: column;
        gap: 16px;
    }
}

/* ===================================
   Pricing
   =================================== */

.pricing-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.pricing-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 40px 32px;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.price .currency {
    font-size: 1.5rem;
    margin-top: 8px;
}

.price .amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.price .period {
    margin-top: 16px;
    margin-left: 4px;
    opacity: 0.9;
}

.pricing-features {
    padding: 32px;
}

.pricing-features ul {
    list-style: none;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: "";
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.pricing-actions {
    padding: 0 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-actions .btn {
    width: 100%;
}

.pricing-note {
    text-align: center;
    padding: 0 32px 32px;
    font-size: 14px;
    color: var(--text-light);
}

/* ===================================
   Use Cases
   =================================== */

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.use-case-card {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

.use-case-card.mild:hover { border-color: var(--primary); }
.use-case-card.spicy:hover { border-color: #eab308; }
.use-case-card.hot:hover { border-color: #ef4444; }

.use-case-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.use-case-header img {
    width: 48px;
    height: 48px;
}

.use-case-header h2 {
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2rem;
    font-weight: 700;
}

.use-case-tagline {
    color: var(--text-light);
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.use-case-features {
    list-style: none;
}

.use-case-features li {
    padding: 8px 0;
    color: var(--text);
    position: relative;
    padding-left: 20px;
}

.use-case-features li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* ===================================
   Documentation
   =================================== */

.docs-layout {
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

.docs-sidebar {
    width: 260px;
    background: var(--bg);
    border-right: 1px solid var(--border);
    padding: 32px 24px;
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
}

.docs-sidebar h3 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 16px;
}

.docs-sidebar ul {
    list-style: none;
}

.docs-sidebar li {
    margin-bottom: 4px;
}

.docs-sidebar a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text);
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.2s;
}

.docs-sidebar a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.docs-sidebar a.active {
    background: var(--primary);
    color: white;
}

.docs-content {
    flex: 1;
    padding: 48px;
    max-width: 900px;
    background: var(--bg-light);
}

.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.docs-content .lead {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.docs-content h2 {
    font-size: 1.75rem;
    margin-top: 48px;
    margin-bottom: 16px;
}

.docs-content h3 {
    font-size: 1.25rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.docs-content p {
    margin-bottom: 16px;
}

.docs-content ul, .docs-content ol {
    margin-bottom: 16px;
    margin-left: 24px;
}

.docs-content li {
    margin-bottom: 8px;
}

.docs-content code {
    background: rgba(34, 197, 94, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--primary-dark);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.docs-content pre {
    background: #0d1117;
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid #30363d;
}

.docs-content pre code {
    background: none;
    padding: 0;
    border: none;
    color: #e6edf3;
    font-size: 13px;
    line-height: 1.8;
    display: block;
    white-space: pre;
}

.info-box {
    background: var(--bg-green);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 24px 0;
}

.info-box p {
    margin-bottom: 8px;
}

.info-box ul {
    margin-bottom: 0;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    background: var(--bg);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.docs-table th {
    background: var(--bg-green);
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
}

.docs-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}

.docs-table tr:last-child td {
    border-bottom: none;
}

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

.footer {
    background: var(--text);
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
}

.footer h4 {
    color: var(--primary-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.footer p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.footer ul {
    list-style: none;
}

.footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}

/* ===================================
   Modal
   =================================== */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 480px;
    width: 90%;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.2s;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
}

.modal h2 {
    margin-bottom: 16px;
}

.modal p {
    color: var(--text-light);
    margin-bottom: 12px;
}

.modal-buttons {
    margin-top: 24px;
    text-align: center;
}

.modal p a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.modal p a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    margin-top: 24px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font);
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

/* Honeypot - hidden from humans */
.form-hp {
    position: absolute;
    left: -9999px;
}

.form-submit {
    margin-top: 20px;
    text-align: center;
}

.form-success {
    text-align: center;
    padding: 32px 16px;
}

.form-success h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--text-light);
}

/* ===================================
   Support Page
   =================================== */

.support-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.support-header h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.support-header p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.support-email {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 16px 32px;
    background: var(--bg-green);
    border-radius: var(--radius);
    border: 2px solid var(--primary-light);
    transition: all 0.2s;
}

.support-email:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

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

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

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-light);
    transition: transform 0.3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

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

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-light);
    line-height: 1.7;
}

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

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-answer code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 13px;
}

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

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 48px 0;
    }

    .docs-layout {
        flex-direction: column;
    }

    .docs-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .docs-content {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}
