/* *
 * Inertia MVP Design System
 * "Confident Restraint" - Maximum impact, minimum effort
 * Based on the 80/20 aesthetic principle */
/* ============================================
   CSS VARIABLES - REMOVED DUPLICATES
   Variables are now defined only in globals.css
   ============================================ */
/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 200;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.2em;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    letter-spacing: 0.1em;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.875rem);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--space-unit) * 8) calc(var(--space-unit) * 3);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* ============================================
   ANIMATIONS
   ============================================ */
/* Breathing Button */
@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 20px 10px rgba(0, 229, 255, 0);
        transform: scale(1.02);
    }
}

/* Emergence Animation */
@keyframes emerge {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Void Float */
@keyframes voidFloat {
    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-3px) translateX(2px);
    }

    50% {
        transform: translateY(2px) translateX(-2px);
    }

    75% {
        transform: translateY(-2px) translateX(3px);
    }
}

/* ============================================
   COMPONENTS
   ============================================ */
/* CTA Primary Button */
.cta-primary {
    background: var(--cyan);
    color: var(--void);
    border: none;
    padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 4);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    animation: pulse 2s ease-in-out infinite;
    border-radius: 100px;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    text-decoration: none;
}

.cta-primary:hover {
    animation: none;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3);
}

.cta-primary:active {
    transform: translateY(0);
}

/* CTA Secondary */
.cta-secondary {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 4);
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 100px;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
    text-decoration: none;
}

.cta-secondary:hover {
    background: rgba(0, 229, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 229, 255, 0.2);
}

/* Emergence Classes */
.emerge {
    opacity: 0;
    animation: emerge 0.8s ease-out forwards;
    animation-delay: var(--delay, 0s);
}

/* Cards */
.card {
    background: var(--steel);
    border-radius: 8px;
    padding: calc(var(--space-unit) * 4);
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;

    /* Flexbox layout for better internal spacing */
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 2);

    /* Left-align text content */
    text-align: left;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.card:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
    transform: translateX(100%);
}

/* Pre-order Badge */
.pre-order-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--void);
    padding: calc(var(--space-unit) * 0.5) calc(var(--space-unit) * 2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: voidFloat 6s ease-in-out infinite;

    /* Consistent positioning regardless of text length */
    position: absolute;
    top: 12px;
    right: 12px;
    transform: translate(25%, -25%);
    white-space: nowrap;
}

/* Form Elements */
.form-input {
    background: var(--steel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--frost);
    padding: calc(var(--space-unit) * 1.5);
    border-radius: 100px;
    font-size: 16px;
    transition: var(--transition);
    font-family: var(--font-body);
    width: 100%;
}

.form-input:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.form-input::placeholder {
    color: rgba(245, 245, 245, 0.4);
}

/* Grid System */
.grid {
    display: grid;
    gap: calc(var(--space-unit) * 3);
}

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

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

/* ============================================
   UTILITIES
   ============================================ */
/* Text Utilities */
.text-center {
    text-align: center;
    margin-bottom: 40px;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-cyan {
    color: var(--cyan);
}

.text-gold {
    color: var(--gold);
}

.text-muted {
    opacity: 0.7;
    text-align: center;
}

/* Spacing Utilities */
.mt-1 {
    margin-top: calc(var(--space-unit) * 1);
}

.mt-2 {
    margin-top: calc(var(--space-unit) * 2);
}

.mt-3 {
    margin-top: calc(var(--space-unit) * 3);
}

.mt-4 {
    margin-top: calc(var(--space-unit) * 4);
}

.mt-6 {
    margin-top: calc(var(--space-unit) * 6);
}

.mt-8 {
    margin-top: calc(var(--space-unit) * 8);
}

.mb-1 {
    margin-bottom: calc(var(--space-unit) * 1);
}

.mb-2 {
    margin-bottom: calc(var(--space-unit) * 2);
}

.mb-3 {
    margin-bottom: calc(var(--space-unit) * 3);
}

.mb-4 {
    padding-top: 30px;
    margin-bottom: 1px;
}

.mb-6 {
    margin-bottom: calc(var(--space-unit) * 6);
}

.mb-8 {
    margin-bottom: calc(var(--space-unit) * 8);
}

/* Display Utilities */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Visual Effects */
.void-gradient {
    background: linear-gradient(180deg, var(--void) 0%, var(--steel) 100%);
}

.glow-cyan {
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

.blur-bg {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: calc(var(--space-unit) * 4) calc(var(--space-unit) * 2);
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    h1 {
        letter-spacing: 0.1em;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        text-align: center;
    }

    /* Ensure badges don't get cut off on small screens */
    .pre-order-badge {
        top: 8px;
        right: 8px;
        font-size: 11px;
        padding: calc(var(--space-unit) * 0.4) calc(var(--space-unit) * 1.5);
    }
}

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

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

/* ============================================
   SPECIAL EFFECTS
   ============================================ */
/* Void Particles Background */
.void-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.1), transparent),
    radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,0.05), transparent),
    radial-gradient(1px 1px at 80% 50%, rgba(0,229,255,0.1), transparent);
    background-size: 200px 200px, 150px 150px, 100px 100px;
    animation: voidFloat 20s linear infinite;
}

/* ============================================
   PRODUCT ICON SYSTEM
   ============================================ */
/* SVG Icon Container */
.product-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.1);
    transition: var(--transition);

    /* Center the icon container itself */
    margin-left: auto;
    margin-right: auto;
}

/* Center product card headings */
.card h3 {
    text-align: center;
}

.product-icon svg {
    width: 48px;
    height: 48px;
    fill: var(--cyan);
    stroke: var(--cyan);
    transition: var(--transition);
}

.card:hover .product-icon {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    transform: scale(1.05);
}

.card:hover .product-icon svg {
    fill: var(--frost);
    stroke: var(--frost);
}

/* Ecosystem Icon Container (smaller version) */
.ecosystem-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto calc(var(--space-unit) * 1);
    border-radius: 6px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
}

.ecosystem-icon svg {
    width: 36px;
    height: 36px;
    fill: var(--cyan);
    stroke: var(--cyan);
}