/* ===== ClearSky — Apple-inspired System (v2) ===== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

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

:root {
    /* Surfaces (defaults — overridden by theme classes) */
    --bg-page: #f5f5f7;
    --bg-dark: #000000;
    --bg-white: #ffffff;
    --bg-light: #f5f5f7;
    --bg-card: #ffffff;
    --bg-card-dark: #1d1d1f;

    --text-primary: #1d1d1f;
    --text-secondary: rgba(0, 0, 0, 0.72);
    --text-tertiary: rgba(0, 0, 0, 0.48);

    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-soft: rgba(0, 113, 227, 0.08);
    --link-light: #0066cc;
    --link-dark: #2997ff;

    --border-light: rgba(0, 0, 0, 0.08);
    --border-dark: rgba(255, 255, 255, 0.12);

    --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont,
        'PingFang SC', 'Noto Sans SC', 'Source Han Sans CN',
        'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    --font-text: 'SF Pro Text', -apple-system, BlinkMacSystemFont,
        'PingFang SC', 'Noto Sans SC', 'Source Han Sans CN',
        'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    --font-mono: 'SF Mono', ui-monospace, Menlo, monospace;

    --max-width: 1040px;
    --section-padding: 120px 0;
    --radius-card: 18px;
    --radius-tile: 22px;
    --radius-pill: 980px;
}

/* ===== Theme: Warm (gold + cream) ===== */
.theme-warm {
    --bg-page: #f4efe6;
    --bg-light: #f4efe6;
    --bg-white: #faf6ef;
    --bg-card: #faf6ef;
    --accent: #a17434;
    --accent-hover: #b88440;
    --accent-soft: rgba(161, 116, 52, 0.10);
    --link-light: #7d5722;
    --link-dark: #d6a558;
}

/* ===== Theme: Mono (pure black/white) ===== */
.theme-mono {
    --accent: #1d1d1f;
    --accent-hover: #000000;
    --accent-soft: rgba(0, 0, 0, 0.06);
    --link-light: #1d1d1f;
    --link-dark: #ffffff;
}

html { scroll-behavior: smooth }

body {
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-wrap: pretty;
}

a { color: inherit; text-decoration: none }
img { max-width: 100%; height: auto; display: block }
button { font-family: inherit; cursor: pointer; border: none; background: none }

/* ===== Skip link ===== */
.skip-nav {
    position: absolute; top: -100%; left: 16px; z-index: 200;
    background: var(--accent); color: #fff;
    padding: 8px 16px; border-radius: 0 0 8px 8px;
    font-size: 14px; font-weight: 600;
}
.skip-nav:focus { top: 0 }

