/* ========================================
   Intrix - CSS Styles
   ======================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #64748b;
    --accent: #f472b6;
    --bg: #09090b;
    --bg-secondary: #18181b;
    --bg-tertiary: #27272a;
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border: #3f3f46;
    --success: #22c55e;
    --warning: #f59e0b;
    --gradient: linear-gradient(135deg, #6366f1 0%, #f472b6 100%);
    --gradient-text: linear-gradient(135deg, #fff 0%, #a5b4fc 50%, #f472b6 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-lg: 20px;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 24px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 32px;
}

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

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

.nav-cta {
    padding: 8px 20px;
    background: var(--primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-product-img {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-product-img img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.hero-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    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(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text);
    border: 1px solid var(--border);
}

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

.btn-cta {
    background: var(--gradient);
    color: white;
    padding: 16px 32px;
    font-size: 16px;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

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

.btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
}

/* ========================================
   Sections
   ======================================== */

section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

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

.features {
    background: var(--bg-secondary);
}

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

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

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

.feature-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   Integration
   ======================================== */

.integration {
    background: var(--bg);
}

.integration-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.integration-text .tag {
    margin-bottom: 24px;
}

.integration-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.integration-text p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.integration-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.integration-list li {
    color: var(--text);
    font-size: 15px;
}

.integration-visual img {
    width: 100%;
    border-radius: var(--radius-lg);
}

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

.usecases {
    background: var(--bg-secondary);
}

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

.usecase-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
}

.usecase-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.usecase-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.usecase-card h4 {
    font-size: 16px;
    font-weight: 600;
    padding: 20px 20px 8px;
}

.usecase-card p {
    color: var(--text-secondary);
    font-size: 14px;
    padding: 0 20px 20px;
}

/* ========================================
   CTA
   ======================================== */

.cta {
    background: var(--bg);
    padding: 80px 0;
}

.cta-content {
    text-align: center;
    padding: 60px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
}

.cta-content strong {
    color: var(--primary-light);
    font-size: 24px;
}

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

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ========================================
   Product Hero
   ======================================== */

.product-hero {
    padding: 120px 0 80px;
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-product {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 16px;
}

.main-product img {
    width: 100%;
    border-radius: var(--radius);
}

.product-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.thumb {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

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

.thumb img,
.thumb .img-placeholder {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
}

.product-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.product-info h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-tagline {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 32px;
}

.product-price {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.price-early,
.price-normal {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-label {
    font-size: 12px;
    color: var(--text-muted);
}

.price-value {
    font-size: 28px;
    font-weight: 700;
}

.price-early .price-value {
    color: var(--success);
}

.price-normal .price-value {
    color: var(--text-secondary);
    font-size: 20px;
}

.strike {
    text-decoration: line-through;
}

.product-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.pf-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.pf-icon {
    color: var(--primary);
    font-size: 12px;
}

.product-actions {
    display: flex;
    gap: 16px;
}

/* ========================================
   Benefits
   ======================================== */

.benefits {
    background: var(--bg-secondary);
}

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

.benefit-main {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px;
}

.benefit-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.benefit-main .benefit-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.benefit-main .benefit-content p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.benefit-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-sm {
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
}

.benefit-img img {
    width: 100%;
    border-radius: var(--radius);
}

.benefit-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.benefit-card h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   Specs
   ======================================== */

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.spec-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-label {
    font-size: 13px;
    color: var(--text-muted);
}

.spec-value {
    font-size: 18px;
    font-weight: 600;
}

/* ========================================
   Buy Section
   ======================================== */

.buy {
    background: var(--bg-secondary);
}

.buy-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.buy-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
}

.buy-card.buy-early {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

.buy-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--primary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.buy-early .buy-badge {
    background: var(--success);
}

.buy-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
}

.buy-desc {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
}

.buy-price {
    text-align: center;
    margin-bottom: 24px;
}

.buy-price .currency {
    font-size: 20px;
    font-weight: 600;
    vertical-align: top;
}

.buy-price .amount {
    font-size: 48px;
    font-weight: 800;
}

.buy-normal .amount {
    color: var(--text-secondary);
}

.buy-features {
    margin-bottom: 32px;
}

.buy-features li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
}

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

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

.support-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--bg-secondary);
}

.support-hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
}

.support-hero p {
    color: var(--text-secondary);
    font-size: 18px;
}

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

.download-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: start;
}

.download-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.download-info {
    flex: 1;
}

.download-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.download-info p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 10px;
}

.download-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.download-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

/* ========================================
   OTA Guide
   ======================================== */

.ota-guide {
    background: var(--bg-secondary);
}

.ota-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.ota-text .tag {
    margin-bottom: 24px;
}

.ota-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.ota-text > p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
}

.ota-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ota-step {
    display: flex;
    gap: 16px;
    align-items: start;
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.ota-step h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.ota-visual img {
    width: 100%;
    border-radius: var(--radius-lg);
}

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

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

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

.faq-item summary {
    padding: 20px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 20px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ========================================
   Contact
   ======================================== */

.contact {
    background: var(--bg-secondary);
    padding: 80px 0;
}

.contact-content {
    text-align: center;
}

.contact-content h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.contact-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

/* ========================================
   Image Placeholders
   ======================================== */

.img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.img-placeholder small {
    font-size: 11px;
    color: var(--text-muted);
}

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

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .integration-content,
    .ota-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-main {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .product-info h1 {
        font-size: 28px;
    }
    
    .product-price {
        flex-direction: column;
        gap: 12px;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .buy-options {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-methods {
        flex-direction: column;
        gap: 16px;
    }
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-visual,
.feature-card,
.usecase-card,
.benefit-card,
.download-card {
    animation: fadeIn 0.6s ease-out;
}

/* ========================================
   Scrollbar
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border);
}
