@charset "UTF-8";

/* ========================================
   1. Design System & Variables (Light/Clean)
   ======================================== */
:root {
    /* Palette: Slate (Neutral Cool Grey) */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Theme Colors */
    --bg-body: var(--slate-50);
    --bg-surface: #ffffff;
    --bg-surface-alt: var(--slate-50);
    --text-main: var(--slate-800);
    --text-muted: var(--slate-500);
    --text-inverse: #ffffff;
    --border: var(--slate-200);

    /* Accents */
    --accent-primary: #3b82f6; /* Blue 500 */
    --accent-primary-hover: #2563eb; /* Blue 600 */
    --primary: var(--accent-primary); /* Alias for new pages */
    
    /* App Brand Colors */
    --brand-comilog: #10b981; /* Emerald 500 */
    --brand-hairlog: #ef4444; /* Red 500 */
    --brand-sengoku: #1e3a8a; /* Blue 900 (Navy) */
    --brand-sengoku-gold: #d97706; /* Amber 600 */
    --brand-retalk: #8b5cf6;  /* Violet 500 */

    /* Typography */
    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    
    /* Spacing & Layout */
    --container-width: 1100px;
    --header-height: 70px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* ========================================
   2. Reset & Base
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s, background-color 0.2s;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--slate-900);
    line-height: 1.3;
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   3. Utility Components
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--slate-900);
    color: white;
}
.btn-primary:hover {
    background-color: var(--slate-700);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: white;
    color: var(--slate-700);
    border: 1px solid var(--slate-200);
}
.btn-secondary:hover {
    background-color: var(--slate-50);
    border-color: var(--slate-300);
    color: var(--slate-900);
}

.icon {
    width: 20px;
    height: 20px;
}

/* ========================================
   4. Header / Navbar
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    height: var(--header-height);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-nav {
    display: flex;
    gap: 8px;
}

.site-nav a,
/* Legacy Navbar Support */
.nav-menu a {
    color: var(--slate-600);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}

.site-nav a:hover,
.site-nav a.active,
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--slate-900);
    background-color: var(--slate-100);
}

/* Language Switcher */
.lang-switch {
    display: flex;
    padding: 4px;
    background: var(--slate-100);
    border-radius: var(--radius-sm);
}
.lang-switch button,
.lang-switch a {
    background: none;
    border: none;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-500);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.lang-switch button:hover,
.lang-switch a:hover {
    color: var(--slate-700);
}
/* Active state simulation */
.lang-switch button.active,
.lang-switch a.active {
    background-color: white;
    color: var(--slate-900);
    box-shadow: var(--shadow-sm);
}

/* ========================================
   5. Hero Section (Clean/Light)
   ======================================== */
.hero-section {
    padding: 80px 0 60px; /* Reduced padding as requested */
    text-align: center;
    background: radial-gradient(circle at 50% 0%, var(--slate-100) 0%, transparent 70%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    border-radius: 99px;
    margin-bottom: 24px;
    color: var(--slate-700);
    font-weight: 600;
    font-size: 0.9rem;
}
.hero-badge svg { margin: 0; }

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--slate-500);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 400;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* ========================================
   6. App Grid & Cards
   ======================================== */
.section-apps {
    padding: 60px 0;
}
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    border: 1px solid var(--slate-100);
    height: 100%;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08); /* Refined shadow */
    border-color: var(--slate-200);
}

/* Accent Top Border */
.app-card::before {
    content: "";
    height: 6px;
    width: 100%;
    display: block;
}
.app-card.accent-green::before { background-color: var(--brand-comilog); }
.app-card.accent-red::before { background-color: var(--brand-hairlog); }
.app-card.accent-navy::before { background-color: var(--brand-sengoku); }
.app-card.accent-gold::before { background-color: var(--brand-sengoku-gold); }
.app-card.accent-violet::before { background-color: var(--brand-retalk); }

.card-body {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.app-icon-sm {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    background: var(--slate-50);
}
.app-icon-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-title {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--slate-900);
}
.app-category {
    font-size: 0.85rem;
    color: var(--slate-500);
    font-weight: 500;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--slate-600);
    margin-bottom: 24px;
    line-height: 1.7;
    flex-grow: 1;
}

/* Tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 99px;
    background: var(--slate-100);
    color: var(--slate-600);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Hover Arrow */