/* ===== Top Nav ===== */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    height: 48px;
}
.theme-warm .nav { background: rgba(40, 26, 14, 0.82) }
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto; padding: 0 24px;
    height: 48px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 17px; font-weight: 600;
    color: #fff; letter-spacing: -0.01em;
    display: inline-flex; align-items: center; gap: 8px;
}
.nav-logo-mark {
    width: 16px; height: 16px;
    border-radius: 4px;
    background: linear-gradient(135deg, #fff 0%, #d4d4d6 100%);
    display: inline-block;
}
.theme-warm .nav-logo-mark {
    background: linear-gradient(135deg, #e6c98a 0%, #a17434 100%);
}
.nav-links { display: flex; gap: 28px }
.nav-links a {
    font-size: 12px; font-weight: 400;
    color: rgba(255, 255, 255, 0.78);
    transition: color .2s;
}
.nav-links a:hover { color: #fff }

/* ===== Sections ===== */
.section { padding: var(--section-padding); position: relative }
.section-inner {
    max-width: var(--max-width);
    margin: 0 auto; padding: 0 24px;
}
.section-dark { background: var(--bg-dark); color: #fff }
.section-light { background: var(--bg-light); color: var(--text-primary) }
.section-white { background: var(--bg-white); color: var(--text-primary) }
.section + .section { border-top: 0 }

.theme-warm .section-dark { background: #1a120a }

/* ===== Typography ===== */
.eyebrow {
    font-family: var(--font-display);
    font-size: 13px; font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 16px;
}
.section-dark .eyebrow { color: var(--link-dark) }
.theme-mono .section-dark .eyebrow { color: rgba(255,255,255,.7) }

.headline-hero {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.025em;
}
.headline-section {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.015em;
}
.headline-tile {
    font-family: var(--font-display);
    font-size: 24px; font-weight: 600;
    line-height: 1.16; letter-spacing: -0.01em;
}
.subtitle {
    font-family: var(--font-display);
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0;
    margin-top: 16px;
    color: var(--text-secondary);
    max-width: 640px;
}
.section-dark .subtitle { color: rgba(255, 255, 255, 0.72) }
.section-inner.center { text-align: center }
.section-inner.center .subtitle { margin-left: auto; margin-right: auto }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-text);
    font-size: 15px; font-weight: 500;
    padding: 11px 24px;
    border-radius: var(--radius-pill);
    transition: all .2s ease;
    border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px) }
.btn-ghost {
    border-color: rgba(0,0,0,.18);
    color: var(--text-primary);
}
.btn-ghost:hover { background: rgba(0,0,0,.04) }
.section-dark .btn-ghost {
    border-color: rgba(255,255,255,.28);
    color: #fff;
}
.section-dark .btn-ghost:hover { background: rgba(255,255,255,.08) }
.theme-mono .btn-primary { background: #1d1d1f; color: #fff }
.theme-mono .section-dark .btn-primary { background: #fff; color: #000 }

.link-arrow {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--accent);
    font-size: 15px; font-weight: 500;
    transition: gap .2s;
}
.link-arrow:hover { gap: 8px }
.section-dark .link-arrow { color: var(--link-dark) }
.theme-mono .section-dark .link-arrow { color: #fff }

/* ===== Hero ===== */
.hero {
    padding: 80px 0 40px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero-text .headline-hero { margin-bottom: 0 }
.hero-meta {
    margin-top: 32px;
    display: flex; gap: 16px; flex-wrap: wrap;
    align-items: center;
}
.hero-stat {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.6);
}
.hero-stat-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #34c759;
    box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.18);
}

/* Hero mockup composition */
.hero-stage {
    position: relative;
    aspect-ratio: 4 / 5;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}
.mock {
    position: absolute;
    border-radius: 14px;
    overflow: hidden;
    box-shadow:
        0 1px 1px rgba(0,0,0,.04),
        0 12px 28px rgba(0,0,0,.18),
        0 32px 80px rgba(0,0,0,.28);
}

/* JotBee editor mock — back left */
.mock-jotbee {
    width: 78%;
    top: 6%;
    left: 0;
    background: #faf6ef;
    transform: rotate(-3deg);
    border: 1px solid rgba(0,0,0,.06);
}
.theme-mono .mock-jotbee { background: #fff }
.mock-jotbee-bar {
    height: 30px;
    background: linear-gradient(180deg, #f0ebe1 0%, #e8e2d4 100%);
    display: flex; align-items: center; padding: 0 12px; gap: 6px;
    border-bottom: 1px solid rgba(0,0,0,.05);
}
.mock-jotbee-bar i {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(0,0,0,.18);
}
.mock-jotbee-bar i:nth-child(1) { background: #ff5f57 }
.mock-jotbee-bar i:nth-child(2) { background: #febc2e }
.mock-jotbee-bar i:nth-child(3) { background: #28c840 }
.mock-jotbee-body {
    padding: 22px 24px 28px;
    font-family: var(--font-display);
    color: #2a241a;
}
.mock-jotbee-date {
    font-size: 11px; color: #a89a82;
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 8px;
}
.mock-jotbee-title {
    font-size: 17px; font-weight: 600;
    margin-bottom: 12px; line-height: 1.3;
}
.mock-jotbee-line {
    height: 7px; border-radius: 3px;
    background: rgba(58, 44, 24, 0.14);
    margin-bottom: 7px;
}
.mock-jotbee-line.short { width: 64% }
.mock-jotbee-line.medium { width: 84% }
.mock-jotbee-emoji {
    margin-top: 14px;
    display: flex; gap: 6px;
    font-size: 13px;
}
.mock-jotbee-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 100px;
    background: rgba(161, 116, 52, .12);
    color: #a17434;
    font-size: 10px;
    font-weight: 600;
}

/* VoiceBee floating panel — front right */
.mock-voicebee {
    width: 64%;
    bottom: 4%;
    right: 0;
    background: rgba(28, 28, 30, 0.86);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    color: #fff;
    padding: 18px 20px 16px;
    transform: rotate(2.5deg);
    border: 1px solid rgba(255,255,255,.08);
}
.mock-voicebee-text {
    font-family: var(--font-display);
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: -0.005em;
    color: rgba(255,255,255,.95);
}
.mock-voicebee-cursor {
    display: inline-block;
    width: 1px; height: 14px;
    background: #fff;
    margin-left: 1px;
    vertical-align: -2px;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0 } }
.mock-voicebee-bottom {
    margin-top: 14px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.10);
}
.mock-voicebee-wave {
    display: flex; align-items: center; gap: 3px;
    height: 14px;
}
.mock-voicebee-wave span {
    display: block;
    width: 2px;
    background: #ff453a;
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
}
.mock-voicebee-wave span:nth-child(1) { height: 30%; animation-delay: -.4s }
.mock-voicebee-wave span:nth-child(2) { height: 60%; animation-delay: -.2s }
.mock-voicebee-wave span:nth-child(3) { height: 100%; animation-delay: 0s }
.mock-voicebee-wave span:nth-child(4) { height: 70%; animation-delay: -.3s }
.mock-voicebee-wave span:nth-child(5) { height: 45%; animation-delay: -.1s }
.mock-voicebee-wave span:nth-child(6) { height: 80%; animation-delay: -.5s }
@keyframes wave {
    0%, 100% { transform: scaleY(.5) }
    50% { transform: scaleY(1) }
}
.mock-voicebee-kbd {
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255,255,255,.55);
    padding: 3px 8px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 5px;
}

@media (prefers-reduced-motion: reduce) {
    .mock-voicebee-cursor, .mock-voicebee-wave span { animation: none }
}

/* Decorative ambient glow behind mockups */
.hero-stage::before {
    content: '';
    position: absolute;
    inset: -10% -5% -5% -5%;
    background:
        radial-gradient(40% 35% at 70% 30%, var(--accent-soft) 0%, transparent 60%),
        radial-gradient(45% 40% at 30% 70%, var(--accent-soft) 0%, transparent 60%);
    z-index: -1;
    filter: blur(20px);
}

/* ===== Products grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 56px;
}
.product-tile {
    display: flex; flex-direction: column;
    padding: 40px 36px 36px;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-light);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
    color: var(--text-primary);
    min-height: 360px;
}
.section-dark .product-tile {
    background: var(--bg-card-dark);
    border-color: var(--border-dark);
    color: #fff;
}
.product-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0,0,0,.10);
    border-color: rgba(0,0,0,.16);
}
.section-dark .product-tile:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
    border-color: rgba(255,255,255,.22);
}
.product-tile-head {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 20px;
}
.product-tile-icon {
    width: 64px; height: 64px;
    background: #f3ecdc;
    box-shadow: 0 6px 20px rgba(0,0,0,.10);
    flex-shrink: 0;
    object-fit: cover;
    /* True iOS squircle (n=5 superellipse) */
    -webkit-mask-image: url("assets/squircle.svg");
    mask-image: url("assets/squircle.svg");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}
.product-tile-meta { display: flex; flex-direction: column; gap: 2px }
.product-tile h3 {
    font-family: var(--font-display);
    font-size: 26px; font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.1;
}
.product-tile-platform {
    font-size: 12px; color: var(--text-tertiary);
    letter-spacing: 0.04em;
}
.section-dark .product-tile-platform { color: rgba(255,255,255,.5) }
.product-tile-tagline {
    font-family: var(--font-display);
    font-size: 19px; font-weight: 500;
    line-height: 1.32; letter-spacing: -0.01em;
    margin-bottom: 12px;
    max-width: 22ch;
}
.product-tile-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 24px;
}
.section-dark .product-tile-desc { color: rgba(255,255,255,.65) }
.product-tile-features {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 24px;
}
.product-tile-features span {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(0,0,0,.05);
    color: var(--text-secondary);
    font-weight: 500;
}
.section-dark .product-tile-features span {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7);
}
.product-tile-cta {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--accent);
    font-size: 15px; font-weight: 500;
    transition: gap .2s;
}
.product-tile:hover .product-tile-cta { gap: 8px }
.section-dark .product-tile-cta { color: var(--link-dark) }
.theme-mono .section-dark .product-tile-cta { color: #fff }

/* ===== Updates / Timeline ===== */
.updates-timeline {
    margin-top: 56px;
    display: grid;
    gap: 20px;
}
.update-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 32px;
    align-items: flex-start;
    padding: 28px 0;
    border-top: 1px solid var(--border-light);
}
.section-dark .update-row { border-top-color: var(--border-dark) }
.update-row:last-child { border-bottom: 1px solid var(--border-light) }
.section-dark .update-row:last-child { border-bottom-color: var(--border-dark) }
.update-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-tertiary);
    letter-spacing: 0;
    padding-top: 4px;
}
.section-dark .update-date { color: rgba(255,255,255,.5) }
.update-content h3 {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    display: flex; align-items: baseline; gap: 10px;
    flex-wrap: wrap;
}
.update-version {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 2px 8px; border-radius: 4px;
    font-weight: 500;
}
.section-dark .update-version { color: var(--link-dark); background: rgba(41, 151, 255, 0.14) }
.theme-mono .section-dark .update-version { color: #fff; background: rgba(255,255,255,.14) }
.update-list {
    list-style: none;
    margin-top: 10px;
}
.update-list li {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    padding-left: 18px;
    position: relative;
}
.section-dark .update-list li { color: rgba(255,255,255,.7) }
.update-list li::before {
    content: '';
    position: absolute;
    left: 0; top: 11px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .55;
}

/* ===== Principles (was Values) ===== */
.principles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 64px;
    border-top: 1px solid var(--border-light);
}
.section-dark .principles { border-top-color: var(--border-dark) }
.principle {
    padding: 36px 28px 8px;
    border-right: 1px solid var(--border-light);
    text-align: left;
}
.section-dark .principle { border-right-color: var(--border-dark) }
.principle:last-child { border-right: none }
.principle-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}
.section-dark .principle-num { color: rgba(255,255,255,.4) }
.principle h3 {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.005em;
    margin-bottom: 10px;
}
.principle p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.section-dark .principle p { color: rgba(255,255,255,.65) }

