/* ============================================
   AgentRPO - Shared Styles
   ESAI Agency K.K. - Part of ExecutiveSearch.AI
   ============================================ */

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

body {
    font-family: 'DM Sans', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0a0a0b;
    color: #ffffff;
    line-height: 1.6;
    word-break: normal;
    overflow-wrap: break-word;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Japanese text handling */
[data-lang="ja"] h1,
[data-lang="ja"] h2,
[data-lang="ja"] h3 {
    word-break: keep-all;
    line-break: strict;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Typography
   ============================================ */

.gradient-text {
    background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 50%, #9b5de5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline;
}

/* Prevent line breaks within gradient text spans */
h1 .gradient-text,
h2 .gradient-text {
    white-space: nowrap;
}

.section-label {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #00f5d4;
    margin-bottom: 16px;
}

h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    word-break: keep-all;
    overflow-wrap: break-word;
}

h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ============================================
   Buttons
   ============================================ */

.glow-button {
    display: inline-block;
    position: relative;
    background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%);
    border: none;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 700;
    color: #0a0a0b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: inherit;
    text-decoration: none;
}

.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 245, 212, 0.3);
}

.secondary-button {
    display: inline-block;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
}

.secondary-button:hover {
    border-color: #00f5d4;
    color: #00f5d4;
}

/* ============================================
   Layout
   ============================================ */

.section {
    padding: 48px 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

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

/* ============================================
   Navigation
   ============================================ */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0a0a0b;
    font-size: 14px;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00f5d4;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 22, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px;
    min-width: 200px;
    padding-top: 24px;
    margin-top: 0;
    z-index: 200;
}

/* Bridge the gap between trigger and dropdown */
.nav-dropdown-content::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 24px;
    background: transparent;
}

.nav-dropdown:hover .nav-dropdown-content,
.nav-dropdown:focus-within .nav-dropdown-content {
    display: block;
}

/* Keep dropdown open when hovering the dropdown itself */
.nav-dropdown-content:hover {
    display: block;
}

