/* Reset and base styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Goblin color palette */
    --purple: #9333ea;
    --purple-light: #a855f7;
    --purple-dark: #7e22ce;
    --orange: #f97316;
    --orange-light: #fb923c;
    --orange-dark: #ea580c;
    --green: #22c55e;
    --green-light: #4ade80;
    --green-dark: #16a34a;
    --yellow: #eab308;
    --yellow-light: #facc15;
    --yellow-dark: #ca8a04;

    /* Dark theme colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-tertiary: #1a1a24;
    --bg-card: #16161f;
    --bg-elevated: #1e1e2a;

    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --border: #27272a;
    --border-light: #3f3f46;

    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(147, 51, 234, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

.gradient-text {
    background: linear-gradient(135deg, var(--orange) 0%, var(--yellow) 50%, var(--green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-ghost:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--orange) 100%);
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

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

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

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

.nav-cta {
    display: flex;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(147, 51, 234, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(249, 115, 22, 0.1), transparent),
        var(--bg-primary);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 24px 0 32px;
    max-width: 500px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Goblin Graphic */
.goblin-graphic {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gear {
    position: absolute;
    border: 3px solid var(--orange);
    border-radius: 50%;
    opacity: 0.6;
}

.gear::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 30%;
    background: var(--orange);
    border-radius: 50%;
    opacity: 0.4;
}

.gear-1 {
    width: 200px;
    height: 200px;
    animation: spin 20s linear infinite;
}

.gear-2 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 15%;
    border-color: var(--purple);
    animation: spin 15s linear infinite reverse;
}

.gear-2::before {
    background: var(--purple);
}

.gear-3 {
    width: 80px;
    height: 80px;
    bottom: 25%;
    left: 20%;
    border-color: var(--green);
    animation: spin 10s linear infinite;
}

.gear-3::before {
    background: var(--green);
}

.code-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    bottom: 20%;
    right: 10%;
}

.code-lines span {
    height: 4px;
    background: linear-gradient(90deg, var(--yellow), transparent);
    border-radius: 2px;
    opacity: 0.5;
}

.code-lines span:nth-child(1) { width: 60px; }
.code-lines span:nth-child(2) { width: 100px; }
.code-lines span:nth-child(3) { width: 80px; }
.code-lines span:nth-child(4) { width: 40px; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Section styles */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-tertiary);
    color: var(--orange);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-top: 16px;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.value-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--purple);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.value-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.2) 0%, rgba(249, 115, 22, 0.2) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.value-icon svg {
    width: 28px;
    height: 28px;
    color: var(--orange);
}

.value-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Mission Section */
.mission-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.mission-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.mission-content h2 {
    margin-top: 16px;
}

.mission-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin: 24px 0;
    line-height: 1.8;
}

.mission-highlight {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 20px 32px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-top: 32px;
    font-weight: 500;
    color: var(--text-primary);
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* Approach Section */
.approach-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.approach-card {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.approach-card:hover {
    border-color: var(--orange);
}

.approach-number {
    display: inline-block;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--purple) 0%, var(--orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.approach-card h3 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

.approach-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* Product Section */
.product-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.product-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.product-content h2 {
    margin-top: 16px;
}

.product-content > p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin: 24px 0 32px;
    line-height: 1.7;
}

.product-highlights {
    list-style: none;
    margin-bottom: 32px;
}

.product-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-primary);
}

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-icon svg {
    width: 14px;
    height: 14px;
    color: white;
}

/* Platform Preview */
.platform-preview {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}

.preview-header {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
}

.preview-dot:nth-child(1) { background: #ff5f56; }
.preview-dot:nth-child(2) { background: #ffbd2e; }
.preview-dot:nth-child(3) { background: #27c93f; }

.preview-content {
    display: flex;
    padding: 20px;
    gap: 20px;
    min-height: 250px;
}

.preview-sidebar {
    width: 60px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-item {
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}

.sidebar-item.active {
    background: linear-gradient(135deg, var(--purple) 0%, var(--orange) 100%);
}

.preview-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preview-card {
    height: 60px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.preview-card.small {
    height: 40px;
    width: 60%;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 120%, rgba(147, 51, 234, 0.2), transparent),
        var(--bg-secondary);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.footer-links h4 {
    color: var(--text-primary);
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

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

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

/* Responsive */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: 1fr;
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        padding: 24px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 24px auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .mission-highlight {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
