/* ========================================
   OMaster - Main Stylesheet
   ======================================== */

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(212, 176, 104, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 40% 30% at 20% 80%, rgba(240, 160, 64, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 30% 20% at 90% 30%, rgba(212, 176, 104, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* Custom cursor */
.cursor {
    width: 24px; height: 24px;
    border: 1.5px solid var(--gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.cursor-dot {
    width: 4px; height: 4px;
    background: var(--gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.cursor.hovered { width: 48px; height: 48px; background: var(--gold-glow); }

/* Navigation */
.nav {
    position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px;
    transition: background 0.4s, border-color 0.4s;
}

.nav.scrolled {
    background: rgba(14, 14, 22, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.03em;
}

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

.nav-link {
    font-size: 13px; font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    transition: color 0.25s;
    text-transform: uppercase;
}

.nav-link:hover { color: var(--text); }

.nav-link.primary {
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 6px 16px;
    border-radius: 4px;
    transition: all 0.25s;
}

.nav-link.primary:hover { background: var(--gold); color: var(--bg); }

.nav-mobile-btn {
    display: none; background: none; border: none;
    cursor: pointer; padding: 8px; z-index: 101;
}

.nav-mobile-btn span {
    display: block; width: 22px; height: 1.5px;
    background: var(--text); margin: 5px 0;
    transition: 0.3s; border-radius: 1px;
}

.nav-mobile-menu {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 8, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.nav-mobile-menu.active { display: flex; }

.nav-mobile-menu a {
    font-size: 20px; font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 1px; text-transform: uppercase;
}

.nav-mobile-menu a.primary { color: var(--gold); }

/* Hero */
.hero {
    min-height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center; padding: 0 24px;
    position: relative; z-index: 1;
}

.hero-eyebrow {
    font-size: 11px; font-weight: 500; letter-spacing: 3px;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 24px; opacity: 0;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(42px, 7vw, 88px);
    font-weight: 600; line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px; opacity: 0;
    color: var(--text);
}

.hero-title em { font-style: italic; color: var(--gold); }

.hero-subtitle {
    font-size: clamp(15px, 1.8vw, 18px);
    color: var(--text-secondary); font-weight: 300;
    max-width: 540px; margin: 0 auto 40px;
    line-height: 1.7; opacity: 0;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; opacity: 0; }

.hero-cta, .hero-cta-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 4px;
    font-size: 14px; font-weight: 500;
    transition: all 0.3s; cursor: pointer;
    letter-spacing: 0.5px;
}

.hero-cta { background: var(--gold); color: var(--bg); border: none; }
.hero-cta:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 8px 30px var(--gold-glow); }

.hero-cta-outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-light); }
.hero-cta-outline:hover { border-color: var(--text-muted); color: var(--text); }

.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; margin-top: 60px; opacity: 0; }

.hero-stat { text-align: center; }

.hero-stat-number {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    color: var(--gold); font-weight: 600;
    line-height: 1.2;
}

.hero-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-top: 4px; }

.hero-scroll-indicator {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    opacity: 0;
}

.hero-scroll-indicator span {
    display: block; width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    margin: 0 auto;
}

.hero-scroll-indicator small {
    font-size: 10px; color: var(--text-muted);
    letter-spacing: 2px; text-transform: uppercase;
    margin-top: 8px; display: block;
}

/* Section */
.section { padding: 120px 24px; position: relative; z-index: 1; }

.section-label {
    font-size: 10px; font-weight: 500; letter-spacing: 3px;
    text-transform: uppercase; color: var(--gold);
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 600; line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 16px; color: var(--text);
}

.section-desc { font-size: 16px; color: var(--text-secondary); max-width: 480px; font-weight: 300; line-height: 1.8; }
.section-header { text-align: center; margin-bottom: 72px; }
.section-header .section-desc { margin: 0 auto; }

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    border: 1px solid var(--border);
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 1080px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    padding: 48px 36px;
    position: relative;
    transition: background 0.4s;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--gold-glow), transparent 70%);
    opacity: 0; transition: opacity 0.5s;
}