/* ===== About strip ===== */
.about-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 1fr;
    gap: 80px;
    align-items: start;
}
.about-strip h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.015em;
}
.about-strip-aside {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}
.section-dark .about-strip-aside {
    color: rgba(255,255,255,.7);
    border-top-color: var(--border-dark);
}
.about-strip-aside p { margin-top: 16px }
.about-strip-aside p:first-child { margin-top: 0 }
.about-strip-aside .link-arrow { margin-top: 24px; display: inline-flex }

/* ===== Blog list ===== */
.blog-list {
    margin-top: 56px;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--border-light);
}
.section-dark .blog-list { border-top-color: var(--border-dark) }
.blog-row {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 28px 8px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    transition: padding .2s ease, background .2s ease;
}
.section-dark .blog-row {
    border-bottom-color: var(--border-dark);
    color: #fff;
}
.blog-row:hover {
    padding-left: 16px; padding-right: 0;
    background: rgba(0,0,0,.02);
}
.section-dark .blog-row:hover { background: rgba(255,255,255,.03) }
.blog-row-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-tertiary);
}
.section-dark .blog-row-date { color: rgba(255,255,255,.5) }
.blog-row h3 {
    font-family: var(--font-display);
    font-size: 19px; font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.005em;
}
.blog-row-arrow {
    color: var(--accent);
    font-size: 15px;
    opacity: 0;
    transform: translateX(-4px);
    transition: all .2s;
}
.blog-row:hover .blog-row-arrow {
    opacity: 1; transform: translateX(0);
}
.section-dark .blog-row-arrow { color: var(--link-dark) }
.theme-mono .section-dark .blog-row-arrow { color: #fff }

.blog-cta {
    margin-top: 32px;
}

/* ===== Notes (replaces Quotes) ===== */
.notes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 56px;
}
.note {
    padding: 32px 28px;
    border-radius: var(--radius-card);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    text-align: left;
}
.section-dark .note {
    background: var(--bg-card-dark);
    border-color: var(--border-dark);
}
.note-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.section-dark .note-num { color: rgba(255,255,255,.4) }
.note p {
    font-family: var(--font-display);
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: -0.005em;
    color: var(--text-primary);
}
.section-dark .note p { color: rgba(255,255,255,.92) }

