/* ==========================================================================
   みらいの時間割 (Mirai no Jikanwari) Website Stylesheet
   Theme: Ultimate Premium Tech Design (Glassmorphism & Fine Layout Aesthetics)
   ========================================================================== */

/* Design System Tokens */
:root {
    --bg-white: #ffffff;
    --bg-light: #fafbfd;
    --bg-card: rgba(255, 255, 255, 0.45);
    --color-black: #090a10;
    --color-slate: #0f172a;
    --color-muted: #475569;
    --color-border: rgba(79, 70, 229, 0.08);
    
    /* Premium Brand Colors - Violet & Indigo Theme */
    --accent-primary: #4f46e5; /* Premium Indigo */
    --accent-blue: #3b82f6; /* Electric Blue */
    --accent-rose: #ec4899; /* Vibrant Rose for accent highlights */
    --accent-purple: #8b5cf6; /* Royal Violet */
    --accent-green: #10b981; /* Success Green */
    
    /* Shadows - Layered & Diffused for High-End Depth */
    --shadow-sm: 
        0 1px 2px rgba(0, 0, 0, 0.02), 
        0 2px 4px rgba(0, 0, 0, 0.01),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --shadow-md: 
        0 8px 30px rgba(79, 70, 229, 0.04), 
        0 1px 3px rgba(79, 70, 229, 0.02),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --shadow-lg: 
        0 30px 60px rgba(79, 70, 229, 0.08), 
        0 10px 20px rgba(79, 70, 229, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --shadow-phone: 
        0 25px 60px -15px rgba(15, 23, 42, 0.25), 
        0 0 0 1px rgba(79, 70, 229, 0.12), 
        0 2px 4px rgba(0, 0, 0, 0.1);

    /* Fonts */
    --font-sans: 'Plus Jakarta Sans', 'Outfit', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--color-slate);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    transition: background-color 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ==========================================================================
   Background dot-grid pattern & Flowing Glow
   ========================================================================== */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(79, 70, 229, 0.04) 1.5px, transparent 1.5px);
    background-size: 32px 32px;
    background-position: center top;
    z-index: -2;
    pointer-events: none;
}

/* Fluid Multi-Source Mesh Glow Aura */
.mesh-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.12;
    animation: floatGlow 22s infinite alternate ease-in-out;
}

.mesh-glow-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--accent-rose) 0%, transparent 70%);
    top: -250px;
    right: -100px;
}

.mesh-glow-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    top: 900px;
    left: -200px;
    animation-delay: -8s;
}

.mesh-glow-3 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    top: 450px;
    right: -250px;
    animation-delay: -4s;
    opacity: 0.08;
}

@keyframes floatGlow {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    100% {
        transform: translate(120px, 60px) scale(1.1) rotate(45deg);
    }
}

/* ==========================================================================
   Navbar (Glassmorphism Header)
   ========================================================================== */
.navbar {
    background: rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 84px;
}

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

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-black);
    letter-spacing: -1.0px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.22);
    object-fit: cover;
    border: 1px solid rgba(79, 70, 229, 0.15);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-slate);
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

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

.nav-cta {
    background-color: var(--color-black);
    color: var(--bg-white) !important;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta:hover {
    transform: translateY(-2px);
    background-color: var(--accent-primary);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.25);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding: 100px 0 140px;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-content {
    flex: 1.2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.12);
    color: var(--accent-primary);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-family: 'Outfit', var(--font-sans);
    font-size: 4.2rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 28px;
    letter-spacing: -2.5px;
    color: var(--color-black);
}

.hero-content h1 .highlight {
    background: linear-gradient(135deg, var(--accent-primary) 20%, var(--accent-rose) 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--color-muted);
    margin-bottom: 44px;
    max-width: 540px;
    font-weight: 400;
    line-height: 1.8;
}

