/* Thrux.app Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #000;
    --card: #0a0a0a;
    --border: #333;
    --text: #fff;
    --text-muted: #888;
    --accent-1: #00ff88;
    --accent-2: #ff3366;
    --accent-3: #3366ff;
}

/* Global */
html {
    scroll-behavior: smooth;
}

a:visited {
    color: inherit;
}

::selection {
    background: var(--accent-1);
    color: var(--bg);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Helvetica, Arial, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

h1 {
    font-size: 60px;
    line-height: 55px;
    margin-bottom: 25px;
}

.container {
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    padding: 1.5rem 0;
}

/* Hide mobile menu button on desktop */
.mobile-menu-btn {
    display: none;
}

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

.wordmark {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.beta-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.25rem 0.625rem;
    border-radius: 3px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}
.header-link:hover { color: var(--text); }

.header-btn {
    background: var(--accent-1);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}
.header-btn:hover { background: var(--accent-1-dim); }

/* Hero */
.hero {
    padding: 0 0 4rem;
    text-align: center;
}

.logo-video {
    max-width: 625px;
    width: 100%;
    margin: 0 auto 10px;
    display: block;
}

.hero-text {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--text);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

/* Hero Demo Strip */
.hero-demo-strip {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hero-demo-strip::-webkit-scrollbar {
    display: none;
}

.demo-card {
    flex: 0 0 280px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: left;
    scroll-snap-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.05);
    text-decoration: none;
    color: inherit;
    display: block;
}

.demo-card:hover {
    border-color: var(--accent-1);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.15);
    transform: translateY(-2px);
}

.demo-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.demo-card-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.demo-card-output {
    font-size: 0.875rem;
    color: var(--accent-1);
    background: rgba(0, 255, 136, 0.08);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-family: 'SF Mono', Monaco, monospace;
}

.demo-card-output .swatches {
    display: flex;
    gap: 4px;
}

.demo-card-output .swatch {
    width: 28px;
    height: 28px;
    border-radius: 4px;
}

.demo-card-output .swatch:nth-child(1) { background: #00ff88; }
.demo-card-output .swatch:nth-child(2) { background: #00cc6e; }
.demo-card-output .swatch:nth-child(3) { background: #009955; }
.demo-card-output .swatch:nth-child(4) { background: #006639; }
.demo-card-output .swatch:nth-child(5) { background: #003320; }

.demo-card-cta {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.demo-card:hover .demo-card-cta {
    color: var(--accent-1);
}

/* CTA Form */
.cta-form {
    display: flex;
    gap: 0.75rem;
    max-width: 420px;
    margin: 0 auto 1rem;
}

.cta-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card);
    color: var(--text);
    font-size: 0.9375rem;
    transition: border-color 0.2s;
}

.cta-form input:focus {
    outline: none;
    border-color: #333;
}

.cta-form input::placeholder {
    color: #555;
}

.cta-form button {
    padding: 0.875rem 1.75rem;
    background: var(--accent-1);
    border: none;
    border-radius: 6px;
    color: var(--bg);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    animation: pulse-glow 1s ease-in-out 2;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
    50% { box-shadow: 0 0 35px rgba(0, 255, 136, 0.5); }
}

.cta-form button:hover {
    box-shadow: 0 0 35px rgba(0, 255, 136, 0.5);
    transform: translateY(-1px);
}

.cta-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Tools Section */
.tools-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.section-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center;
}

/* Featured Tools */
.featured-tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.featured-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    border-color: var(--accent-1);
    background: #0f0f0f;
}

.featured-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.featured-hero {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.featured-card.has-hero {
    padding-top: 1rem;
}

.featured-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.featured-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 1px solid var(--accent-1);
    border-radius: 6px;
    color: var(--accent-1);
    font-size: 0.875rem;
    font-weight: 600;
    background: transparent;
    transition: all 0.2s;
    width: fit-content;
}

.featured-card:hover .featured-cta {
    background: var(--accent-1);
    color: var(--bg);
}

/* Standard Tools Grid - Card Style (4-wide) */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    background: transparent;
    border: none;
}

.tool-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

a.tool-card:hover {
    background: #0f0f0f;
    transform: translateY(-2px);
    border-color: var(--accent-1);
    box-shadow: none;
}

a.tool-card:hover .tool-cta {
    background: var(--accent-1);
    color: var(--bg);
}

.tool-card.coming {
    opacity: 0.6;
}

.tool-card.free .tool-tag {
    color: var(--accent-1);
}

.tool-card.coming .tool-tag {
    color: var(--text-muted);
}

.tool-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.tool-card.has-hero {
    padding: 0;
    overflow: hidden;
}

.tool-card.has-hero .tool-name,
.tool-card.has-hero .tool-desc,
.tool-card.has-hero .tool-cta {
    padding: 0 1.5rem;
}

.tool-card.has-hero .tool-name {
    padding-top: 1rem;
}

.tool-card.has-hero .tool-cta {
    margin: 0 1.5rem 1.5rem;
}

.tool-hero {
    width: 100%;
    height: auto;
    display: block;
}

.tool-tag {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.tool-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.tool-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.tool-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--accent-1);
    border-radius: 6px;
    color: var(--accent-1);
    font-size: 0.8125rem;
    font-weight: 600;
    background: transparent;
    transition: all 0.2s;
    width: fit-content;
}

.tool-arrow {
    display: none;
}

