@font-face {
    font-family: 'Altertype';
    src: url('assets/altertyper.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MainFont';
    src: url('assets/MomoTrust.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg: #0a0a0a;
    --bg-elevated: #141414;
    --bg-card: #1a1a1a;
    --border: #2a2a2a;
    --text: #f0f0f0;
    --text-secondary: #888;
    --text-muted: #555;
    --accent: #6ee7b7;
    --accent-dim: rgba(110, 231, 183, 0.15);
    --accent-glow: rgba(110, 231, 183, 0.3);
    --font-logo: 'Altertype', sans-serif;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'MainFont', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-dim), transparent);
    pointer-events: none;
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 40px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    animation: fadeInUp 0.6s ease-out;
}

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

.logo {
    font-family: var(--font-logo);
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 0.02em;
    transition: transform 0.3s, text-shadow 0.3s;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px var(--accent-glow);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s, transform 0.2s;
}

.nav-links a:hover {
    color: var(--text);
    transform: translateY(-2px);
}

.btn-nav {
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-nav:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-dim);
}

main {
    position: relative;
    z-index: 1;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 80px;
}

.hero-content {
    flex: 1;
    max-width: 540px;
    animation: fadeInLeft 0.8s ease-out;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 20px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientMove 5s ease infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 32px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

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

.btn-primary:hover {
    background: #5dd4a8;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px var(--accent-glow);
}

.btn-primary svg {
    transition: transform 0.3s;
}

.btn-primary:hover svg {
    transform: rotate(360deg);
}

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

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    transform: translateX(5px);
}

.btn-large {
    padding: 18px 32px;
    font-size: 1.1rem;
}

.hero-preview {
    flex: 1;
    max-width: 500px;
    animation: fadeInRight 0.8s ease-out, float 6s ease-in-out infinite;
    animation-delay: 0s, 0.8s;
}

.browser-frame {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.browser-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 30px var(--accent-dim);
}

.browser-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.browser-dots {
    position: absolute;
    left: 16px;
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.3s;
}

.browser-frame:hover .browser-dots span:nth-child(1) {
    background: #ff5f57;
}

.browser-frame:hover .browser-dots span:nth-child(2) {
    background: #febc2e;
}

.browser-frame:hover .browser-dots span:nth-child(3) {
    background: #28c840;
}

.browser-url {
    flex: 1;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.browser-content {
    padding: 16px;
}

.mock-file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    transition: all 0.2s;
    animation: fadeInUp 0.5s ease-out backwards;
}

.mock-file-row:nth-child(1) {
    animation-delay: 0.1s;
}

.mock-file-row:nth-child(2) {
    animation-delay: 0.2s;
}

.mock-file-row:nth-child(3) {
    animation-delay: 0.3s;
}

.mock-file-row:nth-child(4) {
    animation-delay: 0.4s;
}

.mock-file-row:nth-child(5) {
    animation-delay: 0.5s;
}

.mock-file-row:hover {
    background: var(--bg-card);
    transform: translateX(5px);
}

/* SVG file icons in preview */
.file-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.9;
    transition: transform 0.3s;
    object-fit: contain;
}

.mock-file-row:hover .file-icon {
    transform: scale(1.2);
}

/* SVG icon colorization - convert white icons to colored ones */
.file-icon.folder {
    filter: brightness(0) saturate(100%) invert(83%) sepia(29%) saturate(467%) hue-rotate(99deg) brightness(97%) contrast(91%);
}

.file-icon.image {
    filter: brightness(0) saturate(100%) invert(67%) sepia(62%) saturate(1012%) hue-rotate(296deg) brightness(101%) contrast(92%);
}

.file-icon.font {
    filter: brightness(0) saturate(100%) invert(67%) sepia(73%) saturate(1094%) hue-rotate(175deg) brightness(101%) contrast(95%);
}

.file-icon.text {
    filter: brightness(0) saturate(100%) invert(83%) sepia(52%) saturate(1032%) hue-rotate(4deg) brightness(104%) contrast(96%);
}

.mock-pagination {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 12px 4px;
    animation: fadeInUp 0.5s ease-out backwards;
    animation-delay: 0.6s;
}

