/* ==================== CSS Variables (Design Specification) ==================== */
:root {
    /* Colors */
    --primary-color: #007AFF;
    --bg-white: #FFFFFF;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --accent-light: #E8F4FF;
    --success-color: #34C759;
    --border-light: #E5E5EA;
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-button: 0 2px 8px rgba(0, 122, 255, 0.3);

    /* Service Colors */
    --service-ai: #007AFF;
    --service-ios: #34C759;
    --service-consulting: #AF52DE;

    /* Typography */
    --text-hero: 56px;
    --text-h1: 48px;
    --text-h2: 32px;
    --text-h3: 24px;
    --text-body: 17px;
    --text-caption: 14px;

    /* Layout */
    --container-max: 1200px;
    --container-padding: 24px;
    --section-gap: 120px;
    --card-gap: 32px;
    --element-gap: 16px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ==================== Base Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Remove tap highlight on mobile */
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    /* Mobile optimization */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent text size adjustment on orientation change */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    /* Enable smooth scrolling on mobile */
    -webkit-overflow-scrolling: touch;
}

/* Japanese Font Support */
body[lang="ja"] {
    font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
}

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

/* ==================== Navigation Bar ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
    z-index: 1000;
    transition: var(--transition-normal);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--text-body);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    color: var(--primary-color);
}

.lang-divider {
    color: var(--text-secondary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-normal);
}

/* ==================== Company Hero Section ==================== */
.company-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #F8FAFF 0%, #FFFFFF 100%);
    text-align: center;
    padding: 140px var(--container-padding) 80px;
}

.company-hero-content {
    max-width: 900px;
}

.company-hero-title {
    font-size: var(--text-hero);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.company-hero-subtitle {
    font-size: var(--text-h2);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.company-hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-body);
    transition: var(--transition-normal);
    cursor: pointer;
    /* Better tap target for mobile */
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #0051D5;
    transform: scale(1.02);
    box-shadow: var(--shadow-button);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.02);
}

/* ==================== About MyArcs ==================== */
.about {
    padding: var(--section-gap) var(--container-padding);
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: var(--text-h1);
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.about-content {
    margin-bottom: 60px;
}

.about-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-what-we-do {
    margin-bottom: 60px;
}

.subsection-title {
    font-size: var(--text-h3);
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--card-gap);
    margin-bottom: 40px;
}

.about-card {
    background: #F9FAFB;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    text-align: center;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

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

/* Values Grid */
.about-values {
    margin-bottom: 60px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--card-gap);
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
}

.value-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.value-item h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.value-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Location Badge */
.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-light);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    margin: 0 auto;
    display: flex;
    width: fit-content;
    font-weight: 500;
    color: var(--text-primary);
}

.location-icon {
    font-size: 1.25rem;
}

/* ==================== Products Section ==================== */
.products {
    padding: var(--section-gap) var(--container-padding);
    background: #FAFBFC;
}

.product-label {
    text-align: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.product-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 80px;
}

.product-hero-content {
    text-align: left;
}

