/* ============================================
   G-Heart Website - Complete Stylesheet
   ============================================ */

/* ---- CSS Variables ---- */
:root {
    --primary: #0f2440;
    --primary-light: #1a3a5c;
    --primary-dark: #0a1a30;
    --accent: #e85d3b;
    --accent-light: #f0784f;
    --accent-glow: rgba(232, 93, 59, 0.1);
    --health: #2d8a6e;
    --health-glow: rgba(45, 138, 110, 0.1);
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-tertiary: #eef1f7;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #8a8aa0;
    --border-color: #e5e8f0;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-cn: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-cn);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font-cn);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-2px); }

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    background: rgba(15, 36, 64, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(15, 36, 64, 0.96);
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 22px;
    color: #fff;
    z-index: 1001;
}
.logo-icon { font-size: 24px; color: var(--accent); }
.logo-heart { color: var(--accent); }
.logo-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    margin-left: 2px;
    letter-spacing: 1px;
}
.navbar.scrolled .logo-subtitle {
    color: rgba(51,51,51,0.75);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link {
    position: relative;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link.active { color: #fff; }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 4px;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f2440 0%, #1a3a5c 40%, #0f2440 100%);
    color: #fff;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 70% 30%, rgba(232,93,59,0.15), transparent),
        radial-gradient(ellipse 400px 400px at 20% 70%, rgba(45,138,110,0.1), transparent);
}
.hero-particles { position: absolute; inset: 0; }

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 140px 0 80px;
    max-width: 800px;
}
.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.8);
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    margin-bottom: 28px;
}
.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}
.hero-title .highlight { color: var(--accent-light); }
.hero-subtitle {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255,255,255,0.65);
    max-width: 600px;
    margin: 0 auto 40px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}
.stat-item { text-align: center; }
.stat-number {
    display: block;
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.stat-suffix {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-light);
}
.stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
    font-weight: 500;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    z-index: 1;
}
.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid rgba(255,255,255,0.4);
    border-bottom: 2px solid rgba(255,255,255,0.4);
    transform: rotate(45deg);
    margin: 8px auto 0;
    animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
    50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* ============================================
   Sections Common
   ============================================ */
.section {
    padding: 100px 0;
}
.section-header {
    text-align: center;
    margin-bottom: 56px;
}
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
}
.section-line {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--health));
    border-radius: 2px;
    margin: 0 auto 16px;
}
.section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   About Section
   ============================================ */
.about { background: var(--bg-primary); }
.about-intro {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 64px;
}
.about-intro-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}
.about-intro-content p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.8;
}
.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
}
.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.highlight-item:hover { background: var(--accent-glow); transform: translateY(-2px); }
.highlight-icon { font-size: 22px; }
.highlight-item span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* Visual card */
.visual-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.visual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(232,93,59,0.15) 0%, transparent 60%);
}
.visual-card-inner { position: relative; }
.visual-year {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
}
.visual-year-num {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    margin: 8px 0;
    background: linear-gradient(135deg, #fff 30%, var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.visual-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
}

/* Founder card */
.about-founder { margin-top: 16px; }
.founder-card {
    display: flex;
    gap: 40px;
    padding: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.founder-card:hover { box-shadow: var(--shadow-md); }
.founder-avatar {
    position: relative;
    flex-shrink: 0;
    width: 140px;
    height: 140px;
}
.avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-display);
}
.avatar-ring {
    position: absolute;
    inset: -4px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0.5;
}

.founder-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.founder-info { flex: 1; }
.founder-info h3 { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 4px; letter-spacing: 1px; }
.founder-info h4 { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.founder-title { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.6; }

/* Honor */
.founder-honor { margin-bottom: 20px; }
.honor-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--accent-glow), var(--health-glow));
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    margin-bottom: 10px;
}
.honor-icon { font-size: 24px; }
.honor-text strong { display: block; font-size: 15px; color: var(--primary); }
.honor-text span { font-size: 13px; color: var(--text-muted); }
.honor-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 4px;
    margin-bottom: 8px;
}

/* Tags */
.founder-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: var(--transition);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag-highlight {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    font-weight: 600;
}
.tag-highlight:hover { background: var(--accent-light); border-color: var(--accent-light); color: #fff; }

.founder-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.8; }

/* ============================================
   Services Section
   ============================================ */
.services { background: var(--bg-secondary); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.service-card {
    position: relative;
    padding: 36px 32px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.service-card.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, #fff 0%, #fffaf8 100%);
}
.service-card.featured:hover { box-shadow: 0 12px 36px rgba(232,93,59,0.15); }

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
}
.service-icon {
    width: 52px;
    height: 52px;
    color: var(--accent);
    margin-bottom: 16px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-number {
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 48px;
    font-weight: 900;
    color: var(--bg-tertiary);
    line-height: 1;
    opacity: 0.5;
}
.service-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}
.service-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 18px;
}
.service-features li {
    position: relative;
    padding-left: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ============================================
   Courses Section
   ============================================ */
.courses { background: var(--bg-primary); }
.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.course-card {
    position: relative;
    padding: 32px 28px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.course-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.course-type-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 14px;
}
.course-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}
.course-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}
.course-points li {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 5px;
}
.course-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--health);
    font-weight: 700;
    font-size: 12px;
}