.card-arrow {
    position: absolute;
    bottom: 32px;
    right: 32px;
    color: var(--slate-300);
    transition: 0.3s;
}
.app-card:hover .card-arrow {
    color: var(--slate-800);
    transform: translateX(4px);
}

/* ========================================
   7. Footer
   ======================================== */
.site-footer {
    padding: 80px 0 40px;
    background-color: white;
    border-top: 1px solid var(--slate-100);
    text-align: center;
    margin-top: 60px;
}
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}
.footer-nav a {
    color: var(--slate-500);
    font-weight: 500;
}
.footer-nav a:hover {
    color: var(--slate-900);
}
.copyright {
    color: var(--slate-400);
    font-size: 0.85rem;
}

/* ========================================
   8. Legacy Layout Compatibility (apps/*.html)
   ======================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--slate-200);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}
.navbar .logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--slate-900);
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.app-detail {
    padding: 60px 0;
    background-color: var(--bg-body);
}
.app-detail .container {
    max-width: 900px;
}
.app-header {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    align-items: flex-start;
}
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
.app-icon-large img {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}
.app-info h1, .app-info h2 {
    font-size: 2.25rem;
    margin-bottom: 8px;
    color: var(--slate-900);
}
.app-subtitle-text,
.app-info p:first-of-type {
    font-size: 1.15rem;
    color: var(--slate-500);
    margin-bottom: 24px;
    line-height: 1.6;
}
.app-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .app-buttons {
        justify-content: center;
    }
}
.feature-section h2 {
    font-size: 1.75rem;
    margin-bottom: 24px;
    text-align: center;
}
.feature-list {
    list-style: none;
    margin: 40px 0;
    display: grid;
    gap: 24px;
}
.feature-list li {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
}
.feature-list strong {
    display: block;
    margin-bottom: 8px;
    color: var(--slate-900);
    font-size: 1.1rem;
}
.screenshot-slider {
    margin: 60px 0;
    background: var(--slate-100);
    padding: 40px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.screenshot-slider-container {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 0 40px 20px;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.screenshot-slider-container::-webkit-scrollbar {
    display: none;
}
.screenshot-slide {
    flex: 0 0 auto;
    width: 260px;
    transition: transform 0.3s;
}
.screenshot-slide:hover {
    transform: translateY(-4px);
}
.screenshot-slide img {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
}
.page-content {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    margin-top: 40px;
    margin-bottom: 60px;
}
.page-content h2 { font-size: 1.8rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--slate-100); padding-bottom: 0.5rem; }
.page-content h3 { font-size: 1.4rem; margin: 2rem 0 1rem; color: var(--slate-800); }
.page-content p, .page-content ul { color: var(--slate-600); margin-bottom: 1rem; }
.page-content ul { padding-left: 1.5rem; }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--slate-300);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-family: inherit;
}
.contact-form button {
    background: var(--slate-900);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2.5rem; }
    .header-inner { padding: 0 16px; }
    .site-nav { display: none; }
}

/* ========================================
   9. Contact & Policy Page Styles
   ======================================== */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.contact-card {
    background: var(--slate-50);
    padding: 32px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--slate-100);
    transition: transform 0.2s;
}
.contact-card:hover {
    transform: translateY(-2px);
    border-color: var(--slate-200);
}
.contact-card h3 {
    margin-bottom: 12px;
    color: var(--slate-800);
}
.policy-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--slate-100);
}
.policy-section:last-child {
    border-bottom: none;
}
.policy-section h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

/* Policy Hub (Privacy / Terms hub pages) */
.policy-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.policy-hub-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--slate-50);
    border: 1px solid var(--slate-100);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.policy-hub-card:hover {
    transform: translateY(-2px);
    border-color: var(--slate-300);
    box-shadow: var(--shadow-md);
}
.policy-hub-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    overflow: hidden;
}
.policy-hub-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.policy-hub-info {
    flex: 1;
    min-width: 0;
}
.policy-hub-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--slate-800);
}
.policy-hub-info p {
    font-size: 0.85rem;
    color: var(--slate-500);
    margin: 0;
}
.policy-hub-arrow {
    flex-shrink: 0;
    font-size: 1.2rem;
    color: var(--slate-400);
    transition: transform 0.2s;
}
.policy-hub-card:hover .policy-hub-arrow {
    transform: translateX(4px);
    color: var(--slate-600);
}

