/* ============================================
   Voiceit Landing Page
   ============================================ */

:root {
    /* Cool Palette */
    --bg-main: #FAFBFC;
    --bg-secondary: #F4F5F7;
    --bg-tertiary: #EBEDF0;

    /* Text Colors */
    --text-main: #1A1B1E;
    --text-secondary: #2D2E33;
    --text-muted: #6B7280;
    --text-subtle: #9CA3AF;

    /* Accent - Blue/Teal */
    --accent-primary: #3B82F6;
    --accent-hover: #2563EB;
    --accent-light: #EFF6FF;
    --accent-glow: rgba(59, 130, 246, 0.12);

    /* Complementary */
    --accent-secondary: #10B981;
    --accent-tertiary: #8B5CF6;

    /* Borders & Shadows */
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 60px var(--accent-glow);

    /* Typography */
    --font-display: 'Fraunces', 'Noto Sans JP', serif;
    --font-body: 'DM Sans', 'Noto Sans JP', sans-serif;
    --font-mono: 'JetBrains Mono', 'Menlo', monospace;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 960px;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ============================================
   Base Styles
   ============================================ */

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

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

body {
    background-color: var(--bg-main);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.02;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

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

/* ============================================
   Typography
   ============================================ */

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-tertiary);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    color: var(--accent-primary);
}

/* ============================================
   Navigation
   ============================================ */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    background: rgba(250, 251, 252, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
    transition: all 0.3s var(--ease-out-quart);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    transition: color 0.2s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out-expo);
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s var(--ease-out-quart);
    border: none;
}

.btn svg {
    transition: transform 0.25s var(--ease-out-expo);
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.15);
}

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

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--text-subtle);
    transform: translateY(-2px);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

/* ============================================
   Hero Section
   ============================================ */

#hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -20%, var(--accent-glow), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(16, 185, 129, 0.06), transparent 40%),
        radial-gradient(ellipse 50% 30% at 10% 80%, rgba(139, 92, 246, 0.05), transparent 30%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    margin-bottom: 3rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

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

/* Hero Image / App Mock */
.hero-image-wrapper {
    position: relative;
    margin-top: 1rem;
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, var(--accent-glow), transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}

/* ============================================
   App Mock (Hero Screenshot)
   ============================================ */

.app-mock {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    background: #1a1b1e;
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}

.hero-image-wrapper:hover .app-mock {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.app-mock-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #2d2e33;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.app-mock-dots {
    display: flex;
    gap: 6px;
}

.app-mock-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.app-mock-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.app-mock-body {
    display: flex;
    min-height: 320px;
}

/* Sidebar */
.mock-sidebar {
    width: 220px;
    background: #222326;
    border-right: 1px solid rgba(255,255,255,0.06);
    padding: 12px 8px;
    flex-shrink: 0;
}

.mock-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: background 0.2s;
}

.mock-sidebar-item.active {
    background: rgba(59, 130, 246, 0.1);
}

.mock-icon {
    color: var(--accent-primary);
    font-size: 0.5rem;
    margin-top: 4px;
    opacity: 0.6;
}

.mock-sidebar-item.active .mock-icon {
    opacity: 1;
}

.mock-sidebar-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mock-text-line {
    height: 8px;
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
}

.mock-text-line.bold {
    height: 10px;
    background: rgba(255,255,255,0.2);
}

.mock-text-line.small {
    height: 6px;
    background: rgba(255,255,255,0.06);
}

/* Main Area */
.mock-main {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
}

.mock-main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mock-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 3px 10px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: pulse-badge 2s ease-in-out infinite;
}

.mock-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #EF4444;
    border-radius: 50%;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Transcript */
