:root {
    --primary: #00F2FF;
    --primary-color: #00F2FF;
    --primary-color-rgb: 0, 242, 255;
    --accent-blue: var(--accent-blue);
    --primary-alt: #00D8E6;
    --primary-glow: rgba(0, 242, 255, 0.4);
    --text-warning: #F59E0B;
    --text-muted: #6B7280;
    --bg: #FFFFFF;
    --text: #50505F;
    --text-dark: #1A1A1F;
    --gray-light: #F8FAFC;
    --gray-med: #94A3B8;
    --container-width: 1100px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 40px 80px -20px rgba(0, 0, 0, 0.1);
}

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

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* Coming Soon Banner */
.coming-soon-banner {
    background: var(--primary);
    color: var(--text-dark);
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.price-sep {
    color: var(--gray-med);
    margin: 0 0.3em;
    font-weight: 400;
}

/* LAUNCH: remove this block when going live */
.coming-soon-price {
    display: inline-block;
    margin: 1.5rem 0;
    padding: 0.75rem 1.5rem;
    background: var(--gray-light);
    border: 1px dashed var(--gray-med);
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 1rem;
    font-style: italic;
}

/* Navigation */
nav {
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    transition: var(--transition);
}

nav .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo-text {
    display: inline-block;
    color: #686868;
}

.nav-logo {
    height: 32px;
    width: auto;
}

.inline-logo {
    height: 24px;
    width: auto;
    vertical-align: middle;
    margin-right: 8px;
}

.logo-text span {
    color: var(--primary);
}

.links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.links a {
    text-decoration: none;
    color: var(--text);
    margin-left: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    white-space: nowrap;
}

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

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
    margin-left: 2rem;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3em;
}

.nav-dropdown-toggle:hover {
    color: var(--primary);
}

.nav-dropdown-toggle svg {
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown:focus-within .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-top: 1.25rem solid transparent;
    background-clip: padding-box;
    min-width: 230px;
    padding: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.65rem 1rem;
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    margin-left: 0;
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
}

.nav-dropdown-menu .dropdown-meta {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.5;
    display: block;
}

/* Tutorial Markdown Renderer */
.tutorial-page {
    background: var(--text-dark);
    color: #E0E0E0;
    min-height: 100vh;
}

.tutorial-page nav {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

.tutorial-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 6rem 1.5rem 8rem;
}

.markdown-body h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.markdown-body > p:first-of-type {
    font-size: 1.1rem;
    opacity: 0.65;
    margin-bottom: 3.5rem;
}

.markdown-body h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin: 3rem 0 1rem;
}

.markdown-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 2rem 0 0.75rem;
}

.markdown-body p {
    line-height: 1.8;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.markdown-body ul,
.markdown-body ol {
    padding-left: 1.5rem;
    margin: 0.75rem 0 1rem;
}

.markdown-body li {
    line-height: 1.8;
    margin-bottom: 0.3rem;
    opacity: 0.85;
}

.markdown-body code {
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    padding: 0.15em 0.45em;
    border-radius: 5px;
    font-size: 0.875em;
}

.markdown-body pre {
    margin: 1.5rem 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.markdown-body pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: 0.875rem;
}

.markdown-body pre[class*="language-"] {
    margin: 1.5rem 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.markdown-body blockquote {
    background: rgba(0, 242, 255, 0.07);
    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    opacity: 1;
}

.markdown-body blockquote p {
    opacity: 1;
    margin: 0;
}

.markdown-body hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 3rem 0;
}

.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.markdown-body th {
    padding: 0.75rem 1rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.markdown-body td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
    opacity: 0.85;
}

.markdown-body tr:last-child td {
    border-bottom: none;
}

.markdown-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    opacity: 0.4;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: radial-gradient(circle at 90% 15%, rgba(0, 242, 255, 0.13) 0%, var(--text-dark) 45%);
}

.hero h1 { color: white; }
.hero p  { color: rgba(255, 255, 255, 0.75); }

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 0;
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-image img {
    width: 100%;
    border-radius: 32px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}


/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--primary-alt);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--text);
}

