@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --accent: #00ff88;
    --accent-dim: #00cc6a;
    --bg-deep: #0a0a0f;
    --bg-card: #12121a;
    --bg-elevated: #1a1a24;
    --text: #e8e8f0;
    --text-dim: #8888a0;
    --border: #2a2a3a;
    --glow: rgba(0, 255, 136, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Animated background grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(0, 255, 136, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 70% 80%, rgba(100, 100, 255, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 32px;
    margin-bottom: 2rem;
    box-shadow: 0 0 60px var(--glow);
    position: relative;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


header h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    font-size: 1.25rem;
    color: var(--text-dim);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-deep);
    box-shadow: 0 0 30px var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px var(--glow), 0 10px 40px rgba(0,0,0,0.3);
}

.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);
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-dim);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: float 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

nav a:hover {
    color: var(--accent);
    background: var(--bg-elevated);
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--glow);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 40px var(--glow);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Requirements grid */
.requirements-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 700px) {
    .requirements-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.requirement {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.requirement .card-icon {
    width: 64px;
    height: 64px;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-deep) 100%);
    border: 1px solid var(--border);
}

.requirement h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.requirement p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Steps */
.steps {
    display: grid;
    gap: 1rem;
}

@media (min-width: 700px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

.step {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
}

.step-num {
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: var(--bg-deep);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.step-content a {
    color: var(--accent);
    text-decoration: none;
}

.step-content a:hover {
    text-decoration: underline;
}

/* Features */
.features-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 700px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '\2192';
    color: var(--accent);
    font-weight: 600;
}

/* Code */
code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    background: var(--bg-deep);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    padding: 0 0.4rem;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-deep) 100%);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 0 var(--border);
}

/* Troubleshooting */
.trouble-grid {
    display: grid;
    gap: 1rem;
}

.trouble-item {
    padding: 1.5rem;
}

.trouble-item h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.trouble-item ol {
    margin-left: 1.25rem;
    color: var(--text-dim);
}

.trouble-item li {
    margin-bottom: 0.5rem;
}

/* FAQ */
.faq-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 700px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.faq-category h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.faq-item {
    margin-bottom: 0.5rem;
}

.faq-q {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.faq-q:hover {
    background: var(--bg-elevated);
}

.faq-q::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--accent);
    transition: transform 0.3s;
}

.faq-item.open .faq-q {
    border-radius: 10px 10px 0 0;
    border-bottom-color: transparent;
}

.faq-item.open .faq-q::after {
    transform: rotate(45deg);
}

.faq-a {
    display: none;
    padding: 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.faq-item.open .faq-a {
    display: block;
}

.faq-a p {
    margin-bottom: 0.75rem;
}

.faq-a p:last-child {
    margin-bottom: 0;
}

.faq-a ul {
    margin-left: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.copyright {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Table styling */
.mapping-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.mapping-table th,
.mapping-table td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.mapping-table th {
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mapping-table td:first-child {
    font-weight: 500;
}

.mapping-table td:last-child {
    color: var(--text-dim);
}

/* Chord examples */
.chord-example {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.chord-example:last-child {
    border-bottom: none;
}

.chord-buttons {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.chord-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.chord-arrow {
    color: var(--accent);
    margin: 0 0.5rem;
}

.chord-result {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Joystick visual */
.joystick-mapping {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.joystick-item {
    text-align: center;
}

.joystick-circle {
    width: 80px;
    height: 80px;
    background: var(--bg-deep);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    position: relative;
}

.joystick-circle::before {
    content: '';
    width: 30px;
    height: 30px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--glow);
}

.joystick-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.joystick-item p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Touchpad visual */
.touchpad-graphic {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.touchpad-shape {
    width: 180px;
    height: 80px;
    background: var(--bg-deep);
    border: 2px solid var(--border);
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.touchpad-shape::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--border);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.touch-point {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 15px var(--glow);
}

.touch-point.left {
    left: 25%;
    top: 40%;
}

.touch-point.right {
    right: 25%;
    top: 55%;
}

.touchpad-label {
    text-align: center;
    margin-top: 0.75rem;
}

.touchpad-label h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.touchpad-label p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Alert box */
.alert {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.5rem;
}

.alert p {
    margin: 0;
    color: var(--text-dim);
}

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

/* Screenshots gallery */
.screenshots-grid {
    display: grid;
    gap: 1.5rem;
}

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

.screenshot-item:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--glow);
    transform: translateY(-4px);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1710 / 1308; /* Reserve space for macOS app screenshots */
    background: var(--bg-elevated);
}

.screenshot-item figcaption {
    padding: 1rem 1.25rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border);
}

.screenshot-item figcaption strong {
    color: var(--text);
    display: block;
    margin-bottom: 0.25rem;
}

/* Lazy load images - hidden until scrolled into view */
.screenshot-item img {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.screenshot-item img.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   GUIDE PAGE STYLES
   ============================================ */

/* Guide header - smaller than main page hero */
.guide-header {
    min-height: auto;
    padding: 4rem 2rem 2rem;
}

.guide-header h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
}

.guide-header p {
    margin-bottom: 1.5rem;
}

/* Breadcrumb navigation */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.5rem 1rem;
}

.breadcrumb a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--text-dim);
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--text);
}

/* Article content */
article {
    padding: 2rem 0 4rem;
}

article h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

article h2:first-of-type {
    margin-top: 0;
}

article h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

article p {
    margin-bottom: 1rem;
    color: var(--text-dim);
    line-height: 1.8;
}

article ul, article ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dim);
}

article li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

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

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

/* Guide steps - vertical layout */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.guide-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.guide-step .step-num {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.guide-step-content {
    flex: 1;
}

.guide-step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.guide-step-content p {
    margin-bottom: 0.5rem;
}

/* Info boxes */
.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.info-box.tip {
    border-color: var(--accent);
    background: rgba(0, 255, 136, 0.05);
}

.info-box.warning {
    border-color: #ffaa00;
    background: rgba(255, 170, 0, 0.05);
}

.info-box h4 {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-box.tip h4 {
    color: var(--accent);
}

.info-box.warning h4 {
    color: #ffaa00;
}

/* CTA Section */
.cta-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 3rem 0;
}

.cta-section h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.cta-section p {
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

/* Comparison table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.comparison-table th,
.comparison-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-card);
    color: var(--text);
    font-weight: 600;
}

.comparison-table td {
    color: var(--text-dim);
}

.comparison-table tr:hover td {
    background: var(--bg-elevated);
}

/* Software list */
.software-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

@media (min-width: 700px) {
    .software-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.software-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.2s;
}

.software-item:hover {
    border-color: var(--accent);
}

.software-item h4 {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.software-item p {
    margin: 0;
    font-size: 0.9rem;
}

.software-item a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
}

.software-item a:hover {
    text-decoration: underline;
}
