/* ===== CSS RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== CSS VARIABLES ===== */
:root {
    --bg-primary: #050508;
    --bg-secondary: #0a0a10;
    --bg-tertiary: #111118;
    --bg-card: rgba(15, 15, 25, 0.6);
    
    --text-primary: #e8e8f0;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    
    --accent: #00d4ff;
    --accent-dim: #0088aa;
    --accent-glow: rgba(0, 212, 255, 0.3);
    
    --gradient-1: linear-gradient(135deg, #00d4ff 0%, #0088aa 100%);
    --gradient-2: linear-gradient(180deg, rgba(0,212,255,0.1) 0%, transparent 50%);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;
    
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    
    --max-width: 1200px;
    --nav-height: 70px;
}

/* ===== BASE STYLES ===== */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== BACKGROUND EFFECTS ===== */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    min-height: 100%;
    pointer-events: none;
    z-index: -1;
    background: 
        radial-gradient(ellipse 100% 60% at 50% 0%, rgba(0, 150, 200, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 80% 40% at 20% 80%, rgba(0, 100, 150, 0.05) 0%, transparent 50%);
    will-change: transform;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(5, 5, 8, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.05em;
}

.logo-bracket {
    color: var(--accent);
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease-out);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 0.5rem 1.2rem;
    background: var(--gradient-1);
    border-radius: 4px;
    color: var(--bg-primary) !important;
    font-weight: 500 !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    opacity: 0.9;
}

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

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

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    padding-top: 2rem;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    font-weight: 500;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
}

.title-line.highlight {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.8rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-1);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary svg {
    transition: transform 0.3s var(--ease-out);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.btn-text {
    background: none;
    color: var(--accent);
    padding: 0.5rem 0;
}

.btn-text:hover {
    opacity: 0.8;
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    animation: fadeInUp 1s 1s both;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ===== SECTIONS ===== */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

/* ===== FEATURED SECTION ===== */
.featured {
    background: var(--bg-secondary);
}

.featured-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s var(--ease-out);
}

.featured-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
}

.card-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.card-date {
    color: var(--text-muted);
}

.card-tag {
    color: var(--accent);
    background: rgba(0, 212, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.card-stats span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.card-link:hover {
    opacity: 0.8;
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
    background: var(--bg-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-text p:last-of-type {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== TERMINAL VISUAL ===== */
.terminal {
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.terminal-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.terminal-title {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.terminal-body {
    padding: 1.5rem;
    line-height: 1.8;
}

.prompt {
    color: var(--accent);
    margin-right: 0.5rem;
}

.output {
    color: var(--text-secondary);
    padding-left: 1.5rem;
}

/* ===== CONNECT SECTION ===== */
.connect {
    background: var(--bg-secondary);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.social-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
}

.social-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
}

.social-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.social-icon svg {
    width: 32px;
    height: 32px;
}

.social-name {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.social-handle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
    }
    
    .about-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem 2rem 2rem;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-num {
        font-size: 1.5rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 4rem 1.5rem;
    }
    
    .hero {
        padding: calc(var(--nav-height) + 1.5rem) 1.5rem 3rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

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

/* ===== PAGE HEADER ===== */
.page-header {
    padding: calc(var(--nav-height) + 4rem) 0 2rem;
    text-align: center;
}

.page-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== ABOUT/CONTENT PAGES ===== */
.about-content,
.contact-content,
.audit-content {
    padding-bottom: 4rem;
}

.about-content .lead,
.contact-content .lead,
.audit-content .lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-content p,
.contact-content p,
.audit-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.focus-list {
    list-style: none;
    margin: 1.5rem 0;
}

.focus-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.8rem;
}

.focus-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ===== STATS SECTION ===== */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card .stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== ARTICLES GRID ===== */
.articles-grid {
    display: grid;
    gap: 1.5rem;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s var(--ease-out);
}

.article-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateX(4px);
}

.article-card.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), transparent);
}

.articles-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-methods {
    margin: 2rem 0;
}

.contact-method {
    margin-bottom: 1.5rem;
}

.contact-method h3 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.3rem;
}

.contact-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 1rem;
}

.contact-link:hover {
    text-decoration: underline;
}

.services h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.services ul {
    list-style: none;
}

.services li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.services li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ===== TOOLS GRID ===== */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
}

.tool-icon {
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.tool-card ul {
    list-style: none;
}

.tool-card li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
    font-family: var(--font-mono);
}

/* ===== METHODOLOGY ===== */
.methodology {
    margin: 4rem 0;
    padding: 2rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
}

.methodology h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.process-list {
    counter-reset: process;
    list-style: none;
}

.process-list li {
    counter-increment: process;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.process-list li::before {
    content: counter(process);
    position: absolute;
    left: 0;
    width: 2rem;
    height: 2rem;
    background: var(--accent);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.process-list strong {
    color: var(--text-primary);
}

/* ===== PRODUCTS ===== */
.products-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.products-section h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
}

.product-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ===== RESPONSIVE ADDITIONS ===== */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SELECTION ===== */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}