/* ───────────────────────────────────────────
   GraphMIDI — Landing page
   ─────────────────────────────────────────── */

@font-face {
    font-family: 'MuseoSlab';
    src: url('assets/font.woff2') format('woff2'), url('assets/font.woff') format('woff');
}

:root {
    --bg: #F8F9F9;
    --text: #1E2120;
    --text-secondary: #525960;
    --text-tertiary: #8A8F8A;
    --accent: #FF4B35;
    --surface: #ffffff;
    --border: rgba(0,0,0,0.08);
    --radius: 8px;
    --max-w: 1040px;

    /* Hero gradient — Hot Coral */
    --hero-grad: radial-gradient(900px circle at 50% 100%, #FF7A6B 0%, #FF4B35 57%, #CC2010 95%);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: Avenir, "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 16px;
    line-height: 23px;
}

a { color: inherit; text-decoration: none; }

div { box-sizing: border-box; }

/* ── Nav ── */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    box-shadow: none;
    transition: background 250ms ease, box-shadow 250ms ease;
}

.nav.scrolled {
    background: #FF4B35;
    box-shadow: 0 1px 0 rgba(0,0,0,0.12);
}

.nav-inner {
    width: min(var(--max-w), 92vw);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'MuseoSlab', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #fff;
    letter-spacing: -0.01em;
}

.nav-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    font-size: 15px;
    font-weight: 500;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    border-bottom: 2px solid transparent;
    line-height: 2rem;
    height: 2rem;
    transition: color 0.15s, border-color 0.15s;
}

.nav-links a:first-child { margin-left: 0; }
.nav-links a:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.6); }

/* ── Hero ── */

.hero {
    padding: min(55px, calc(25px + 2.6vw)) 0 236px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    background: var(--hero-grad) 50% 100%;
    overflow: hidden;
    text-align: center;
}

.hero h1 {
    font-family: 'MuseoSlab', sans-serif;
    font-weight: 500;
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 2px 1px rgba(0,20,80,0.15), 0 4px 3px rgba(0,20,80,0.08);
    margin: 0;
    width: min(710px, 90vw);
}

/* Static first line */
.hero-headline-static {
    display: block;
}

/* Animated cycling lines */
.hero-headline-cycle {
    position: relative;
    height: clamp(40px, 6.5vw, 62px);
    width: min(710px, 90vw);
    overflow: hidden;
}

.hero-headline-cycle span {
    position: absolute;
    left: 0; right: 0;
    font-family: 'MuseoSlab', sans-serif;
    font-weight: 500;
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.1;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 2px 1px rgba(0,20,80,0.15);
    opacity: 0;
}

.hero-headline-cycle span:nth-child(1) { animation: cycle 20s infinite 0s; }
.hero-headline-cycle span:nth-child(2) { animation: cycle 20s infinite 5s; }
.hero-headline-cycle span:nth-child(3) { animation: cycle 20s infinite 10s; }
.hero-headline-cycle span:nth-child(4) { animation: cycle 20s infinite 15s; }

@keyframes cycle {
    0%   { opacity: 0; transform: translateX(80px); }
    5%   { opacity: 1; transform: translateX(0); }
    20%  { opacity: 1; transform: translateX(0); }
    25%  { opacity: 0; transform: translateX(-80px); }
    100% { opacity: 0; transform: translateX(-80px); }
}

.hero-download-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: min(100px, calc(26px + 8vw)) 0 min(20px, calc(10px + 0.8vw)) 0;
}

.download-btn-wrap {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.beta-badge {
    position: absolute;
    top: 50%;
    right: -28px;
    transform: translateY(-50%);
    background: #fff;
    color: #FF4B35;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 20px;
    border: 3px solid rgba(255, 75, 53, 0.2);
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    white-space: nowrap;
    pointer-events: none;
}

.hero-download-wrap .beta-badge {
    opacity: 0.92;
}

.beta-note {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-tertiary);
    font-style: italic;
}