/* ===== CTA ===== */
.cta-block {
    text-align: center;
    padding: 24px 0;
}
.cta-buttons {
    display: flex; gap: 12px; justify-content: center;
    margin-top: 36px;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-white);
    color: var(--text-secondary);
    padding: 64px 0 32px;
    border-top: 1px solid var(--border-light);
}
.theme-warm .footer { background: #efe7d7 }
.section-dark + .footer { /* no extra rule */ }
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand {
    font-family: var(--font-display);
    font-size: 20px; font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.footer-tagline {
    font-size: 13px;
    color: var(--text-tertiary);
    max-width: 28ch;
}
.footer-col h4 {
    font-size: 12px; font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}
.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 2.1;
    transition: color .2s;
}
.footer-col a:hover { color: var(--accent) }
.footer-legal {
    max-width: var(--max-width);
    margin: 48px auto 0;
    padding: 20px 24px 0;
    border-top: 1px solid var(--border-light);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ===== Fade-in ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; transition: none }
    html { scroll-behavior: auto }
}

/* ===== Product page ===== */
.product-hero {
    text-align: center;
    padding: 100px 0 60px;
}
.product-hero-icon {
    width: 140px; height: 140px;
    background: #f3ecdc;
    margin: 0 auto 32px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    display: block;
    object-fit: cover;
    /* True iOS squircle (n=5 superellipse) */
    -webkit-mask-image: url("assets/squircle.svg");
    mask-image: url("assets/squircle.svg");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}