/* ============================================
   Cases / Clients Section
   ============================================ */
.cases { background: var(--bg-secondary); }
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.case-category {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.case-category:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.category-header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.category-icon { font-size: 22px; }
.category-header h3 { font-size: 16px; font-weight: 700; color: var(--primary); }
.company-list { display: flex; flex-wrap: wrap; gap: 8px; }
.company-tag {
    padding: 6px 14px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}
.company-tag:hover { background: var(--accent-glow); color: var(--accent); }

/* ============================================
   Contact Section
   ============================================ */
.contact { background: var(--bg-primary); }
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
}
.contact-info-cards { display: flex; flex-direction: column; gap: 20px; }
.info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}
.info-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.info-icon { font-size: 28px; flex-shrink: 0; }
.info-card h4 { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.info-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.info-card a { color: var(--accent); }
.info-card a:hover { text-decoration: underline; }

.contact-form-wrapper {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
}
.contact-form h3 { font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.form-subtitle { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.form-group label span { color: var(--accent); }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font-cn);
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
}
.btn-submit svg { width: 18px; height: 18px; }
.contact-form.success .btn-submit { background: var(--health); border-color: var(--health); }

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--primary-dark);
    color: rgba(255,255,255,0.7);
    padding: 64px 0 0;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; margin-bottom: 4px; }
.footer-slogan { color: rgba(255,255,255,0.4) !important; font-style: italic; margin-top: 8px !important; }

.footer-links { display: flex; gap: 48px; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; margin-bottom: 8px; color: rgba(255,255,255,0.6); }
.footer-col a:hover { color: var(--accent-light); }

