/* ===== CINNABAR LAB — Light Theme ===== */

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

:root {
    --red:        #E53935;
    --red-dark:   #B71C1C;
    --red-light:  #FEE2E2;
    --red-mid:    #FECACA;
    --bg:         #F8F9FC;
    --surface:    #FFFFFF;
    --surface2:   #F2F4F8;
    --border:     #E5E7EB;
    --border-soft:#F0F0F5;
    --text:       #111827;
    --muted:      #6B7280;
    --muted-light:#9CA3AF;
    --green:      #16A34A;
    --blue:       #2563EB;
    --yellow:     #D97706;
    --purple:     #7C3AED;
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg:  0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== NAV ===== */

nav {
    background: rgba(255,255,255,0.85);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo {
    width: 30px;
    height: 30px;
}

.nav-brand span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    gap: 4px;
    margin-left: auto;
    align-items: center;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--surface2);
    text-decoration: none;
}

.nav-links a.active {
    color: var(--red);
    background: var(--red-light);
}

/* ===== HERO ===== */

.hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 32px 64px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-text {}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--red);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 18px;
}

.hero h1 span { color: var(--red); }

.hero-desc {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 420px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-appstore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text);
    color: white;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s;
    box-shadow: var(--shadow-md);
}

.btn-appstore:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    text-decoration: none;
    color: white;
}

.btn-appstore svg { flex-shrink: 0; }

.btn-appstore .btn-text { line-height: 1.2; }
.btn-appstore .btn-sub { font-size: 0.7rem; font-weight: 400; opacity: 0.75; display: block; }
.btn-appstore .btn-main { font-size: 0.95rem; font-weight: 700; }

.hero-note {
    font-size: 0.8rem;
    color: var(--muted-light);
    margin-top: 14px;
}

/* ===== PHONE MOCKUP ===== */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 240px;
    flex-shrink: 0;
    filter: drop-shadow(var(--shadow-lg));
}

.phone-frame {
    background: #1a1a1a;
    border-radius: 40px;
    padding: 14px;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.08),
        0 30px 80px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.phone-screen {
    background: #111;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 9/19.5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.phone-screen-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #1a1d27 0%, #0f1117 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255,255,255,0.15);
    font-size: 0.75rem;
    text-align: center;
    padding: 16px;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 18px 18px;
    z-index: 2;
}

/* Second phone (slightly offset) */
.phones-container {
    position: relative;
    width: 280px;
    height: 480px;
}

.phone-mockup-back {
    position: absolute;
    width: 220px;
    right: -10px;
    top: 24px;
    opacity: 0.6;
    transform: rotate(5deg);
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}

.phone-mockup-front {
    position: absolute;
    width: 230px;
    left: 0;
    top: 0;
    transform: rotate(-2deg);
}

/* ===== MAIN CONTENT ===== */

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

section {
    margin-bottom: 32px;
}

/* ===== SECTION HEADERS ===== */

.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 8px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
    margin-bottom: 24px;
}

/* ===== FEATURES GRID ===== */

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.55;
}

/* ===== CONTACT CARD ===== */

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-card p {
    font-size: 0.875rem;
    color: var(--muted);
}

.contact-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s, transform 0.15s;
}

.contact-email-btn:hover {
    background: var(--red-dark);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* ===== INFO ROWS ===== */

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-soft);
}

.info-row:last-child { border-bottom: none; }

.info-row-icon {
    font-size: 1.1rem;
    margin-top: 2px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.info-row p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

.info-row strong { color: var(--text); }

/* ===== ROADMAP PAGE ===== */

.roadmap-hero {
    text-align: center;
    padding: 72px 32px 48px;
    max-width: 600px;
    margin: 0 auto;
}

.roadmap-hero .hero-eyebrow { display: block; text-align: center; }
.roadmap-hero h1 { font-size: 2.6rem; }

.roadmap-hero p {
    font-size: 1rem;
    color: var(--muted);
    margin-top: 12px;
}

.version-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.version-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-soft);
}

.version-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.badge-complete { background: #DCFCE7; color: #15803D; border: 1px solid #BBF7D0; }
.badge-current  { background: var(--red-light); color: var(--red); border: 1px solid var(--red-mid); }
.badge-next     { background: #DBEAFE; color: #1D4ED8; border: 1px solid #BFDBFE; }
.badge-planned  { background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }
.badge-backlog  { background: #F3E8FF; color: #6D28D9; border: 1px solid #DDD6FE; }

.version-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.version-header p {
    font-size: 0.83rem;
    color: var(--muted);
    margin-top: 2px;
}

.version-body { padding: 4px 0; }

.roadmap-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--border-soft);
}

.roadmap-item:last-child { border-bottom: none; }

.roadmap-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 2px;
}

.check-done    { background: #DCFCE7; color: #15803D; }
.check-pending { background: var(--surface2); border: 1.5px solid var(--border); }

.roadmap-item p {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

/* ===== RELEASE HISTORY TABLE ===== */

.release-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.release-table th {
    text-align: left;
    padding: 10px 16px;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.release-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text);
    vertical-align: top;
}

.release-table tr:last-child td { border-bottom: none; }

.release-table td:first-child {
    font-weight: 700;
    color: var(--red);
    white-space: nowrap;
}

.release-table td:nth-child(2) {
    color: var(--muted);
    white-space: nowrap;
}

/* ===== FOOTER ===== */

footer {
    border-top: 1px solid var(--border);
    padding: 28px 32px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

footer p {
    font-size: 0.8rem;
    color: var(--muted-light);
}

.footer-links {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
}

.footer-links a {
    color: var(--muted-light);
}

.footer-links a:hover {
    color: var(--text);
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 720px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 48px 24px 40px;
    }

    .hero h1 { font-size: 2.2rem; }
    .hero-desc { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }

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

    main { padding: 0 24px 60px; }

    .contact-card { flex-direction: column; align-items: flex-start; }

    footer { flex-direction: column; align-items: flex-start; padding: 24px; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
}
