:root {
    --bg-primary: #0A0A0B;
    --text-primary: #F8F9FA;
    --text-secondary: #A0AAB2;
    --accent: #4B4EFC;
    --accent-glow: rgba(75, 78, 252, 0.4);
    --secondary-accent: #B055F6;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Glowing Orbs */
.background-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-accent);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Typography & Layout */
.gradient-text {
    background: linear-gradient(135deg, #4B4EFC, #B055F6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 11, 0.7);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.logo i {
    color: var(--accent);
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--text-primary);
}

/* Buttons */
button,
.btn-primary,
.btn-secondary,
.btn-outline {
    font-family: inherit;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--secondary-accent));
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(176, 85, 246, 0.5);
}

.btn-primary.large,
.btn-secondary.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
}

.btn-secondary {
    background: #FFCD00;
    /* Kakao Yellow */
    color: #3A1D1D;
}

.btn-secondary:hover {
    background: #FFD933;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    min-height: 85vh;
    padding: 5% 5%;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(75, 78, 252, 0.1);
    border: 1px solid rgba(75, 78, 252, 0.3);
    color: #8c90ff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.trust-indicators {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.trust-indicators span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trust-indicators i {
    color: #FFD700;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
}

/* Chat Mockup */
.hero-mockup {
    flex: 1;
    min-width: 350px;
    max-width: 450px;
    display: flex;
    justify-content: center;
}

.chat-container {
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(30deg);
    pointer-events: none;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
}

.chat-header .info {
    margin-left: 1rem;
    flex-grow: 1;
}

.chat-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.status {
    font-size: 0.8rem;
    color: #4CAF50;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.dot {
    width: 6px;
    height: 6px;
    background: #4CAF50;
    border-radius: 50%;
    display: inline-block;
}

.actions {
    color: var(--text-secondary);
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

/* Custom Scrollbar for Chat */
.chat-body::-webkit-scrollbar {
    width: 4px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: fadeIn 0.4s ease forwards;
}

.message.ai {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    align-items: flex-end;
}

.bubble {
    padding: 1rem 1.2rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-all;
}

.message.ai .bubble {
    background: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message.user .bubble {
    background: linear-gradient(135deg, var(--accent), var(--secondary-accent));
    color: white;
    border-bottom-right-radius: 4px;
}

/* Action Buttons inside chat */
.action-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.map-btn {
    background: rgba(75, 78, 252, 0.15);
    color: #8c90ff;
    border: 1px solid rgba(75, 78, 252, 0.4);
}

.map-btn:hover {
    background: rgba(75, 78, 252, 0.3);
    color: white;
}

.voice-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #FFD700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 8px;
}

.voice-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.message .time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 5px;
    margin-left: 5px;
    margin-right: 5px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.input-area {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-area input {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.95rem;
    width: 100%;
    padding: 0 0.5rem;
    font-family: inherit;
}

.input-area input:focus {
    outline: none;
}

.icon-btn,
.send-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

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

/* Pricing Section */
.pricing {
    padding: 5rem 5%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 300px;
    max-width: 350px;
    padding: 2.5rem;
    text-align: left;
    position: relative;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(75, 78, 252, 0.2);
    transform: scale(1.05);
}

.card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--secondary-accent));
    padding: 0.3rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    color: white;
}

.card-header {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.features i {
    color: var(--accent);
    margin-top: 4px;
}

.card button {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero {
        gap: 2rem;
        padding: 2rem 5%;
    }

    .card.popular {
        transform: scale(1);
    }

    .card.popular:hover {
        transform: translateY(-10px);
    }

    nav a {
        display: none;
    }

    nav .btn-primary {
        display: inline-flex;
    }
}