/* Asmar Media - Main Stylesheet */

/* CSS Custom Properties */
:root {
    --primary: #0B0B0F;
    --accent: #FF4040;
    --surface: #111216;
    --muted: #1A1C22;
    --text-primary: #F3F5F7;
    --text-secondary: #A8B0BD;
    --success: #2ECC71;
    --warning: #F1C40F;
    --error: #E74C3C;
    --radius: 12px;
    --elevation-card: 0 10px 30px rgba(0,0,0,0.35);
    --elevation-popover: 0 12px 40px rgba(0,0,0,0.45);
    
    --font-display: 'Orbitron', ui-sans-serif;
    --font-heading: 'Inter', ui-sans-serif;
    --font-body: 'Inter', ui-sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
.display {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.heading {
    font-family: var(--font-heading);
    font-weight: 700;
}

.mono {
    font-family: var(--font-mono);
    font-weight: 500;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section-large {
    padding: 6rem 0;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 11, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand:hover {
    color: var(--accent);
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a.active {
    color: var(--accent);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: 2rem;
    box-shadow: var(--elevation-card);
}

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

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: #ff5a5a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 64, 64, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid #2B2E36;
}

.btn-ghost:hover {
    background: #161821;
    border-color: var(--accent);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    background: radial-gradient(circle at center, rgba(255, 64, 64, 0.1) 0%, transparent 70%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text h1 {
    font-size: 3rem;
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text .subhead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.features-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-badge {
    padding: 0.5rem 1rem;
    background: var(--muted);
    border-radius: var(--radius);
    font-size: 0.875rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.abstract-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 49%, rgba(255, 64, 64, 0.1) 50%, transparent 51%);
    background-size: 30px 30px;
    animation: float 6s ease-in-out infinite;
    border-radius: var(--radius);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Value Props */
.value-props {
    padding: 6rem 0;
    background: var(--surface);
}

.value-props h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

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

.prop-card {
    background: var(--muted);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--elevation-card);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.prop-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--elevation-popover);
}

.prop-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

.prop-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.prop-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Brand Tiles */
.brand-tiles {
    padding: 6rem 0;
}

.brand-tiles h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

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

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

.brand-card {
    background: var(--muted);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--elevation-card);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.brand-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--elevation-popover);
}

.brand-card:hover::before {
    transform: scaleX(1);
}

.brand-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.brand-card .domain {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.brand-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Stats Band */
.stats-band {
    background: var(--surface);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-item .value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
    font-family: var(--font-display);
}

.stat-item .label {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--accent), #ff6b6b);
    color: var(--primary);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='0.1'%3E%3Cpath d='m36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.1;
}

.cta-banner > * {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-banner p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner .btn {
    background: var(--primary);
    color: var(--text-primary);
    font-weight: 600;
}

.cta-banner .btn:hover {
    background: var(--surface);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--surface);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--muted);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

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

.footer-column h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--muted);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 2rem; }

/* Responsive */
@media (max-width: 767px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 6rem 0 4rem;
        min-height: auto;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-large {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .cta-banner h2 {
        font-size: 2rem;
    }
    
    .value-props h2,
    .brand-tiles h2 {
        font-size: 2rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --text-secondary: #FFFFFF;
        --accent: #FF6B6B;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .mobile-menu-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .hero,
    .value-props,
    .brand-tiles,
    .stats-band {
        background: transparent;
    }
}