.product-hero-title {
    font-size: var(--text-h1);
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-hero-subtitle {
    font-size: var(--text-h3);
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-hero-tagline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.btn-appstore {
    background: black;
    color: white;
}

.btn-appstore:hover {
    background: #1D1D1F;
    transform: scale(1.02);
}

.product-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.iphone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.mockup-placeholder {
    font-size: 5rem;
}

/* Product Features */
.product-features {
    margin-bottom: 80px;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

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

/* AI Characters */
.product-characters {
    margin-bottom: 80px;
}

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

.character-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
    text-align: center;
}

.character-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.character-avatar {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.character-name {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.character-role {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.character-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.character-quote {
    color: var(--text-primary);
    font-style: italic;
    font-size: 0.95rem;
    background: var(--accent-light);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary-color);
}

/* How It Works */
.product-how {
    margin-bottom: 40px;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--card-gap);
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    text-align: center;
}

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

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

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

/* ==================== Services & Capabilities ==================== */
.services {
    padding: var(--section-gap) var(--container-padding);
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--card-gap);
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-light);
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.service-card.service-ai:hover {
    border-color: var(--service-ai);
}

.service-card.service-ios:hover {
    border-color: var(--service-ios);
}

.service-card.service-consulting:hover {
    border-color: var(--service-consulting);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-intro {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 1.6;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ==================== Business Collaboration ==================== */
.collaboration {
    padding: var(--section-gap) var(--container-padding);
    background: #F0F7FF;
}

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

.collaboration-intro {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
    text-align: center;
}

.partnership-types {
    margin-bottom: 4rem;
}

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

.partnership-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: var(--transition-normal);
}

.partnership-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.partnership-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.partnership-card h4 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

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

/* Contact CTA */
.contact-cta {
    text-align: center;
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.email-link {
    display: inline-block;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin: 1.5rem 0;
    transition: var(--transition-fast);
}

.email-link:hover {
    color: #0051D5;
    transform: scale(1.02);
}

.response-time {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* ==================== Footer ==================== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 4rem var(--container-padding) 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-section h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    opacity: 0.9;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-brand p {
    opacity: 0.8;
    margin-top: 0.5rem;
}

.footer-contact span {
    opacity: 0.7;
    font-size: 0.875rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.875rem;
}

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

.fade-in {
    animation: fadeInUp 0.6s ease;
}

/* ==================== Responsive Design ==================== */

/* Tablet and larger screens */
@media (max-width: 1024px) {
    :root {
        --text-hero: 48px;
        --text-h1: 40px;
        --text-h2: 28px;
        --text-h3: 22px;
    }

    .product-hero {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .product-hero-content {
        text-align: center;
    }

    /* Better card spacing on tablets */
    .about-grid,
    .features-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* Mobile devices */
@media (max-width: 768px) {
    :root {
        --text-hero: 36px;
        --text-h1: 30px;
        --text-h2: 24px;
        --text-h3: 20px;
        --text-body: 16px;
        --section-gap: 80px;
        --card-gap: 24px;
    }

    /* Mobile Navigation */
    .nav {
        height: 60px;
    }

    .nav-brand h2 {
        font-size: 1.25rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background: white;
        width: 100%;
        height: calc(100vh - 60px);
        text-align: center;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-card);
        padding: 2rem 0;
        gap: 1.5rem;
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        font-size: 1.125rem;
        padding: 0.75rem 1.5rem;
    }

    .lang-switcher {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-light);
    }

    .lang-btn {
        font-size: 16px;
        padding: 8px 16px;
        min-height: 44px;
    }

    .nav-toggle {
        display: flex;
        padding: 10px;
        margin: -10px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    /* Hero Section - Mobile Optimized */
    .company-hero {
        min-height: auto;
        padding: 100px var(--container-padding) 60px;
    }

    .company-hero-tagline {
        font-size: 1.0625rem;
        line-height: 1.7;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 100%;
        padding: 16px 32px;
        font-size: 1rem;
        min-height: 48px;
    }

    /* About Section - Mobile */
    .about-intro {
        font-size: 1rem;
        text-align: left;
    }

    .about-grid,
    .features-grid,
    .characters-grid,
    .how-steps,
    .services-grid,
    .partnership-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-card,
    .feature-card,
    .character-card,
    .service-card,
    .partnership-card {
        padding: 1.75rem;
    }

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

    .value-item {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .value-icon {
        margin-bottom: 0.5rem;
    }

    /* Products Section - Mobile */
    .product-label {
        font-size: 0.8125rem;
        margin-bottom: 1.5rem;
    }

    .product-hero {
        gap: 2rem;
        margin-bottom: 60px;
    }

    .product-hero-title {
        font-size: 2rem;
    }

    .product-hero-subtitle {
        font-size: 1.25rem;
    }

    .product-hero-tagline {
        font-size: 1rem;
    }

    .iphone-mockup {
        width: 260px;
        height: 520px;
        border-radius: 35px;
    }

    .mockup-placeholder {
        font-size: 4.5rem;
    }

    .product-features,
    .product-characters,
    .product-how {
        margin-bottom: 60px;
    }

    .subsection-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .character-avatar {
        font-size: 3.5rem;
    }

    .character-name {
        font-size: 1.25rem;
    }

    .character-quote {
        font-size: 0.875rem;
        padding: 0.625rem 0.875rem;
    }

    /* Services - Mobile */
    .service-card h3 {
        font-size: 1.25rem;
    }

    .service-list li {
        font-size: 0.9375rem;
    }

    /* Collaboration - Mobile */
    .collaboration-intro {
        font-size: 1rem;
        text-align: left;
    }

    .contact-cta {
        padding: 2rem 1.5rem;
    }

    .email-link {
        font-size: 1.25rem;
        word-break: break-all;
    }

    /* Footer - Mobile */
    .footer {
        padding: 3rem var(--container-padding) 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: left;
    }

    .footer-section {
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-section:last-child {
        border-bottom: none;
    }

    .footer-contact a {
        word-break: break-all;
    }

    /* Location Badge - Mobile */
    .location-badge {
        font-size: 0.9375rem;
        padding: 0.625rem 1.25rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    :root {
        --text-hero: 32px;
        --text-h1: 26px;
        --text-h2: 22px;
        --text-h3: 18px;
        --container-padding: 16px;
        --section-gap: 60px;
    }

    .company-hero {
        padding: 90px var(--container-padding) 50px;
    }

    .company-hero-title {
        font-size: 2.5rem;
    }

    .company-hero-subtitle {
        font-size: 1.25rem;
    }

    .company-hero-tagline {
        font-size: 0.9375rem;
    }

    .btn {
        padding: 14px 24px;
        font-size: 0.9375rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .subsection-title {
        font-size: 1.25rem;
    }

    .about-intro,
    .collaboration-intro {
        font-size: 0.9375rem;
    }

    .about-card,
    .feature-card,
    .character-card,
    .service-card,
    .partnership-card,
    .step-card {
        padding: 1.5rem;
    }

    .card-icon,
    .feature-icon,
    .service-icon,
    .partnership-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .character-avatar {
        font-size: 3rem;
    }

    .iphone-mockup {
        width: 220px;
        height: 440px;
        border-radius: 30px;
    }

    .mockup-placeholder {
        font-size: 3.5rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .email-link {
        font-size: 1.125rem;
    }

    .footer-section h3 {
        font-size: 1.25rem;
    }

    .footer-section h4 {
        font-size: 0.9375rem;
    }
}

/* Extra small devices (very small phones) */
@media (max-width: 360px) {
    :root {
        --text-hero: 28px;
        --text-h1: 24px;
        --container-padding: 12px;
    }

    .company-hero-title {
        font-size: 2rem;
    }

    .nav-brand h2 {
        font-size: 1.125rem;
    }

    .iphone-mockup {
        width: 200px;
        height: 400px;
    }

    .mockup-placeholder {
        font-size: 3rem;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    /* Larger tap targets for mobile */
    .nav-link,
    .btn,
    .lang-btn {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .about-card:hover,
    .feature-card:hover,
    .character-card:hover,
    .service-card:hover,
    .partnership-card:hover {
        transform: none;
    }

    /* Better focus states for touch */
    .nav-link:active,
    .btn:active {
        opacity: 0.7;
        transform: scale(0.98);
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .company-hero {
        min-height: auto;
        padding: 80px var(--container-padding) 50px;
    }

    .nav-menu {
        height: calc(100vh - 60px);
        padding: 1.5rem 0;
    }

    .iphone-mockup {
        width: 200px;
        height: 400px;
    }
}