/* ========================================
   10. App Detail Page Styles
   ======================================== */
.app-detail-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--slate-100);
}
.app-icon-large {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--slate-200);
}
.app-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.app-info {
    flex: 1;
    min-width: 300px;
}
.app-info h1 {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--slate-900);
}
.app-subtitle {
    font-size: 1.125rem;
    color: var(--slate-600);
    margin-bottom: 24px;
    line-height: 1.6;
}
.app-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.app-links {
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--slate-500);
}
.app-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.app-links a:hover {
    text-decoration: underline;
}
.app-content {
    padding: 60px 0;
}
.app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}
.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--slate-800);
    border-left: 4px solid var(--primary);
    padding-left: 12px;
}
.feature-item p {
    color: var(--slate-600);
    line-height: 1.6;
}
.app-screenshots {
    margin-bottom: 60px;
}
.screenshot-gallery {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 24px;
    scroll-snap-type: x mandatory;
}
.screenshot-item {
    flex: 0 0 auto;
    width: 240px;
    scroll-snap-align: start;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-sm);
}
.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}
.app-recommend {
    background: var(--slate-50);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 60px;
}
.recommend-list {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}
.recommend-item {
    display: flex;
    gap: 16px;
}
.check-icon {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.25rem;
}
.check-icon::before {
    content: "✔";
}

/* ========================================
   7. Re:Talk & Individual Page Improvements
   ======================================== */

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.feature-card .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--slate-100);
    color: var(--slate-600);
}
.feature-card .icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Brand-tinted feature card icons */
.brand-green .feature-card .icon {
    background: #ecfdf5;
    color: var(--brand-comilog);
}
.brand-red .feature-card .icon {
    background: #fef2f2;
    color: var(--brand-hairlog);
}
.brand-violet .feature-card .icon {
    background: #f5f3ff;
    color: var(--brand-retalk);
}
.brand-navy .feature-card .icon {
    background: #eff6ff;
    color: var(--brand-sengoku);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--slate-800);
}

.feature-card p {
    color: var(--slate-600);
    line-height: 1.7;
    margin: 0;
    font-size: 0.95rem;
}

/* Screenshot Flow */
.screenshot-flow {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin: 80px 0;
}

.screenshot-card {
    display: flex;
    align-items: center;
    gap: 60px;
}

/* Even items reverse layout */
.screenshot-card:nth-child(even) {
    flex-direction: row-reverse;
}

.screenshot-card img {
    max-width: 300px; /* Adjusted for mobile */
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.2);
    border: 4px solid white;
}

.screenshot-text {
    flex: 1;
}

.screenshot-text h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--slate-800) 0%, var(--slate-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.screenshot-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--slate-600);
}

@media (max-width: 768px) {
    .screenshot-card, 
    .screenshot-card:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    
    .screenshot-card img {
        max-width: 80%;
    }
}

/* Policy Container */
.policy-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    background: white;
}

.policy-container h1 {
    font-size: 2rem;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    color: var(--slate-900);
}

.policy-container h2 {
    font-size: 1.5rem;
    margin-top: 48px;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--slate-800);
}

.policy-container h3, .policy-container h4 {
    font-size: 1.2rem;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 600;
}

.policy-container p {
    margin-bottom: 16px;
    line-height: 1.9;
    color: var(--slate-700);
}

.policy-container ul {
    padding-left: 24px;
    margin-bottom: 24px;
    color: var(--slate-700);
}

.policy-container li {
    margin-bottom: 8px;
    line-height: 1.8;
}

/* Coming Soon Badge */
.coming-soon-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(8px);
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.coming-soon-badge .status {
    font-weight: 800;
    color: var(--primary); /* Or brand color */
    font-size: 1.1rem;
    margin-bottom: 2px;
    letter-spacing: 0.05em;
}

.coming-soon-badge .release-date {
    font-size: 0.85rem;
    color: var(--slate-500);
    font-weight: 500;
}

/* ========================================
   Tool Page Styles
   ======================================== */

/* Tool Hero */
.tool-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.tool-hero h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tool-hero p {
    opacity: 0.9;
    font-size: 1.05rem;
}