.nav-dropdown-content a {
    display: block;
    padding: 10px 16px;
    color: rgba(255,255,255,0.7);
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-dropdown-content a:hover {
    background: rgba(0, 245, 212, 0.1);
    color: #00f5d4;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

/* Mobile language toggle - hidden on desktop */
.mobile-lang-toggle {
    display: none;
}

@media (max-width: 900px) {
    /* Show mobile language toggle */
    .mobile-lang-toggle {
        display: flex !important;
        margin-left: auto;
        margin-right: 12px;
    }
    
    .mobile-lang-toggle button {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 11, 0.98);
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav-links.active > a,
    .nav-links.active .nav-dropdown > a {
        padding: 12px 0;
        font-size: 16px;
    }
    
    .nav-links.active .glow-button {
        width: 100%;
        text-align: center;
        margin: 8px 0;
    }
    
    /* Hide the lang toggle inside nav-links on mobile */
    .nav-links .lang-toggle {
        display: none !important;
    }
    
    .nav-dropdown-content {
        position: static;
        transform: none;
        margin-top: 8px;
        padding-left: 16px;
        display: block;
        background: transparent;
        border: none;
        padding-top: 0;
    }
    
    .nav-dropdown-content::before {
        display: none;
    }
    
    .nav-dropdown-content a {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.hero-glow-1 {
    position: absolute;
    top: 20%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 245, 212, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: 20%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(155, 93, 229, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 84px);
    max-width: 900px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ============================================
   Page Header (for interior pages)
   ============================================ */

.page-header {
    padding-top: 120px;
    padding-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.page-header .hero-glow-1,
.page-header .hero-glow-2 {
    position: absolute;
}

.page-header .hero-glow-1 {
    top: -100px;
    right: 10%;
    width: 400px;
    height: 400px;
}

.page-header .hero-glow-2 {
    bottom: -100px;
    left: 5%;
    width: 300px;
    height: 300px;
}

.page-header h1 {
    position: relative;
    z-index: 1;
}

.page-header p {
    position: relative;
    z-index: 1;
    font-size: 20px;
    color: rgba(255,255,255,0.6);
    max-width: 700px;
}

/* ============================================
   Cards
   ============================================ */

.card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
    overflow: hidden;
    word-wrap: break-word;
}

.card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    transform: translateY(-4px);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 245, 212, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #00f5d4;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Team Cards
   ============================================ */

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

.team-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    transform: translateY(-4px);
}

.team-card-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.2) 0%, rgba(155, 93, 229, 0.2) 100%);
    overflow: hidden;
}

.team-card-image img,
.team-headshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-card-content {
    padding: 24px;
}

.team-card h3 {
    margin-bottom: 4px;
}

.team-card .role {
    color: #00f5d4;
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.team-card p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   Team Photo Section
   ============================================ */

.team-photo-section {
    padding: 24px 0;
}

.team-photo-section .section {
    padding-top: 16px;
    padding-bottom: 16px;
}

.team-photo-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 1000px;
    margin: 0 auto;
}

.team-photo-wrapper img,
.team-photo {
    width: 100%;
    display: block;
}

.content-img {
    width: 100%;
    display: block;
}

.team-photo-caption {
    text-align: center;
    margin-top: 12px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* ============================================
   Content Sections
   ============================================ */

.content-section {
    padding: 48px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.content-section p {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

.content-with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.content-with-image.reverse {
    direction: rtl;
}

.content-with-image.reverse > * {
    direction: ltr;
}

.content-image {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 450px;
}

.content-image img {
    width: 100%;
    display: block;
}

.image-caption {
    text-align: center;
    padding: 12px;
    background: rgba(255,255,255,0.02);
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-style: italic;
}

@media (max-width: 900px) {
    .content-with-image {
        grid-template-columns: 1fr;
    }
    
    .content-with-image.reverse {
        direction: ltr;
    }
    
    .content-image {
        max-width: 100%;
    }
    
    /* Map container responsive */
    .content-image > div[style*="height: 350px"] {
        height: 280px !important;
    }
}

@media (max-width: 600px) {
    .content-with-image {
        gap: 24px;
    }
    
    .content-image > div[style*="height: 350px"] {
        height: 220px !important;
    }
    
    .content-with-image p {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
}

/* ============================================
   Credibility / Stats Section
   ============================================ */

.stats-section {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.05) 0%, rgba(155, 93, 229, 0.05) 100%);
    border-top: 1px solid rgba(0, 245, 212, 0.1);
    border-bottom: 1px solid rgba(155, 93, 229, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item .number {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-item .label {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   Benefits / Features List
   ============================================ */

.benefits-list {
    list-style: none;
    margin: 24px 0;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.8);
    font-size: 16px;
}

.benefits-list .check {
    color: #00f5d4;
    font-weight: bold;
    flex-shrink: 0;
}

/* ============================================
   Highlight Box
   ============================================ */

.highlight-box {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.08) 0%, rgba(155, 93, 229, 0.08) 100%);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
}

.highlight-box .section-label {
    margin-bottom: 20px;
}

.highlight-box h2 {
    margin-bottom: 20px;
}

.highlight-box p {
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    text-align: center;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 245, 212, 0.03) 100%);
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section > .section > p {
    font-size: 20px;
    color: rgba(255,255,255,0.6);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-note {
    margin-top: 24px;
    font-size: 14px;
    color: rgba(255,255,255,0.4);
}

/* ============================================
   Contact Form
   ============================================ */

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #00f5d4;
    background: rgba(0, 245, 212, 0.05);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   Map Section
   ============================================ */

.map-section {
    padding: 0;
}

.map-container {
    width: 100%;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(100%) invert(92%) contrast(85%);
}

.address-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
}

.address-card h3 {
    margin-bottom: 16px;
}

.address-card p {
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 48px 40px 32px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-col h4 {
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #00f5d4;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
    
    /* Move brand/tagline to bottom on mobile */
    .footer-brand {
        order: 4;
        text-align: center;
        margin-top: 16px;
        padding-top: 24px;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   Tier-1 Specific Styles
   ============================================ */

.tier-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 40px 0;
}

.tier-benefit {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tier-benefit .number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0a0a0b;
    font-size: 18px;
    flex-shrink: 0;
}

.tier-benefit h4 {
    margin-bottom: 8px;
}

.tier-benefit p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .tier-benefits {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Careers Specific Styles
   ============================================ */

.timeline {
    position: relative;
    padding-left: 40px;
    margin: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #00f5d4 0%, #00bbf9 50%, #9b5de5 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: #00f5d4;
    border-radius: 50%;
    border: 3px solid #0a0a0b;
}

.timeline-item h4 {
    color: #00f5d4;
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    margin-bottom: 12px;
}

.timeline-item ul {
    list-style: none;
}

.timeline-item li {
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.timeline-item li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.4);
}

/* Timeline mobile responsive */
@media (max-width: 600px) {
    .timeline {
        padding-left: 28px;
        margin: 24px 0;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item {
        margin-bottom: 28px;
    }
    
    .timeline-item::before {
        left: -23px;
        width: 10px;
        height: 10px;
    }
    
    .timeline-item h4 {
        font-size: 13px;
    }
    
    .timeline-item li {
        font-size: 14px;
        padding-left: 16px;
    }
}

/* ============================================
   Privacy Policy Specific Styles
   ============================================ */

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 28px;
    margin-top: 48px;
    margin-bottom: 20px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content h3 {
    font-size: 20px;
    margin-top: 32px;
    margin-bottom: 16px;
}

.legal-content p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* ============================================
   Candidate Page Specific
   ============================================ */

.candidate-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 48px 0;
}

.candidate-benefit {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
}

.candidate-benefit .icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 245, 212, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #00f5d4;
}

.candidate-benefit .icon svg {
    width: 32px;
    height: 32px;
}

.candidate-benefit h3 {
    margin-bottom: 12px;
}

.candidate-benefit p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .candidate-benefits {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.text-muted {
    color: rgba(255,255,255,0.5);
}

.text-small {
    font-size: 14px;
}

/* ============================================
   Privacy Policy Page
   ============================================ */

.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-section {
    margin-bottom: 48px;
}

.policy-section h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #00f5d4;
}

.policy-section h3 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.9);
}

.policy-section p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 16px;
    line-height: 1.8;
}

.policy-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.policy-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.policy-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #00f5d4;
}