.product-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 88px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.025em;
}
.product-hero .product-hero-tag {
    font-family: var(--font-display);
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 400;
    margin-top: 16px;
    color: var(--text-secondary);
}
.section-dark .product-hero .product-hero-tag { color: rgba(255,255,255,.72) }
.product-hero-meta {
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
}
.section-dark .product-hero-meta { color: rgba(255,255,255,.5) }

/* Product sub-nav */
.subnav {
    position: sticky; top: 48px; z-index: 99;
    background: rgba(255,255,255,.78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-light);
    height: 48px;
}
.subnav-inner {
    max-width: var(--max-width);
    margin: 0 auto; padding: 0 24px;
    height: 48px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px;
}
.subnav-name {
    font-family: var(--font-display);
    font-size: 17px; font-weight: 600;
    color: var(--text-primary);
    display: inline-flex; align-items: center; gap: 10px;
}
.subnav-name img {
    width: 22px; height: 22px;
    background: #f3ecdc;
    object-fit: cover;
    -webkit-mask-image: url("assets/squircle.svg");
    mask-image: url("assets/squircle.svg");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}
.subnav-links {
    display: flex; gap: 24px;
    overflow-x: auto;
}
.subnav-links a {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color .2s;
}
.subnav-links a:hover { color: var(--accent) }

/* Feature large block */
.feature-block {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}
.feature-block h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.feature-block .subtitle {
    margin-left: auto; margin-right: auto;
    font-size: clamp(17px, 1.6vw, 21px);
}