.mock-transcript {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.mock-transcript-entry {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mock-speaker {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
}

.speaker-a { color: #60A5FA; }
.speaker-b { color: #34D399; }

.mock-transcript-entry .mock-text-line {
    height: 7px;
    background: rgba(255,255,255,0.08);
}

/* Typing cursor */
.mock-transcript-entry.typing {
    position: relative;
}

.mock-typing-cursor {
    width: 2px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 1px;
    animation: blink-cursor 1s step-end infinite;
    display: inline-block;
    margin-top: 2px;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ============================================
   Section Headers
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    background: var(--accent-light);
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================
   Features Section
   ============================================ */

#features {
    padding: var(--section-padding) 0;
    background: white;
    position: relative;
}

#features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

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

.feature-card {
    padding: 2rem;
    border-radius: 16px;
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    transition: box-shadow 0.35s var(--ease-out-expo),
                border-color 0.35s var(--ease-out-expo),
                transform 0.35s var(--ease-out-expo);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-medium);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f5ff, #e0eaff);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    color: var(--accent-primary);
    transition: transform 0.3s var(--ease-out-expo);
}

.feature-card:hover .feature-icon-box {
    transform: scale(1.1) rotate(-3deg);
    background: linear-gradient(135deg, #dbeafe, #bfdbfe) !important;
}

.feature-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

.feature-card p {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ============================================
   Video Showcase / Demo Section
   ============================================ */

#demo {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
}

.video-showcase {
    max-width: 800px;
    margin: 3.5rem auto 0;
    padding: 0 1rem;
}

.video-frame {
    position: relative;
    background: var(--bg-main);
    border-radius: 16px;
    box-shadow:
        0 0 0 1px var(--border-subtle),
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 20px 40px -8px rgba(0, 0, 0, 0.08),
        0 40px 80px -16px var(--accent-glow);
    overflow: hidden;
    transition: transform 0.4s var(--ease-out-expo),
                box-shadow 0.4s var(--ease-out-expo);
}

.video-frame:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 0 1px var(--border-subtle),
        0 8px 12px -2px rgba(0, 0, 0, 0.06),
        0 24px 48px -8px rgba(0, 0, 0, 0.1),
        0 48px 96px -16px rgba(59, 130, 246, 0.08);
}

.video-frame-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(180deg,
        var(--bg-secondary) 0%,
        var(--bg-tertiary) 100%);
    border-bottom: 1px solid var(--border-subtle);
}

.video-frame-dots {
    display: flex;
    gap: 6px;
}

.video-frame-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.video-frame:hover .video-frame-dots span:nth-child(1) {
    background: #FF5F57;
    border-color: #E54640;
}

.video-frame:hover .video-frame-dots span:nth-child(2) {
    background: #FFBD2E;
    border-color: #DEA123;
}

.video-frame:hover .video-frame-dots span:nth-child(3) {
    background: #28CA41;
    border-color: #1AAB29;
}

.video-frame-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: -0.01em;
}

.video-container {
    position: relative;
    background: #1A1B1E;
}

.video-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at center,
        rgba(59, 130, 246, 0.1) 0%,
        transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   Video Mock (HTML Demo)
   ============================================ */

.video-mock {
    position: relative;
    z-index: 1;
    padding: 2.5rem 2rem;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-mock-inner {
    width: 100%;
    max-width: 600px;
}

/* Waveform Animation */
.demo-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
    margin-bottom: 2rem;
}

.waveform-bar {
    width: 3px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: waveform 1.2s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.06s);
    opacity: 0.7;
}

@keyframes waveform {
    0%, 100% { height: 8px; opacity: 0.4; }
    50% { height: 28px; opacity: 1; }
}

/* Transcript Lines */
.demo-transcript-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-line {
    opacity: 0;
    transform: translateY(8px);
    animation: fade-in-line 0.6s ease-out forwards;
}

.demo-line-1 { animation-delay: 0.5s; }
.demo-line-2 { animation-delay: 2s; }
.demo-line-3 { animation-delay: 3.5s; }
.demo-line-4 { animation-delay: 5s; }

@keyframes fade-in-line {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.demo-speaker {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.demo-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Status Bar */
.demo-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.demo-rec-dot {
    width: 6px;
    height: 6px;
    background: #EF4444;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ============================================
   Languages Section
   ============================================ */

#languages {
    padding: var(--section-padding) 0;
    background: white;
    position: relative;
}

#languages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.language-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    max-width: 700px;
    margin: 0 auto;
}

.lang-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s var(--ease-out-quart);
}

.lang-tag:hover {
    background: var(--accent-light);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ============================================
   Footer / CTA / Download Section
   ============================================ */

#download {
    position: relative;
    padding: var(--section-padding) 0 60px;
    text-align: center;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% 100%, var(--accent-glow), transparent 50%),
        linear-gradient(to bottom, var(--bg-main), var(--bg-secondary));
    pointer-events: none;
}

.cta-box {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.75rem;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.extension-download {
    max-width: 700px;
    margin: 3.5rem auto 0;
    padding: 2.5rem;
    background: white;
    border: 1px solid var(--border-medium);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 84px;
}

.extension-download h2 {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    line-height: 1.5;
}

.extension-download h2 span {
    display: inline-block;
}

.extension-download .extension-note {
    margin: 1rem 0 0;
    font-size: 0.85rem;
}

.extension-guide {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-medium);
    text-align: left;
    font-size: 0.9rem;
}

