:root {
    --bg-color: #F5F5F7; /* Light mode friendly or keep dark? Tokisagu was dark. Let's make this one fit the vibe. Reference 'miru' implies seeing clearly, maybe clean white/light gray or keep dark mode if images suggest so. Screenshot filenames don't say much.
    Tokisagu used dark mode. I'll switch to a clean Light/Dark adaptive or just a nice Dark mode like Tokisagu but with Blue. 
    Let's go with Dark Mode as base to be safe with "Premium" feel requested in system prompt, but user just said "miru_timetable-webに作って".
    I will stick to the tokisagu dark theme structure but swap Green for Blue.
    */
    --bg-color: #121212;
    --card-bg: #1C1C1E;
    --accent-color: #0A84FF; /* iOS Blue-ish */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --font-family: 'LINESeedJP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@font-face {
    font-family: 'LINESeedJP';
    src: url('fonts/LINESeedJP-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 10;
}

.logo {
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px 50px;
    background: radial-gradient(circle at 50% 30%, rgba(10, 132, 255, 0.1), transparent 70%); /* Blue gradient */
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    max-width: 800px;
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
}

.btn-download {
    display: inline-block;
    background-color: var(--text-primary);
    color: var(--bg-color);
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    margin-bottom: 4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 132, 255, 0.3);
    opacity: 1;
}

.hero-image {
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-container {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 10px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}

.screenshot-container.active {
    cursor: grabbing;
    scroll-snap-type: none;
}

.screenshot-container::-webkit-scrollbar {
    display: none;
}

/* Device Frame Styling */
.device-frame {
    flex: 0 0 auto;
    position: relative;
    border: 12px solid #2c2c2c;
    border-radius: 36px;
    background-color: #151515;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    width: 280px;
    max-width: 80vw;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: center;
}

.device-frame:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px -12px rgba(10, 132, 255, 0.2);
    border-color: #3a3a3a;
}

.device-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: none;
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .device-frame {
        width: 70vw;
        border-width: 8px;
        border-radius: 28px;
    }
    .device-frame img {
        border-radius: 20px;
    }
}

/* Features Section */
.features {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.feature-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

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

/* Footer */
footer {
    padding: 50px 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

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

.copyright {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding-top: 140px;
    }
}