/* Feature grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 56px;
    text-align: left;
}
.feature-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-light);
    transition: transform .3s, box-shadow .3s;
}
.section-dark .feature-card {
    background: var(--bg-card-dark);
    border-color: var(--border-dark);
}
.section-light .feature-card { background: var(--bg-white) }
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.feature-card-icon {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 18px;
}
.section-dark .feature-card-icon { background: rgba(41,151,255,.16); color: var(--link-dark) }
.feature-card h3 {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.005em;
}
.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.section-dark .feature-card p { color: rgba(255,255,255,.65) }

/* Steps */
.steps {
    max-width: 720px;
    margin: 56px auto 0;
    display: grid;
    gap: 0;
}
.step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    padding: 28px 0;
    align-items: flex-start;
    border-bottom: 1px solid var(--border-light);
}
.step:last-child { border-bottom: none }
.section-dark .step { border-bottom-color: var(--border-dark) }
.step-num-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 14px; font-weight: 600;
}
.step-text h3 {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: -0.005em;
}
.step-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.section-dark .step-text p { color: rgba(255,255,255,.7) }

/* Stats row */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 56px;
    border-top: 1px solid var(--border-light);
}
.section-dark .stats { border-top-color: var(--border-dark) }
.stat {
    padding: 36px 16px;
    text-align: center;
    border-right: 1px solid var(--border-light);
}
.section-dark .stat { border-right-color: var(--border-dark) }
.stat:last-child { border-right: none }
.stat-num {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
}
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}
.section-dark .stat-label { color: rgba(255,255,255,.6) }

/* Changelog (product page) */
.changelog {
    max-width: 720px;
    margin: 48px auto 0;
}
.changelog-entry {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-light);
}
.changelog-entry:last-child { border-bottom: none }
.section-dark .changelog-entry { border-bottom-color: var(--border-dark) }
.changelog-entry h3 {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 600;
    margin-bottom: 12px;
    display: flex; align-items: baseline; gap: 10px;
    flex-wrap: wrap;
}
.changelog-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 400;
}
.section-dark .changelog-date { color: rgba(255,255,255,.5) }
.changelog-entry ul { list-style: none }
.changelog-entry li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.9;
    padding-left: 18px;
    position: relative;
}
.section-dark .changelog-entry li { color: rgba(255,255,255,.7) }
.changelog-entry li::before {
    content: '';
    position: absolute;
    left: 0; top: 11px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .55;
}

