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

:root {
    --bg-primary: #000000;
    --bg-secondary: #1d1d1f;
    --bg-tertiary: #2d2d2f;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent: #2997ff;
    --accent-hover: #0071e3;
    --border: #424245;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    transition: color 0.3s ease;
}

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

.lang-switch {
    display: flex;
    align-items: center;
    margin-left: 24px;
}

.lang-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.lang-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 48px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 10;
}

.ai-animation {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 40px;
}

.neural-network {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent), 0 0 40px var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

.node-1 { top: 20%; left: 50%; transform: translateX(-50%); animation-delay: 0s; }
.node-2 { top: 35%; left: 20%; animation-delay: 0.2s; }
.node-3 { top: 35%; left: 80%; animation-delay: 0.4s; }
.node-4 { top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: 0.6s; width: 20px; height: 20px; }
.node-5 { top: 65%; left: 20%; animation-delay: 0.8s; }
.node-6 { top: 65%; left: 80%; animation-delay: 1s; }
.node-7 { top: 80%; left: 35%; animation-delay: 1.2s; }
.node-8 { top: 80%; left: 65%; animation-delay: 1.4s; }

@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) scale(1.5);
        opacity: 0.7;
    }
}

.node-2, .node-3, .node-5, .node-6, .node-7, .node-8 {
    animation-name: pulse-node;
}

@keyframes pulse-node {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

.connection {
    position: absolute;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.3;
    animation: flow 3s ease-in-out infinite;
}

.conn-1 {
    top: 25%;
    left: 35%;
    width: 30%;
    height: 2px;
    transform: rotate(-30deg);
    animation-delay: 0s;
}

.conn-2 {
    top: 25%;
    left: 35%;
    width: 30%;
    height: 2px;
    transform: rotate(30deg);
    animation-delay: 0.5s;
}

.conn-3 {
    top: 40%;
    left: 25%;
    width: 50%;
    height: 2px;
    transform: rotate(0deg);
    animation-delay: 1s;
}

.conn-4 {
    top: 55%;
    left: 25%;
    width: 50%;
    height: 2px;
    transform: rotate(-30deg);
    animation-delay: 1.5s;
}

.conn-5 {
    top: 55%;
    left: 25%;
    width: 50%;
    height: 2px;
    transform: rotate(30deg);
    animation-delay: 2s;
}

.conn-6 {
    top: 70%;
    left: 35%;
    width: 30%;
    height: 2px;
    transform: rotate(0deg);
    animation-delay: 2.5s;
}

@keyframes flow {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.6;
    }
}

.ai-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.3) 0%, transparent 70%);
    animation: glow 4s ease-in-out infinite;
}

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

.hero-title {
    font-size: 80px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #86868b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-secondary:hover {
    background: rgba(41, 151, 255, 0.1);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-tertiary);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    color: var(--accent);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Hardware Page */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.page-header h1 {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.page-header p {
    font-size: 21px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    padding: 80px 0;
}

.content-section h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.spec-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border);
}

.spec-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent);
}

.spec-card ul {
    list-style: none;
}

.spec-card li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.spec-card li:last-child {
    border-bottom: none;
}

.spec-card li span {
    color: var(--text-primary);
    font-weight: 500;
}

.interface-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.interface-panel {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px;
}

.interface-panel h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

.interface-items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.interface-item {
    background: var(--bg-tertiary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* IClawOS Page */
.architecture {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.architecture-layer {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

.architecture-layer:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.architecture-layer h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent);
}

.architecture-layer p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-list {
    list-style: none;
    margin-top: 24px;
    text-align: left;
}

.features-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 24px;
    position: relative;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
}

.contact-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
}

.contact-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.contact-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
}

.contact-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 24px;
    color: var(--accent);
}

/* Footer */
.footer {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 22px;
    }
    
    .page-header h1 {
        font-size: 40px;
    }
    
    .nav-links {
        display: none;
    }
    
    .interface-section,
    .contact-container,
    .architecture {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

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

.stagger-1 { animation-delay: 0.2s; }
.stagger-2 { animation-delay: 0.4s; }
.stagger-3 { animation-delay: 0.6s; }
.stagger-4 { animation-delay: 0.8s; }
