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

:root {
    /* Warm Paper Palette */
    --bg-main: #FAFAF9;
    --bg-secondary: #F5F4F1;
    --bg-tertiary: #EFEDE8;

    /* Text Colors */
    --text-main: #1A1A19;
    --text-secondary: #37352F;
    --text-muted: #787774;
    --text-subtle: #9B9A97;

    /* Accent - Warm orange */
    --accent-primary: #D97757;
    --accent-hover: #C4603E;
    --accent-light: #FDF4F0;
    --accent-glow: rgba(217, 119, 87, 0.15);

    /* Complementary */
    --accent-secondary: #5C8A6B;
    --accent-tertiary: #6B7C95;

    /* 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.025;
    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, 250, 249, 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.35rem;
    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.1);
}

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

.btn-primary:hover svg {
    transform: translateY(2px);
}

.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(92, 138, 107, 0.08), transparent 40%),
        radial-gradient(ellipse 50% 30% at 10% 80%, rgba(107, 124, 149, 0.06), 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-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;
}

/* ============================================
   Hero Mock - Floating Bar + Editor
   ============================================ */

.hero-mock {
    position: relative;
    width: 100%;
    transition: transform 0.5s var(--ease-out-expo);
}

/* Floating Bar Mock */
.mock-floating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 30, 30, 0.92);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 1.5rem;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.mock-fb-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #FF453A;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.mock-fb-waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 24px;
    flex: 1;
}

.mock-fb-waveform span {
    width: 3px;
    border-radius: 2px;
    background: var(--accent-primary);
    animation: waveform 0.8s ease-in-out infinite alternate;
}

.mock-fb-waveform span:nth-child(1) { height: 30%; animation-delay: 0s; }
.mock-fb-waveform span:nth-child(2) { height: 60%; animation-delay: 0.05s; }
.mock-fb-waveform span:nth-child(3) { height: 80%; animation-delay: 0.1s; }
.mock-fb-waveform span:nth-child(4) { height: 50%; animation-delay: 0.15s; }
.mock-fb-waveform span:nth-child(5) { height: 90%; animation-delay: 0.2s; }
.mock-fb-waveform span:nth-child(6) { height: 40%; animation-delay: 0.25s; }
.mock-fb-waveform span:nth-child(7) { height: 70%; animation-delay: 0.3s; }
.mock-fb-waveform span:nth-child(8) { height: 55%; animation-delay: 0.35s; }
.mock-fb-waveform span:nth-child(9) { height: 85%; animation-delay: 0.4s; }
.mock-fb-waveform span:nth-child(10) { height: 45%; animation-delay: 0.45s; }
.mock-fb-waveform span:nth-child(11) { height: 65%; animation-delay: 0.5s; }
.mock-fb-waveform span:nth-child(12) { height: 75%; animation-delay: 0.55s; }
.mock-fb-waveform span:nth-child(13) { height: 35%; animation-delay: 0.6s; }
.mock-fb-waveform span:nth-child(14) { height: 80%; animation-delay: 0.65s; }
.mock-fb-waveform span:nth-child(15) { height: 50%; animation-delay: 0.7s; }

@keyframes waveform {
    0% { transform: scaleY(0.3); }
    100% { transform: scaleY(1); }
}

.mock-fb-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
}

.mock-fb-timer {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

/* Editor Mock */
.mock-editor {
    background: #1E1E1E;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
}

.mock-editor-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #2D2D2D;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

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

.mock-editor-dots span:nth-child(1) { background: #FF5F56; }
.mock-editor-dots span:nth-child(2) { background: #FFBD2E; }
.mock-editor-dots span:nth-child(3) { background: #27C93F; }

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

.mock-editor-body {
    padding: 1.25rem 0;
}

.mock-editor-line {
    display: flex;
    align-items: baseline;
    padding: 2px 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.8;
}

.mock-editor-line.active {
    background: rgba(255,255,255,0.03);
}

.mock-line-number {
    width: 2rem;
    text-align: right;
    margin-right: 1rem;
    color: rgba(255,255,255,0.2);
    user-select: none;
    flex-shrink: 0;
}

.mock-line-text {
    color: #E0E0E0;
}

.mock-editor-line:first-child .mock-line-text {
    color: #569CD6;
}

#typing-text {
    color: #CE9178;
}

/* ============================================
   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);
}

.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, #faf9f6, #f0ede6);
    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, #f2e4dc, #fce8e0) !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 / Demo Showcase
   ============================================ */

.video-showcase {
    max-width: 800px;
    margin: 3.5rem auto 4rem;
    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(217, 119, 87, 0.1);
}

.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;
}

/* ============================================
   Demo Container (replaces video)
   ============================================ */

.demo-container {
    background: var(--bg-secondary);
    padding: 2.5rem 2rem;
}

/* Demo Flow - 3 Steps */
.demo-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
}

.demo-step {
    flex: 1;
    max-width: 200px;
    text-align: center;
}

.demo-step-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 16px;
    margin: 0 auto 1rem;
    color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-subtle);
}

.demo-step-content {
    text-align: center;
}

.demo-step-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: 0.35rem;
}

.demo-step-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

/* Step 1: Waveform */
.demo-step-wave {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 28px;
}

