/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --accent: #00d4aa;
    --accent-glow: rgba(0, 212, 170, 0.3);
    --accent-hover: #00f5c4;
    --danger: #f85149;
    --warning: #d29922;
    --border: #30363d;
    --shadow: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-tertiary: #eaeef2;
    --text-primary: #1f2328;
    --text-secondary: #656d76;
    --text-muted: #8c959f;
    --accent: #00a67d;
    --accent-glow: rgba(0, 166, 125, 0.2);
    --accent-hover: #00c896;
    --border: #d0d7de;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ===== Typography ===== */
.highlight {
    color: var(--accent);
}

.brand {
    color: var(--accent);
}

strong {
    color: var(--text-primary);
    font-weight: 600;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Navigation ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.logo:hover {
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--bg-primary);
    animation: logoMove 2s ease-in-out infinite;
}

@keyframes logoMove {
    0%, 100% { transform: translate(-2px, -2px); }
    25% { transform: translate(2px, -2px); }
    50% { transform: translate(2px, 2px); }
    75% { transform: translate(-2px, 2px); }
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
    fill: var(--text-secondary);
}

.sun-icon { display: none; }
[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

.nav-install-btn {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.nav-install-btn.show {
    display: flex;
}

.nav-install-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.nav-install-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Install App Button - Always Visible */
.install-app-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.install-app-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.install-app-btn svg {
    width: 16px;
    height: 16px;
}

/* ===== Hero Section ===== */
main {
    padding-top: 80px;
}

.hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem 2rem 1.5rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 .highlight {
    -webkit-text-fill-color: var(--accent);
}

.hero .intro-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto 1rem;
    line-height: 1.7;
}

.hero .intro-text .highlight {
    color: var(--accent);
    font-weight: 500;
}

/* ===== Tool Container ===== */
.tool-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 2rem;
}

.tool-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card.active::before {
    opacity: 1;
}

/* ===== Movement Indicator ===== */
.movement-indicator {
    width: 100%;
    max-width: 280px;
    height: 160px;
    margin: 0 auto 1.5rem;
    position: relative;
    background: var(--bg-tertiary);
    border-radius: 16px;
    border: 2px solid var(--border);
    overflow: hidden;
}

.movement-indicator::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 49.5%, var(--border) 49.5%, var(--border) 50.5%, transparent 50.5%),
        linear-gradient(0deg, transparent 49.5%, var(--border) 49.5%, var(--border) 50.5%, transparent 50.5%);
    opacity: 0.5;
}

.movement-cursor {
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.movement-cursor svg {
    width: 100%;
    height: 100%;
    fill: var(--text-muted);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: fill 0.3s;
}

.movement-cursor.active svg {
    fill: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent-glow)) drop-shadow(0 0 20px var(--accent-glow));
    animation: moveCursor 1s ease-in-out infinite;
}

.movement-cursor.paused svg {
    fill: var(--warning);
    filter: drop-shadow(0 0 10px rgba(210, 153, 34, 0.3));
    animation: none;
}

@keyframes moveCursor {
    0% { top: 30%; left: 30%; }
    12.5% { top: 25%; left: 50%; }
    25% { top: 30%; left: 70%; }
    37.5% { top: 50%; left: 75%; }
    50% { top: 70%; left: 70%; }
    62.5% { top: 75%; left: 50%; }
    75% { top: 70%; left: 30%; }
    87.5% { top: 50%; left: 25%; }
    100% { top: 30%; left: 30%; }
}