.mock-count {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.mock-load-more {
    padding: 6px 14px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.mock-load-more:hover {
    background: var(--bg-elevated);
    border-color: var(--text-muted);
    color: var(--text);
}

.name {
    color: var(--text-secondary);
}

.name.accent {
    color: var(--accent);
}

.ext.image {
    color: #f472b6;
}

.ext.font {
    color: #38bdf8;
}

.ext.text {
    color: #facc15;
}

.features {
    padding: 120px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 60px;
}

.feature-list {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    padding: 16px 20px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: var(--bg-elevated);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.25s;
}

.feature-item:hover {
    color: var(--text);
    background: var(--bg-card);
    border-left-color: var(--accent);
    transform: translateX(4px);
}

.feature-item strong {
    color: var(--accent);
}

.deploy {
    padding: 120px 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.deploy-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.code-block {
    text-align: left;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 32px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.code-block:hover {
    border-color: var(--text-muted);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.code-header {
    padding: 12px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-header::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 1s infinite;
}

.code-block pre {
    padding: 24px;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text);
}

.code-block .dim {
    color: var(--text-muted);
}

.code-block .accent {
    color: var(--accent);
}

.deploy-hosts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.host-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.host-badge {
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.host-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.demo {
    padding: 120px 40px;
    text-align: center;
    position: relative;
}

.demo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

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

footer {
    padding: 60px 40px;
    border-top: 1px solid var(--border);
    background: linear-gradient(to bottom, transparent, var(--accent-dim));
    position: relative;
}

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

.footer-logo {
    font-family: var(--font-logo);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    transition: text-shadow 0.3s;
}

.footer-logo:hover {
    text-shadow: 0 0 15px var(--accent-glow);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s, transform 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Tablet breakpoint */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 140px;
        gap: 40px;
    }

    .hero-content {
        max-width: 100%;
        animation: fadeInUp 0.8s ease-out;
    }

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

    .hero-preview {
        max-width: 100%;
        animation: fadeInUp 0.8s ease-out 0.2s backwards, float 6s ease-in-out infinite;
    }

    h1 {
        font-size: 2.5rem;
    }

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

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

/* Mobile breakpoint */
@media (max-width: 600px) {
    header {
        padding: 16px 20px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a:not(.btn-nav) {
        display: none;
    }

    .btn-nav {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
        gap: 32px;
    }

    .hero-content {
        padding: 0;
    }

    .badge {
        font-size: 0.65rem;
        padding: 5px 10px;
    }

    .hero-title img {
        width: 140px !important;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .hero-preview {
        width: 100%;
        animation: fadeInUp 0.8s ease-out 0.2s backwards;
    }

    .browser-frame {
        border-radius: 8px;
    }

    .browser-header {
        padding: 10px 12px;
    }

    .browser-url {
        font-size: 0.7rem;
    }

    .browser-content {
        padding: 12px;
    }

    .mock-file-row {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    .file-icon {
        width: 14px;
        height: 14px;
    }

    /* Features section mobile */
    .features {
        padding: 80px 20px;
    }

    h2 {
        font-size: 1.75rem;
        margin-bottom: 40px;
    }

    .feature-item {
        padding: 14px 16px;
        font-size: 0.9rem;
    }

    /* Deploy section mobile */
    .deploy {
        padding: 80px 20px;
    }

    .deploy-subtitle {
        font-size: 1rem;
    }

    .code-block pre {
        padding: 16px;
        overflow-x: auto;
    }

    .code-block code {
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .deploy-hosts {
        flex-direction: column;
        gap: 12px;
    }

    .host-badges {
        justify-content: center;
    }

    .host-badge {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    /* Demo section mobile */
    .demo {
        padding: 80px 20px;
    }

    .demo::before {
        width: 250px;
        height: 250px;
    }

    .demo p {
        font-size: 1rem;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
    }

    /* Footer mobile */
    footer {
        padding: 40px 20px;
    }

    .footer-logo {
        font-size: 1.25rem;
    }

    footer p {
        font-size: 0.8rem;
    }

    .footer-links {
        gap: 16px;
    }

    .footer-links a {
        font-size: 0.8rem;
    }
}

/* Very small mobile screens */
@media (max-width: 380px) {
    .hero-title img {
        width: 120px !important;
    }

    h1 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .code-block code {
        font-size: 0.65rem;
    }
}