.release-note {
    font-size: 0.85rem !important;
    color: var(--color-muted) !important;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.release-note i {
    color: var(--accent-primary);
}

/* Store Buttons (Gloss Sheen Hover Effect) */
.app-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-store {
    background-color: var(--color-black);
    color: var(--bg-white);
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.btn-store::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(25deg);
    transition: all 0.6s ease;
    pointer-events: none;
}

.btn-store:hover {
    transform: translateY(-4px);
    background-color: #1a1b22;
    box-shadow: 0 20px 35px rgba(79, 70, 229, 0.15);
}

.btn-store:hover::after {
    left: 130%;
}

.btn-store i {
    font-size: 1.8rem;
    margin-right: 12px;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.btn-text .small-text {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.7;
}

.btn-text .big-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* ==========================================================================
   iPhone 15 Pro Realistic Mockup Frame (Metallic detailing & side buttons)
   ========================================================================== */
.hero-image {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px;
}

.phone-mockup-perspective {
    position: relative;
    transform: rotateY(-16deg) rotateX(10deg) rotateZ(3deg);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: center;
}

.phone-mockup-perspective:hover {
    transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg) scale(1.03);
}

.phone-mockup-perspective:hover .floating-badge {
    transform: translateZ(40px) scale(1.05);
}

/* High Fidelity iPhone Mockup Wrapper */
.iphone-frame {
    position: relative;
    width: 272px;
    height: 560px;
    background: linear-gradient(to bottom, #334155, #0f172a);
    border-radius: 46px;
    box-shadow: var(--shadow-phone);
    padding: 9px; /* Bezel margin */
    border: 1px solid #475569;
    flex-shrink: 0;
}

/* Side hardware buttons */
.iphone-frame::before {
    /* Power Button */
    content: '';
    position: absolute;
    right: -2px;
    top: 105px;
    width: 2px;
    height: 48px;
    background: #475569;
    border-radius: 0 3px 3px 0;
}

.iphone-frame::after {
    /* Volume Up & Down Buttons */
    content: '';
    position: absolute;
    left: -2px;
    top: 95px;
    width: 2px;
    height: 34px;
    background: #475569;
    border-radius: 3px 0 0 3px;
    box-shadow: 0 48px 0 #475569;
}

/* Inner Screen Bezel */
.iphone-screen-area {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
    border-radius: 36px;
    overflow: hidden;
    border: 4px solid #000;
}

/* Dynamic Island */
.dynamic-island {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 82px;
    height: 22px;
    background-color: #000000;
    border-radius: 20px;
    z-index: 100;
    box-shadow: inset 0 0 2px rgba(255,255,255,0.2);
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
    pointer-events: none;
    display: block;
}

/* Glass reflection overlay */
.glass-reflection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 30%, transparent 60%);
    pointer-events: none;
    z-index: 90;
    border-radius: 32px;
}

/* Floating UI Widgets */
.floating-badge {
    position: absolute;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 150;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.badge-live {
    top: 60px;
    left: -70px;
    color: var(--accent-primary);
}

.badge-live i {
    font-size: 0.8rem;
    color: var(--accent-rose);
    animation: bounceSlow 1.5s infinite alternate;
}

.badge-bell {
    bottom: 100px;
    right: -70px;
    color: var(--color-slate);
}

.badge-bell i {
    color: var(--accent-blue);
}

@keyframes bounceSlow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-4px); }
}

/* ==========================================================================
   Interactive Showcase Section (World-Class Simulator)
   ========================================================================== */
.interactive-sec {
    padding: 120px 0;
    background-color: transparent;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.showcase-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    margin-top: 60px;
}

.showcase-controls {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.showcase-tab {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    padding: 30px 36px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.showcase-tab::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 4px;
    height: 40px;
    background: var(--accent-primary);
    border-radius: 0 4px 4px 0;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.2, 1);
}

.showcase-tab:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(79, 70, 229, 0.15);
}

.showcase-tab.active {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: var(--shadow-md);
}

.showcase-tab.active::before {
    transform: translateY(-50%) scaleY(1);
}

.tab-num {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: rgba(79, 70, 229, 0.05);
    position: absolute;
    right: 28px;
    top: 20px;
    line-height: 1;
    transition: color 0.4s;
    user-select: none;
}

.showcase-tab.active .tab-num {
    color: rgba(79, 70, 229, 0.1);
}

.tab-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    transition: color 0.4s;
    color: var(--color-black);
}

.showcase-tab.active .tab-content h3 {
    color: var(--accent-primary);
}

.tab-content p {
    font-size: 0.95rem;
    color: var(--color-muted);
    max-width: 440px;
    line-height: 1.6;
}

.tab-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(79, 70, 229, 0.05);
}

.tab-progress-bar .progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-blue));
    transition: width 7s linear;
}

.showcase-tab.active .tab-progress-bar .progress {
    width: 100%;
}

/* Simulator Phone Container */
.showcase-simulator {
    flex: 0.9;
    display: flex;
    justify-content: center;
}

.simulator-wrapper {
    position: relative;
}