.footer-disclaimer {
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    padding: 20px 0 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    -webkit-tap-highlight-color: transparent;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ============================================
   Responsive — Tablet (769px ~ 1024px)
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title { font-size: clamp(34px, 5vw, 48px); }
    .hero-stats { justify-content: center; flex-wrap: wrap; gap: 40px; }
    .stat-number { font-size: 36px; }
    .about-intro { grid-template-columns: 1fr; }
    .about-intro-visual { max-width: 400px; margin: 0 auto; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-wrapper { grid-template-columns: 1fr; }
    .founder-card { flex-direction: column; align-items: center; text-align: center; }
    .founder-tags { justify-content: center; }
}

/* ============================================
   Responsive — Mobile (≤768px)
   ============================================ */
@media screen and (max-width: 768px) {
    html { font-size: 15px; -webkit-text-size-adjust: 100%; }
    body { overscroll-behavior-y: contain; overflow-x: hidden; }

    /* Safe area: iPhone notch / Dynamic Island */
    .navbar {
        padding-top: env(safe-area-inset-top);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    .nav-container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }

    /* Navigation: Full-screen overlay */
    .nav-links {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: env(safe-area-inset-top, 0px);
        background: rgba(255, 255, 255, 0.97);
    }
    .nav-link {
        font-size: 20px;
        font-weight: 600;
        color: var(--primary);
        padding: 16px 24px;
        width: 100%;
        max-width: 300px;
        text-align: center;
        border-radius: var(--radius-md);
        transition: background 0.2s, color 0.2s;
        -webkit-tap-highlight-color: transparent;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-link:hover, .nav-link:active { background: var(--accent-glow); color: var(--accent); }
    .nav-link::after { display: none; }
    .nav-link.active { color: var(--accent); }

    .mobile-menu-btn { display: flex; }
    .mobile-menu-btn.open {
        position: fixed;
        z-index: 1001;
        top: max(16px, calc(env(safe-area-inset-top, 0px) + 16px));
        right: max(16px, env(safe-area-inset-right, 0px));
    }
    .mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: var(--accent) !important; }
    .mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); background: var(--accent) !important; }
    .mobile-menu-btn span { background: #fff !important; }

    /* Hero */
    .hero { min-height: 100svh; min-height: -webkit-fill-available; display: flex; align-items: center; }
    .hero-content {
        padding: 120px 0 80px;
        padding-top: max(100px, calc(env(safe-area-inset-top) + 60px));
        padding-bottom: max(60px, calc(env(safe-area-inset-bottom) + 40px));
        text-align: center;
    }
    .hero-badge { font-size: 11px; letter-spacing: 1.5px; padding: 6px 16px; margin-bottom: 20px; }
    .hero-title { font-size: clamp(30px, 9vw, 44px); line-height: 1.15; margin-bottom: 20px; }
    .hero-subtitle { font-size: 14px; line-height: 1.75; margin-bottom: 32px; padding: 0 8px; }
    .hero-actions { flex-direction: column; align-items: center; gap: 12px; margin-bottom: 48px; }
    .hero-actions .btn { width: 240px; justify-content: center; padding: 16px 32px; font-size: 15px; min-height: 52px; }
    .hero-stats { display: flex; justify-content: center; gap: 0; width: 100%; }
    .stat-item { flex: 1; text-align: center; padding: 12px 8px; min-width: 0; }
    .stat-number { font-size: 28px; }
    .stat-suffix { font-size: 18px; }
    .stat-label { font-size: 11px; margin-top: 2px; }
    .scroll-indicator { bottom: max(16px, env(safe-area-inset-bottom)); }

    /* Sections */
    .section { padding: 64px 0; }
    .section-title { font-size: 26px; }
    .section-desc { font-size: 15px; padding: 0 16px; }

    /* About */
    .about-intro { grid-template-columns: 1fr; gap: 32px; padding: 0 4px; }
    .about-intro-visual { max-width: 320px; margin: 0 auto; }
    .about-intro-content h3 { font-size: 20px; }
    .about-intro-content p { font-size: 15px; }
    .about-highlights { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .highlight-item { padding: 14px 12px; flex-direction: column; text-align: center; gap: 8px; }
    .highlight-icon { font-size: 22px; }
    .highlight-item span:last-child { font-size: 13px; }

    .founder-card { flex-direction: column; align-items: center; text-align: center; padding: 28px 20px; gap: 20px; }
    .founder-avatar { margin: 0 auto; }
    .avatar-placeholder { width: 100px; height: 100px; font-size: 30px; }
    .founder-avatar-img { width: 100%; height: 100%; }
    .avatar-ring { inset: -5px; }
    .founder-info { width: 100%; }
    .founder-info h4 { font-size: 22px; }
    .founder-title { font-size: 13px; }
    .founder-tags { justify-content: center; gap: 6px; }
    .tag { font-size: 11px; padding: 5px 10px; }
    .founder-honor { text-align: left; }
    .honor-desc { padding-left: 0 !important; font-size: 13px; }
    .honor-text strong { font-size: 15px; }
    .honor-text span { font-size: 12px; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; }
    .service-card { padding: 28px 20px; }
    .service-title { font-size: 18px; }
    .service-desc { font-size: 14px; }

    /* Courses */
    .courses-grid { grid-template-columns: 1fr; gap: 16px; }
    .courses-grid .course-card:nth-child(4),
    .courses-grid .course-card:nth-child(5) { grid-column: span 1; }
    .course-card { padding: 24px 20px; }
    .course-card h3 { font-size: 17px; }
    .course-card > p { font-size: 14px; }
    .course-points li { font-size: 13px; }

    /* Cases */
    .cases-grid { grid-template-columns: 1fr; }
    .case-category { padding: 20px 16px; }
    .company-tag { font-size: 12px; padding: 5px 10px; }

    /* Contact */
    .contact-wrapper { grid-template-columns: 1fr; gap: 24px; }
    .contact-info-cards { gap: 12px; }
    .info-card { padding: 18px 16px; gap: 12px; }
    .info-icon { font-size: 24px; }
    .info-card h4 { font-size: 15px; }
    .info-card p { font-size: 13px; }
    .contact-form-wrapper { padding: 28px 20px; }
    .contact-form h3 { font-size: 20px; }
    .form-group input, .form-group textarea { font-size: 16px !important; padding: 14px 16px; }
    .form-group textarea { min-height: 100px; }
    .btn-submit { padding: 16px; font-size: 16px; min-height: 52px; }

    /* Footer */
    .footer { padding-top: 48px; padding-bottom: env(safe-area-inset-bottom); }
    .footer-top { flex-direction: column; align-items: center; text-align: center; gap: 32px; padding-bottom: 32px; }
    .footer-brand { width: 100%; }
    .footer-links { flex-direction: column; align-items: center; gap: 24px; width: 100%; }
    .footer-col { width: 100%; text-align: center; }
    .footer-col a, .footer-col p { font-size: 13px; }
    .footer-disclaimer { font-size: 12px; padding: 16px 20px 4px; line-height: 1.6; }
    .footer-bottom { flex-direction: column; gap: 6px; text-align: center; padding: 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }

    /* Back to top */
    .back-to-top { bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); right: max(16px, calc(env(safe-area-inset-right) + 16px)); width: 44px; height: 44px; }

    /* Touch feedback */
    .service-card:active, .course-card:active, .case-category:active, .highlight-item:active, .company-tag:active, .tag:active { transform: scale(0.98); }
}

/* ---- Extra small phones (iPhone SE, etc.) ---- */
@media (max-width: 374px) {
    html { font-size: 14px; }
    .hero-title { font-size: 26px; }
    .stat-number { font-size: 24px; }
    .stat-label { font-size: 10px; }
    .section-title { font-size: 22px; }
    .about-highlights { grid-template-columns: 1fr 1fr; }
    .hero-actions .btn { width: 200px; }
}

/* ---- Landscape mobile ---- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 80px 0 40px; }
    .hero-stats { display: none; }
    .scroll-indicator { display: none; }
}

/* ---- Print ---- */
@media print {
    .navbar, .back-to-top, .scroll-indicator, .mobile-menu-btn { display: none !important; }
    .hero { min-height: auto; background: #fff; color: #000; }
    .hero-title { color: #000; }
}
