/* ======================================
   VoicyCare - Dark Audio Theme
   ====================================== */

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

/* ---- Design Tokens ---- */
:root {
    /* Dark Audio Palette */
    --bg-primary: #F5F5FA;
    --bg-secondary: #EBEBF2;
    --bg-elevated: #FFFFFF;
    --bg-surface: #E2E2EC;
    --accent-primary: #0BBAB0;
    --accent-warm: #E8872E;
    --text-primary: #1A1A2E;
    --text-secondary: #5C5C72;
    --text-muted: #8888A0;
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(0, 229, 204, 0.25);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(0, 229, 204, 0.15);
    --shadow-warm: 0 0 24px rgba(255, 159, 67, 0.25);

    /* Gradients */
    --gradient-warm: linear-gradient(135deg, #FF9F43 0%, #FF6B35 100%);
    --gradient-accent: linear-gradient(135deg, #00E5CC 0%, #00B4D8 100%);
    --gradient-dark: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);

    /* Legacy compat (policy-styles.css) */
    --primary-color: #0BBAB0;
    --secondary-color: #0BBAB0;
    --accent-color: #E8872E;
    --trust-color: #1A1A2E;
    --text-dark: #1A1A2E;
    --text-light: #5C5C72;
    --background-light: #F5F5FA;
    --background-white: #FFFFFF;
    --glass-bg: #FFFFFF;
    --glass-border: rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #0BBAB0 0%, #00B4D8 100%);
    --gradient-text: linear-gradient(135deg, #0BBAB0 0%, #E8872E 100%);
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* ---- Base ---- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #33EDD8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---- Focus ---- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 4px;
    border-radius: 4px;
    box-shadow: 0 0 0 6px rgba(0, 229, 204, 0.15);
}

/* ---- SVG Icons (inline sprite) ---- */
.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    vertical-align: middle;
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

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

.icon-xl {
    width: 48px;
    height: 48px;
}

/* ======================================
   Header
   ====================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 245, 250, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background: rgba(245, 245, 250, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    padding-left: calc(24px + env(safe-area-inset-left));
    padding-right: calc(24px + env(safe-area-inset-right));
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo-text {
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo-text .icon {
    stroke: var(--accent-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
    padding: 4px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* ======================================
   Buttons
   ====================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--gradient-warm);
    color: #fff;
    box-shadow: var(--shadow-warm);
    animation: pulse-glow 3s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 32px rgba(255, 159, 67, 0.4);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 159, 67, 0.2); }
    50% { box-shadow: 0 0 32px rgba(255, 159, 67, 0.4); }
}

/* ======================================
   Hero
   ====================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 229, 204, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(80px);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 159, 67, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    filter: blur(80px);
    pointer-events: none;
}

/* Spectrum Analyzer Canvas */
.spectrum-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    display: block;
    font-family: 'Source Sans 3', 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.03em;
}

.hero-main-title {
    display: block;
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.03em;
}

.hero-description {
    display: block;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Hero stat pills */
.hero-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid var(--border-subtle);
    transition: border-color 0.3s, transform 0.3s;
}

.hero-feature:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.hero-feature .icon {
    flex-shrink: 0;
}

.hero-feature-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Phone frame with real screenshot */
.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.phone-frame {
    width: 280px;
    background: #1A1A2E;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15), 0 0 60px rgba(11, 186, 176, 0.06);
    border: 2px solid rgba(0, 0, 0, 0.1);
    animation: float 6s ease-in-out infinite;
}

.phone-frame img {
    border-radius: 28px;
    width: 100%;
    height: auto;
}

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

/* News ticker inside hero */
.news-ticker {
    margin-top: 2rem;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.news-ticker-tag {
    background: var(--accent-primary);
    color: var(--bg-primary);
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.news-ticker time {
    color: var(--text-muted);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* ======================================
   Section Common
   ====================================== */
.section-title {
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 3rem;
    position: relative;
    letter-spacing: -0.02em;
    /* clip-path reveal animation handled in JS */
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 4px;
    background: var(--gradient-accent);
    margin-top: 1rem;
    border-radius: 2px;
}

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

.section-title--center::after {
    margin-left: auto;
    margin-right: auto;
}

/* ======================================
   Features Section
   ====================================== */
.features-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

/* Top 3 feature slabs */
.feature-slab {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    margin-bottom: 2rem;
    background: var(--bg-elevated);
    border-radius: 24px;
    border: 1px solid var(--border-subtle);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.feature-slab:hover {
    box-shadow: var(--shadow-glow);
}

.feature-slab.reverse {
    direction: rtl;
}

.feature-slab.reverse > * {
    direction: ltr;
}

.feature-slab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-slab-icon .icon {
    width: 80px;
    height: 80px;
    stroke: var(--accent-primary);
    opacity: 0.6;
}

.feature-slab-content h3 {
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-slab-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.feature-slab-content ul {
    list-style: none;
}

.feature-slab-content li {
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-slab-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    opacity: 0.6;
}

/* Compact feature cards (4 in a row) */
.features-compact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card-compact {
    background: var(--bg-elevated);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card-compact:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
}

.feature-card-compact .icon {
    margin-bottom: 1rem;
}

.feature-card-compact h3 {
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-card-compact p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Legacy feature card (used by articles, etc.) */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-elevated);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.feature-title {
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

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

.feature-list li {
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-primary);
    opacity: 0.6;
}

/* ======================================
   Screenshots - Horizontal Carousel
   ====================================== */
.screenshots-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.screenshots-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-surface) transparent;
}

.screenshots-carousel::-webkit-scrollbar {
    height: 6px;
}

.screenshots-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.screenshots-carousel::-webkit-scrollbar-thumb {
    background: var(--bg-surface);
    border-radius: 3px;
}

.screenshot-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    transition: transform 0.3s;
}

.screenshot-item:hover {
    transform: scale(1.02);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(10, 10, 15, 0.85));
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Legacy screenshots (compat) */
.screenshots {
    padding: 100px 0;
    background: var(--bg-primary);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.screenshot-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
}

.screenshot-card img {
    display: block;
    width: 100%;
    height: auto;
}

.screenshot-caption {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: var(--bg-elevated);
}

/* ======================================
   Benefits + FAQ Combined
   ====================================== */
.benefits-faq-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

/* Benefits cards */
.benefits-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.benefit-card-new {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s, border-color 0.3s;
}

.benefit-card-new:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
}

.benefit-card-new .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
}

.benefit-card-new h3 {
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.benefit-card-new p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* FAQ accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    transition: color 0.2s;
}

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

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent-primary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-answer {
    padding: 0 0 1.25rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Legacy benefits (compat) */
.benefits {
    padding: 100px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s, border-color 0.3s;
}

.benefit-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-accent);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
}