.hero-download {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 78px;
    height: 78px;
    box-sizing: border-box;
    padding: 16px 66px 0 66px;
    background-image: linear-gradient(180deg, #F5F5F5 0%, #E8E8E8 99%);
    box-shadow: 0 40px 40px 0 rgba(145,41,0,0.20), 0 4px 8px -2px rgba(0,0,0,0.08), 0 1px 1px 0 rgba(0,0,0,0.20), inset 0 -1px 3px 0 rgba(0,0,0,0.10), inset 0 2px 1px 0 #FFFFFF;
    border-radius: 39px;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 120ms, transform 120ms;
}

.hero-download:hover {
    transform: scale(1.01);
    box-shadow: 0 45px 50px 0 rgba(145,41,0,0.30), 0 4px 8px -2px rgba(0,0,0,0.11), 0 1px 1px 0 rgba(0,0,0,0.30), inset 0 -1px 3px 0 rgba(0,0,0,0.10), inset 0 2px 1px 0 #FFFFFF;
}

.hero-download:active {
    transform: scale(0.99);
    box-shadow: 0 40px 40px 0 rgba(145,41,0,0.40), 0 4px 8px -2px rgba(0,0,0,0.11), 0 1px 1px 0 rgba(0,0,0,0.30), inset 0 -1px 3px 0 rgba(0,0,0,0.10), inset 0 2px 1px 0 #FFFFFF;
}

.hero-download b {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.125rem;
    color: #FF4B35;
    text-shadow: 0 1px 1px #FFFFFF;
    text-transform: uppercase;
}

.hero-download small {
    font-size: 1rem;
    color: #838583;
}

.hero-sub-link {
    color: #ffffff;
    font-weight: 500;
    opacity: 0.75;
    text-decoration-color: rgba(255,255,255,0.4);
    text-underline-offset: 3px;
    text-decoration: underline;
    background-color: rgba(60,100,200,0.2);
    border-radius: 11px;
    padding: 4px 10px;
    transition: opacity 0.15s;
}
.hero-sub-link:hover { opacity: 1; }

/* ── App Preview ── */

.preview {
    font-size: 0; line-height: 0;
    position: relative;
    margin-top: -190px;
    box-shadow: 0 30px 50px -10px rgba(0,0,0,0.35);
    border-radius: min(20px, 2vw);
    width: min(840px, 92vw);
    overflow: hidden;
}

.preview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: min(20px, 2vw);
}

/* ── Intro blurb ── */

.section-intro {
    font-size: 1.19em;
    line-height: 1.5;
    text-align: center;
    color: var(--text-secondary);
    width: min(600px, 86vw);
    margin: min(100px, calc(4vw + 60px)) 0 0 0;
}

/* ── Compat strip ── */

.compat-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 28px 32px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.compat-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-tertiary);
    opacity: 0.5;
}

/* ── Section shared ── */

.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}

section h2 {
    font-family: 'MuseoSlab', sans-serif;
    font-size: clamp(26px, 3.5vw, 36px);
    font-weight: 500;
    letter-spacing: -0.01em;
    text-align: center;
    line-height: 1.25;
    margin: min(80px, 8vw) 0 min(50px, 5vw) 0;
}

.section-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 17px;
    margin-top: -32px;
    margin-bottom: 48px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Features ── */

.features {
    padding: 80px 0 40px;
}

.features-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0;
    margin-bottom: 20px;
}

.feature-card {
    width: 293px;
    margin-bottom: 60px;
}

.feature-icon {
    width: 100px;
    height: 80px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.feature-icon img, .feature-icon svg {
    width: 80px;
    height: 64px;
    object-fit: contain;
}

.feature-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.19rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #121412;
    line-height: 1.3;
}

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

/* ── Tips / Feature boxes ── */

.tips-section {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0 60px 0;
    background: #F8F9F9;
}

.tips-slider {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: var(--max-w);
    padding: 0 32px 20px;
    gap: 24px;
}