.policy-meta {
    padding: 32px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    margin: 48px 0;
    text-align: center;
}

.policy-meta p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
}

.policy-meta p:last-child {
    margin-bottom: 0;
}

.policy-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    margin: 48px 0;
}

.contact-info-box {
    padding: 24px;
    background: rgba(0,245,212,0.05);
    border-radius: 8px;
    border: 1px solid rgba(0,245,212,0.1);
    margin: 24px 0;
}

.contact-info-box p {
    margin-bottom: 12px;
}

.contact-info-box p:last-child {
    margin-bottom: 0;
}

.note {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    font-style: italic;
}

/* ============================================
   Headhunt.AI Technology Page
   ============================================ */

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-card {
    padding: 40px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

.comparison-card.highlight {
    background: rgba(0,245,212,0.05);
    border-color: rgba(0,245,212,0.2);
}

.comparison-card h3 {
    font-size: 20px;
    margin-bottom: 24px;
    text-align: center;
}

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

.comparison-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-list.negative li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: rgba(255,100,100,0.7);
    font-weight: bold;
}

.comparison-list.positive li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00f5d4;
    font-weight: bold;
}

.tech-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 300px;
}

.tech-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,245,212,0.2) 0%, rgba(0,187,249,0.2) 50%, rgba(155,93,229,0.2) 100%);
    border: 2px solid rgba(0,245,212,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
}