.simulator-phone {
    position: relative;
    width: 272px;
    height: 560px;
    background: linear-gradient(to bottom, #334155, #0f172a);
    border-radius: 46px;
    box-shadow: var(--shadow-phone);
    padding: 9px;
    border: 1px solid #475569;
    overflow: hidden;
    flex-shrink: 0;
}

.simulator-phone::before {
    /* Power Button */
    content: '';
    position: absolute;
    right: -2px;
    top: 105px;
    width: 2px;
    height: 48px;
    background: #475569;
    border-radius: 0 3px 3px 0;
}

.simulator-phone::after {
    /* Volume Buttons */
    content: '';
    position: absolute;
    left: -2px;
    top: 95px;
    width: 2px;
    height: 34px;
    background: #475569;
    border-radius: 3px 0 0 3px;
    box-shadow: 0 48px 0 #475569;
}

.simulator-screen-area {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
    border-radius: 36px;
    overflow: hidden;
    border: 4px solid #000;
}

.screen-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.simulator-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ==========================================================================
   Bento Grid Features Section
   ========================================================================== */
.features-sec {
    padding: 120px 0;
    background-color: transparent;
}

.section-header-left {
    text-align: left;
    margin-bottom: 60px;
    padding: 0 24px;
}

.section-header-left h2 {
    font-family: 'Outfit', var(--font-sans);
    font-size: 3.0rem;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: -2px;
    color: var(--color-black);
}

.section-header-left h2 span {
    background: linear-gradient(135deg, var(--accent-primary) 20%, var(--accent-purple) 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header-left p {
    color: var(--color-muted);
    font-size: 1.15rem;
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(340px, auto);
    gap: 30px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--color-border);
    border-radius: 28px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow: var(--shadow-lg);
}

/* Card sizes */
.bento-wide {
    grid-column: span 2;
}

/* Icon Wrap */
.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 24px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .icon-wrapper {
    transform: scale(1.08) rotate(-5deg);
}

/* Icon Colors */
.icon-indigo { background-color: rgba(79, 70, 229, 0.08); color: var(--accent-primary); }
.icon-blue { background-color: rgba(59, 130, 246, 0.08); color: var(--accent-blue); }
.icon-purple { background-color: rgba(139, 92, 246, 0.08); color: var(--accent-purple); }
.icon-green { background-color: rgba(16, 185, 129, 0.08); color: var(--accent-green); }
.icon-rose { background-color: rgba(236, 72, 153, 0.08); color: var(--accent-rose); }

.bento-text h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--color-black);
    letter-spacing: -0.5px;
}

.bento-text p {
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Utility: Non-breaking words for Japanese typography */
.nobr {
    display: inline-block;
    white-space: nowrap;
}

/* Mockup visuals inside Bento Cards */
.bento-visual {
    margin-top: 24px;
    border-radius: 18px;
    background-color: rgba(79, 70, 229, 0.02);
    border: 1px solid rgba(79, 70, 229, 0.04);
    padding: 20px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Card 1: Camera Scanner Simulator for AI scanning */
.visual-scanner {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 140px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

.scanner-bg {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.scanner-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-rose), transparent);
    top: 0;
    left: 0;
    box-shadow: 0 0 10px var(--accent-rose);
    animation: scanAnimation 3s infinite linear;
}

.scanner-frame-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
}

.corner-tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.corner-tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.corner-bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.corner-br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.scanner-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(79, 70, 229, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 6px;
}

.scanner-status i {
    animation: pulseRed 1s infinite alternate;
}

@keyframes scanAnimation {
    0% { top: 0%; }
    50% { top: 100%; }
    100% { top: 0%; }
}

@keyframes pulseRed {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Card 2: Custom mini screen layout for Lock Widget (displaying IMG_2311) */
.visual-lock-screen {
    width: 100%;
    max-width: 160px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lock-screen-image {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-sm);
    transition: transform 0.5s ease;
}

.bento-card:hover .lock-screen-image {
    transform: scale(1.05) rotate(1deg);
}

/* Card 3: Custom mini screen layout for attendance circle (displaying IMG_2314) */
.visual-attendance {
    width: 100%;
    max-width: 180px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.attendance-image {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-sm);
    transition: transform 0.5s ease;
}

.bento-card:hover .attendance-image {
    transform: scale(1.05) rotate(-1deg);
}

/* Card 4: Moodle Synchronization visual */
.visual-moodle-sync {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(79, 70, 229, 0.06);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sync-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding-bottom: 8px;
}

.sync-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--color-slate);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sync-status {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: #10b981;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
}

.sync-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sync-item-row {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sync-item-row span {
    font-weight: 700;
    color: var(--color-black);
}

.sync-loader-indicator {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(79, 70, 229, 0.1);
    border-top: 2px solid var(--accent-primary);
    border-radius: 50%;
    animation: spinSync 2s linear infinite;
}

@keyframes spinSync {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card 5: Local Privacy Locker */
.visual-privacy-lock {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.privacy-lock-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.08);
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.4s;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1);
}

