@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-child {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-child.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Glow effect */
.glow {
    animation: glow 2s ease-in-out infinite;
}

/* 3D Card Effect */
.card-3d {
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Hide mobile-only elements on desktop */
.mobile-only {
    display: none;
}

nav {
    display: flex;
    align-items: center;
    gap: 45px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 45px;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

nav a:hover {
    color: #ffd700;
}

.dropdown-icon {
    transition: transform 0.3s;
    opacity: 0.7;
}

nav a:hover .dropdown-icon {
    transform: translateY(2px);
}

.download-btn {
    background: #ffd700;
    color: #000;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.download-btn:hover {
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 120px 60px 80px 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.text-align {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    text-align: left;
    line-height: 1.1;
    color: #ffd700;
}

.hero h1 .highlight {
    color: #ffd700;
}

.hero .subtitle {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    text-align: left;
    font-weight: 700;
    line-height: 1.6;
}

.app-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 80px;
    justify-content: flex-start;
}

.app-btn {
    border: 1px solid white;
    padding: 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.app-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.app-btn-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.app-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.app-btn-text small {
    font-size: 11px;
    color: white;
}

.app-btn-text span {
    font-size: 16px;
    font-weight: 600;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 40px;
    color: white;
    animation: bounce 2s infinite;
    z-index: 3;
    cursor: pointer;
    transition: color 0.3s ease;
}

.scroll-indicator:hover {
    color: #ffd700;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* About Section */
.about {
    padding: 120px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.yellow-box {
    background: #fccb03;
    color: black;
    font-size: 12px;
    font-weight: 400;
    padding: 8px;
    border-radius: 24px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.section-subtitle {
    text-align: center;
    color: white;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 700;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.desc {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
    margin-bottom: 80px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

/* 공통 카드 (기본: 이미지 왼쪽, 텍스트 오른쪽) */
.feature-card {
    display: flex;
    align-items: center;
    gap: 80px;
}

.feature-card .feature-image img {
    width: 100%;
    height: auto;
}

.feature-card .feature-image {
    flex: 1;
}

.feature-card .feature-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 텍스트 스타일 */
.feature-label {
    color: #ffd700;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-title {
    font-size: 32px;
    font-weight: 700;
}

.feature-desc {
    color: #e8eef2;
    font-size: 16px;
    line-height: 1.8;
}

/* Service Section */
.service {
    padding: 120px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.service .section-title {
    color: white;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    margin-top: 80px;
}

.service-item {
    border: 1px solid #2f3133;
    border-radius: 16px;
    text-align: center;
    padding: 25px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.service-item:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.1);
}

.service-icon {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: all 0.3s;
}

.service-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon img {
    transform: scale(1.1) rotate(5deg);
}

.service-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 12px;
}

.service-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.8;
}

/* Privacy Section */
.privacy {
    padding: 120px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.privacy .section-title {
    color: white;
}

.privacy-subtitle {
    text-align: center;
    color: #e8eef2;
    margin-bottom: 60px;
    font-size: 16px;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.left-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 기본 카드 */
.privacy-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.privacy-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
}

/* 가로 배치 카드 (익명성, 데이터 추적X) */
.privacy-card.horizontal {
    flex-direction: row;
    align-items: center;
    padding: 20px;
}

.privacy-card.horizontal .privacy-card-content {
    flex: 1;
    padding-right: 20px;
}

.privacy-card.horizontal.reverse .privacy-card-content {
    padding-right: 0;
    padding-left: 20px;
}

.privacy-card.horizontal .privacy-card-image {
    flex: 1;
    max-width: 200px;
}

.privacy-card.horizontal .privacy-card-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
}

/* 큰 카드 (암호화) */
.privacy-card.large {
    grid-column: span 1;
    text-align: center;
    padding: 20px;
}

.privacy-card.large .privacy-card-image {
    width: 100%;
    height: 240px;
    margin-bottom: 20px;
}

.privacy-card.large .privacy-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* 암호화 카드의 콘텐츠를 가로 배치 */
.privacy-card.large .privacy-card-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
    text-align: left;
}

.privacy-card.large .privacy-card-content h3 {
    margin-bottom: 0;
    flex-shrink: 0;
    min-width: 80px;
}

.privacy-card.large .privacy-card-content p {
    flex: 1;
    margin: 0;
}

/* 텍스트 스타일 */
.privacy-card-content h3 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.privacy-card-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    margin: 120px 0;
    padding: 80px 60px;
    background: url("images/bg.png") no-repeat center top;
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.cta h3 {
    font-size: 46px;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: -0.5px;
    margin-bottom: 30px;
    line-height: 1.3;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.cta .korean {
    margin-top: 20px;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    animation: slideInRight 0.8s ease-out 0.4s both;
}

/* Footer */
footer {
    padding: 50px 150px;
    margin-top: 120px;
}

.footer-content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.8;
}

.footer-desc .company {
    font-size: 22px;
    color: #e8eef2;
    font-weight: 500;
    margin-bottom: 15px;
}

.info-row {
    display: flex;
    margin-bottom: 6px;
}

.info-row .label {
    width: 90px;
    font-weight: 700;
    color: #e8eef2;
}

.info-row .value {
    flex: 1;
    color: #e8eef2;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    text-align: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: absolute;
    border-radius: 2px;
}

.mobile-menu-toggle span:nth-child(1) {
    top: 8px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 14px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 20px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 14px;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-card {
        flex-direction: column;
        gap: 40px;
    }

    .feature-card.reverse {
        flex-direction: column;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .privacy-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 120px 40px 80px 80px;
    }
}

@media (max-width: 768px) {
    /* Header Mobile */
    header {
        padding: 15px 20px;
    }

    .logo img {
        height: 30px;
    }

    /* Features Mobile - 모든 카드 통일 (이미지 위, 텍스트 아래) */
    .features {
        gap: 60px;
    }

    .feature-card,
    .feature-card.reverse {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .feature-card .feature-image {
        order: 1;
    }

    .feature-card .feature-content {
        order: 2;
        align-items: center;
    }

    .feature-card.reverse .feature-image {
        order: 1;
    }

    .feature-card.reverse .feature-content {
        order: 2;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(10, 10, 10, 0.98);
        transition: right 0.3s ease;
        z-index: 999;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .nav-menu.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
        gap: 40px;
        align-items: center;
        width: 100%;
        max-width: 300px;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav a {
        font-size: 20px;
        font-weight: 500;
        display: block;
        padding: 10px;
        transition: all 0.3s ease;
    }

    nav a:hover {
        transform: scale(1.05);
    }

    /* Hide desktop download button on mobile */
    .download-btn.desktop-only {
        display: none;
    }

    /* Show mobile download button */
    .mobile-only {
        display: block;
    }

    /* Style mobile download button */
    .download-btn.mobile {
        background: #ffd700;
        color: #000;
        border: none;
        padding: 12px 30px;
        text-align: center;
        display: inline-block;
        width: auto;
        margin: 0;
        border-radius: 6px;
        font-weight: 600;
        transition: all 0.3s ease;
    }

    .download-btn.mobile:hover {
        background: #ffdd33;
        color: #000;
        transform: scale(1.05);
        box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    }

    /* Hero Mobile */
    .hero {
        min-height: 100vh;
        position: relative;
    }

    /* Mobile Video Fix */
    .video-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }

    .video-background > div {
        position: relative !important;
        width: 100%;
        height: 100%;
        padding: 0 !important;
        top: 0 !important;
    }

    .video-background iframe {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
    }

    .hero-content {
        padding: 100px 20px 60px 20px;
        align-items: center;
    }

    .text-align {
        width: 100%;
    }

    .hero h1 {
        font-size: 2rem;
        text-align: center;
        line-height: 1.2;
    }

    .hero .subtitle {
        font-size: 14px;
        text-align: center;
        margin-bottom: 70px;
        padding: 0 10px;
    }

    .app-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 10px;
        margin-bottom: 40px;
    }

    .app-btn {
        width: 170px;
        padding: 8px 12px;
    }

    .app-btn-icon {
        width: 20px;
        height: 20px;
    }

    .app-btn-text small {
        font-size: 10px;
    }

    .app-btn-text span {
        font-size: 14px;
    }

    /* About Mobile */
    .about,
    .service,
    .privacy {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 18px;
    }

    .desc {
        font-size: 14px;
        margin-bottom: 40px;
    }

    .yellow-box {
        font-size: 10px;
        padding: 6px;
    }

    /* Features Mobile */
    .feature-label {
        font-size: 14px;
    }

    .feature-title {
        font-size: 24px;
    }

    .feature-desc {
        font-size: 14px;
    }

    /* Service Mobile */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }

    .service-item {
        padding: 20px;
    }

    .service-item h3 {
        font-size: 20px;
    }

    .service-item p {
        font-size: 13px;
    }

    /* Privacy Mobile */
    .privacy-card.horizontal {
        flex-direction: column;
        text-align: center;
    }

    .privacy-card.horizontal .privacy-card-content {
        padding: 0;
        margin-top: 10px;
    }

    .privacy-card.horizontal.reverse .privacy-card-content {
        padding: 0;
    }

    .privacy-card.horizontal .privacy-card-image {
        max-width: 120px;
        margin: 0 auto;
    }

    .privacy-card.large .privacy-card-image {
        height: 180px;
    }

    .privacy-card.large .privacy-card-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        align-items: center;
    }

    .privacy-card.large .privacy-card-content h3 {
        min-width: unset;
    }

    .privacy-card-content h3 {
        font-size: 22px;
    }

    .privacy-card-content p {
        font-size: 13px;
    }

    /* CTA Mobile */
    .cta {
        margin: 60px 0;
        padding: 60px 20px;
    }

    .cta h3 {
        font-size: 28px;
        text-align: center;
    }

    .cta .korean {
        font-size: 16px;
        text-align: center;
    }

    /* Footer Mobile */
    footer {
        padding: 40px 20px;
        margin-top: 60px;
    }

    .footer-desc .company {
        font-size: 18px;
    }

    .info-row {
        flex-direction: column;
        margin-bottom: 10px;
    }

    .info-row .label {
        width: 100%;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .hero .subtitle {
        font-size: 12px;
        line-height: 1.5;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .desc {
        font-size: 12px;
    }

    .app-buttons {
        gap: 8px;
    }

    .app-btn {
        width: 150px;
        padding: 6px 10px;
        gap: 8px;
    }

    .app-btn-icon {
        width: 18px;
        height: 18px;
    }

    .app-btn-text small {
        font-size: 9px;
    }

    .app-btn-text span {
        font-size: 12px;
        font-weight: 500;
    }

    /* Feature Mobile Small */
    .feature-label {
        font-size: 12px;
    }

    .feature-title {
        font-size: 20px;
    }

    .feature-desc {
        font-size: 12px;
        line-height: 1.6;
    }

    /* Service Mobile Small */
    .service-item h3 {
        font-size: 18px;
    }

    .service-item p {
        font-size: 12px;
    }

    /* Privacy Mobile Small */
    .privacy-card-content h3 {
        font-size: 18px;
    }

    .privacy-card-content p {
        font-size: 12px;
    }

    /* CTA Mobile Small */
    .cta h3 {
        font-size: 24px;
    }

    .cta .korean {
        font-size: 14px;
        line-height: 1.6;
    }
}