/* JotBee specific: device mockups */
.devices-row {
    margin-top: 64px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: center;
}
.mac-mock {
    aspect-ratio: 16 / 10;
    background: linear-gradient(180deg, #faf6ef 0%, #f0ebe1 100%);
    border-radius: 14px 14px 4px 4px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 30px 60px rgba(0,0,0,.18);
    overflow: hidden;
    position: relative;
}
.mac-mock::after {
    content: '';
    position: absolute;
    bottom: -10px; left: -4%;
    right: -4%;
    height: 14px;
    background: linear-gradient(180deg, #d4d4d6 0%, #b0b0b3 100%);
    border-radius: 0 0 8px 8px;
}
.mac-mock-bar {
    height: 32px;
    background: linear-gradient(180deg, #ede7d8 0%, #e3dcc9 100%);
    display: flex; align-items: center; padding: 0 14px; gap: 6px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.mac-mock-bar i {
    width: 11px; height: 11px; border-radius: 50%;
}
.mac-mock-bar i:nth-child(1) { background: #ff5f57 }
.mac-mock-bar i:nth-child(2) { background: #febc2e }
.mac-mock-bar i:nth-child(3) { background: #28c840 }
.mac-mock-body {
    padding: 28px 36px;
}
.mac-mock-body .mock-jotbee-date { font-size: 12px; margin-bottom: 12px }
.mac-mock-body .mock-jotbee-title { font-size: 22px; margin-bottom: 18px }
.mac-mock-body .mock-jotbee-line { height: 9px; margin-bottom: 9px }
.iphone-mock {
    aspect-ratio: 9 / 19;
    max-width: 240px;
    margin: 0 auto;
    background: #1a120a;
    border-radius: 32px;
    padding: 6px;
    box-shadow: 0 30px 60px rgba(0,0,0,.25);
    position: relative;
}
.iphone-mock-screen {
    background: linear-gradient(180deg, #faf6ef 0%, #f4efe5 100%);
    border-radius: 26px;
    height: 100%;
    overflow: hidden;
    padding: 36px 18px 18px;
    position: relative;
}
.iphone-mock-screen::before {
    content: '';
    position: absolute; top: 12px; left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 22px;
    background: #1a120a;
    border-radius: 14px;
}
.iphone-mock-line {
    height: 6px; border-radius: 3px;
    background: rgba(58,44,24,.14);
    margin-bottom: 6px;
}
.iphone-mock-line.short { width: 60% }
.iphone-mock-line.med { width: 80% }
.iphone-reflect {
    margin-top: 16px;
    padding: 12px 14px;
    background: rgba(161,116,52,.08);
    border-left: 2px solid #a17434;
    border-radius: 0 8px 8px 0;
}
.iphone-reflect-label {
    font-family: var(--font-mono);
    font-size: 9px;
    color: #a17434;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.iphone-reflect-line {
    height: 5px; border-radius: 3px;
    background: rgba(58,44,24,.14);
    margin-bottom: 5px;
}
.iphone-reflect-line.short { width: 70% }

/* VoiceBee specific: big hero panel */
.vb-hero-panel {
    margin: 56px auto 0;
    max-width: 600px;
    padding: 32px 40px 28px;
    background: rgba(28,28,30,.86);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 20px;
    color: #fff;
    box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.vb-hero-text {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.4;
    color: rgba(255,255,255,.95);
    text-align: left;
}
.vb-hero-bottom {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.10);
    display: flex; align-items: center; justify-content: space-between;
}
.vb-hero-bottom .mock-voicebee-wave { height: 22px }
.vb-hero-bottom .mock-voicebee-wave span { width: 3px }

/* ===== Origin Story (freejournal.app) ===== */
.origin-timeline {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: stretch;
    margin: 80px 0 64px;
}
.origin-step {
    padding: 36px 32px;
    border: 1px solid var(--border-dark);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
}
.section-white .origin-step,
.section-light .origin-step {
    border-color: var(--border-light);
    background: rgba(0, 0, 0, 0.015);
}
.origin-step-current {
    background: var(--accent-soft);
    border-color: var(--accent);
}
.origin-step-year {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.origin-step-name {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 4px;
}
.origin-step-tag {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
    font-style: italic;
}
.section-dark .origin-step-tag { color: rgba(255,255,255,0.45) }
.origin-step p {
    font-size: 15px;
    line-height: 1.62;
    color: var(--text-secondary);
    margin: 0;
}
.section-dark .origin-step p { color: rgba(255,255,255,0.72) }
.origin-step code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: rgba(0,0,0,0.06);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--accent);
}
.section-dark .origin-step code { background: rgba(255,255,255,0.08) }

.origin-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    padding: 0 12px;
}
.section-dark .origin-arrow { color: rgba(255,255,255,0.32) }

.origin-quote {
    margin: 48px auto 0;
    max-width: 720px;
    padding: 40px 48px;
    border-left: 2px solid var(--accent);
}
.origin-quote p {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.005em;
    text-wrap: pretty;
    margin: 0 0 16px;
}
.section-dark .origin-quote p { color: rgba(255,255,255,0.92) }
.origin-quote-cite {
    font-size: 13px;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}
.section-dark .origin-quote-cite { color: rgba(255,255,255,0.5) }

@media (max-width: 980px) {
    .origin-timeline {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .origin-arrow { transform: rotate(90deg); padding: 8px 0 }
    .origin-quote { padding: 32px 24px; margin-top: 32px }
    .origin-quote p { font-size: 19px }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    :root { --section-padding: 88px 0 }
    .hero {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 56px 0 24px;
    }
    .hero-stage { max-width: 380px }
    .principles { grid-template-columns: 1fr 1fr }
    .principle:nth-child(2) { border-right: none }
    .principle:nth-child(1), .principle:nth-child(2) { border-bottom: 1px solid var(--border-light) }
    .section-dark .principle:nth-child(1), .section-dark .principle:nth-child(2) { border-bottom-color: var(--border-dark) }
    .notes { grid-template-columns: 1fr }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand-col { grid-column: 1 / -1 }
    .about-strip { grid-template-columns: 1fr; gap: 32px }
    .blog-row { grid-template-columns: 100px 1fr auto; gap: 16px }
    .update-row { grid-template-columns: 1fr; gap: 8px }
    .update-date { padding-top: 0 }
    .features-grid { grid-template-columns: 1fr 1fr }
    .stats { grid-template-columns: 1fr 1fr }
    .stat:nth-child(2) { border-right: none }
    .devices-row { grid-template-columns: 1fr; gap: 48px }
}
@media (max-width: 640px) {
    :root { --section-padding: 64px 0 }
    .products-grid { grid-template-columns: 1fr }
    .principles { grid-template-columns: 1fr }
    .principle { border-right: none; border-bottom: 1px solid var(--border-light) }
    .section-dark .principle { border-bottom-color: var(--border-dark) }
    .principle:last-child { border-bottom: none }
    .footer-inner { grid-template-columns: 1fr }
    .footer-legal { flex-direction: column; gap: 8px; text-align: center }
    .nav-links { display: none }
    .blog-row { grid-template-columns: 1fr; gap: 4px }
    .blog-row-arrow { display: none }
    .blog-row-date { font-size: 12px }
}

/* ===== Brand Guidelines page ===== */
.brand-logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 56px;
}
.brand-logo-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 56px 48px;
    text-align: center;
}
.section-dark .brand-logo-card {
    background: #1d1d1f;
    border-color: var(--border-dark);
}
.brand-logo-name {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
}
.brand-logo-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.section-dark .brand-logo-desc { color: rgba(255,255,255,0.6) }

.brand-rules {
    display: grid;
    gap: 16px;
}
.brand-rule {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
    align-items: start;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 24px 28px;
}
.section-dark .brand-rule {
    background: #1d1d1f;
    border-color: var(--border-dark);
}
.brand-rule-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.brand-rule-mark.do { background: #3aa86a }
.brand-rule-mark.dont { background: #d24343 }
.brand-rule-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}
.section-dark .brand-rule-title { color: rgba(255,255,255,0.5) }
.brand-rule p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.62;
}
.section-dark .brand-rule p { color: rgba(255,255,255,0.7) }

.brand-color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.brand-color-card {
    border-radius: var(--radius-card);
    padding: 32px 28px;
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid var(--border-dark);
}
.brand-color-name {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.brand-color-hex {
    font-family: var(--font-mono);
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 12px;
}
.brand-color-role {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.85;
}

.brand-type-stack {
    display: grid;
    gap: 0;
}
.brand-type-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    padding: 32px 0;
    border-top: 1px solid var(--border-light);
    align-items: center;
}
.brand-type-row:last-child { border-bottom: 1px solid var(--border-light) }
.section-dark .brand-type-row { border-color: var(--border-dark) }
.section-dark .brand-type-row:last-child { border-color: var(--border-dark) }
.brand-type-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}
.section-dark .brand-type-meta { color: rgba(255,255,255,0.5) }

.brand-squircle-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.brand-squircle-demo {
    background: #1d1d1f;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-card);
    padding: 56px 32px;
    text-align: center;
}
.brand-squircle-label {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    margin-top: 32px;
    color: #fff;
}
.brand-squircle-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin-top: 6px;
    line-height: 1.5;
}

.brand-naming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.brand-naming-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-card);
    padding: 40px 32px;
    text-align: center;
}
.brand-naming-name {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--accent);
}
.brand-naming-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.brand-naming-future .brand-naming-name {
    color: var(--text-tertiary);
    font-style: italic;
}
.brand-naming-future {
    border-style: dashed;
    background: transparent;
}

.brand-voice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.brand-voice-col {
    background: #1d1d1f;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-card);
    padding: 32px;
}
.brand-voice-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.brand-voice-list {
    list-style: none;
    display: grid;
    gap: 14px;
}
.brand-voice-list li {
    font-size: 15px;
    color: rgba(255,255,255,0.78);
    line-height: 1.5;
    padding-left: 16px;
    position: relative;
}
.brand-voice-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 9px;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
    .brand-logo-grid,
    .brand-color-grid,
    .brand-naming-grid,
    .brand-squircle-row,
    .brand-voice-grid { grid-template-columns: 1fr }
    .brand-type-row { grid-template-columns: 1fr; gap: 8px }
}
