/* =============================================
   ProWatchly Common Styles
   공통 CSS 변수, 기본 스타일, 헤더, 푸터, 버튼 등
   ============================================= */

/* CSS Variables (Design Tokens) */
:root {
    /* Primary Colors */
    --primary-dark: #105658;
    --primary-main: #1a936f;
    --primary-light: #88d9c1;
    
    /* Secondary Colors */
    --secondary-dark: #074028;
    --secondary-main: #2e8b57;
    
    /* Accent Colors */
    --accent: #9bdd45;
    
    /* Neutral Colors */
    --neutral-dark: #1a2e1a;
    --neutral-main: #4a6657;
    --neutral-light: #e8f5e8;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e0e0e0;
    --gray-600: #666;
    --gray-800: #333;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-main) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-main) 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary-main), var(--primary-light));
    --gradient-cta: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-main) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-primary: 0 15px 40px rgba(26, 147, 111, 0.2);
    --shadow-button: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-button-primary: 0 10px 25px rgba(26, 147, 111, 0.3);
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --line-height: 1.6;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 100px 2rem;
    --content-padding: 80px 2rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 15px;
    --radius-xl: 20px;
    --radius-full: 50px;
    
    /* Transitions */
    --transition-fast: 0.3s;
    --transition-normal: 0.5s ease-out;
}

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

body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    color: var(--gray-800);
    overflow-x: hidden;
}

/* Ensure all interactive elements are always clickable */
a, button, input, select, textarea, [role="button"], .btn {
    position: relative;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Make sure nothing blocks clicks except intentional overlays */
section, div, article, main, header, footer, nav {
    pointer-events: auto;
}

/* =============================================
   Header & Navigation
   ============================================= */
.header {
    background: var(--gradient-primary);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    animation: slideDown var(--transition-normal);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

/* Nav Button (Register) */
.nav-btn {
    background: var(--white) !important;
    color: var(--primary-dark) !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: var(--radius-full);
    font-weight: 600 !important;
    transition: all var(--transition-fast) !important;
}

.nav-btn:hover {
    background: var(--primary-light) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color var(--transition-fast);
}

.dropdown-toggle:hover {
    color: var(--primary-light);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--white);
    min-width: 700px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 1000;
    padding: 2rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--primary-dark);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateX(5px);
}

.dropdown-icon {
    width: 14px;
    height: 14px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
    margin-left: 2px;
}

.dropdown-toggle:hover .dropdown-icon {
    opacity: 1;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
}

/* Solutions Dropdown */
.solutions-dropdown {
    min-width: 360px !important;
    padding: 1.5rem !important;
}

.solutions-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.solution-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem !important;
    border-radius: 12px !important;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.solution-link:hover {
    transform: translateX(0) !important;
}

.on-prem-link {
    background: linear-gradient(135deg, rgba(26, 147, 111, 0.08), rgba(16, 86, 88, 0.08));
    border-color: rgba(26, 147, 111, 0.2);
}

.on-prem-link:hover {
    background: linear-gradient(135deg, var(--primary-main), var(--primary-dark)) !important;
    border-color: transparent;
}

.on-prem-link:hover .solution-info strong,
.on-prem-link:hover .solution-info span {
    color: white !important;
}

.web-link {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(96, 165, 250, 0.08));
    border-color: rgba(59, 130, 246, 0.2);
}

.web-link:hover {
    background: linear-gradient(135deg, #3b82f6, #60a5fa) !important;
    border-color: transparent;
}

.web-link:hover .solution-info strong,
.web-link:hover .solution-info span {
    color: white !important;
}

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

.solution-info {
    display: flex;
    flex-direction: column;
}

.solution-info strong {
    color: var(--primary-dark);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.solution-info span {
    color: var(--gray-600);
    font-size: 0.85rem;
}

.back-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    display: none;
}

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

/* =============================================
   Buttons
   ============================================= */
.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
    /* Mobile touch improvements */
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
    z-index: 1;
    text-align: center;
    line-height: 1.4;
}

/* Active states for touch devices */
.btn:active {
    transform: scale(0.97);
    opacity: 0.95;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-button);
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
}

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

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

.btn-secondary:active {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(0.97);
}

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

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-button-primary);
}

.btn-gradient:active {
    transform: translateY(0) scale(0.97);
}

.btn-outline {
    background: var(--white);
    color: var(--primary-main);
    border: 2px solid var(--primary-main);
}

.btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-button-primary);
}

.btn-outline:active {
    transform: translateY(0) scale(0.97);
}

/* =============================================
   Footer
   ============================================= */
footer {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #071a1a 100%);
    color: var(--white);
    padding: 0;
}

footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--white);
}

/* Footer Main Section */
.footer-main {
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(4, 1fr);
    gap: 3rem;
    text-align: left;
}

/* Footer Brand Section */
.footer-brand {
    padding-right: 2rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Gemmiz Badge */
.footer-gemmiz-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
}

.footer-gemmiz-badge span {
    color: rgba(255, 255, 255, 0.6);
}

.gemmiz-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-light) !important;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.gemmiz-link:hover {
    color: var(--white) !important;
    transform: translateX(2px);
}

.gemmiz-icon {
    opacity: 0.9;
}

/* Footer Sections */
.footer-section h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 1px;
}

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

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

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-section a:hover {
    color: var(--primary-light);
    transform: translateX(3px);
}

/* Footer Contact Section */
.footer-contact .contact-list {
    list-style: none;
}

.footer-contact .contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact .contact-list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-light);
}

