/* =======================================================
*   One Absolute - Modern Redesign
* ======================================================= */

:root {
    /* Color Palette - Premium Dark Theme */
    --bg-main: #0B0F19;
    --bg-surface: #141A29;
    --bg-surface-hover: #1D243B;
    --bg-card: rgba(30, 41, 59, 0.4);
    
    --primary: #3AB7FF;
        /* Light Blue */
        --primary-hover: #219EEA;
        /* Darker variant for hover */
        --primary-light: rgba(58, 183, 255, 0.1);
    
        --accent: #37C871;
        /* Green */
        --accent-glow: rgba(55, 200, 113, 0.4);
    
    --tertiary: #FABC01;
        /* Yellow/Orange */
        --alert: #F48225;
        /* Orange/Red */
    
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* Spacing & Layout */
    --container-max: 1200px;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 8rem;

    /* Effects */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.2);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--space-2xl) 0;
    position: relative;
}

.bg-surface {
    background-color: var(--bg-surface);
}

.mt-8 { margin-top: 2rem; }
.text-center { text-align: center; }

/* =======================================================
*   Typography Utilities
* ======================================================= */
.gradient-text {
    background: linear-gradient(135deg, #3ab7ff 20%, #fabc01 50%, #f48224 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 400;
}

/* =======================================================
*   Buttons
* ======================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn.sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn.lg { padding: 1rem 2rem; font-size: 1.125rem; }

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.glow-btn {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
}
.glow-btn:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.6);
}

/* =======================================================
*   Navigation
* ======================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    transition: background var(--transition-fast), backdrop-filter var(--transition-fast);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}
.logo:hover { color: var(--text-primary); }

.logo-mark {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 6px;
    display: inline-block;
}

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

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    position: absolute;
    transition: transform var(--transition-fast);
}

.hamburger { top: 50%; transform: translateY(-50%); }
.hamburger::before { content: ''; top: -8px; }
.hamburger::after { content: ''; bottom: -8px; }

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-smooth);
        padding: 2rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .menu-toggle.active .hamburger { background: transparent; }
    .menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
    .menu-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }
}

/* =======================================================
*   Hero Section
* ======================================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px; /* Offset for nav */
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.1), transparent 25%);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero-eyebrow {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -2px;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto 3rem;
}

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

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* =======================================================
*   Section Headers
* ======================================================= */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 1.1rem;
}

/* =======================================================
*   Services Grid
* ======================================================= */
.grid {
    display: grid;
    gap: 2rem;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color-hover);
    background: rgba(30, 41, 59, 0.7);
    box-shadow: var(--shadow-subtle);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

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

.card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* =======================================================
*   Products Section
* ======================================================= */
.products-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

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

.product-showcase.reverse .product-info {
    order: 2;
}

.product-showcase.reverse .product-visual {
    order: 1;
}

@media (max-width: 900px) {
    .product-showcase, .product-showcase.reverse {
        grid-template-columns: 1fr;
    }
    .product-showcase.reverse .product-info { order: 1; }
    .product-showcase.reverse .product-visual { order: 2; }
}

.new-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: inline-block;
}

.product-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.product-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.product-features {
    margin-bottom: 2rem;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.product-features svg {
    color: var(--primary);
    width: 20px;
    height: 20px;
}

.store-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.store-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.product-visual {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(20, 26, 41, 0.8), rgba(11, 15, 25, 0.8));
    border: 1px solid var(--border-color);
    padding: 2rem;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.images-grid img {
    border-radius: 12px;
    box-shadow: var(--shadow-subtle);
    transition: transform 0.5s ease;
}

.images-grid img:hover {
    transform: scale(1.05);
}

/* Priority One Mockup Visual CSS */
.p1-visual {
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.2), transparent 60%), var(--bg-surface);
}

.mockup-header {
    width: 100%;
    height: 20px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0;
    position: relative;
}

.mockup-header::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 12px 0 0 #eab308, 24px 0 0 #22c55e;
}

.visual-mockup {
    width: 80%;
    height: auto;
    background: var(--bg-main);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.mockup-body {
    padding: 2rem;
}

.task-line {
    height: 12px;
    background: var(--bg-surface-hover);
    border-radius: 4px;
    margin-bottom: 12px;
    width: 100%;
}
.task-line.short { width: 60%; }

.ai-box {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px dashed var(--primary);
    border-radius: 8px;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* =======================================================
*   About Section
* ======================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0;
}

/* Code Window Mockup */
.code-window {
    background: #0d1117;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.code-header {
    background: #161b22;
    padding: 10px 15px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.code-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #c9d1d9;
    overflow-x: auto;
}

.code-body code {
    display: block;
}

.keyword { color: #ff7b72; }
.variable { color: #79c0ff; }
.operator { color: #c9d1d9; }
.string { color: #a5d6ff; }
.property { color: #d2a8ff; }
.method { color: #d2a8ff; }

/* =======================================================
*   Contact / CTA Section
* ======================================================= */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    z-index: 0;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 4rem);
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-actions {
    position: relative;
    z-index: 1;
}

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

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

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 500px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-description {
    margin-top: 1rem;
    max-width: 300px;
}

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

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

.footer ul a {
    color: var(--text-secondary);
}

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

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

/* =======================================================
*   Animations & Utilities
* ======================================================= */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.visible {
    opacity: 1;
}
