:root {
    --rust-orange: #f74c00;
    --rust-orange-light: #ff7a45;
    --rust-orange-dark: #c43d00;
    --bg-primary: #ffffff;
    --bg-secondary: #f7f9fc;
    --bg-tertiary: #f0f4f8;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

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

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

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.header.scrolled {
    border-bottom-color: var(--border-color);
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
}

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

.logo-text {
    color: var(--text-primary);
}

.nav {
    display: flex;
    gap: 36px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--rust-orange);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

.hero {
    padding: 100px 0 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.6s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff5f0;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--rust-orange-dark);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--rust-orange);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
}

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

.btn {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--rust-orange) 0%, var(--rust-orange-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(247, 76, 0, 0.25);
}

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

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-icon {
    transition: transform 0.2s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(3px);
}

.hero-visual {
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.code-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.code-header {
    background: var(--bg-tertiary);
    padding: 14px 18px;
    display: flex;
    gap: 8px;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-content {
    padding: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.8;
    overflow-x: auto;
}

.code-keyword { color: #ff7a45; font-weight: 500; }
.code-fn { color: #4299e1; }
.code-type { color: #805ad5; }
.code-comment { color: #718096; font-style: italic; }

.features,
.tech-stack,
.about {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

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

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

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--rust-orange);
    box-shadow: var(--shadow-lg);
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #fff5f0 0%, #fffaf7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon {
    width: 26px;
    height: 26px;
    color: var(--rust-orange);
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}



.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tech-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-4px);
    border-color: var(--rust-orange);
    box-shadow: var(--shadow-lg);
}

.tech-icon-wrapper {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #fff5f0 0%, #fffaf7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.tech-icon {
    width: 26px;
    height: 26px;
    color: var(--rust-orange);
}

.tech-logo {
    font-weight: 700;
    font-size: 14px;
    color: var(--rust-orange);
}

.tech-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.tech-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.about-text {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.domain-link {
    color: var(--rust-orange);
    text-decoration: none;
    font-weight: 600;
}

.domain-link:hover {
    text-decoration: underline;
}

.github-section {
    padding: 80px 0 100px;
}

.github-card {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border-radius: 20px;
    padding: 60px 48px;
    text-align: center;
    color: white;
}

.github-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
}

.github-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.github-desc {
    font-size: 16px;
    color: #cbd5e0;
    margin-bottom: 28px;
}

.btn-github {
    background: white;
    color: var(--text-primary);
}

.btn-github:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.footer {
    border-top: 1px solid var(--border-color);
    padding: 32px 0;
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    font-weight: 700;
    font-size: 16px;
}

.footer-domain {
    color: var(--text-tertiary);
    font-size: 14px;
}

.footer-text {
    color: var(--text-tertiary);
    font-size: 14px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .feature-grid,
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }

    .header {
        flex-direction: column;
        gap: 16px;
        padding: 20px 0;
    }

    .nav {
        gap: 24px;
    }

    .hero {
        padding: 60px 0 48px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .feature-grid,
    .tech-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