.footer-contact .contact-list li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact .contact-list li a:hover {
    color: var(--primary-light);
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom .copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

.footer-bottom .copyright a {
    color: var(--primary-light);
    font-weight: 500;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-links .divider {
    color: rgba(255, 255, 255, 0.3);
}

/* Simple Footer */
.footer-simple {
    padding: 2rem;
    margin-top: 80px;
    text-align: center;
}

.footer-simple-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.footer-simple p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-simple-links {
    margin-top: 0.75rem !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-simple-links a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-simple-links a:hover {
    color: var(--primary-light);
}

.footer-simple-links .divider {
    color: rgba(255, 255, 255, 0.3);
}

/* =============================================
   Common Components
   ============================================= */

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-primary);
    border-color: var(--primary-light);
}

/* Icons */
.icon-box {
    width: 70px;
    height: 70px;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.icon-box-sm {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-dark);
    text-align: center;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* CTA Section */
.cta-section {
    padding: var(--section-padding);
    text-align: center;
    background: var(--gradient-cta);
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--secondary-dark);
}

.cta-section .btn,
.cta-section a {
    position: relative;
    z-index: 5;
}

.cta-section-rounded {
    border-radius: var(--radius-xl);
    margin-top: 60px;
    padding: 80px 2rem;
}

/* =============================================
   Mobile Menu Toggle Button
   ============================================= */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
    margin: 3px 0;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile Slide Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-dark) 0%, #0d2825 100%);
    z-index: 1001;
    padding: 70px 20px 30px;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    visibility: hidden;
}

.mobile-menu.active {
    right: 0;
    visibility: visible;
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    z-index: 10;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.mobile-menu-close:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.25);
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-links a {
    display: block;
    padding: 1rem 0.5rem;
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-menu-links a:hover {
    color: var(--primary-light);
    padding-left: 1rem;
}

/* Mobile Dropdown */
.mobile-dropdown {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 0.5rem;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.mobile-dropdown-toggle:hover {
    color: var(--primary-light);
}

.mobile-dropdown-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.mobile-dropdown-toggle:hover .mobile-dropdown-icon {
    opacity: 1;
}

.mobile-dropdown.active .mobile-dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.mobile-dropdown-menu {
    display: none;
    padding: 0.5rem 0 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    margin: 0 -20px;
    padding-left: 30px;
    padding-right: 20px;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: block;
}

.mobile-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-dropdown-menu a:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu a:hover {
    color: var(--primary-light);
}

.mobile-solution-icon {
    font-size: 1.3rem;
}

/* Mobile Nav CTA Button */
.mobile-menu-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-cta .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
}

/* =============================================
   Form Notifications (Toast Messages)
   ============================================= */
.form-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 400px;
    width: calc(100% - 40px);
}

.form-notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.form-notification.success .notification-content {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
}

.form-notification.error .notification-content {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
}

.notification-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon svg {
    stroke: white;
}

.notification-message {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
}

.notification-close {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 6px;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notification-close svg {
    stroke: white;
}

/* Button Loading State */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =============================================
   Responsive Design
   ============================================= */
@media (max-width: 768px) {
    /* Base typography adjustments */
    html {
        font-size: 15px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Mobile menu and overlay are always in DOM but hidden with visibility */
    
    .back-link {
        display: none;
    }
    
    /* Header adjustments */
    .header {
        padding: 0.75rem 0;
    }
    
    .logo-img {
        height: 36px;
    }
    
    /* Mobile buttons */
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        width: 100%;
        max-width: 320px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
        padding: 0 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    /* Section padding adjustments */
    .section-title {
        font-size: 1.75rem;
        padding: 0 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* CTA Section */
    .cta-section {
        padding: 60px 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .cta-section p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    /* Footer Responsive */
    .footer-main {
        padding: 3rem 1.5rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        text-align: left;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        padding-right: 0;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-gemmiz-badge {
        margin: 0 auto;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom {
        padding: 1.25rem 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    /* Ensure all clickable elements work on mobile */
    .btn, a, button, [role="button"] {
        cursor: pointer;
        -webkit-touch-callout: none;
        touch-action: manipulation;
    }
    
    /* Ensure nothing blocks button clicks */
    .hero-content,
    .cta-buttons,
    .version-card,
    section > * {
        pointer-events: auto;
    }
    
    /* Disable hover effects on touch */
    @media (hover: none) {
        .btn:hover {
            transform: none;
        }
        
        .version-card:hover {
            transform: none;
        }
        
        .card:hover {
            transform: none;
        }
    }
    
    /* Mobile Notification */
    .form-notification {
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
    
    /* Cards */
    .card {
        margin: 0 0.5rem;
    }
    
    .card:hover {
        transform: translateY(-5px);
    }
    
    /* Icons */
    .icon-box {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    /* Buttons even smaller */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.5rem;
    }
    
    /* CTA */
    .cta-section {
        padding: 50px 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer-main {
        padding: 2.5rem 1rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .footer-section:last-child {
        border-bottom: none;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-contact .contact-list li {
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-links .divider {
        display: none;
    }
    
    .footer-simple-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-simple-links .divider {
        display: none;
    }
    
    /* Mobile menu adjustments */
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
    
    .mobile-menu.active {
        right: 0;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn:active {
        transform: scale(0.97);
        opacity: 0.9;
    }
    
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
    
    .card:active {
        transform: scale(0.99);
    }
    
    /* Increase touch targets */
    .mobile-menu-links a,
    .mobile-dropdown-toggle {
        padding: 1.1rem 0.5rem;
        min-height: 48px;
    }
    
    .mobile-dropdown-menu a {
        padding: 0.9rem 0.5rem;
        min-height: 44px;
    }
    
    /* Footer links */
    .footer-section a {
        padding: 0.5rem 0;
        display: inline-block;
    }
}