.demo-step-wave span {
    width: 3px;
    border-radius: 2px;
    background: var(--accent-primary);
    opacity: 0.6;
    animation: waveform 0.8s ease-in-out infinite alternate;
}

.demo-step-wave span:nth-child(1) { height: 25%; animation-delay: 0s; }
.demo-step-wave span:nth-child(2) { height: 55%; animation-delay: 0.08s; }
.demo-step-wave span:nth-child(3) { height: 80%; animation-delay: 0.16s; }
.demo-step-wave span:nth-child(4) { height: 45%; animation-delay: 0.24s; }
.demo-step-wave span:nth-child(5) { height: 90%; animation-delay: 0.32s; }
.demo-step-wave span:nth-child(6) { height: 35%; animation-delay: 0.4s; }
.demo-step-wave span:nth-child(7) { height: 70%; animation-delay: 0.48s; }
.demo-step-wave span:nth-child(8) { height: 50%; animation-delay: 0.56s; }
.demo-step-wave span:nth-child(9) { height: 85%; animation-delay: 0.64s; }
.demo-step-wave span:nth-child(10) { height: 40%; animation-delay: 0.72s; }

/* Step 2: Text preview */
.demo-step-text-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    line-height: 1.4;
}

.demo-step-text-preview .raw {
    color: var(--text-subtle);
    text-decoration: line-through;
    opacity: 0.6;
}

.demo-step-text-preview .arrow-down {
    color: var(--accent-primary);
    line-height: 1;
}

.demo-step-text-preview .refined {
    color: var(--accent-primary);
    font-weight: 500;
}

/* Step 3: Cursor */
.demo-step-cursor {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-blink {
    color: var(--accent-primary);
    animation: blink 1s step-end infinite;
}

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

/* Demo Arrow */
.demo-arrow {
    display: flex;
    align-items: center;
    color: var(--text-subtle);
    margin-top: 20px;
    flex-shrink: 0;
}

/* ============================================
   How it Works Section - Hub Mock
   ============================================ */

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

.mock-hub {
    display: flex;
    min-height: 320px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.mock-hub-sidebar {
    width: 180px;
    background: var(--bg-main);
    border-right: 1px solid var(--border-subtle);
    padding: 1rem 0;
    flex-shrink: 0;
}

.mock-hub-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: default;
    transition: background 0.2s;
}

.mock-hub-nav-item.active {
    background: var(--accent-light);
    color: var(--accent-primary);
    font-weight: 500;
}

.mock-hub-main {
    flex: 1;
    padding: 1.5rem;
}

.mock-hub-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mock-stat-card {
    background: var(--bg-main);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.mock-stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

.mock-stat-label {
    font-size: 0.7rem;
    color: var(--text-subtle);
    margin-top: 0.25rem;
}

.mock-hub-history-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-subtle);
    margin-bottom: 0.75rem;
}

.mock-history-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

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

.mock-history-text {
    font-size: 0.825rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.mock-history-meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-subtle);
}

/* ============================================
   Footer / CTA 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;
}

.download-note {
    font-size: 0.8rem !important;
    color: var(--text-subtle) !important;
    margin-top: 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.15rem;
    }

    .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;
    }

    .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 3rem;
    }

    .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;
    }

    /* Demo responsive */
    .demo-container {
        padding: 1.5rem 1rem;
    }

    .demo-flow {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .demo-step {
        max-width: 100%;
    }

    .demo-arrow {
        transform: rotate(90deg);
        margin-top: 0;
    }

    /* Hub Mock responsive */
    .mock-hub-sidebar {
        width: 140px;
    }

    .mock-hub-nav-item {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .mock-hub-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .mock-stat-value {
        font-size: 1.15rem;
    }

    .mock-stat-label {
        font-size: 0.6rem;
    }

    .mock-history-text {
        font-size: 0.75rem;
    }

    .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;
    }

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

    h2 {
        font-size: 1.35rem;
    }

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

    .feature-card {
        padding: 1.25rem;
    }

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

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

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

    /* Floating bar responsive */
    .mock-floating-bar {
        padding: 10px 14px;
        gap: 8px;
        max-width: 300px;
    }

    .mock-fb-label {
        font-size: 0.65rem;
    }

    .mock-fb-timer {
        font-size: 0.65rem;
    }

    /* Editor responsive */
    .mock-editor-body {
        padding: 0.75rem 0;
    }

    .mock-editor-line {
        font-size: 0.75rem;
        padding: 2px 0.75rem;
    }

    .mock-line-number {
        width: 1.5rem;
        margin-right: 0.5rem;
    }

    /* Hub mock responsive */
    .mock-hub {
        flex-direction: column;
        min-height: auto;
    }

    .mock-hub-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        display: flex;
        padding: 0.5rem;
        gap: 0;
    }

    .mock-hub-nav-item {
        flex: 1;
        justify-content: center;
        font-size: 0.65rem;
        padding: 6px 4px;
    }

    .mock-hub-nav-item svg {
        display: none;
    }

    .mock-hub-main {
        padding: 1rem;
    }

    .mock-stat-card {
        padding: 0.75rem 0.5rem;
    }

    .mock-stat-value {
        font-size: 1rem;
    }

    .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 .hero-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);
    }
}

/* ============================================
   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;
}
