/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* shadcn UI Dark Theme Colors */
    --color-primary: #00D1FF;
    --color-secondary: #0099CC;
    --color-bg: #09090b;
    --color-surface: #18181b;
    --color-card: #27272a;
    --color-text: #fafafa;
    --color-text-secondary: #a1a1aa;
    --color-border: #3f3f46;
    --color-error: #ef4444;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-muted: #52525b;
    --grid-pattern: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='%233f3f46'/%3E%3C/svg%3E");
}

html {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background: var(--color-bg);
    background-image: var(--grid-pattern);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    flex: 1;
}

/* Navigation */
.navbar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.logo {
    width: 32px;
    height: 32px;
}

.brand-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.2s;
}

.nav-brand:hover .brand-name {
    color: var(--color-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--color-primary);
    color: #000000 !important;
    font-weight: 700;
    text-shadow: none;
}

.btn-primary:hover {
    background: var(--color-secondary);
    transform: translateY(-1px);
    color: #000000 !important;
    text-shadow: none;
}

.btn-secondary {
    background: var(--color-card);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: var(--color-surface);
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

/* Ensure button text is visible */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Navigation menu button text */
.nav-menu .btn-primary,
.nav-menu a.btn-primary,
.nav-menu a.btn-primary:hover,
.nav-menu a.btn-primary:focus,
.nav-menu a.btn-primary:active,
.nav-menu a.btn-primary:visited {
    color: #000000 !important;
    text-shadow: none !important;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--color-text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.metrics-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.metric-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    transition: all 0.2s;
}

.metric-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.metric-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(0, 209, 255, 0.3);
}

.metric-label {
    font-size: 14px;
    color: var(--color-text-secondary);
}

/* Modules Section */
.modules {
    padding: 80px 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.module-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 40px;
    transition: all 0.2s;
}

.module-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(0, 209, 255, 0.1);
}

.module-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: 32px;
    transition: all 0.3s;
}

.module-card:hover .module-icon {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.module-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.module-card p {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.link-arrow {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.link-arrow:hover {
    gap: 8px;
}

/* Integration Section */
.integration {
    padding: 80px 0;
}

.code-demo {
    background: #0a0a0a;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 32px;
    margin: 0 auto 24px;
    max-width: 700px;
    overflow-x: auto;
}

.code-demo pre {
    margin: 0;
}

.code-demo code {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: #D4D4D4;
}

.code-comment { color: #6A9955; }
.code-keyword { color: #569CD6; }
.code-function { color: #DCDCAA; }
.code-decorator { color: #4EC9B0; }
.code-number { color: #B5CEA8; }

.integration-note {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* Footer */
.footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 60px 0 24px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--color-text-secondary);
    font-size: 14px;
}

.footer-col h4 {
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
}

.footer-col a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    font-size: 14px;
}

/* Form Styles */
.form-container {
    max-width: 1000px;
    margin: 80px auto;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.form-left {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.form-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--grid-pattern);
    opacity: 0.1;
}

.form-left-content {
    position: relative;
    z-index: 1;
}

.form-left h2 {
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    line-height: 1.2;
}

.form-left p {
    font-size: 18px;
    color: #000000;
    opacity: 0.8;
    margin-bottom: 32px;
    line-height: 1.6;
}

.form-left-features {
    list-style: none;
}

.form-left-features li {
    color: #000000;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
}

.form-left-features li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.form-right {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-subtitle {
    color: var(--color-text-secondary);
    margin-bottom: 32px;
    font-size: 16px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 14px;
    color: var(--color-text);
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-bg);
}

.form-input::placeholder {
    color: var(--color-muted);
}

.form-button {
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    color: #000000 !important;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.form-button:hover {
    background: var(--color-secondary);
    color: #000000 !important;
}

.form-button:disabled {
    background: var(--color-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.form-link {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.form-link a {
    color: var(--color-primary);
    text-decoration: none;
}

.form-link a:hover {
    text-decoration: underline;
}

/* Responsive form layout */
@media (max-width: 768px) {
    .form-container {
        grid-template-columns: 1fr;
        margin: 40px 24px;
    }
    
    .form-left {
        padding: 40px 24px;
        min-height: 300px;
    }
    
    .form-left h2 {
        font-size: 28px;
    }
    
    .form-left p {
        font-size: 16px;
    }
    
    .form-right {
        padding: 40px 24px;
    }
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 14px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-error);
    border: 1px solid var(--color-error);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

/* Content Pages */
.content-section {
    padding: 80px 0;
    flex: 1;
}

.content-header {
    text-align: center;
    margin-bottom: 60px;
}

.content-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.content-header p {
    font-size: 20px;
    color: var(--color-text-secondary);
}

.feature-detail {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 48px;
    margin-bottom: 32px;
}

.feature-detail h2 {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-detail h3 {
    font-size: 24px;
    margin: 32px 0 16px;
}

.feature-detail p {
    color: var(--color-text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.feature-detail ul {
    margin-left: 24px;
    margin-bottom: 16px;
}

.feature-detail li {
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        border-top: 1px solid var(--color-border);
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin-bottom: 12px;
    }
    
    .nav-menu li:last-child {
        margin-bottom: 0;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .metrics-preview,
    .modules-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
}


/* ========================================
   BUTTON TEXT COLOR OVERRIDE - CRITICAL
   ======================================== */

/* Force black text on all primary buttons */
a.btn-primary,
button.btn-primary,
.btn-primary,
a.btn-primary:link,
a.btn-primary:visited,
a.btn-primary:hover,
a.btn-primary:active,
a.btn-primary:focus {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

/* Force black text on form buttons */
.form-button,
button.form-button,
input[type="submit"].form-button {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

/* Navigation menu primary buttons */
.nav-menu a.btn-primary,
.nav-menu .btn-primary {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}