.tech-label {
    font-size: 18px;
    font-weight: 700;
    color: #00f5d4;
}

.tech-sublabel {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.tech-orbit {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 300px;
}

.orbit-item {
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.1);
}

.stat-detail {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
}

/* ============================================
   Form Styles
   ============================================ */

select,
input,
textarea {
    color-scheme: dark;
}

select option {
    background: #1a1a1b;
    color: #ffffff;
    padding: 12px;
}

select:focus,
input:focus,
textarea:focus {
    outline: none;
    border-color: #00f5d4;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-visual {
        min-height: 250px;
        margin-top: 40px;
    }
}

/* ============================================
   Homepage Sales Components
   ============================================ */

/* Universal Badge */
.universal-badge {
    display: inline-flex;
    gap: 24px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    margin-bottom: 24px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

.universal-badge span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Formula Box - Agent x Agent */
.formula-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin: 48px auto 40px;
    padding: 32px 56px;
    background: rgba(0, 245, 212, 0.05);
    border: 1px solid rgba(0, 245, 212, 0.15);
    border-radius: 16px;
    max-width: fit-content;
}

.formula-item {
    text-align: center;
}

.formula-label {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}

.formula-value {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
}

.formula-operator {
    font-size: 36px;
    font-weight: 300;
    color: #00f5d4;
}

/* Value Props */
.value-props {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.value-prop {
    text-align: center;
    padding: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
}

.value-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.value-prop h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.value-prop p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
}

/* Problem Grid */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.problem-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.problem-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.problem-metric {
    font-size: 36px;
    font-weight: 700;
    color: #ff6b6b;
    margin-bottom: 8px;
}

.problem-label {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}

.problem-subtext {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* How It Works Grid */
.how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.how-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    transition: all 0.3s ease;
}

.how-card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    transform: translateY(-4px);
}

.how-step {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00f5d4;
    margin-bottom: 16px;
}

.how-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #ffffff;
}

.how-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

/* Tech Stats */
.tech-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.tech-stat {
    text-align: center;
}