.tool-hero .tool-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tool-hero .badge {
    background: rgba(255,255,255,0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Tool Area */
.tool-area {
    padding: 2rem 0;
    background: #f0f0f0;
}

.tool-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Upload Zone */
.upload-zone {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.upload-box {
    flex: 1;
    min-width: 200px;
    max-width: 350px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
}

.upload-box:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.upload-box.has-image {
    border-style: solid;
    border-color: #667eea;
    padding: 0;
}

.upload-box .upload-icon {
    font-size: 2.5rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.upload-box .upload-text {
    color: #999;
    font-size: 0.9rem;
}

.upload-box .upload-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tool Controls */
.tool-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.tool-controls button {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.tool-controls button.active {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.tool-controls button:hover:not(.active) {
    border-color: #667eea;
}

/* Compare Area */
.compare-area {
    position: relative;
    width: 100%;
    background: #1a1a1a;
    min-height: 300px;
    overflow: hidden;
    touch-action: none;
}

.compare-area .compare-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.compare-area .compare-label {
    position: absolute;
    padding: 0.3rem 0.8rem;
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
    pointer-events: none;
}

.compare-area .label-before {
    top: 10px;
    left: 10px;
}

.compare-area .label-after {
    top: 10px;
    right: 10px;
}

/* Slider Line (visual indicator on image, no interaction) */
.slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: white;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 4px rgba(0,0,0,0.4);
}

/* External Slider Control */
.slider-range-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.slider-range-wrap .range-label {
    font-size: 0.8rem;
    font-weight: bold;
    color: #555;
    white-space: nowrap;
    min-width: 42px;
    text-align: center;
}

.slider-range-wrap input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #667eea 0%, #667eea 50%, #ddd 50%, #ddd 100%);
    outline: none;
    cursor: pointer;
}

.slider-range-wrap input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    cursor: pointer;
}

.slider-range-wrap input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    border: 3px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    cursor: pointer;
}

/* Horizontal Layout */
.compare-area.layout-horizontal {
    display: flex;
}

.compare-area.layout-horizontal .compare-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.compare-area.layout-horizontal .compare-divider {
    width: 2px;
    background: white;
    flex-shrink: 0;
}

/* Vertical Layout */
.compare-area.layout-vertical {
    display: flex;
    flex-direction: column;
}

.compare-area.layout-vertical .compare-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.compare-area.layout-vertical .compare-divider {
    height: 2px;
    background: white;
    flex-shrink: 0;
}

/* Aspect Ratio Controls */
.aspect-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #eee;
}

.aspect-controls button {
    padding: 0.3rem 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.aspect-controls button.active {
    border-color: #667eea;
    background: #eef0ff;
    color: #667eea;
}

/* Tool Actions */
.tool-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    flex-wrap: wrap;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0 0.5rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 1rem;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-save {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.btn-save:hover {
    background: #5a6fd6;
    transform: translateY(-1px);
}

.btn-save:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    text-decoration: none;
    color: #333;
}

.share-btn:hover {
    border-color: #667eea;
}

.share-btn.share-native {
    border-color: #667eea;
    color: #667eea;
}

.share-btn.share-native:hover {
    background: #667eea;
    color: white;
}

.share-btn.share-clipboard {
    border-color: #555;
    color: #555;
}

.share-btn.share-clipboard:hover {
    background: #555;
    color: white;
}

/* HowTo Section */
.how-to-section {
    padding: 3rem 0;
    background: var(--slate-50, #f8fafc);
}

.how-to-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--slate-800, #1e293b);
}

.steps-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    max-width: 260px;
    background: white;
    border: 1px solid var(--slate-100, #f1f5f9);
    border-radius: var(--radius-md, 12px);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
    transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.1));
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--slate-900, #0f172a);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--slate-800, #1e293b);
}

