:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #666666;
    --light-bg: #ffffff;
    --lighter-bg: #fafafa;
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e5e5e5;
    --hover-bg: #f5f5f5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Remove torch animation - not needed for modern design */
.torch-container {
    display: none;
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border-color);
}

.nav {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: relative;
    display: inline-block;
}

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    position: relative;
}

.logo-dot {
    position: absolute;
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Main Content */
.main {
    padding-top: 80px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    overflow: hidden;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
    transform: translateY(100%);
    animation: slideUp 1s ease-out forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { 
    animation-delay: 0.4s;
    color: var(--text-secondary);
}
.title-line:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideUp {
    to { transform: translateY(0); }
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
    line-height: 1.7;
    font-weight: 400;
    max-width: 500px;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.cta-container {
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.cta-button {
    position: relative;
    background: var(--primary-color);
    border: none;
    color: var(--light-bg);
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
}

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.button-glow {
    display: none;
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.orb {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lighter-bg), var(--hover-bg));
    border: 1px solid var(--border-color);
    animation: float 6s ease-in-out infinite;
    --mouse-x: 0px;
    --mouse-y: 0px;
    transform: translate(var(--mouse-x), var(--mouse-y));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.orb-inner {
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    bottom: 40px;
    border-radius: 50%;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    animation: innerFloat 4s ease-in-out infinite reverse;
}

.orb-pulse {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(var(--mouse-x), calc(var(--mouse-y) + 0px)); }
    50% { transform: translate(var(--mouse-x), calc(var(--mouse-y) + -20px)); }
}

@keyframes innerFloat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Apps Section */
.apps {
    padding: 8rem 2rem;
    background: var(--lighter-bg);
}

.apps-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.app-card {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.app-card::before {
    display: none;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.app-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--hover-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.app-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-primary);
}

.app-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.app-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.app-link:hover {
    color: var(--text-secondary);
    transform: translateX(2px);
}

.link-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.app-link:hover .link-arrow {
    transform: translate(2px, -2px);
}

/* Footer */
.footer {
    background: var(--light-bg);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        gap: 2rem;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .orb {
        width: 200px;
        height: 200px;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        padding: 1rem;
    }
    
    .torch-container {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .app-card {
        padding: 1.5rem;
    }
}