/* Pricing Section */
.pricing-section {
    padding: 5rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.pricing-tiers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pricing-tier {
    text-align: center;
}

.pricing-amount {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.pricing-amount.free {
    color: var(--accent-1);
}

.pricing-label {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.pricing-subline {
    font-size: 0.8125rem;
    color: var(--text-muted);
    max-width: 200px;
}

.pricing-divider {
    width: 60px;
    height: 1px;
    background: var(--border);
}

.pricing-tagline {
    font-size: 1.125rem;
    color: var(--accent-1);
    font-weight: 500;
}

/* Bottom CTA */
.bottom-cta {
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.bottom-cta h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.bottom-cta .subtitle {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.beta-count {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.beta-count .count {
    color: var(--accent-1);
    font-weight: 700;
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

footer a {
    color: var(--accent-1);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .featured-tools {
        gap: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

/* Mobile (below 768px) */
@media (max-width: 768px) {
    /* Header mobile styles */
    header {
        padding: 1rem 0;
        background: #000;
    }
    
    .wordmark {
        color: #fff !important;
    }
    
    .header-inner {
        padding: 0 1rem;
        justify-content: space-between;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        gap: 4px;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        width: 30px;
        height: 30px;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background: #fff;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .header-nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: #000;
        padding: 2rem 1rem;
        display: none;
        flex-direction: column;
        gap: 1rem;
        z-index: 1000;
        border-top: 1px solid #222;
    }
    
    .header-nav.active {
        display: flex;
    }
    
    .header-link {
        color: #fff !important;
        padding: 0.8rem 1rem;
        font-size: 1.1rem;
        text-align: center;
        border: 1px solid transparent;
        transition: all 0.2s ease;
    }
    
    .header-link:hover {
        border-color: #444;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .header-btn {
        padding: 0.8rem 1rem;
        font-size: 1.1rem;
        text-align: center;
    }
    
    .hero-demo-strip {
        justify-content: flex-start;
        padding-left: 1.5rem;
    }
    
    .demo-card {
        flex: 0 0 260px;
    }
    
    .featured-tools {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .cta-form { 
        flex-direction: column; 
    }
    
    .cta-form button { 
        width: 100%; 
    }
    
    .pricing-tiers {
        flex-direction: column;
        gap: 2rem;
    }
    
    .pricing-divider {
        width: 60px;
        height: 1px;
    }
}

/* Small Mobile (below 480px) */
@media (max-width: 480px) {
    /* Header adjustments for small screens */
    .header-inner {
        padding: 0 0.8rem;
    }
    
    .wordmark {
        font-size: 1.5rem;
    }
    
    .header-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .header-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .hero { 
        padding: 2rem 0 3rem; 
    }
    
    .logo-video { 
        max-width: 100%; 
        margin-bottom: 1.5rem; 
    }
    
    .hero-text {
        font-size: 1.25rem;
    }
    
    .tools-grid { 
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .demo-card {
        flex: 0 0 240px;
    }
    
    .featured-card {
        padding: 1.25rem;
    }
    
    .featured-name {
        font-size: 1.125rem;
    }
}

/* Blog Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.blog-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.blog-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.blog-card h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.blog-card h2 a {
    color: #111827;
    text-decoration: none;
}

.blog-card h2 a:hover {
    color: #e11d48;
}

.blog-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-card time {
    color: #9ca3af;
    font-size: 0.9em;
}

.blog-intro {
    font-size: 1.2em;
    color: #6b7280;
    margin-bottom: 40px;
}

/* Individual Blog Post */
.blog-post {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-post article {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.blog-post h1 {
    margin-bottom: 20px;
    font-size: 2.5em;
    line-height: 1.2;
}

.post-meta {
    color: #6b7280;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.blog-post h2 {
    margin: 30px 0 15px 0;
    font-size: 1.8em;
}

.blog-post h3 {
    margin: 25px 0 10px 0;
    font-size: 1.4em;
}

.blog-post p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.blog-post ul, .blog-post ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-post li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.blog-sidebar {
    background: #f9fafb;
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.blog-sidebar h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.blog-sidebar ul {
    list-style: none;
    padding: 0;
}

.blog-sidebar li {
    margin-bottom: 15px;
}

.blog-sidebar a {
    color: #4b5563;
    text-decoration: none;
}

.blog-sidebar a:hover {
    color: #e11d48;
}

.post-cta {
    background: #f9fafb;
    padding: 40px;
    border-radius: 8px;
    margin-top: 50px;
    text-align: center;
}

.post-cta h2 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .blog-post {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
    }
    
    .blog-post article {
        padding: 20px;
    }
    
    .blog-post h1 {
        font-size: 2em;
    }
}

/* Blog-specific styles */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    margin-bottom: 60px;
}

.page-header h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.page-header .subtitle {
    font-size: 1.2em;
    color: #9ca3af;
    max-width: 600px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.post-card {
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #e11d48;
}

.post-card h2 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    line-height: 1.3;
}

.post-card h2 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-card h2 a:hover {
    color: #e11d48;
}

.post-card .excerpt {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.post-meta {
    color: #6b7280;
    font-size: 0.9em;
    margin-top: auto;
}

/* Individual blog post styles */
.blog-article {
    background: #1f2937;
    border-radius: 12px;
    padding: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #374151;
}

.article-header h1 {
    font-size: 2.5em;
    line-height: 1.2;
    margin-bottom: 20px;
}

.article-meta {
    color: #9ca3af;
}

.article-content {
    color: #d1d5db;
    line-height: 1.8;
}

.article-content h2 {
    color: #fff;
    margin: 40px 0 20px 0;
    font-size: 1.8em;
}

.article-content h3 {
    color: #fff;
    margin: 30px 0 15px 0;
    font-size: 1.4em;
}

.article-content p {
    margin-bottom: 25px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 25px;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
}

.article-content strong {
    color: #fff;
}

.article-cta {
    background: #111827;
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 40px;
    margin-top: 60px;
    text-align: center;
}

.article-cta h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
}

.article-cta p {
    color: #9ca3af;
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-article {
        padding: 30px;
    }
    
    .article-header h1 {
        font-size: 2em;
    }
}