.btn-secondary:hover {
    background: #E8EEF2;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Value Strip (below hero) */
.value-strip {
    background: var(--gray-light);
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 1.5rem 0;
}

.value-strip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.value-strip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.value-strip-check {
    font-size: 1rem;
}

.value-strip-compare {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.value-strip-summary {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Features */
.features {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--text-dark);
}

/* Feature Section (Zig-Zag) */
.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 3rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-row.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-row:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-image {
    flex: 1;
    border-radius: 20px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-image:hover img {
    transform: scale(1.05);
}

.feature-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.15);
}

/* Feature Grid (for cards) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 3rem;
    border-radius: 28px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    background: white;
    box-shadow: var(--shadow-soft);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium), 0 0 0 1px var(--primary-glow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--gray-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover .feature-icon-wrapper,
.feature-row:hover .feature-icon-wrapper {
    background: var(--bg);
    color: var(--primary);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 20px rgba(0, 242, 255, 0.15);
    border-color: var(--primary-glow);
}

.pro-icon {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* Download Section */
.download-section {
    padding: 8rem 0;
    background: var(--text-dark);
    color: white;
    border-radius: 40px 40px 0 0;
}

.download-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.price-tag {
    font-size: 3rem;
    font-weight: 800;
    margin: 2rem 0;
    color: var(--primary);
}

.price-tag small {
    font-size: 1rem;
    display: block;
    color: #AAA;
    font-weight: 400;
}

.btn-large {
    background: white;
    color: black;
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
    border-radius: 50px;
}

/* Templates Area / Deck Packs */
.templates-area {
    margin-top: 6rem;
    padding: 6rem 3rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.templates-area h3 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.template-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
}

.category-card h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-card .category-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.category-card p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.btn-download {
    background: var(--primary);
    color: var(--text-dark);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 16px;
    font-weight: 800;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.btn-download:hover {
    background: white;
    transform: scale(1.05);
}

.tutorial-link-area {
    margin-top: 6rem;
    text-align: center;
}

.btn-tutorial {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.2rem 2.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), var(--accent-blue));
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 20px 40px -10px rgba(0, 242, 255, 0.4);
    transition: var(--transition);
}

.btn-tutorial:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(0, 242, 255, 0.6);
}

/* Privacy / hardware tips */
.privacy-tip {
    background: rgba(var(--primary-color-rgb), 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 1rem;
    border-left: 2px solid var(--primary-color);
}

.privacy-tip--warning {
    background: none;
    border-left: none;
    color: var(--text-warning);
    padding-left: 0;
}

/* Feature bullet list (digitizer section) */
.feature-list {
    margin-top: 1rem;
    list-style: none;
    padding-left: 0;
    color: var(--text-muted);
}

.feature-list li {
    margin-bottom: 0.5rem;
}

/* Eye-catcher / Hello World */
.eye-catcher {
    text-align: center;
    padding: 4rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.eye-catcher h2 {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
    margin: 0;
}

.eye-catcher p {
    font-size: 1.5rem;
    opacity: 0.6;
    margin-top: 1rem;
}

/* Animated mic image */
#animated-mic {
    transition: opacity 0.3s ease-in-out;
}

/* Section title spacing */
.section-title {
    margin-top: 4rem;
}

/* Value stack (download section) */
.value-stack {
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: center;
}

.value-stack > p {
    font-size: 1rem;
    opacity: 0.75;
}

/* Trust signals */
.trust-signals {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
}

/* Templates area subtitle */
.templates-area > p {
    text-align: center;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto 4rem;
}

/* Tutorial link area */
.tutorial-link-area > p {
    margin-bottom: 2rem;
    opacity: 0.6;
}

/* AIDE badge */
.aide-badge {
    margin-top: 1.5rem;
}

.aide-badge a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 242, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--primary-glow);
    font-size: 0.8rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid #EEE;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--text);
    margin-left: 2rem;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .feature-row,
    .feature-row:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
    }

    .feature-image {
        width: 100%;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .cta-group {
        justify-content: center;
    }

    .template-categories {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 3rem;
        margin-top: 3rem;
        text-align: left;
    }

    .category h4 {
        color: var(--primary);
        margin-bottom: 1rem;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .category a {
        display: block;
        color: white;
        text-decoration: none;
        margin-bottom: 0.5rem;
        font-weight: 500;
        transition: var(--transition);
    }

    .category a:hover {
        color: var(--primary);
        padding-left: 5px;
    }

    .hero-image {
        order: -1;
    }

    .footer-grid {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}