/* =============================================
   MetAIra Landing Page - Main Stylesheet
   ============================================= */

/* ===== Reset & Variables ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e94560;
    --primary-hover: #ff6b81;
    --accent: #7c5cfc;
    --accent-hover: #9b82ff;
    --green: #4CAF50;
    --green-hover: #66bb6a;
    --bg-dark-1: #0a0a1a;
    --bg-dark-2: #0d1025;
    --bg-dark-3: #111430;
    --bg-dark-4: #0f1735;
    --bg-dark-5: #0c1a3a;
    --bg-dark-6: #101e40;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-muted: rgba(255, 255, 255, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-bg-hover: rgba(255, 255, 255, 0.1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: var(--text-primary);
    background: var(--bg-dark-1);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ===== Navigation ===== */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 16px 0;
    z-index: 1000;
    transition: background-color 0.4s, padding 0.4s, backdrop-filter 0.4s;
}

nav.scrolled {
    background-color: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.4em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: color 0.3s, background-color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.08);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Shared Section Styles ===== */
.section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-compact {
    min-height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.content {
    max-width: 900px;
    padding: 100px 24px 60px;
    z-index: 2;
    position: relative;
}

.section-compact .content {
    padding: 80px 24px;
}

.section-label {
    display: inline-block;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

h2 {
    font-size: clamp(1.8em, 3.5vw, 2.6em);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.section-desc {
    font-size: 1.05em;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.section-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0;
}

.section-divider svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    margin-top: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(233, 69, 96, 0.4);
    filter: brightness(1.1);
}

.btn:active { transform: translateY(0); }

.download-btn {
    display: block;
    margin-top: 16px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--green), #2e7d32);
    font-size: 1.05em;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

.download-btn:hover {
    box-shadow: 0 6px 24px rgba(76, 175, 80, 0.4);
}

/* ===== Glass Card (shared) ===== */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s, background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.glass-card:hover {
    transform: translateY(-6px);
    background: var(--glass-bg-hover);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* ===== Hero ===== */
#hero {
    background-image: url('../image/home_background.png');
    background-size: cover;
    background-position: center;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(10, 10, 26, 0.5) 0%,
        rgba(10, 10, 26, 0.3) 40%,
        rgba(10, 10, 26, 0.7) 80%,
        rgba(10, 10, 26, 1) 100%
    );
    z-index: 1;
}

#particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.2em, 5vw, 3.8em);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 2px;
    line-height: 1.2;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1em, 2vw, 1.3em);
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Mascots */
.mascot-container {
    position: absolute;
    width: 180px;
    z-index: 2;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mascot-container:hover { transform: scale(1.08) translateY(-8px); }

.mascot {
    width: 100%;
    height: auto;
    border-radius: 16px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

.mascot-name {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-weight: 600;
    font-size: 0.85em;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

#metA-container {
    left: 5%;
    bottom: 12%;
    animation: mascotEnter 1s ease forwards 0.9s, float 4s ease-in-out infinite 2s;
}

#aira-container {
    right: 5%;
    bottom: 12%;
    animation: mascotEnter 1s ease forwards 0.9s, float 4s ease-in-out infinite 2.5s;
}

@keyframes mascotEnter {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

#metA-container:hover,
#aira-container:hover {
    animation: none;
    opacity: 1;
    transform: scale(1.08) translateY(-8px);
}

/* ===== About ===== */
#about { background: linear-gradient(180deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%); }

.about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.about-feature {
    padding: 28px 16px;
}

.about-feature .icon { font-size: 2.4em; margin-bottom: 12px; }
.about-feature h4 { font-size: 1em; font-weight: 600; margin-bottom: 8px; }
.about-feature p { font-size: 0.85em; color: var(--text-secondary); line-height: 1.6; }

/* ===== Services ===== */
#services { background: linear-gradient(180deg, var(--bg-dark-2) 0%, var(--bg-dark-3) 100%); }

.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.service-card {
    padding: 28px 22px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover::before { opacity: 1; }

.service-card .icon { font-size: 2.2em; margin-bottom: 14px; display: block; }
.service-card h3 { font-size: 1.05em; font-weight: 600; margin-bottom: 10px; }
.service-card p { font-size: 0.88em; line-height: 1.65; color: var(--text-secondary); }

/* ===== Gallery ===== */
#gallery { background: linear-gradient(180deg, var(--bg-dark-3) 0%, var(--bg-dark-4) 100%); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    position: relative;
    cursor: pointer;
    background: var(--bg-dark-1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.gallery-item .gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    font-size: 0.85em;
    font-weight: 500;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s, transform 0.3s;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ===== How To Start ===== */
#howto { background: linear-gradient(180deg, var(--bg-dark-4) 0%, var(--bg-dark-5) 100%); }

.steps {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    margin-top: 48px;
    position: relative;
}

.step {
    flex: 1;
    max-width: 260px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 1.5em;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(233, 69, 96, 0.3);
}

.step-icon { font-size: 2em; margin-bottom: 12px; }
.step h4 { font-size: 1.1em; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 0.88em; color: var(--text-secondary); line-height: 1.6; }

.step-connector {
    position: absolute;
    top: 32px;
    width: calc(100% - 64px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.3;
    left: calc(50% + 32px);
}

.step:last-child .step-connector { display: none; }

/* ===== Download ===== */
#download { background: linear-gradient(180deg, var(--bg-dark-5) 0%, var(--bg-dark-6) 100%); }

.download-cards {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.download-card {
    padding: 36px 44px;
    min-width: 220px;
    border-radius: 20px;
}

.download-card:hover {
    box-shadow: 0 16px 48px rgba(76, 175, 80, 0.15);
    border-color: var(--green);
}

.platform-icon { font-size: 3em; margin-bottom: 12px; }
.download-card h3 { font-size: 1.4em; margin: 8px 0; font-weight: 600; }
.platform-desc { color: var(--text-muted); margin-bottom: 20px; font-size: 0.88em; }

.system-requirements {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px 28px;
    margin-top: 24px;
    text-align: left;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.system-requirements h3 { font-size: 1em; font-weight: 600; margin-bottom: 8px; color: var(--primary); }
.system-requirements p { font-size: 0.9em; color: var(--text-secondary); }

/* ===== Characters ===== */
#characters { background: linear-gradient(180deg, var(--bg-dark-6) 0%, var(--bg-dark-4) 100%); }

.character-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.character-card {
    padding: 0;
    border-radius: 24px;
    overflow: hidden;
    width: 320px;
    text-align: center;
}

.character-card:hover {
    transform: translateY(-8px);
}

.character-img-wrapper {
    padding: 32px 32px 16px;
    position: relative;
}

.character-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0; left: 10%; right: 10%;
    height: 40px;
    background: radial-gradient(ellipse, rgba(124, 92, 252, 0.2), transparent);
    filter: blur(8px);
}

.character-card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 20px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.3));
    position: relative;
    z-index: 1;
}

.character-info { padding: 8px 28px 32px; }
.character-info h3 { font-size: 1.3em; font-weight: 700; margin-bottom: 4px; }

.character-role {
    display: inline-block;
    font-size: 0.75em;
    font-weight: 600;
    color: var(--accent);
    background: rgba(124, 92, 252, 0.15);
    padding: 3px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.character-info p {
    font-size: 0.88em;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Stats ===== */
#stats { background: linear-gradient(180deg, var(--bg-dark-4) 0%, var(--bg-dark-3) 100%); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.stat-item { padding: 32px 16px; }

.stat-icon { font-size: 2em; margin-bottom: 12px; }

.stat-number {
    font-size: 2.4em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.88em;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== FAQ ===== */
#faq { background: linear-gradient(180deg, var(--bg-dark-3) 0%, var(--bg-dark-2) 100%); }

.faq-list {
    max-width: 700px;
    margin: 40px auto 0;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1em;
    font-weight: 600;
    padding: 20px 40px 20px 0;
    text-align: left;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.faq-question:hover { color: var(--accent); }

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4em;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-answer p {
    padding: 0 0 20px;
    font-size: 0.92em;
    color: var(--text-secondary);
    line-height: 1.8;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

/* ===== News ===== */
#news { background: linear-gradient(180deg, var(--bg-dark-2) 0%, var(--bg-dark-1) 100%); }

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 700px;
    margin: 40px auto 0;
    text-align: left;
}

.news-item {
    padding: 24px 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.news-date {
    flex-shrink: 0;
    font-size: 0.78em;
    font-weight: 600;
    color: var(--accent);
    background: rgba(124, 92, 252, 0.12);
    padding: 4px 12px;
    border-radius: 8px;
    white-space: nowrap;
    margin-top: 2px;
}

.news-body h4 { font-size: 1em; font-weight: 600; margin-bottom: 6px; }
.news-body p { font-size: 0.88em; color: var(--text-secondary); line-height: 1.6; }

/* ===== Contact ===== */
#contact { background: linear-gradient(180deg, var(--bg-dark-1) 0%, var(--bg-dark-2) 100%); }

.contact-form {
    max-width: 520px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 6px; color: var(--text-secondary); font-size: 0.9em; font-weight: 500; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95em;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group textarea { height: 130px; resize: vertical; }

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    font-family: inherit;
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
    box-shadow: 0 4px 16px rgba(233, 69, 96, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(233, 69, 96, 0.4); filter: brightness(1.1); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

.alert { padding: 12px 16px; margin: 0 0 16px; border-radius: 10px; display: none; font-size: 0.9em; font-weight: 500; }
.alert-success { background: rgba(76, 175, 80, 0.2); border: 1px solid rgba(76, 175, 80, 0.4); color: var(--green-hover); }
.alert-error { background: rgba(233, 69, 96, 0.2); border: 1px solid rgba(233, 69, 96, 0.4); color: var(--primary-hover); }

/* ===== Footer ===== */
footer {
    background: var(--bg-dark-1);
    border-top: 1px solid var(--glass-border);
    padding: 40px 24px;
    text-align: center;
}

.footer-inner { max-width: 900px; margin: 0 auto; }

.footer-logo {
    font-size: 1.3em;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.footer-desc { color: var(--text-muted); font-size: 0.85em; margin-bottom: 20px; }

.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.85em; transition: color 0.3s; }
.footer-links a:hover { color: var(--text-primary); }

.footer-copy { color: var(--text-muted); font-size: 0.8em; }

/* ===== Scroll Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

.hero-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1s ease forwards;
}

.hero-fade-delay-1 { animation-delay: 0.3s; }
.hero-fade-delay-2 { animation-delay: 0.6s; }

@keyframes heroFadeIn { to { opacity: 1; transform: translateY(0); } }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .service-cards { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }

    nav ul {
        position: fixed;
        top: 0; right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        transition: right 0.35s ease;
        border-left: 1px solid var(--glass-border);
    }

    nav ul.open { right: 0; }
    nav ul li a { font-size: 1.1em; padding: 12px 24px; }

    .about-features { grid-template-columns: repeat(2, 1fr); }
    .service-cards { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .steps { flex-direction: column; align-items: center; }
    .step-connector { display: none !important; }
    .step { max-width: 100%; }

    .character-cards { gap: 24px; }
    .character-card { width: 100%; max-width: 320px; }

    .mascot-container { width: 120px; }
    #metA-container { left: 2%; bottom: 6%; }
    #aira-container { right: 2%; bottom: 6%; }

    .content { padding: 80px 16px 40px; }
    .section-compact .content { padding: 60px 16px; }
    .download-cards { gap: 20px; }
}

@media (max-width: 480px) {
    .about-features { grid-template-columns: 1fr; gap: 14px; }
    .stats-grid { grid-template-columns: 1fr; }
    .mascot-container { width: 90px; }
    .download-card { padding: 24px 28px; min-width: 0; width: 100%; }
    .contact-form { padding: 24px 18px; }
    .footer-links { flex-direction: column; gap: 12px; }
    .news-item { flex-direction: column; gap: 8px; }
}