.step-card p {
    font-size: 0.88rem;
    color: var(--slate-500, #64748b);
    line-height: 1.6;
    margin: 0;
}

.step-arrow {
    display: flex;
    align-items: center;
    padding-top: 2.5rem;
    font-size: 1.5rem;
    color: var(--slate-300, #cbd5e1);
    font-weight: 700;
    flex-shrink: 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* FAQ Section */
.faq-section {
    padding: 3rem 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--slate-800, #1e293b);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-list details {
    background: white;
    border: 1px solid var(--slate-100, #f1f5f9);
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-list details[open] {
    border-color: var(--slate-200, #e2e8f0);
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
}

.faq-list summary {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--slate-800, #1e293b);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: background 0.15s;
}

.faq-list summary:hover {
    background: var(--slate-50, #f8fafc);
}

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

.faq-list summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--slate-400, #94a3b8);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-list details[open] summary::after {
    content: '−';
}

.faq-list details p {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.9rem;
    color: var(--slate-600, #475569);
    line-height: 1.7;
    margin: 0;
}

/* SEO Info Section */
.seo-info-section {
    padding: 3rem 0;
    background: var(--slate-50, #f8fafc);
}

.seo-info-card {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--slate-100, #f1f5f9);
    border-radius: var(--radius-md, 12px);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
}

.seo-info-card h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--slate-800, #1e293b);
}

.seo-info-card p {
    font-size: 0.92rem;
    color: var(--slate-600, #475569);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.seo-info-card h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--slate-700, #334155);
}

.seo-info-card ul {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.seo-info-card ul li {
    background: var(--slate-50, #f8fafc);
    border: 1px solid var(--slate-100, #f1f5f9);
    border-radius: 99px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: var(--slate-600, #475569);
}

/* SEO About Section (ComiLog etc.) */
.seo-about-section {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--slate-100, #f1f5f9);
}

.seo-about-heading {
    font-size: 1.4rem;
    color: var(--slate-800, #1e293b);
    margin-bottom: 20px;
    text-align: center;
}

.seo-about-lead {
    max-width: 700px;
    margin: 0 auto 32px;
    color: var(--slate-600, #475569);
    line-height: 1.8;
    font-size: 0.95rem;
}

.seo-about-lead p {
    margin-bottom: 12px;
}

.seo-about-lead strong {
    color: var(--slate-700, #334155);
}

.seo-pain-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.seo-pain-list li {
    background: var(--slate-50, #f8fafc);
    border: 1px solid var(--slate-200, #e2e8f0);
    border-radius: 99px;
    padding: 8px 20px;
    font-size: 0.9rem;
    color: var(--slate-700, #334155);
    font-weight: 500;
}

.seo-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.seo-detail-card {
    background: var(--slate-50, #f8fafc);
    border: 1px solid var(--slate-100, #f1f5f9);
    border-radius: var(--radius-md, 12px);
    padding: 24px;
    transition: box-shadow 0.2s;
}

.seo-detail-card:hover {
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
}

.seo-detail-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--slate-200, #e2e8f0);
    margin-bottom: 14px;
    color: var(--slate-500, #64748b);
}

.seo-detail-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.seo-detail-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate-800, #1e293b);
    margin-bottom: 8px;
}

.seo-detail-card p {
    font-size: 0.88rem;
    color: var(--slate-500, #64748b);
    line-height: 1.7;
    margin: 0;
}

/* Brand-tinted SEO detail icons */
.seo-about-section .seo-detail-icon {
    color: var(--brand-comilog);
    border-color: #d1fae5;
    background: #ecfdf5;
}

/* App CTA Card */
.app-cta-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.app-cta-card .app-cta-feature {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
}

.app-cta-card .app-cta-info {
    padding: 1.5rem 2rem 2rem;
}

.app-cta-card .app-cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    flex-shrink: 0;
}

.app-cta-card .app-cta-info h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.app-cta-card .app-cta-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.app-cta-card .btn-app-dl {
    display: inline-block;
    background: #FF6B6B;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.app-cta-card .btn-app-dl:hover {
    background: #e55a5a;
}

/* Related Tools Section */
.related-tools-section {
    padding: 3rem 0;
    background: #f0f2ff;
}

.related-tools-section h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.related-tool-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: block;
}

.related-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.18);
}

.related-tool-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.related-tool-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: #667eea;
}

.related-tool-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Internal Links */
.internal-links {
    padding: 2rem 0;
    background: #f5f5f5;
}

.internal-links h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.internal-links ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.internal-links a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

.internal-links a:hover {
    text-decoration: underline;
}

/* More Tools */
.more-tools {
    padding: 2rem 0;
    background: #fff;
    border-top: 1px solid #eee;
}

.more-tools h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.more-tools ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.more-tools a {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 2px solid #eee;
    border-radius: 8px;
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.more-tools a:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #333;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========================================
   Tool Page Responsive
   ======================================== */
@media (max-width: 768px) {
    .hairlogx-hero h1 {
        font-size: 1.6rem;
    }

    .hairlogx-hero .hero-points {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero-example .example-img {
        width: 110px;
        height: 160px;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
    }

    .step-arrow {
        transform: rotate(90deg);
        padding-top: 0;
    }

    .upload-zone {
        flex-direction: column;
        align-items: center;
    }

    .upload-box {
        max-width: 100%;
    }

    .tool-controls {
        gap: 0.3rem;
    }

    .tool-controls button {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }

    .share-buttons {
        flex-direction: column;
        width: 100%;
    }

    .share-btn {
        justify-content: center;
    }

    .app-cta-card {
        text-align: center;
    }

    .app-cta-card .app-cta-info {
        padding: 1rem 1.2rem 1.5rem;
    }

    .related-tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-hero h1 {
        font-size: 1.5rem;
    }
}

/* ========================================
   11. Animations & Premium Interactions
   ======================================== */

/* --- Keyframes --- */

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

@keyframes heroBlob {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

/* --- Scroll Animation Classes --- */

/* Initial state (hidden and pushed down) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

/* Visible state (triggered by JS) */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays for Grid/List Items */
/* Uses nth-child to naturally delay items that appear together */
.feature-grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-grid .feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-grid .feature-card:nth-child(4) { transition-delay: 0.3s; }

.screenshot-flow .screenshot-card:nth-child(2) { transition-delay: 0.15s; }
.screenshot-flow .screenshot-card:nth-child(3) { transition-delay: 0.3s; }

.recommend-list .recommend-item:nth-child(1) { transition-delay: 0.1s; }
.recommend-list .recommend-item:nth-child(2) { transition-delay: 0.2s; }
.recommend-list .recommend-item:nth-child(3) { transition-delay: 0.3s; }

.app-grid .app-card:nth-child(2) { transition-delay: 0.1s; }
.app-grid .app-card:nth-child(3) { transition-delay: 0.2s; }
.app-grid .app-card:nth-child(4) { transition-delay: 0.3s; }


/* --- Premium UI Enhancements --- */

/* Hero Section: Depth & Feel */
.app-detail-hero {
    position: relative;
    z-index: 1; /* Ensure content is above background blob */
    overflow: visible; /* Allow blob to bleed slightly if needed, or hidden to cut */
}

/* Subtle moving gradient background blob */
.app-detail-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--slate-100) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.7;
    z-index: -1;
    filter: blur(50px);
    animation: heroBlob 25s infinite ease-in-out;
    pointer-events: none;
}

/* Larger, sharper Typography */
.app-info h1 {
    font-size: 2.5rem; 
    letter-spacing: -0.02em;
    font-weight: 800;
}
@media (min-width: 768px) {
    .app-info h1 {
        font-size: 3rem;
    }
}


/* Hero Icon: Floating Effect applied to IMAGE to avoid conflict with scroll reveal */
.app-icon-large img {
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); /* Softer, deeper shadow */
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 20px; /* Ensure rounded corners on icon */
}

/* Feature Cards: Hover Lift */
/* Note: 'transform' transition must coordinate with 'animate-on-scroll' */
.feature-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.8s, transform 0.8s; 
    border: 1px solid rgba(226, 232, 240, 0.6); /* Very subtle border */
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.feature-card:hover {
    transform: translateY(-8px) !important; /* Override the 0 transform from is-visible */
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.08);
}

/* Screenshot Cards: Device-like feel */
.screenshot-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--slate-200);
    overflow: hidden; /* rounded corners for img */
    background: #fff;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1); /* Base shadow */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.screenshot-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.15); /* Stronger shadow on hover */
}

/* Recommendation List Items */
.recommend-item {
    transition: background-color 0.2s, transform 0.2s;
    padding: 12px;
    border-radius: var(--radius-sm);
}

.recommend-item:hover {
    background-color: var(--slate-50);
    transform: translateX(6px) !important;
}

/* App Card (Index) Hover Lift */
.app-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.8s, transform 0.8s;
}
.app-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-xl);
}