.tipbox {
    flex: 0 0 300px;
    height: 320px;
    padding: 28px 32px;
    background: #FFFFFF;
    box-shadow: 0 10px 20px -4px rgba(0,0,0,0.05), 0 2px 4px 0 rgba(0,0,0,0.05);
    border-radius: 8px;
}

.tipbox h3 {
    height: 48px;
    margin-bottom: 14px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #121412;
}

.tipbox p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ── Use Cases ── */

.use-cases {
    padding: 60px 0 80px;
    background: var(--surface);
}

.use-cases-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 32px;
}

.use-case {
    flex: 0 0 calc(50% - 12px);
    padding: 24px 28px;
}

.use-case h3 {
    font-size: 1.19rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #121412;
}

.use-case p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0;
}

/* ── FAQ Section ── */

.faq {
    padding: 20px 0 80px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 32px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #121412;
}

.faq-item summary::after {
    content: "+";
    font-size: 22px;
    font-weight: 400;
    color: var(--text-tertiary);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    padding-bottom: 20px;
    margin: 0;
}

/* ── Download CTA ── */

.download-cta {
    padding: 100px 0;
    text-align: center;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.download-icon {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.download-cta h2 {
    margin: 0 0 8px 0 !important;
    font-family: 'MuseoSlab', sans-serif;
}

.download-cta .section-sub {
    margin-top: 0;
    margin-bottom: 32px;
}

.btn-download {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 56px;
    background: #FF4B35;
    border-radius: 39px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 150ms, transform 120ms;
}

.btn-download:hover {
    opacity: 0.85;
    transform: scale(1.01);
}

.btn-download:active {
    transform: scale(0.99);
}

.btn-download b {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.1rem;
    color: #ffffff;
    text-transform: uppercase;
}

.btn-download small {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-top: 2px;
}

.download-meta {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ── Footer ── */

footer {
    flex: 0 0 80px;
    align-self: stretch;
    display: flex;
    flex-direction: row;
    padding: 0 40px;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    background-color: #000000;
    color: rgba(255,255,255,0.5);
    line-height: 1.5rem;
    min-height: 72px;
}

footer a {
    text-decoration: none;
    color: rgba(255,255,255,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

footer a:hover {
    color: rgba(255,255,255,0.85);
    border-bottom-color: rgba(255,255,255,0.5);
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand {
    font-family: 'MuseoSlab', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

.footer-links {
    display: flex;
    gap: 24px;
    font-size: 13px;
}

/* ── Guide pages ── */

.guide-updated {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.guide {
    padding: 100px 0 80px;
}

.guide-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px;
}

.guide-breadcrumb {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 32px;
}

.guide-breadcrumb a { color: var(--text-secondary); }
.guide-breadcrumb a:hover { color: var(--accent); }
.guide-breadcrumb span { margin: 0 6px; }

.guide h1 {
    font-family: 'MuseoSlab', sans-serif;
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.guide-intro {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 40px;
}

.guide h2 {
    font-family: 'MuseoSlab', sans-serif;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-align: left;
    margin-top: 48px;
    margin-bottom: 16px;
}

.guide h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }

.guide p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

.guide ul, .guide ol {
    margin: 0 0 20px 24px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.65;
}

.guide li { margin-bottom: 8px; }

.guide code {
    background: #f0f0f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    font-family: "SF Mono", "Menlo", monospace;
}

.guide strong { color: var(--text); font-weight: 600; }

.guide-steps { margin: 32px 0; }

.guide-step {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.guide-step-num {
    width: 36px; height: 36px; min-width: 36px;
    border-radius: 50%;
    background: var(--text);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    margin-top: 2px;
}

.guide-step h3 { margin-bottom: 4px; color: var(--text); }
.guide-step p { margin-bottom: 0; }

.guide-screenshot { margin: 40px 0; }

.guide-screenshot-placeholder {
    background: linear-gradient(145deg, #f0f0f5, #e8e8ed);
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-screenshot-placeholder p {
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 500;
}

.guide-faq { margin: 24px 0; }
.guide-faq h3 { color: var(--text); margin-top: 24px; margin-bottom: 8px; }
.guide-faq p { margin-bottom: 0; }

.guide-cta {
    text-align: center;
    margin: 56px 0 40px;
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.guide-related { margin-top: 40px; }
.guide-related h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.guide-related ul { list-style: none; margin: 0; padding: 0; }
.guide-related li { margin-bottom: 8px; }
.guide-related a { color: var(--accent); font-size: 15px; }
.guide-related a:hover { opacity: 0.7; }

/* ── Guides Index ── */

.guides-hero {
    padding: 140px 0 48px;
    text-align: center;
}

.guides-hero h1 {
    font-family: 'MuseoSlab', sans-serif;
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.guides-grid-section { padding: 0 0 80px; }

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.guide-card-large {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: box-shadow 0.2s, transform 0.2s;
}

.guide-card-large:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}

.guide-card-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff0ee, #ffddd9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    margin-bottom: 20px;
}

.guide-card-large h2 {
    font-family: 'MuseoSlab', sans-serif;
    font-size: 19px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-align: left;
    margin: 0 0 10px 0 !important;
    line-height: 1.3;
}

.guide-card-large p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 auto;
}

.guide-card-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.guide-card-large:hover .guide-card-link { opacity: 0.7; }

.guides-cta-section {
    padding: 80px 0;
    text-align: center;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

/* ── Nav static (guide pages) ── */

.nav-static {
    background: #FF4B35;
    box-shadow: 0 1px 0 rgba(0,0,0,0.12);
}

.nav-links .nav-cta {
    border: 1px solid rgba(255,255,255,0.45);
    padding: 5px 16px;
    border-radius: 20px;
    line-height: 1.6 !important;
    height: auto !important;
}

/* ── Guide CTA button ── */

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 40px;
    background: #FF4B35;
    border-radius: 39px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: opacity 150ms, transform 120ms;
}

.btn-primary:hover { opacity: 0.85; transform: scale(1.01); }
.btn-primary:active { transform: scale(0.99); }

/* ── Footer inner (guide pages) ── */

.footer-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* ── Hero eyebrow (guides index) ── */

.hero-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

/* ── Comparison table ── */

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0 32px;
    font-size: 15px;
}

.comparison-table th {
    background: var(--text);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.04em;
}

.comparison-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    vertical-align: top;
}

.comparison-table tr:nth-child(even) td { background: #f4f5f5; }
.comparison-table tr:hover td { background: #eef0f0; }

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text);
}

.check { color: #22aa55; font-weight: 700; }
.cross { color: #cc3322; font-weight: 700; }
.partial { color: #bb7700; font-weight: 700; }

/* ── Responsive ── */

@media only screen and (max-width: 1080px) {
    .features .section-inner {
        padding: 0 32px;
    }
    .features-grid {
        justify-content: flex-start;
        gap: 24px;
    }
    .feature-card {
        width: calc(50% - 12px);
    }
}

@media only screen and (max-width: 750px) {
    .nav-links a:not(:last-child) { display: none; }
    .hero { padding-bottom: calc(30px + 27.7vw); }
    .preview { margin-top: calc(-21.4vw); }
    .features-grid { flex-direction: column; }
    .feature-card { width: 100%; }
    .use-case { flex: 0 0 100%; }
    .guides-grid { grid-template-columns: 1fr; }
    footer { flex-direction: column; gap: 12px; padding: 20px 24px; min-height: auto; }
    .footer-links { display: none; }
    .compat-strip { flex-wrap: wrap; gap: 8px; }
}

@media only screen and (max-width: 480px) {
    .compat-dot { display: none; }
    .hero h1 { font-size: 8vw; }
    .hero-headline-cycle { height: 9vw; }
    .hero-headline-cycle span { font-size: 8vw; }
}
