/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    background: #0a0a0a;
    color: #fafafa;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: #f97316; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
img { max-width: 100%; height: auto; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 { font-family: 'JetBrains Mono', monospace; font-weight: 600; line-height: 1.2; }
h1 { font-size: 3rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; }
.text-muted { color: #a3a3a3; }
.text-accent { color: #f97316; }
.mono { font-family: 'JetBrains Mono', monospace; }
.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #f97316;
    margin-bottom: 1rem;
}

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-alt { background: #0f0f0f; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* === NAV === */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #262626;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700; font-size: 1.25rem;
    color: #fafafa; letter-spacing: 0.05em;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: #a3a3a3; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fafafa; opacity: 1; }
.nav-cta {
    background: #f97316 !important; color: #0a0a0a !important;
    padding: 0.5rem 1.25rem; border-radius: 6px; font-weight: 600;
}
.nav-cta:hover { background: #ea580c !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: #fafafa; margin: 5px 0; transition: 0.3s;
}

/* === HERO === */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding-top: 64px;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(249, 115, 22, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(249, 115, 22, 0.03) 0%, transparent 50%);
}
.hero-content { max-width: 800px; }
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.hero h1 .accent { color: #f97316; }
.hero-sub {
    font-size: 1.25rem; color: #a3a3a3;
    margin-bottom: 2.5rem; max-width: 600px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.75rem 1.75rem; border-radius: 6px;
    font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: all 0.2s; border: none;
}
.btn-primary { background: #f97316; color: #0a0a0a; }
.btn-primary:hover { background: #ea580c; color: #0a0a0a; opacity: 1; }
.btn-secondary { background: transparent; color: #fafafa; border: 1px solid #404040; }
.btn-secondary:hover { border-color: #a3a3a3; opacity: 1; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* === CARDS === */
.card {
    background: #141414; border: 1px solid #262626;
    border-radius: 12px; padding: 2rem;
    transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: #404040; transform: translateY(-2px); }
.card-status {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 1rem;
}
.card-status .dot {
    width: 8px; height: 8px; border-radius: 50%;
    display: inline-block;
}
.dot-live { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }
.dot-building { background: #f97316; box-shadow: 0 0 6px rgba(249, 115, 22, 0.5); }
.dot-coming { background: #a3a3a3; }
.card h3 { margin-bottom: 0.5rem; }
.card-tagline { color: #a3a3a3; font-size: 0.9rem; margin-bottom: 1rem; }
.card-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #262626;
}
.card-meta span { font-size: 0.8rem; color: #a3a3a3; font-family: 'JetBrains Mono', monospace; }
.card-meta a { font-size: 0.85rem; font-weight: 600; }

/* === REPLACES SECTION === */
.replaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}
.replace-card {
    background: #141414; border: 1px solid #262626;
    border-radius: 12px; padding: 1.5rem; text-align: center;
}
.replace-card .replaces-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; color: #a3a3a3;
    text-transform: uppercase; letter-spacing: 0.1em;
    text-decoration: line-through; margin-bottom: 0.5rem;
}
.replace-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }

/* === STATS === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem; text-align: center;
}
.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem; font-weight: 700;
    color: #f97316; line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-label {
    font-size: 0.9rem; color: #a3a3a3;
    text-transform: uppercase; letter-spacing: 0.05em;
}

/* === HOW IT WORKS === */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.step { text-align: center; }
.step-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem; font-weight: 700;
    color: #262626; margin-bottom: 0.75rem;
}
.step h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.step p { font-size: 0.85rem; color: #a3a3a3; }

/* === BLOG CARDS === */
.blog-card { padding: 1.5rem; }
.blog-card .blog-meta {
    display: flex; gap: 1rem; align-items: center;
    font-size: 0.8rem; color: #a3a3a3; margin-bottom: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}
.blog-card .blog-category {
    background: rgba(249, 115, 22, 0.15); color: #f97316;
    padding: 0.15rem 0.5rem; border-radius: 4px;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.blog-card h3 { margin-bottom: 0.5rem; }
.blog-card h3 a { color: #fafafa; }
.blog-card h3 a:hover { color: #f97316; }
.blog-card p { color: #a3a3a3; font-size: 0.9rem; }

/* === TEAM === */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.team-card {
    background: #141414; border: 1px solid #262626;
    border-radius: 12px; padding: 2rem;
}
.team-card .team-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: #262626; display: flex; align-items: center; justify-content: center;
    font-family: 'JetBrains Mono', monospace; font-size: 1.25rem; font-weight: 700;
    color: #f97316; margin-bottom: 1rem;
}
.team-card h3 { margin-bottom: 0.25rem; }
.team-card .team-role { color: #f97316; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.75rem; }
.team-card .team-bio { color: #a3a3a3; font-size: 0.9rem; margin-bottom: 0.5rem; }
.team-card .team-creds {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; color: #525252;
}

/* === PRICING === */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 800px; margin: 0 auto; }
.price-card {
    background: #141414; border: 1px solid #262626;
    border-radius: 12px; padding: 3rem 2.5rem;
}
.price-card.featured { border-color: #f97316; }
.price-card h3 {
    font-size: 1rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: #a3a3a3; margin-bottom: 1rem;
}
.price-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem; font-weight: 700; margin-bottom: 0.25rem;
}
.price-period { color: #a3a3a3; font-size: 0.9rem; margin-bottom: 2rem; }
.price-features { list-style: none; margin-bottom: 2rem; }
.price-features li {
    padding: 0.5rem 0; color: #a3a3a3;
    display: flex; align-items: center; gap: 0.75rem;
}
.price-features li::before { content: "\2713"; color: #22c55e; font-weight: 700; }

/* === CONTACT FORM === */
.contact-form { max-width: 600px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block; margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: #a3a3a3;
}
.form-group input, .form-group textarea {
    width: 100%; padding: 0.75rem 1rem;
    background: #141414; border: 1px solid #262626;
    border-radius: 8px; color: #fafafa;
    font-family: 'DM Sans', sans-serif; font-size: 1rem;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: #f97316;
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #525252; }
.honeypot { position: absolute; left: -9999px; }

/* === FILTER TABS === */
.filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-tab {
    padding: 0.5rem 1rem; border-radius: 6px;
    font-size: 0.85rem; font-weight: 500;
    background: transparent; border: 1px solid #262626;
    color: #a3a3a3; cursor: pointer; transition: all 0.2s;
    text-decoration: none;
}
.filter-tab:hover { border-color: #404040; color: #fafafa; opacity: 1; }
.filter-tab.active { background: #f97316; border-color: #f97316; color: #0a0a0a; }

/* === BLOG POST (article) === */
.article { max-width: 720px; margin: 0 auto; }
.article-header { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid #262626; }
.article-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.article-meta {
    display: flex; gap: 1.5rem; align-items: center;
    font-size: 0.85rem; color: #a3a3a3;
    font-family: 'JetBrains Mono', monospace;
}
.article-content { font-size: 1.1rem; line-height: 1.8; }
.article-content h2 { margin: 2.5rem 0 1rem; font-size: 1.5rem; }
.article-content h3 { margin: 2rem 0 0.75rem; font-size: 1.2rem; }
.article-content p { margin-bottom: 1.25rem; color: #d4d4d4; }
.article-content strong { color: #fafafa; }
.article-content ul, .article-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; color: #d4d4d4; }
.article-content code {
    font-family: 'JetBrains Mono', monospace;
    background: #1a1a1a; padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.9em;
}
.article-content pre {
    background: #141414; border: 1px solid #262626;
    border-radius: 8px; padding: 1.25rem; overflow-x: auto;
    margin-bottom: 1.25rem;
}
.article-content pre code { background: transparent; padding: 0; }
.article-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 2rem; }
.tag {
    background: #1a1a1a; border: 1px solid #262626;
    padding: 0.25rem 0.75rem; border-radius: 100px;
    font-size: 0.75rem; color: #a3a3a3;
    font-family: 'JetBrains Mono', monospace;
}

/* === APP DETAIL === */
.app-header { padding-top: 8rem; padding-bottom: 3rem; }
.app-header .app-status {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem; margin-bottom: 1rem;
}
.app-header h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.app-replaces { color: #a3a3a3; font-size: 1rem; margin-bottom: 1.5rem; }
.app-description { font-size: 1.1rem; color: #d4d4d4; max-width: 700px; line-height: 1.7; margin-bottom: 2rem; }
.features-list { list-style: none; margin-bottom: 2rem; }
.features-list li {
    padding: 0.6rem 0; color: #d4d4d4; font-size: 1rem;
    display: flex; align-items: center; gap: 0.75rem;
    border-bottom: 1px solid #1a1a1a;
}
.features-list li::before {
    content: "\25B8"; color: #f97316;
    font-family: 'JetBrains Mono', monospace;
}

/* === CTA BANNER === */
.cta-banner {
    background: linear-gradient(135deg, #1a0f00 0%, #141414 100%);
    border: 1px solid #3d2200; border-radius: 12px;
    padding: 3rem; text-align: center;
}
.cta-banner h2 { margin-bottom: 0.5rem; }
.cta-banner p { color: #a3a3a3; margin-bottom: 1.5rem; }

/* === SENT MESSAGE === */
.sent-message {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px; padding: 1rem 1.5rem;
    margin-bottom: 2rem; color: #22c55e;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

/* === FOOTER === */
.footer { border-top: 1px solid #262626; padding: 3rem 0 2rem; margin-top: 4rem; }
.footer-inner {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 2rem; flex-wrap: wrap; gap: 2rem;
}
.footer-logo {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700; font-size: 1rem; color: #fafafa;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: #a3a3a3; font-size: 0.85rem; }
.footer-links a:hover { color: #fafafa; }
.footer-contact a { color: #a3a3a3; font-size: 0.85rem; }
.footer-bottom { border-top: 1px solid #1a1a1a; padding-top: 1.5rem; }
.footer-bottom p { font-size: 0.8rem; color: #525252; }

/* === PAGE HEADER === */
.page-header { padding-top: 8rem; padding-bottom: 2rem; }
.page-header h1 { margin-bottom: 0.5rem; }
.page-header p { color: #a3a3a3; font-size: 1.1rem; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .hero h1 { font-size: 2.25rem; }
    .section { padding: 4rem 0; }
    .grid-2, .grid-3, .grid-4, .stats-grid, .steps-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    .replaces-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column;
        position: absolute; top: 64px; left: 0; right: 0;
        background: #0a0a0a; border-bottom: 1px solid #262626;
        padding: 1rem 2rem 1.5rem; gap: 1rem;
    }
    .nav-toggle { display: block; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; justify-content: center; }
    .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .replaces-grid { grid-template-columns: 1fr; }
}