.feature-card:hover { background: var(--bg-elevated); }
.feature-card:hover::before { opacity: 1; }

.feature-icon-box {
    width: 44px; height: 44px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 24px;
    position: relative; z-index: 1;
    background: rgba(255,255,255,0.06);
}

.feature-title { font-size: 17px; font-weight: 600; margin-bottom: 10px; position: relative; z-index: 1; color: var(--text); }
.feature-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; position: relative; z-index: 1; }

/* Params */
.params-showcase {
    max-width: 800px; margin: 80px auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.param-value {
    font-family: var(--font-display);
    font-size: 28px; color: var(--gold);
    font-weight: 600; margin-bottom: 4px;
}

.param-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; }

/* Brands */
.brands-row { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; max-width: 700px; margin: 0 auto; }
.brand-block { text-align: center; }

.brand-name {
    font-family: var(--font-display);
    font-size: 32px; font-weight: 600;
    color: var(--text); margin-bottom: 4px;
}

.brand-os { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; }

/* Editor */
.editor-section { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.editor-inner {
    max-width: 960px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 48px;
}

.editor-badge {
    display: inline-block; padding: 3px 10px;
    border: 1px solid var(--gold);
    color: var(--gold); font-size: 10px;
    font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; border-radius: 2px;
    margin-bottom: 16px;
}

.editor-title {
    font-family: var(--font-display);
    font-size: 36px; font-weight: 600;
    color: var(--text); margin-bottom: 12px;
}

.editor-desc { font-size: 14px; color: var(--text-secondary); max-width: 360px; line-height: 1.8; margin-bottom: 24px; }

.editor-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; background: var(--gold);
    color: var(--bg); font-size: 13px; font-weight: 600;
    border-radius: 4px; letter-spacing: 0.5px;
    transition: all 0.3s;
}

.editor-btn:hover { background: var(--gold-light); box-shadow: 0 6px 24px var(--gold-glow-strong); }

.editor-preview {
    background: var(--bg-elevated);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px 28px;
    font-family: 'SF Mono', 'JetBrains Mono', 'Cascadia Code', monospace;
    font-size: 12px; line-height: 2.2;
    flex-shrink: 0;
    color: var(--text-secondary);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.editor-preview .key { color: var(--gold); }
.editor-preview .str { color: #7AA874; }
.editor-preview .comment { color: var(--text-muted); }

/* Testimonials */
.testimonial-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden; max-width: 1000px; margin: 0 auto;
}

.testimonial-card { background: var(--bg-card); padding: 36px; position: relative; }

.testimonial-card::before {
    content: '\201C'; position: absolute; top: 20px; left: 28px;
    font-family: var(--font-display); font-size: 64px;
    color: var(--gold); opacity: 0.15; line-height: 1;
}

.testimonial-text { font-size: 14px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }

.testimonial-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; flex-shrink: 0;
    border: 1px solid var(--border-light);
}

.testimonial-name { font-size: 13px; font-weight: 600; color: var(--text); }
.testimonial-role { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* CTA */
.cta-section { text-align: center; }
.cta-section .section-title { margin-bottom: 8px; }
.cta-section .section-desc { margin: 0 auto 40px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 24px; position: relative; z-index: 1; }

.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px;
}

.footer-left { font-size: 12px; color: var(--text-muted); }
.footer-right { display: flex; gap: 24px; flex-wrap: wrap; }

.footer-link { font-size: 12px; color: var(--text-secondary); transition: color 0.25s; letter-spacing: 0.3px; }
.footer-link:hover { color: var(--gold); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); }

/* Responsive */
@media (max-width: 900px) {
    .features-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .params-showcase { grid-template-columns: repeat(2, 1fr); padding: 28px; gap: 24px; }
    .editor-inner { flex-direction: column; text-align: center; }
    .editor-desc { max-width: 100%; }
    .brands-row { gap: 36px; }
}

@media (max-width: 600px) {
    .nav-links { display: none; }
    .nav-mobile-btn { display: block; }
    .hero-stats { gap: 24px; }
    .section { padding: 80px 16px; }
    .brands-row { gap: 24px; }
    .brand-name { font-size: 24px; }
}