.benefit-title {
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.benefit-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ======================================
   Articles
   ====================================== */
.articles-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.article-card {
    background: var(--bg-elevated);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
}

.article-card a {
    display: block;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
}

.article-card .icon {
    margin-bottom: 1rem;
}

.article-card h3 {
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.article-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ======================================
   Download + Tech Specs Combined
   ====================================== */
.download-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.download-section .section-title {
    color: var(--text-primary);
}

.download-content {
    max-width: 700px;
    margin: 0 auto;
}

.download-subtitle {
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.download-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.store-badges a,
.store-badges span {
    display: inline-block;
}

.store-badges img {
    display: inline-block;
}

.android-btn.coming-soon {
    position: relative;
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.coming-soon-label {
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.download-note {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: var(--bg-elevated);
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

/* Tech specs pills */
.tech-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tech-pill strong {
    color: var(--text-primary);
}

/* Legacy download (compat) */
.download {
    padding: 100px 0;
    background: var(--bg-secondary);
    text-align: center;
}

.download .section-title {
    color: var(--text-primary);
}

.download .section-title::after {
    background: var(--gradient-accent);
}

/* Legacy tech specs */
.tech-specs {
    padding: 80px 0;
    background: var(--bg-primary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tech-card {
    background: var(--bg-elevated);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.tech-title {
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

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

.tech-list li {
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-primary);
}

/* ======================================
   Contact (legacy compat)
   ====================================== */
.contact {
    padding: 100px 0;
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-subtitle {
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.contact-developer {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.contact-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.form-note {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tally-form-container {
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
}

/* ======================================
   Footer
   ====================================== */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-app-name {
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-download-link {
    color: var(--accent-primary);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-download-link:hover {
    color: var(--text-primary);
}

.footer-lang-section {
    margin-bottom: 2rem;
}

.footer-lang-section h4 {
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--accent-primary);
}

.footer-lang-section ul {
    list-style: none;
}

.footer-lang-section li {
    margin-bottom: 0.4rem;
}

.footer-lang-section a,
.footer-lang-section p a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-lang-section a:hover {
    color: var(--text-primary);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-section h4 {
    font-family: 'DM Sans', 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--accent-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.4rem;
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ======================================
   Consent Banner
   ====================================== */
.consent-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(10, 10, 15, 0.95);
    color: var(--text-primary);
    padding: 14px 0;
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border-subtle);
}

.consent-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.consent-banner__text {
    flex: 1;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.consent-privacy-link {
    color: var(--accent-primary);
    margin-left: 8px;
}

.consent-banner__actions {
    display: flex;
    gap: 8px;
}

.consent-btn {
    appearance: none;
    border: 0;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.consent-accept {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.consent-reject {
    background: var(--bg-surface);
    color: var(--text-secondary);
}

/* ======================================
   Breadcrumb
   ====================================== */
.breadcrumb {
    background: var(--bg-secondary);
    padding: 12px 24px;
    margin-top: 64px;
    border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '\203A';
    margin-left: 8px;
    color: var(--text-muted);
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li:last-child span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ======================================
   Related Articles
   ====================================== */
.related-articles {
    background: var(--bg-secondary);
    padding: 60px 0;
    margin-top: 60px;
}

.related-card {
    background: var(--bg-elevated);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s, border-color 0.3s;
    overflow: hidden;
}

.related-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
}

.related-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-content {
    padding: 20px;
}

.related-content h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.5;
}

.related-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.read-more {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ======================================
   Animations
   ====================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Scroll-triggered via JS */
.anim-hidden {
    opacity: 0;
}

.anim-reveal-left {
    animation: revealLeft 0.6s ease forwards;
}

@keyframes revealLeft {
    from {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }
    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

.anim-slide-left {
    animation: slideInLeft 0.6s ease forwards;
}

.anim-slide-right {
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.anim-scale-in {
    animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.anim-fade-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* ======================================
   Reduced Motion
   ====================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .phone-frame {
        animation: none;
    }

    .btn-primary {
        animation: none;
    }
}

/* ======================================
   Responsive
   ====================================== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
        margin-right: calc(8px + env(safe-area-inset-right));
    }

    .nav-container {
        position: relative;
        padding-right: calc(24px + env(safe-area-inset-right));
    }

    .nav-menu.active {
        display: flex;
        position: absolute;
        top: 64px;
        right: 0;
        left: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-subtle);
        box-shadow: var(--shadow-md);
        z-index: 1001;
    }

    .nav-menu.active li {
        border-top: 1px solid var(--border-subtle);
    }

    .nav-menu.active a {
        display: block;
        padding: 14px 24px;
        font-size: 1.05rem;
        color: var(--text-primary);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .header {
        padding-right: env(safe-area-inset-right);
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-main-title {
        font-size: 2.5rem;
    }

    .hero-features {
        justify-content: center;
    }

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

    .phone-frame {
        width: 220px;
    }

    .feature-slab {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .feature-slab.reverse {
        direction: ltr;
    }

    .feature-slab-icon .icon {
        width: 56px;
        height: 56px;
    }

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

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

    .screenshots-carousel {
        scroll-padding-left: 24px;
    }

    .screenshot-item {
        flex: 0 0 240px;
    }

    .benefits-grid-new,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-lang-section {
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .phone-frame {
        width: 200px;
    }

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

    .feature-card {
        padding: 1.5rem;
    }

    .consent-banner__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .consent-banner__actions {
        justify-content: flex-end;
    }
}

