/* Spyne Website - Modern Minimal Dark Theme */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #171717;
    --bg-elevated: #1c1c1c;
    --text-primary: #fafafa;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;
    --accent-primary: #10b981;
    --accent-secondary: #34d399;
    --accent-glow: rgba(16, 185, 129, 0.15);
    --border-color: #262626;
    --border-light: #404040;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

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

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

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

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

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

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

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

.btn-primary:hover {
    background: var(--accent-secondary);
}

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

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

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

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: var(--accent-glow);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
    border-radius: 14px;
}

.btn-support {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

.btn-support:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35);
}

/* Hero */
.hero {
    padding: 180px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
}

/* Hero Screenshot */
.hero-screenshot {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

.browser-frame {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.browser-dots {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
}

.browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-light);
}

.browser-dots span:first-child { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #eab308; }
.browser-dots span:last-child { background: #22c55e; }

.browser-frame img {
    width: 100%;
    display: block;
}

/* Support Banner */
.support-banner {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.support-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    text-align: center;
}

.support-banner .container {
    display: flex;
    justify-content: center;
}

.support-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Sections */
section {
    padding: 120px 0;
}

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

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 72px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Screenshots Section */
.screenshots {
    background: var(--bg-secondary);
}

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

.screenshot-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.screenshot-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.screenshot-card.screenshot-large {
    grid-column: span 2;
}

.screenshot-card img {
    width: 100%;
    display: block;
    border-bottom: 1px solid var(--border-color);
}

.screenshot-caption {
    padding: 24px;
}

.screenshot-caption h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.screenshot-caption p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-primary);
}

.feature-icon svg {
    color: var(--accent-primary);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Platforms */
.platforms {
    background: var(--bg-secondary);
}

.platforms-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 180px;
}

.platform-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.platform-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-secondary);
}

.platform-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
}

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

/* Download */
.download h2 {
    margin-bottom: 16px;
}

.platform-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.platform-selector select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 14px 48px 14px 20px;
    font-size: 1rem;
    color: var(--text-primary);
    cursor: pointer;
    min-width: 280px;
    appearance: none;
    font-family: inherit;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    transition: all 0.2s;
}

.platform-selector select:hover {
    border-color: var(--border-light);
}

.platform-selector select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.download-section {
    display: none;
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.download-section.active {
    display: block;
}

.download-section h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.download-section > p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.download-section pre {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px;
    overflow-x: auto;
}

.download-section code {
    font-family: 'SF Mono', Monaco, 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #e4e4e7;
}

.download-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

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

.download-note code {
    background: var(--bg-primary);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Contact */
.contact {
    background: var(--bg-secondary);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 20px;
    cursor: pointer;
}

.contact-form button {
    width: 100%;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-column h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.footer-column p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 240px;
}

.footer-column .btn-support {
    margin-top: 8px;
    align-self: flex-start;
}

.footer-column:last-child {
    align-items: center;
    text-align: center;
}

.footer-column:last-child p {
    max-width: none;
}

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

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    html {
        font-size: 16px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        margin-bottom: 60px;
    }

    .screenshot-grid {
        gap: 20px;
    }

    .features-grid {
        gap: 20px;
    }

    .platforms-grid {
        gap: 16px;
    }

    .platform-card {
        padding: 24px 32px;
        min-width: 160px;
    }

    .footer-links {
        gap: 60px;
    }
}

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

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

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 48px;
    }

    section {
        padding: 80px 0;
    }

    section h2 {
        font-size: 2rem;
    }

    .section-subtitle {
        margin-bottom: 48px;
        font-size: 1rem;
    }

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

    .screenshot-card.screenshot-large {
        grid-column: span 1;
    }

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

    .platforms-grid {
        flex-direction: column;
        align-items: center;
    }

    .platform-card {
        width: 100%;
        max-width: 320px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .download-section {
        padding: 28px;
    }

    .footer-content {
        flex-direction: column;
        gap: 48px;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
}

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

    .hero h1 {
        font-size: 2rem;
    }

    .btn-large {
        padding: 14px 28px;
        width: 100%;
    }

    .browser-dots {
        padding: 12px 16px;
    }

    .browser-dots span {
        width: 10px;
        height: 10px;
    }
}