.movement-trail {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.movement-cursor.active ~ .movement-trail {
    animation: trail 1s ease-in-out infinite;
}

.movement-trail:nth-child(2) { animation-delay: -0.04s; opacity: 0.6; }
.movement-trail:nth-child(3) { animation-delay: -0.08s; opacity: 0.4; }
.movement-trail:nth-child(4) { animation-delay: -0.12s; opacity: 0.2; }

@keyframes trail {
    0% { top: 30%; left: 30%; opacity: 0.4; }
    12.5% { top: 25%; left: 50%; }
    25% { top: 30%; left: 70%; }
    37.5% { top: 50%; left: 75%; }
    50% { top: 70%; left: 70%; }
    62.5% { top: 75%; left: 50%; }
    75% { top: 70%; left: 30%; }
    87.5% { top: 50%; left: 25%; }
    100% { top: 30%; left: 30%; opacity: 0.4; }
}

.movement-label {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--bg-tertiary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

/* ===== Status Display ===== */
.status-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: var(--bg-tertiary);
    border-radius: 50px;
    margin-bottom: 1rem;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: all 0.3s;
}

.status-dot.active {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.paused {
    background: var(--warning);
    box-shadow: 0 0 20px rgba(210, 153, 34, 0.3);
}

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

.status-text {
    font-weight: 500;
    color: var(--text-primary);
}

.timer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.timer-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== Controls ===== */
.controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--bg-primary);
    border: none;
    border-radius: 14px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.stop {
    background: linear-gradient(135deg, var(--danger), #ff6b6b);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

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

.btn-icon {
    width: 18px;
    height: 18px;
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

/* ===== Info Message ===== */
.info-message {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.info-message svg {
    width: 16px;
    height: 16px;
    fill: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== Scheduler ===== */
.scheduler-section {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.scheduler-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.scheduler-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.scheduler-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.scheduler-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.time-picker-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.time-picker-btn:hover {
    border-color: var(--accent);
}

.time-picker-btn .meridiem {
    font-size: 0.625rem;
    padding: 0.125rem 0.25rem;
    background: var(--border);
    border-radius: 3px;
    color: var(--text-muted);
}

.scheduler-toggle {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.scheduler-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

.scheduler-toggle label {
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* ===== Safety Badge ===== */
.safety-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.safety-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* ===== Feature Cards Section ===== */
.feature-cards-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

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

.feature-card-mini {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
}

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

.feature-card-mini .icon {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
}

.feature-card-mini:hover .icon {
    background: var(--accent);
}

.feature-card-mini h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-card-mini p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify;
}

/* ===== Article Section ===== */
.article-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 4rem 2rem;
}

.article-content {
    max-width: 900px;
    margin: 0 auto;
}

.article-content section {
    margin-bottom: 3rem;
}

.article-content h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 2rem 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-content h3 .bar {
    width: 4px;
    height: 32px;
    background: var(--accent);
    border-radius: 4px;
}

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

/* ===== Feature List ===== */
.feature-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
    color: var(--text-secondary);
}

.feature-list li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* ===== Two Column Cards ===== */
.two-column-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.info-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}

.info-card h4 {
    color: var(--accent);
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.info-card p {
    font-size: 0.9rem;
    text-align: justify;
}

/* ===== Use Cases Grid ===== */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.use-case-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s;
}

.use-case-card:hover {
    background: var(--bg-primary);
}

.use-case-card .emoji {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.use-case-card h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.use-case-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== Comparison Table ===== */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.comparison-table tr:nth-child(odd) {
    background: var(--bg-tertiary);
}

.comparison-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-table .highlight-cell {
    color: var(--text-primary);
}

/* ===== FAQ Section with Details/Summary ===== */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.2s;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-item[open] {
    border-color: var(--accent);
    box-shadow: 0 4px 20px var(--shadow);
}

.faq-item summary {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    user-select: none;
    transition: background 0.2s;
}

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

.faq-item summary::after {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(-135deg);
}

.faq-item summary:hover {
    background: var(--bg-secondary);
}

.faq-item summary:focus {
    outline: none;
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.faq-item summary h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
}

.faq-item p {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    margin-top: 0;
}

/* ===== Features Section ===== */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 40px var(--shadow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--bg-primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== How It Works Visual ===== */
.how-it-works-visual {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.how-it-works-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.how-it-works-content h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-primary);
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
}

/* ===== Modal ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    place-items: center;
    padding: 1rem;
}

.modal-overlay.open {
    display: grid;
}

.modal-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 20px 60px var(--shadow);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.time-input-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.time-input-group input {
    width: 70px;
    padding: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    text-align: center;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
}

.time-input-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.time-input-group .colon {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.time-input-group select {
    padding: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
}

.time-input-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.modal-actions button {
    padding: 0.875rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-cancel {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.modal-cancel:hover {
    background: var(--bg-primary);
}

.modal-confirm {
    background: var(--accent);
    border: none;
    color: var(--bg-primary);
}

.modal-confirm:hover {
    background: var(--accent-hover);
}

/* ===== Install Banner ===== */
.install-banner {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 40px var(--shadow);
    z-index: 1500;
    transition: bottom 0.3s ease;
}

.install-banner.show {
    bottom: 20px;
}

.install-banner p {
    color: var(--text-primary);
    font-weight: 500;
}

.install-btn {
    background: var(--accent);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.install-btn:hover {
    background: var(--accent-hover);
}

.install-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    transition: color 0.2s;
}

.install-close:hover {
    color: var(--text-primary);
}

/* ===== Footer ===== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links-group h4 {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-links-group ul {
    list-style: none;
}

.footer-links-group li {
    margin-bottom: 0.5rem;
}

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

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

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

/* ===== Cursor Trail ===== */
.cursor-glow {
    position: fixed;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.15s;
}

.cursor-glow.active {
    opacity: 1;
}

/* Cursor Trail Dots */
.cursor-trail {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.cursor-trail.visible {
    opacity: 0.6;
    animation: trailFade 0.5s ease-out forwards;
}

@keyframes trailFade {
    0% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.3);
    }
}

#trail1 { animation-delay: 0ms; }
#trail2 { animation-delay: 25ms; }
#trail3 { animation-delay: 50ms; }
#trail4 { animation-delay: 75ms; }
#trail5 { animation-delay: 100ms; }
#trail6 { animation-delay: 125ms; }
#trail7 { animation-delay: 150ms; }
#trail8 { animation-delay: 175ms; }

/* ===== Mobile Responsive ===== */

/* ===== Static Pages (About, Contact, Privacy, Terms) ===== */
.page-hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.page-hero .subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.page-content h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-content h2 .bar {
    width: 4px;
    height: 28px;
    background: var(--accent);
    border-radius: 4px;
}

.page-content h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}

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

.page-content ul {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.page-content a {
    color: var(--accent);
}

.page-content a:hover {
    text-decoration: underline;
}

/* About Page */
.about-intro {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.about-intro p {
    font-size: 1.125rem;
    line-height: 1.9;
    margin-bottom: 0;
}

.about-signature {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-signature .avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bg-primary);
}

.about-signature .info {
    display: flex;
    flex-direction: column;
}

.about-signature .name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.about-signature .role {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

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

.contact-card .icon {
    width: 64px;
    height: 64px;
    background: var(--bg-tertiary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto 1.25rem;
    transition: all 0.3s;
}

.contact-card:hover .icon {
    background: var(--accent);
}

.contact-card h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-card a.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.contact-card a.contact-link:hover {
    text-decoration: underline;
}

/* Legal Pages (Privacy, Terms) */
.legal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
}

.legal-content h2 {
    margin-top: 2rem;
}

.legal-content h2:first-of-type {
    margin-top: 0;
}

.legal-meta {
    display: inline-block;
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: 2rem;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .page-hero {
        padding: 2rem 1rem;
    }
    
    .page-content {
        padding: 0 1rem 3rem;
    }
    
    .about-intro,
    .legal-content {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.875rem;
    }

    .hero {
        padding: 0.75rem 1rem 1rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero .intro-text {
        font-size: 1rem;
    }

    .tool-container {
        padding: 0 1rem;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .timer {
        font-size: 2rem;
    }

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

    .features {
        padding: 3rem 1rem;
    }

    .features h2 {
        font-size: 1.75rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }

    .article-content h3 {
        font-size: 1.25rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-install-btn span {
        display: none;
    }

    .nav-install-btn {
        padding: 0.5rem;
    }

    .install-banner {
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Unique Footer ===== */
.footer-unique {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 0 0 2rem;
    overflow: hidden;
}

.footer-cursor-animation {
    height: 60px;
    color: var(--accent);
    opacity: 0.6;
}

.footer-cursor-animation svg {
    width: 100%;
    height: 100%;
}

.footer-path {
    opacity: 0.3;
}

.footer-moving-cursor {
    animation: moveCursorFooter 8s linear infinite;
}

@keyframes moveCursorFooter {
    0% { transform: translate(0, 22px); }
    25% { transform: translate(300px, 42px); }
    50% { transform: translate(600px, 22px); }
    75% { transform: translate(900px, 42px); }
    100% { transform: translate(1200px, 22px); }
}

.footer-content-unique {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-main {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.25rem;
}

.footer-logo:hover {
    text-decoration: none;
}

.footer-logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--bg-primary);
}

.footer-tagline-unique {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

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

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-bottom-unique {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-unique p {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content-unique {
        flex-direction: column;
        text-align: center;
    }

    .footer-main {
        align-items: center;
    }

    .footer-nav {
        justify-content: center;
        gap: 1.5rem;
    }

    .footer-bottom-unique {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ===== About Page Specific ===== */
.about-hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.about-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.about-hero .intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.about-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
}

.about-card h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.about-card h2:first-of-type {
    margin-top: 0;
}

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

.highlight-box {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 12px 12px 0;
}

.highlight-box p {
    font-style: italic;
    margin: 0;
    color: var(--text-primary);
}

.tool-info {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
}

.tool-info h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tool-info h3 svg {
    width: 24px;
    height: 24px;
    fill: var(--accent);
}

.tool-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-info ul li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.tool-info ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.cta-section h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: var(--bg-primary);
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
    text-decoration: none;
}

.cta-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ===== Contact Page Specific ===== */
.contact-hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}

.contact-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.contact-hero .intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 3rem;
}

.contact-card > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    transition: all 0.2s;
}

.contact-method:hover {
    border-color: var(--accent);
    transform: translateX(4px);
    text-decoration: none;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--bg-primary);
}

.contact-details h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-details span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.divider {
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

.faq-preview h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.faq-item {
    margin-bottom: 1.25rem;
}

.faq-question {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.faq-answer {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.response-note {
    display: flex;
    gap: 0.75rem;
    background: var(--bg-tertiary);
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.response-note svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

/* ===== Mobile Menu (for About/Contact pages) ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links.mobile-nav {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .nav-links.mobile-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .about-card,
    .contact-card {
        padding: 2rem 1.5rem;
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Animations for static pages */
.about-hero, .about-content,
.contact-hero, .contact-content {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}