:root {
    --bg-color: #050505;
    --surface-color: rgba(20, 20, 25, 0.6);
    --surface-border: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-glow: rgba(255, 140, 40, 0.4);
    --accent-glow-2: rgba(255, 70, 0, 0.3);
    --primary-btn: #ffffff;
    --primary-btn-text: #050505;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

/* Abstract Background Blobs */
.blob-bg {
    position: fixed;
    top: -10vw;
    left: -10vw;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: float 20s infinite alternate;
    pointer-events: none;
}

.blob-bg-2 {
    top: auto;
    bottom: -20vw;
    left: auto;
    right: -10vw;
    background: radial-gradient(circle, var(--accent-glow-2) 0%, transparent 70%);
    animation-duration: 25s;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 5vw) scale(1.1); }
}

/* Typography */
h1, h2, h3, h4, .logo-text {
    letter-spacing: -0.02em;
    font-weight: 600;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid var(--surface-border);
    padding: 1rem 0;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo-img {
    height: 32px;
    width: auto;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

/* Layout */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem;
    position: relative;
    z-index: 2;
}

.glass-section {
    background: rgba(20, 20, 25, 0.4);
    border: 1px solid var(--surface-border);
    border-radius: 40px;
    padding: 6rem 4rem;
    margin: 4rem auto 8rem auto;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 768px) {
    .glass-section {
        border-radius: 20px;
        padding: 4rem 2rem;
        margin: 2rem auto 4rem auto;
    }
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    perspective: 1000px;
}

.pill-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.2s;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.4s;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #ff8c28 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.6s;
}

.hero-subtext {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.7s;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards 0.8s;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary {
    background: var(--primary-btn);
    color: var(--primary-btn-text);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Glass Card Global (used for inner elements now) */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
    transition: transform 0.4s ease;
}

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

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.about-card-wrapper {
    perspective: 1000px;
}

.about-card {
    padding: 4rem 3rem;
    transform-style: preserve-3d;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateZ(40px);
}

.about-card p {
    color: var(--text-secondary);
    transform: translateZ(20px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transform: translateZ(60px);
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    display: block;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
}

.product-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px) scale(1.02);
}

.product-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-bottom: 1px solid var(--surface-border);
    overflow: hidden;
}

.torq-tribe-bg {
    background: linear-gradient(135deg, #16161a, #0a0a0f);
}

.grid-bg {
    background: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: #08080a;
}

.product-logo {
    font-size: 4rem;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ff4d4d, #990000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateZ(30px);
}

.pulse-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transform: translateZ(20px);
}

.pulse-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.product-info {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.product-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    margin-bottom: 1rem;
    transform: translateZ(10px);
}

.product-badge.upcoming {
    background: rgba(140, 100, 255, 0.1);
    color: #8c64ff;
}

.product-name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateZ(20px);
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    transform: translateZ(10px);
}

.product-link {
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    transform: translateZ(15px);
}

.arrow {
    transition: transform 0.2s ease;
}

.product-card:hover .arrow {
    transform: translateX(5px);
}

.product-link.disabled {
    color: var(--text-secondary);
    opacity: 0.5;
}

.skeleton {
    cursor: default;
}

.skeleton:hover {
    transform: translateY(-5px);
    border-color: var(--surface-border);
}

/* Contact Section */
.contact-section .section-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-email:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

/* Footer */
footer {
    border-top: 1px solid var(--surface-border);
    padding: 3rem 0;
    margin-top: 4rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.footer-logo-img {
    height: 24px;
    width: auto;
    opacity: 0.7;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations & Effects */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Subte Glow Effect for Cards */
.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

/* Parallax Animating Orbs */
.parallax-orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    z-index: 1; /* behind the glass sections but above background blobs */
    transition: transform 0.1s linear;
}

.orb-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: 10%;
    background: radial-gradient(circle, rgba(255, 140, 40, 0.15) 0%, transparent 60%);
}

.orb-2 {
    width: 400px;
    height: 400px;
    top: 30vh;
    left: -100px;
    background: radial-gradient(circle, rgba(255, 70, 0, 0.1) 0%, transparent 60%);
}

.orb-3 {
    width: 250px;
    height: 250px;
    bottom: -100px;
    right: 20%;
    background: radial-gradient(circle, rgba(255, 200, 100, 0.1) 0%, transparent 60%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .nav-links {
        display: none; /* simple mobile nav approach */
    }
}
