/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Remove all default focus styles */
*:focus,
*:active,
*:visited,
button:focus,
button:active,
a:focus,
a:active,
input:focus,
textarea:focus,
select:focus,
div[role="button"]:focus,
div[tabindex]:focus {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Remove blue highlight on mobile for interactive elements */
button,
a,
div[role="button"],
div[tabindex],
.faq-question,
.nav-menu a,
.hero-btn,
.social-btn,
.brand-cta-button {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent !important;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Malgun Gothic', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-size: 1rem;
    font-weight: 00;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
    font-weight: 600;
    transition: top 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.skip-link:focus {
    top: 6px;
    opacity: 1;
    visibility: visible;
}

/* Screen Reader Only */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Focus Management */
.keyboard-focus {
    outline: 3px solid #4A90E2 !important;
    outline-offset: 2px !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-img {
    width: 100%;
    max-width:210px;
    object-fit: contain;
    vertical-align: middle;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    display: inline-block;
    width:100%;
    height:100%;
    text-decoration: none;
    color: #333;
    font-family: 'Pretendard', sans-serif;
    font-weight: 300;
    font-size: 16px;
    transition: color 0.3s ease;
    outline: none !important;
    border: none !important;
}

.nav-menu a:hover {
    color: #FF00E5;
}

.nav-menu a:focus,
.nav-menu a:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
}

.hero-title-logo {
    max-width: 860px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.hero-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-decoration: none;
    border-radius: 35px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
}

.hero-btn.google-play {
    background: rgba(0, 0, 0, 0.8);
}

.hero-btn.google-play:hover {
    background: rgba(0, 0, 0, 1);
}

.hero-btn.app-store {
    background: rgba(0, 0, 0, 0.8);
}

.hero-btn.app-store:hover {
    background: rgba(0, 0, 0, 1);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Your Turn Section */
.your-turn-section {
    padding: 8rem 0 4rem;
    background: #fff;
    text-align: center;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
    white-space: break-spaces;
}

.section-title-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.section-toptitle {
    font-size: 2rem;
    font-weight: 600;
    color: #FF00E5;
    margin:0 auto;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin:0 auto;
    margin-bottom: 4rem;
    font-weight: 300;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: #f7f7f7;
    padding: 2rem 2rem 1.5rem;
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    margin-top: 0.8rem;
    float: right;
}

.icon-circle {
    max-width: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
}

.feature-icon-img {
    width: 100%;
    max-width:80px;
    height: 100%;
    object-fit: contain;
}

.yellow-bg { background: #ffd93d; }
.green-bg { background: #6bcf7f; }
.blue-bg { background: #4d96ff; }
.purple-bg { background: #9b59b6; }

.feature-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
}

.feature-card p {
    font-size: 1.1rem;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
}

/* Gallery Section */
.gallery-section {
    padding: 4rem 0 10rem;
    background: white;
    text-align: center;
    overflow: hidden;
}

.gallery-section .section-title {
    font-size: 3.5rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Gallery Carousel Container */
.gallery-carousel {
    width: 100%;
    margin-top: 3rem;
    position: relative;
}

/* Gallery Track - Contains all items */
.gallery-track {
    display: flex;
    gap: 2rem;
    animation: scrollLeft 35s linear infinite;
    width: fit-content;
}

/* Infinite scroll animation */
@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Gallery Item Styling */
.gallery-item {
    flex: 0 0 150px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Clan Section */
.video-section {
    padding: 8rem 0;
    background: #121212;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.video-section .section-title,
.video-section .section-subtitle {
    color: white;
}

/* Clan Carousel Container */
.clan-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 3rem 0 4rem 0;
    padding: 0 1px;
}

.clan-carousel {
    width: 100%;
    overflow: hidden;
}

.clan-track {
    display: flex;
    gap: 1rem;
    animation: clanScrollLeft 25s linear infinite;
    width: fit-content;
    will-change: transform;
    transform: translateX(-2px);
}

/* Clan scroll animation */
@keyframes clanScrollLeft {
    0% {
        transform: translateX(-2px);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Individual Clan Card */
.clan-card {
    flex: 0 0 180px;
    width: 180px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Clan Image Container */
.clan-image {
    position: relative;
    width: 100%;
    height: 170px;
    overflow: hidden;
}

.clan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.clan-card:hover .clan-image img {
    transform: scale(1.05);
}

/* Category Badge */
.clan-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Clan Info Section */
.clan-info {
    padding: 0.8rem 0.8rem 1rem;
    text-align: left;
}

.clan-location {
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 0.1rem;
}

.clan-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.1rem;
}

.clan-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

/* Gradient Masks for Fade Effect using pseudo-elements */
.clan-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(to right, #121212, transparent);
    z-index: 10;
    pointer-events: none;
}

.clan-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    background: linear-gradient(to left, #121212, transparent);
    z-index: 10;
    pointer-events: none;
}

/* Bottom Section with QR and Rewards */
.clan-bottom-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-top: 4rem;
    margin-left: auto;
    margin-right: auto;
}

.qr-section,
.rewards-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.section-content {
    flex: 1;
    text-align: left;
}

.qr-section h3,
.rewards-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.qr-section p,
.rewards-section p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.qr-icon,
.rewards-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-icon img,
.rewards-icon img {
    width: 100%;
    min-width:110px;
    height: 100%;
    object-fit: contain;
}

/* Shopping Section */
.shopping-section {
    padding: 6rem 0;
    background: #121212;
    color: white;
}

.shopping-content {
    display: flex;
    align-items: flex-start;
    gap: 6rem;
}

.shopping-text {
    flex: 1;
    max-width: 500px;
}

.shopping-text .section-toptitle {
    color: #FF00E5;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.shopping-text h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.2;
    white-space: break-spaces;
}

.shopping-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    margin: 0;
}

.shopping-tags {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.tag-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sport-tag {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.sport-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.sport-tag.active {
    background: #FF00E5;
    border-color: #FF00E5;
    box-shadow: 0 4px 15px rgba(255, 0, 229, 0.3);
}

/* SNS Section */
.sns-section {
    padding: 2rem 0 10rem;
    background: #121212;
    color: white;
}

.sns-content {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.sns-text {
    flex: 1;
    max-width: 500px;
}

.sns-text .section-toptitle {
    color: #FF00E5;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.sns-text h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.sns-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    margin: 0;
    white-space: nowrap;
}

.sns-phone {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 500px;
}

.sns-phone::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #121212, transparent);
    z-index: 10;
    pointer-events: none;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 25px;
    border: 8px solid #333;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.phone-header {
    background: #121212;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.phone-brand {
    display: flex;
    align-items: center;
}

.phone-brand-logo {
    width: auto;
    max-width:120px;
    object-fit: contain;
    filter: invert(1);
}

.phone-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.phone-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.phone-icon:hover {
    opacity: 1;
}

.phone-content {
    background: #f8f9fa;
    height: calc(100% - 60px);
    color: #333;
    position: relative;
    overflow: hidden;
}

.posts-slider {
    position: relative;
    width: 100%;
    height: 100%;
    background:#171717;
}

.post-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:#171717;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
}

.post-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    gap: 0.75rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.username {
    font-weight: 400;
    font-size: 0.9rem;
    color: #fff;
}

.post-time {
    font-size: 0.75rem;
    color: #666;
}

.post-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* 정사각형 비율 유지 */
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-actions {
    padding: 0.75rem 1rem 0.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.like-btn, .comment-btn {
    font-size: 0.8rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.action-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    opacity: 0.8;
}

.like-btn {
    color: #FF00E5;
}


.more-btn {
    color: #666;
    cursor: pointer;
}

.post-text {
    padding: 0 1rem;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #333;
}

.post-text p {
    margin: 0;
    color:#f7f7f7;
    font-weight: 300;
}

/* App Steps Section */
.app-steps-section {
    padding: 8rem 0;
    background: white;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 4rem;
    position: relative;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.step-phone {
    width: 100%;
    margin-bottom: 0.5rem;
    position: relative;
}

.step-phone img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

.step-content {
    text-align: center;
    padding:0 0.5rem;
}

.step-number {
    color: #FF00E5;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

.step-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Arrow between steps */
/* .step-item:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -1.5rem;
    top: 200px;
    font-size: 2rem;
    color: #FF00E5;
    z-index: 1;
} */

/* Social Media Section */
.social-media-section {
    padding: 8rem 0;
    background: #f8f9fa;
    text-align: center;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;    
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.social-text {
    font-weight: 600;
}

/* YouTube Button */
.social-btn.youtube {
    background: #FF0000;
    color: white;
}

.social-btn.youtube:hover {
    background: #CC0000;
    color: white;
}

/* Instagram Button */
.social-btn.instagram {
    background: linear-gradient(45deg, #E4405F, #C13584, #833AB4);
    color: white;
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #C13584, #A02D6B, #7232A3);
    color: white;
}

/* Naver Blog Button */
.social-btn.naver-blog {
    background: #03C75A;
    color: white;
}

.social-btn.naver-blog:hover {
    background: #02A04A;
    color: white;
}

/* Brand Partnership Section */
.brand-partnership-section {
    padding: 8rem 0 0 0;
    background: white;
    text-align: center;
}

.brand-slider-container {
    position: relative;
    width: 100vw;
    margin: 3.5rem 0 3.5rem 0;
    padding: 0.5rem 0;
    overflow-x: hidden;
    left: 50%;
    transform: translateX(-50%);
}

.brand-slider {
    width: 100%;
    overflow:hidden;
}

.brand-track {
    display: flex;
    gap: 1.5rem;
    animation: brandScrollLeft 25s linear infinite;
    width: fit-content;
    align-items: center;
}

/* Brand scroll animation */
@keyframes brandScrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.brand-item {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.brand-item img {
    max-width: 100%;
    height:100%;
    max-height: 150px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    mix-blend-mode: multiply;
}

.brand-item:hover img {
    opacity: 1;
}

/* CTA Button */
.brand-cta {
    margin-bottom: 7rem;
}

.brand-cta-button {
    display: inline-block;
    background: #FF00E5;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 229, 0.3);
}

.brand-cta-button:hover {
    background: #E600CC;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 229, 0.4);
    color: white;
}

/* FAQ Section */
.faq-section {
    padding: 8rem 0;
    background: #f8f9fa;
    text-align: center;
}

.faq-container {
    max-width: 1000px;
    margin: 3rem auto 0;
    text-align: left;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 400;
    color: #333;
    outline: none;
}

.faq-question:hover {
    background-color: #f8f9fa;
}


.faq-icon {
    font-size: 1rem;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #FF00E5;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fafafa;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-content {
    padding-top: 1rem;
}

.faq-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

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

/* Final CTA Section */
.final-cta-section {
    padding: 11rem 0;
    background: #121212 url('assets/images/backgrounds/final_cta_bg.png') center center/cover no-repeat;
    text-align: center;
    color: white;
    position: relative;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.final-cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.final-cta-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.final-cta-title {
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.final-cta-title img {
    max-width: 400px;
    width: 100%;
    height: auto;
    filter: invert();
}

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

.final-btn {
    display: flex;
    min-width: 200px;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.8rem 2rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-decoration: none;
    border-radius: 35px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.final-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: white;
}

.final-btn .btn-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.final-btn.google-play {
    background: rgba(0, 0, 0, 0.8);
}

.final-btn.google-play:hover {
    background: rgba(0, 0, 0, 1);
}

.final-btn.app-store {
    background: rgba(0, 0, 0, 0.8);
}

.final-btn.app-store:hover {
    background: rgba(0, 0, 0, 1);
}

/* Footer */
.footer {
    background: #f8f9fa;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-address,
.footer-business,
.footer-telecom,
.footer-contact {
    color: #858585;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
}

.footer-contact {
    margin-top: 0.5rem;
}

.footer-right {
    display: flex;
    align-items: flex-start;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social-btn {
    width: 50px;
    height: 50px;
    background: #999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social-btn:hover {
    background: #666;
    transform: translateY(-2px);
}

.footer-social-btn img {
    width: 100%;
    max-width:28px;
    height: 100%;
    object-fit: contain;
}

.footer-social-btn:nth-child(3) img{
    max-width:42px;
}

/* Responsive Design */
/* 중간 해상도에서 카드 크기 조정하여 4개 한 줄 유지 */
@media (max-width: 1400px) and (min-width: 1200px) {
    .feature-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.4rem;
    }
    
    .feature-card p {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .icon-circle {
        max-width: 90px;
        width: 90px;
        height: 90px;
    }
    
    .feature-icon-img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 1199px) and (min-width: 1025px) {
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* 중간 해상도에서 feature-cards 2개씩 배치 */
@media (max-width: 1024px) and (min-width: 769px) {
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 태블릿 해상도에서도 2개씩 배치 */
@media (max-width: 768px) and (min-width: 481px) {
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .icon-circle {
        max-width: 65px;
        width: 65px;
        height: 65px;
    }
    
    .feature-icon-img {
        width: 60px;
        height: 60px;
    }
}
@media (max-width: 1400px) {
    .shopping-content {
        gap: 2rem;
    }
    .tag-row {
        gap: 0.5rem;
    }
    .sport-tag {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .shopping-content {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
    }
    
    .shopping-text {
        text-align: center;
    }
    
    .sns-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .sns-text {
        max-width: none;
        text-align: center;
    }
    
    .sns-section {
        padding: 4rem 0 0rem;
        overflow: visible;
        position: relative;
    }
    
    .sns-content {
        gap: 1rem;
    }
    
    .phone-mockup {
        position: relative;
        margin-top: 1rem;
        margin-bottom: -100px;
    }
    
    .tag-row {
        gap: 0.4rem;
    }
    .sport-tag {
        padding: 0.8rem 1.5rem;
    }
}


@media (max-width: 768px) {
    .nav-menu {
        gap: 0.5rem;
    }

    .shopping-content {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
    }
    
    .shopping-text {
        text-align: center;
    }
    
    .sns-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .sns-text {
        text-align: center;
    }
    
    .nav-container {
        padding: 0.8rem 1.5rem;
    }
    .logo-img {
        max-width: 150px;
    }
    
    .nav-toggle {
        display: flex;
    }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu a {
        font-size: 14px;
        padding: 0.75rem 0.25rem;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hero-title-logo {
        max-width: 450px;
    }
    
    .hero-content {
        top: -0.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 2.75rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .hero-btn {
        min-width: 220px;
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
    }
    
    .btn-icon {
        width: 18px;
        height: 18px;
    }
    
    .section-title-image {
        max-width: 300px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .your-turn-section {
        padding: 6rem 0 2.5rem;
    }
    
    .gallery-section {
        padding: 3rem 0 6rem;
    }
    
    .video-section {
        padding: 4rem 0;
    }
    
    .shopping-section {
        padding: 4rem 0;
    }
    
    .sns-section {
        padding: 2rem 0 0rem;
        overflow: visible;
    }
    
    .sns-content {
        gap: 1rem;
    }
    
    .phone-mockup {
        margin-top: 1rem;
        margin-bottom: -80px;
    }
    
    .app-steps-section {
        padding: 8rem 0 4rem;
    }
    
    .step-number {
        font-size: 1rem;
    }
    
    .step-title {
        font-size: 1.2rem;
    }
    
    .step-description {
        font-size: 1rem;
    }
    
    .social-media-section {
        padding: 4rem 0;
    }
    
    .faq-question {
        font-size: 0.95rem;
        padding: 1.3rem 1.5rem;
    }
    
    .faq-content p {
        font-size: 0.9rem;
    }
    
    .brand-partnership-section {
        padding: 4rem 0 0 0;
    }
    
    .faq-section {
        padding: 4rem 0;
    }
    
    .final-cta-section {
        padding: 6rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .shopping-text .section-toptitle {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .sns-text .section-toptitle {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }
    
    .gallery-section .section-title {
        font-size: 2.2rem;
        margin-bottom: 1.8rem;
    }
    
    .shopping-text h2 {
        font-size: 2.2rem;
        margin-bottom: 1.8rem;
    }
    
    .sns-text h2 {
        font-size: 2.2rem;
        margin-bottom: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }
    
    .shopping-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .sns-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .section-toptitle {
        font-size: 1.8rem;
    }
    
    .feature-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.5rem 1rem;
        align-items: start;
        padding: 1.2rem 1rem;
    }
    
    .feature-card h3 {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        font-size: 1.3rem;
        margin-bottom: 0;
    }
    
    .feature-card p {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        font-size: 0.95rem;
        line-height: 1.4;
        margin: 0;
    }
    
    .feature-icon {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        margin-top: 0;
        float: none;
        align-self: center;
    }
    
    .icon-circle {
        max-width: 75px;
        width: 75px;
        height: 75px;
    }
    
    .feature-icon-img {
        width: 60px;
        height: 60px;
    }
    
    .gallery-item {
        flex: 0 0 120px;
        width: 120px;
        height: 120px;
    }
    
    .clan-card {
        flex: 0 0 180px;
        width: 180px;
    }
    
    .clan-bottom-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .qr-section,
    .rewards-section {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.2rem;
    }
    
    .section-content {
        text-align: center;
    }
    
    .qr-icon,
    .rewards-icon {
        width: 60px;
        height: 60px;
    }
    
    .phone-mockup {
        width: 280px;
        height: 560px;
    }
    
    .shopping-tags {
        align-items: center;
    }
    
    .tag-row {
        justify-content: center;
    }
    
    .sport-tag {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .video-info {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* .step-phone {
        width: 150px;
        height: 300px;
    } */
    
    .step-item:nth-child(2n)::after {
        display: none;
    }
    
    .step-item:nth-child(2)::after {
        content: '↓';
        right: auto;
        left: 50%;
        top: 320px;
        transform: translateX(-50%);
    }
    
    .final-cta-title img {
        max-width: 300px;
    }
    
    .final-cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        align-items: center;
    }
    
    .footer-left {
        align-items: center;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-logo-img {
        height: 30px;
    }
    
    .footer-address,
    .footer-business,
    .footer-telecom,
    .footer-contact {
        font-size: 0.8rem;
    }
    
    .footer-social-btn {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .hamburger {
        width:22px;
        margin:2px 0;
    }
    
    .logo-img {
        max-width: 120px;
    }
    
    .nav-menu {
        padding: 1rem;
    }
    
    .nav-menu a {
        font-size: 13px;
        padding: 0.75rem 0.25rem;
        text-align: center;
    }
    .hero-title-logo {
        max-width: 320px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2.75rem;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
    }
    
    .section-title-image {
        max-width: 250px;
    }
    
    .section-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .your-turn-section {
        padding: 6rem 0 2.5rem;
    }
    
    .gallery-section {
        padding: 2rem 0 4rem;
    }
    
    .video-section {
        padding: 5rem 0 4rem;
    }
    
    .shopping-text br, .sns-text br  {
        display: none;
    }


    .shopping-section {
        padding: 3rem 0;
    }
    
    .sns-section {
        padding: 1.5rem 0 0rem;
        overflow: visible;
    }
    
    .sns-content {
        gap: 1rem;
    }
    
    .phone-mockup {
        margin-top: 1rem;
        margin-bottom: -20px;
    }
    
    .app-steps-section {
        padding: 5rem 0 3rem;
    }
    
    .step-number {
        font-size: 0.95rem;
    }
    
    .step-title {
        font-size: 1.1rem;
    }
    
    .step-description {
        font-size: 0.9rem;
    }
    
    .step-phone img {
        max-width:200px;
    }
    
    .social-media-section {
        padding: 5rem 0;
    }
    
    .faq-question {
        font-size: 0.9rem;
        padding: 1.2rem 1.2rem;
    }
    
    .faq-icon {
        font-size: 0.9rem;
    }
    
    .faq-content p {
        font-size: 0.85rem;
    }
    
    .footer {
        padding: 2.5rem 0;
    }
    
    .footer-logo-img {
        height: 24px;
    }
    
    .footer-address,
    .footer-business,
    .footer-telecom,
    .footer-contact {
        font-size: 0.75rem;
    }
    
    .footer-social-btn {
        width: 40px;
        height: 40px;
    }
    
    .brand-partnership-section {
        padding: 5rem 0 0 0;
    }
    
    .faq-section {
        padding: 5rem 0;
    }
    
    .final-cta-section {
        padding: 5rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-btn {
        min-width: 200px;
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .btn-icon {
        width: 16px;
        height: 16px;
    }
    
    .gallery-item {
        flex: 0 0 100px;
        width: 100px;
        height: 100px;
    }
    
    .gallery-track {
        gap: 1.5rem;
    }
    
    .clan-card {
        flex: 0 0 150px;
        width: 150px;
    }
    
    .clan-track {
        gap: 0.8rem;
    }

    .clan-image {
        height: 150px;
    }

    .clan-image img {
        position: relative;
        top: -2px;
    }

    .clan-info {
        padding: 0.8rem 0.8rem 0.8rem;
    }
    
    .clan-location {
        font-size: 0.8rem;
    }
    .clan-name {
        font-size: 1rem;
    }
    .clan-description {
        font-size: 0.85rem;
    }
    
    .clan-carousel::before,
    .clan-carousel::after {
        width: 100px;
    }

    .qr-section h3, .rewards-section h3 {
        margin-bottom: 0.5rem;
    }

    .qr-section,
    .rewards-section {
        padding: 0.8rem 1rem 1rem;
        gap: 0.8rem;
    }
    .qr-section p, .rewards-section p {
        text-align: left;
        padding: 0 0.3rem;
    }

    .phone-mockup {
        width: 280px;
        height: 500px;
    }
    
    .shopping-text .section-toptitle {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .sns-text .section-toptitle {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .gallery-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .shopping-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .sns-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .shopping-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .sns-subtitle {
        font-size: 0.95rem;
        line-height: 1.5;
        white-space: normal;
    }
    
    .section-toptitle {
        font-size: 1.5rem;
    }
    
    .clan-carousel .clan-gradient-left,
    .clan-carousel .clan-gradient-right {
        width: 80px;
    }
    
    .sns-content {
        gap: 1.5rem;
    }
    
    .sns-text {
        text-align: center;
    }
    
    .feature-card {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.5rem 1rem;
        align-items: start;
        padding: 1.2rem 1rem;
    }
    
    .feature-card h3 {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        font-size: 1.2rem;
        margin-bottom: 0;
    }
    
    .feature-card p {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        font-size: 0.85rem;
        line-height: 1.4;
        margin: 0;
    }
    
    .feature-icon {
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        margin-top: 0;
        float: none;
        align-self: center;
    }
    
    .icon-circle {
        max-width: 70px;
        width: 70px;
        height: 70px;
    }
    
    .feature-icon-img {
        width: 56px;
        height: 56px;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 0rem;
    }
    
    .step-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        text-align: left;
    }
    
    .step-phone {
        flex: 0 0 auto;
        width: 150px;
        margin-bottom: 0;
    }
    
    .step-phone img {
        width: 100%;
        height: auto;
    }
    
    .step-content {
        flex: 1;
        text-align: left;
        padding: 0 0.5rem;
    }
    
    .step-item::after {
        display: none;
    }
    
    .social-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .social-btn {
        width: 200px;
        justify-content: center;
    }
    
    .brand-item {
        flex: 0 0 150px;
        width: 150px;
        height: 100px;
    }
    
    .brand-track {
        gap: 2rem;
    }
    .sport-tag {
        padding: 0.5rem 0.8rem;
    }
    
    .m_p_1r {
        padding: 0 1rem;
    }
}

/* Utility Classes */
.white {
    color: white !important;
}

/* Scroll Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-fade-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Active states */
.animate-fade-up.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-left.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-right.animate-in {
    opacity: 1;
    transform: translateX(0);
    min-width:270px;
}

.animate-fade-scale.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Special animation for brand slider container */
.brand-slider-container.animate-fade-scale {
    opacity: 0;
    transform: translateX(-50%) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.brand-slider-container.animate-fade-scale.animate-in {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Staggered animation delays */
.animate-delay-1 {
    transition-delay: 0.1s;
}

.animate-delay-2 {
    transition-delay: 0.2s;
}

.animate-delay-3 {
    transition-delay: 0.3s;
}

.animate-delay-4 {
    transition-delay: 0.4s;
}

.animate-delay-5 {
    transition-delay: 0.5s;
}

/* Form Error States */
.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
}

.error::placeholder {
    color: #dc3545 !important;
    opacity: 0.7;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    cursor: pointer;
}

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

.notification-success {
    background-color: #28a745;
}

.notification-error {
    background-color: #dc3545;
}

.notification-info {
    background-color: #007bff;
}

.notification-warning {
    background-color: #ffc107;
    color: #212529;
}


/* High Contrast Mode */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .feature-card {
        border: 2px solid #000;
    }
    
    .feature-card:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        border-color: #4A90E2;
    }
    
    .nav-menu a {
        color: #000;
        font-weight: 700;
    }
    
    .section-subtitle {
        color: #000;
        font-weight: 600;
    }
    
    button, .cta-button, .footer-btn {
        border: 2px solid #000;
        font-weight: 700;
    }
    
    .form-group input,
    .form-group textarea {
        border: 2px solid #000;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #4A90E2;
        outline: 2px solid #4A90E2;
        outline-offset: 2px;
    }
    
    .keyboard-focus {
        outline: 4px solid #000 !important;
        outline-offset: 2px !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .gallery-track,
    .clan-track,
    .brand-track {
        animation: none !important;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .header,
    .nav-toggle,
    .skip-link,
    .cta-section,
    .download-section,
    .footer-hero {
        display: none !important;
    }
    
    .hero {
        page-break-after: always;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
}

/* Performance Optimizations */
.hero-bg,
.gallery-item img,
.video-item img,
.phone-item img {
    will-change: transform;
}

.feature-card,
.gallery-item,
.video-item {
    contain: layout style paint;
}

/* Content Security */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
img[width][height] {
    height: auto;
}

/* Improve text readability */
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
    max-width: 75ch;
}

/* Large screens optimization */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 6rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1rem;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }
    
    .hero-title {
        font-size: 3rem;
    }
}