.bento-card:hover .privacy-lock-icon {
    transform: scale(1.1);
    background: var(--accent-green);
    color: white;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.privacy-badge-sim {
    font-size: 0.65rem;
    background: rgba(15, 23, 42, 0.05);
    color: var(--color-muted);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
}

/* Card 6: Week task calendar screenshot layout */
.visual-weekly-calendar {
    width: 100%;
    max-width: 180px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.weekly-calendar-image {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: var(--shadow-sm);
    transition: transform 0.5s ease;
}

.bento-card:hover .weekly-calendar-image {
    transform: scale(1.05) rotate(1deg);
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
    background-color: transparent;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 120px 0;
    text-align: center;
    position: relative;
}

.cta h2 {
    font-family: 'Outfit', var(--font-sans);
    font-size: 3.0rem;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -2px;
    color: var(--color-black);
}

.cta h2 span {
    background: linear-gradient(135deg, var(--accent-primary) 20%, var(--accent-rose) 85%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta p {
    font-size: 1.15rem;
    color: var(--color-muted);
    margin-bottom: 44px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta .app-buttons {
    justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--bg-white);
    color: var(--color-slate);
    padding: 70px 0 35px;
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.footer-left h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--color-black);
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
    object-fit: cover;
}

.footer-left p {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.footer-center {
    flex: 2;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.disclaimer {
    font-size: 0.75rem;
    color: rgba(15, 23, 42, 0.45);
    line-height: 1.6;
}

.footer-right ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
}

.footer-right a {
    color: var(--color-slate);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-right a:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .hero-content h1 {
        font-size: 3.6rem;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
    
    .showcase-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .navbar {
        height: 72px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-img {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .nav-links {
        gap: 0;
    }

    .nav-links li:first-child {
        display: none; /* Hide the 'features' text link on mobile to save space */
    }

    .nav-cta {
        padding: 8px 16px;
        font-size: 0.85rem;
        border-radius: 20px;
        white-space: nowrap;
    }

    .hero {
        padding: 40px 0 70px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 2.4rem !important;
        letter-spacing: -1.5px !important;
        line-height: 1.15 !important;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
        font-size: 1.05rem;
        margin-bottom: 32px;
    }

    .app-buttons {
        justify-content: center;
        gap: 12px;
    }

    .btn-store {
        padding: 10px 20px;
        border-radius: 14px;
    }

    .btn-store i {
        font-size: 1.5rem;
        margin-right: 8px;
    }

    .btn-text .big-text {
        font-size: 1.0rem;
    }

    .hero-image {
        margin-top: 20px;
        width: 100%;
        max-width: 250px;
    }

    .phone-mockup-perspective {
        transform: none !important;
    }

    .floating-badge {
        display: none !important; /* Disable floating badges on mobile */
    }

    /* Showcase mobile optimization (Tabs above Simulator) */
    .showcase-container {
        flex-direction: column;
        gap: 32px;
    }

    .showcase-controls {
        flex-direction: row;
        width: 100%;
        gap: 8px;
    }

    .showcase-tab {
        padding: 12px 8px;
        border-radius: 14px;
        flex: 1;
        text-align: center;
        box-shadow: var(--shadow-sm);
    }
    
    .showcase-tab::before {
        display: none !important; /* Hide left border marker */
    }

    .showcase-tab:hover {
        transform: none !important;
    }

    .showcase-tab .tab-content p,
    .showcase-tab .tab-num,
    .showcase-tab .tab-progress-bar {
        display: none !important; /* Turn cards into compact buttons */
    }

    .showcase-tab .tab-content h3 {
        font-size: 0.8rem;
        margin-bottom: 0;
        font-weight: 700;
        white-space: nowrap;
    }

    .showcase-simulator {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .iphone-frame, .simulator-phone {
        width: 250px;
        height: 515px;
    }

    /* Bento Grid mobile padding fixes */
    .bento-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bento-wide {
        grid-column: span 1;
    }

    .bento-card {
        padding: 28px 20px;
        border-radius: 20px;
    }

    .bento-visual {
        padding: 16px;
        margin-top: 20px;
    }

    .visual-scanner {
        max-width: 100%;
        height: 120px;
    }

    .visual-moodle-sync {
        max-width: 100%;
    }

    .section-header-left h2 {
        font-size: 2.0rem !important;
        letter-spacing: -1px !important;
        line-height: 1.2 !important;
    }

    .cta h2 {
        font-size: 2.0rem !important;
        letter-spacing: -1px !important;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 30px;
    }

    .footer-center {
        order: 3;
    }
}

/* Extra support for small viewport sizes (e.g. iPhone SE) */
@media (max-width: 350px) {
    .iphone-frame, .simulator-phone {
        width: 220px;
        height: 450px;
    }
    
    .showcase-tab .tab-content h3 {
        font-size: 0.7rem;
    }
}