.extension-guide summary {
    width: fit-content;
    color: var(--accent-hover);
    font-weight: 600;
    cursor: pointer;
}

.extension-download a:focus-visible,
.extension-guide summary:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 4px;
}

.extension-guide ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.extension-guide li + li {
    margin-top: 0.75rem;
}

.extension-guide code {
    overflow-wrap: anywhere;
}

.extension-guide p {
    margin-bottom: 1rem;
}

.extension-guide p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .extension-download {
        padding: 1.5rem;
    }

    .extension-download .btn {
        width: 100%;
        padding-inline: 1rem;
    }
}

.footer-bottom {
    position: relative;
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-subtle);
}

/* ============================================
   Animations
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.8s var(--ease-out-expo),
        transform 0.8s var(--ease-out-expo);
    transition-delay: calc(var(--delay, 0) * 0.1s);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

#hero .fade-in {
    transition-delay: calc(0.2s + var(--delay, 0) * 0.12s);
}

.feature-card.fade-in {
    transition-delay: calc(var(--delay, 0) * 0.15s);
}

.feature-card.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .container {
        padding: 0 1.25rem;
    }

    #navbar {
        height: 56px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .nav-links {
        display: none;
    }

    #hero {
        padding: 100px 0 60px;
    }

    h1 {
        font-size: 2.25rem;
    }

    .subtitle {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .hero-image-wrapper {
        margin-top: 2rem;
    }

    /* App Mock responsive */
    .mock-sidebar {
        width: 160px;
    }

    .app-mock-body {
        min-height: 240px;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-label {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .section-desc {
        font-size: 1rem;
    }

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

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon-box {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }

    .feature-icon-box svg {
        width: 20px;
        height: 20px;
    }

    .feature-card h3 {
        font-size: 0.95rem;
    }

    .feature-card p {
        font-size: 0.875rem;
    }

    .video-showcase {
        margin: 2.5rem auto 0;
    }

    .video-frame {
        border-radius: 12px;
    }

    .video-frame-header {
        padding: 12px 14px;
    }

    .video-frame-dots span {
        width: 8px;
        height: 8px;
    }

    .video-frame-title {
        font-size: 0.7rem;
    }

    .video-mock {
        padding: 1.5rem 1rem;
        min-height: 280px;
    }

    .demo-text {
        font-size: 0.8rem;
    }

    .language-tags {
        gap: 0.5rem;
    }

    .lang-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .cta-box p {
        font-size: 1rem;
    }

    .download-buttons {
        flex-direction: column;
    }

    .footer-bottom {
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }

    .container {
        padding: 0 1rem;
    }

    #hero {
        padding: 90px 0 50px;
    }

    h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Hide sidebar on very small screens */
    .mock-sidebar {
        display: none;
    }

    .app-mock-body {
        min-height: 200px;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .section-desc {
        font-size: 0.9rem;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .video-showcase {
        padding: 0 0.75rem;
    }

    .video-frame {
        border-radius: 10px;
    }

    .video-frame-title {
        display: none;
    }

    .video-mock {
        padding: 1.25rem 0.75rem;
        min-height: 240px;
    }

    .demo-waveform {
        margin-bottom: 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.35rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .feature-card:hover {
        transform: none;
        box-shadow: none;
    }

    .feature-card:hover .feature-icon-box {
        transform: none;
    }

    .hero-image-wrapper:hover .app-mock {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    .video-frame:hover {
        transform: none;
        box-shadow:
            0 0 0 1px var(--border-subtle),
            0 4px 6px -1px rgba(0, 0, 0, 0.05),
            0 20px 40px -8px rgba(0, 0, 0, 0.08),
            0 40px 80px -16px var(--accent-glow);
    }

    .video-frame:hover .video-frame-dots span:nth-child(1),
    .video-frame:hover .video-frame-dots span:nth-child(2),
    .video-frame:hover .video-frame-dots span:nth-child(3) {
        background: var(--bg-tertiary);
        border-color: rgba(0, 0, 0, 0.08);
    }

    .lang-tag:hover {
        transform: none;
    }
}

/* ============================================
   Selection & Focus Styles
   ============================================ */

::selection {
    background: var(--accent-light);
    color: var(--accent-hover);
}

:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

:target {
    scroll-margin-top: 80px;
}