.tech-number {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.tech-label {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Accuracy Comparison Box */
.accuracy-box-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.accuracy-box {
    background: rgba(0,0,0,0.4);
    border-radius: 16px;
    padding: 40px 48px;
    border: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    max-width: 900px;
}

.accuracy-box h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 32px;
    text-align: center;
}

.accuracy-row {
    display: grid;
    grid-template-columns: 160px 1fr 70px;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.accuracy-row:last-child {
    margin-bottom: 0;
}

.accuracy-label {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
}

.accuracy-bar {
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.accuracy-fill {
    height: 100%;
    border-radius: 6px;
    min-width: 4px;
}

.accuracy-percent {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-align: right;
}

.accuracy-row.highlight .accuracy-label {
    color: #00f5d4;
    font-weight: 600;
}

.accuracy-row.highlight .accuracy-percent {
    color: #00f5d4;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.result-card {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.08) 0%, rgba(0, 187, 249, 0.08) 100%);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.result-number {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* Transparency Grid */
.transparency-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.transparency-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
}

.transparency-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.transparency-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.transparency-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

/* Credibility Grid */
.credibility-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 48px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.credibility-year {
    text-align: center;
}

.credibility-number {
    font-size: 72px;
    font-weight: 700;
    background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.credibility-label {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.credibility-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #ffffff;
}

/* Responsive for new components */
@media (max-width: 1024px) {
    .value-props,
    .problem-grid,
    .how-grid,
    .results-grid,
    .transparency-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .credibility-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .universal-badge {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
    }
    
    .universal-badge span {
        font-size: 13px;
    }
    
    .formula-box {
        flex-direction: column;
        gap: 20px;
        padding: 20px 16px;
    }
    
    .formula-item {
        padding: 16px;
    }
    
    .formula-label {
        font-size: 11px;
    }
    
    .formula-value {
        font-size: 18px;
    }
    
    .formula-operator {
        font-size: 24px;
    }
    
    .value-props,
    .problem-grid,
    .how-grid,
    .results-grid,
    .transparency-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .value-card,
    .problem-card,
    .how-card,
    .transparency-card {
        padding: 20px;
    }
    
    .value-icon,
    .problem-icon,
    .transparency-icon {
        font-size: 28px;
        margin-bottom: 12px;
    }
    
    .problem-metric {
        font-size: 28px;
    }
    
    /* Tech stats - single column on mobile */
    .tech-stats {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .tech-number {
        font-size: 24px;
    }
    
    .tech-label {
        font-size: 11px;
    }
    
    /* Accuracy box - stack vertically on mobile */
    .accuracy-box-wrapper {
        margin-top: 32px;
    }
    
    .accuracy-box {
        padding: 20px 16px;
        max-width: 100%;
    }
    
    .accuracy-row {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .accuracy-label {
        font-size: 12px;
        flex: 0 0 100%;
        margin-bottom: 4px;
    }
    
    .accuracy-bar {
        flex: 1;
        height: 20px;
        min-width: 0;
    }
    
    .accuracy-percent {
        font-size: 13px;
        flex: 0 0 45px;
        text-align: right;
    }
    
    .result-card {
        padding: 20px;
    }
    
    .result-number {
        font-size: 28px;
    }
    
    .result-label {
        font-size: 12px;
    }
    
    .credibility-number {
        font-size: 48px;
    }
    
    .credibility-text h3 {
        font-size: 22px;
    }
}

/* Very small screens - prevent horizontal scroll */
@media (max-width: 360px) {
    .tech-stats {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .tech-number {
        font-size: 28px;
    }
    
    .tech-label {
        font-size: 11px;
    }
    
    .accuracy-row {
        grid-template-columns: 70px 1fr 35px;
        gap: 6px;
    }
    
    .accuracy-label {
        font-size: 9px;
        word-break: keep-all;
    }
    
    .accuracy-percent {
        font-size: 11px;
    }
    
    /* Tighter padding */
    .section {
        padding: 20px 10px;
    }
    
    nav {
        padding: 8px 10px;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .mobile-lang-toggle button {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* ============================================
   Responsive Adjustments
   ============================================ */

/* Tablet adjustments */
@media (max-width: 1024px) {
    .section {
        padding: 40px 24px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    /* Base layout - reduce vertical spacing */
    .section {
        padding: 24px 16px;
    }
    
    .content-section {
        padding: 24px 0;
    }
    
    .section-header {
        margin-bottom: 24px;
    }
    
    .stats-section {
        padding: 24px 0;
    }
    
    .cta-section {
        padding: 32px 0;
    }
    
    nav {
        padding: 12px 16px;
    }
    
    footer {
        padding: 32px 16px 20px;
    }
    
    /* Hero sections */
    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 32px;
    }
    
    .hero h1 {
        font-size: clamp(32px, 8vw, 48px);
        margin-bottom: 16px;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-buttons .glow-button,
    .hero-buttons .secondary-button {
        width: 100%;
        text-align: center;
    }
    
    /* Page headers */
    .page-header {
        padding-top: 100px;
        padding-bottom: 24px;
    }
    
    .page-header p {
        font-size: 16px;
    }
    
    /* Content sections */
    .content-section {
        padding: 24px 0;
    }
    
    .content-section p {
        font-size: 16px;
    }
    
    .section-header {
        margin-bottom: 24px;
    }
    
    /* Typography */
    h1 {
        font-size: clamp(28px, 7vw, 40px);
    }
    
    h2 {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: 16px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    /* Allow text wrapping on mobile for gradient text */
    h1 .gradient-text,
    h2 .gradient-text {
        white-space: normal;
    }
    
    /* Buttons */
    .glow-button {
        padding: 14px 24px;
        font-size: 14px;
    }
    
    .secondary-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-item {
        padding: 24px 16px !important;
    }
    
    .stat-item .number {
        font-size: 36px;
    }
    
    /* Team grid */
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-card-content {
        padding: 16px;
    }
    
    /* Team photo */
    .team-photo-section {
        padding: 16px 0;
    }
    
    /* Footer */
    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px;
        text-align: center;
    }
    
    .footer-brand {
        order: 10 !important;
        text-align: center;
        margin-top: 16px;
        padding-top: 24px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .footer-brand p {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
    
    /* Cards */
    .card {
        padding: 20px;
    }
    
    /* Highlight box */
    .highlight-box {
        padding: 24px 16px;
    }
    
    .highlight-box p {
        font-size: 16px;
    }
    
    /* CTA section */
    .cta-section > .section > p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .cta-buttons .glow-button,
    .cta-buttons .secondary-button {
        width: 100%;
    }
    
    /* Form elements */
    form input,
    form select,
    form textarea {
        font-size: 16px !important; /* Prevents iOS zoom */
    }
    
    /* Contact form grid */
    form > div[style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
    }
    
    form > div[style*="grid-template-columns: 1fr 1fr"] > div {
        margin-bottom: 16px;
    }
    
    /* Benefits list */
    .benefits-list li {
        font-size: 14px;
    }
    
    /* Content with image */
    .content-with-image {
        gap: 24px;
    }
    
    .content-image {
        max-width: 100%;
    }
    
    /* Map iframe */
    .content-image iframe {
        height: 250px !important;
    }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
    .section {
        padding: 24px 12px;
    }
    
    nav {
        padding: 10px 12px;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    h1 {
        font-size: clamp(24px, 8vw, 32px);
    }
    
    h2 {
        font-size: clamp(20px, 6vw, 28px);
    }
    
    .hero {
        padding-top: 80px;
    }
    
    .section-label {
        font-size: 11px;
        letter-spacing: 2px;
    }
    
    .stat-item .number {
        font-size: 28px;
    }
    
    .glow-button {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .secondary-button {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Footer on small screens */
    footer {
        padding: 24px 12px 16px;
    }
    
    .footer-brand p {
        font-size: 12px;
    }
}

/* ============================================
   Inline Grid Overrides for Mobile
   ============================================ */

/* Override inline grid styles on tablet */
@media (max-width: 900px) {
    /* 4-column grids become 2 columns */
    [style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    /* 3-column grids become 2 columns */
    [style*="grid-template-columns: repeat(3"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* Override inline grid styles on mobile */
@media (max-width: 600px) {
    /* All multi-column grids become single column */
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* Reduce padding on stat items with inline styles */
    [style*="text-align: left; padding: 40px"] {
        padding: 24px 16px !important;
    }
    
    /* Fix font sizes for inline styled elements */
    [style*="font-size: 64px"] {
        font-size: 36px !important;
    }
    
    [style*="font-size: 48px"] {
        font-size: 32px !important;
    }
    
    [style*="font-size: 36px"] {
        font-size: 28px !important;
    }
    
    [style*="font-size: 32px"] {
        font-size: 24px !important;
    }
    
    /* Ensure tech-stats goes single column */
    .tech-stats {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    /* Prevent any element from causing overflow */
    .section,
    .content-narrow,
    .content-with-image,
    form {
        max-width: 100%;
    }
}

/* Extra small screens (closed foldables, iPhone SE) */
@media (max-width: 360px) {
    [style*="font-size: 64px"] {
        font-size: 28px !important;
    }
    
    [style*="font-size: 48px"] {
        font-size: 28px !important;
    }
    
    [style*="font-size: 36px"] {
        font-size: 22px !important;
    }
    
    /* Reduce large padding on small screens */
    [style*="padding: 40px"] {
        padding: 20px 16px !important;
    }
    
    [style*="padding: 48px"] {
        padding: 24px 16px !important;
    }
    
    /* Reduce margins */
    [style*="margin-bottom: 32px"] {
        margin-bottom: 20px !important;
    }
    
    [style*="gap: 48px"] {
        gap: 24px !important;
    }
}

/* ============================================
   BILINGUAL / I18N STYLES
   ============================================ */

/* Japanese font stack */
html[lang="ja"] {
    font-family: 'DM Sans', 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

html[lang="ja"] body {
    font-family: 'DM Sans', 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
}

/* Language toggle in navigation */
.lang-toggle {
    display: flex;
    gap: 4px;
    margin-left: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
}

.lang-toggle button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lang-toggle button:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.lang-toggle button.active {
    background: linear-gradient(135deg, #00f5d4, #00bbf9);
    color: #0a0a0f;
    font-weight: 600;
}

/* Mobile language toggle */
@media (max-width: 900px) {
    .lang-toggle {
        margin: 16px 0;
        justify-content: center;
    }
}

/* ============================================
   Form Responsive Styles
   ============================================ */

/* Form grid responsiveness - override inline styles */
@media (max-width: 600px) {
    form [style*="grid-template-columns"] {
        display: block !important;
    }
    
    form [style*="grid-template-columns"] > div {
        margin-bottom: 20px !important;
    }
    
    form [style*="grid-template-columns"] > div:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Form inputs */
    form input,
    form select,
    form textarea {
        padding: 14px !important;
        font-size: 16px !important;
    }
    
    /* Form labels */
    form label {
        font-size: 12px !important;
        letter-spacing: 1px !important;
    }
    
    /* Submit button */
    form .glow-button,
    form .submit-btn {
        padding: 16px !important;
        font-size: 16px !important;
    }
    
    /* Thank you message */
    .thank-you-message {
        padding: 32px 20px !important;
    }
    
    .thank-you-message h3 {
        font-size: 24px !important;
    }
    
    .thank-you-message p {
        font-size: 16px !important;
    }
}

/* Prevent FOUC for language content */
[data-lang] {
    /* Hidden by default until JS initializes */
}

/* Japanese-specific typography adjustments */
html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3 {
    letter-spacing: 0.02em;
    line-height: 1.5;
}

html[lang="ja"] p {
    line-height: 1.9;
}

/* ============================================
   COMPREHENSIVE MOBILE FIXES (FINAL OVERRIDES)
   These rules are at the end to ensure they take precedence
   ============================================ */

/* Tablet breakpoint - 900px */
@media (max-width: 900px) {
    /* Two-column layouts become single column */
    .content-with-image {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .content-image {
        max-width: 100% !important;
        order: 2; /* Image goes below text on mobile */
    }
}

/* Mobile breakpoint - 768px */
@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden !important;
    }
    
    /* Reduce vertical spacing between sections */
    .section {
        padding: 20px 16px !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    .content-section {
        padding: 16px 0 !important;
    }
    
    .stats-section {
        padding: 16px 0 !important;
    }
    
    .cta-section {
        padding: 24px 0 !important;
    }
    
    .section-header {
        margin-bottom: 20px !important;
    }
    
    /* All grids single column */
    .tech-stats,
    .stats-grid,
    .results-grid,
    .how-grid,
    .value-props,
    .problem-grid,
    .transparency-grid,
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    
    /* Tech stat numbers */
    .tech-number {
        font-size: 28px !important;
    }
    
    .tech-label {
        font-size: 12px !important;
    }
    
    /* Accuracy box - stack labels above bars */
    .accuracy-box {
        padding: 16px !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .accuracy-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        margin-bottom: 16px !important;
    }
    
    .accuracy-label {
        font-size: 13px !important;
        width: 100% !important;
        text-align: left !important;
    }
    
    .accuracy-bar {
        width: 100% !important;
        height: 20px !important;
        flex: none !important;
    }
    
    .accuracy-percent {
        font-size: 14px !important;
        position: absolute !important;
        right: 0 !important;
        top: 0 !important;
    }
    
    .accuracy-row {
        position: relative !important;
    }
    
    /* Headings */
    h1 {
        font-size: clamp(24px, 7vw, 36px) !important;
        word-break: break-word !important;
    }
    
    h2 {
        font-size: clamp(20px, 5vw, 28px) !important;
        word-break: break-word !important;
    }
    
    /* Allow gradient text to wrap */
    .gradient-text {
        white-space: normal !important;
        word-break: break-word !important;
    }
    
    h1 .gradient-text,
    h2 .gradient-text {
        white-space: normal !important;
    }
    
    /* Cards */
    .card,
    .result-card,
    .how-card,
    .value-card,
    .problem-card,
    .transparency-card {
        padding: 20px !important;
        max-width: 100% !important;
    }
    
    /* Large inline fonts */
    [style*="font-size: 64px"] {
        font-size: 32px !important;
    }
    
    [style*="font-size: 48px"] {
        font-size: 28px !important;
    }
    
    [style*="font-size: 36px"] {
        font-size: 24px !important;
    }
    
    /* Inline grids */
    [style*="grid-template-columns: repeat(4"],
    [style*="grid-template-columns: repeat(3"],
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* Small mobile - 480px */
@media (max-width: 480px) {
    .section {
        padding: 16px 12px !important;
    }
    
    .content-section {
        padding: 12px 0 !important;
    }
    
    .stats-section {
        padding: 12px 0 !important;
    }
    
    .cta-section {
        padding: 20px 0 !important;
    }
    
    .section-header {
        margin-bottom: 16px !important;
    }
    
    nav {
        padding: 10px 12px !important;
    }
    
    .logo-text {
        font-size: 14px !important;
    }
    
    h1 {
        font-size: 22px !important;
    }
    
    h2 {
        font-size: 18px !important;
    }
    
    .tech-number {
        font-size: 24px !important;
    }
    
    .accuracy-label {
        font-size: 12px !important;
    }
    
    /* Reduce padding */
    [style*="padding: 40px"],
    [style*="padding: 48px"],
    [style*="padding: 32px"] {
        padding: 16px !important;
    }
}

/* Very small screens - 360px (closed foldables) */
@media (max-width: 360px) {
    .section {
        padding: 12px 10px !important;
    }
    
    .content-section {
        padding: 10px 0 !important;
    }
    
    .stats-section {
        padding: 10px 0 !important;
    }
    
    .cta-section {
        padding: 16px 0 !important;
    }
    
    .section-header {
        margin-bottom: 12px !important;
    }
    
    nav {
        padding: 8px 10px !important;
    }
    
    .logo-icon {
        width: 28px !important;
        height: 28px !important;
    }
    
    .logo-text {
        font-size: 13px !important;
    }
    
    h1 {
        font-size: 20px !important;
    }
    
    h2 {
        font-size: 17px !important;
    }
    
    h3 {
        font-size: 15px !important;
    }
    
    .tech-number {
        font-size: 22px !important;
    }
    
    .tech-label {
        font-size: 10px !important;
    }
    
    .accuracy-label {
        font-size: 11px !important;
    }
    
    .glow-button {
        padding: 12px 16px !important;
        font-size: 13px !important;
    }
    
    .secondary-button {
        padding: 10px 14px !important;
        font-size: 12px !important;
    }
    
    /* Mobile language toggle */
    .mobile-lang-toggle button {
        padding: 4px 6px !important;
        font-size: 10px !important;
    }
    
    [style*="font-size: 64px"] {
        font-size: 24px !important;
    }
    
    [style*="font-size: 48px"] {
        font-size: 22px !important;
    }
    
    [style*="font-size: 36px"] {
        font-size: 20px !important;
    }
    
    [style*="font-size: 28px"] {
        font-size: 18px !important;
    }
}
