/* Base styles and variables */
:root {
    --primary: #1e40af; /* Deep blue */
    --primary-light: #60a5fa;
    --primary-dark: #1e3a8a;
    --accent: #14b8a6; /* Teal */
    --accent-light: #5eead4;
    --secondary: #fb7185; /* Coral */
    --dark: #1f2937;
    --gray: #6b7280;
    --light-gray: #e5e7eb;
    --background: #f8fafc;
    --radius: 24px;
    --shadow: 0 10px 25px -5px rgba(30, 64, 175, 0.15);
    --section-spacing: 100px;
    --font-main: 'Noto Sans KR', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    line-height: 1.6;
    background-color: var(--background);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="%2360a5fa" opacity="0.2"/><circle cx="25" cy="25" r="1" fill="%2360a5fa" opacity="0.2"/><circle cx="75" cy="25" r="1" fill="%2360a5fa" opacity="0.2"/><circle cx="25" cy="75" r="1" fill="%2360a5fa" opacity="0.2"/><circle cx="75" cy="75" r="1" fill="%2360a5fa" opacity="0.2"/></svg>');
    background-size: 50px 50px;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

ul {
    list-style: none;
}

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

/* Button styles */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    border-radius: 50%;
    z-index: -1;
    transition: transform 0.5s ease-out;
}

.button:hover::after {
    transform: scale(2);
}

.button-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow);
}

.button-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.button-secondary {
    background-color: var(--secondary);
    color: white;
    box-shadow: 0 4px 14px rgba(251, 113, 133, 0.4);
}

.button-secondary:hover {
    background-color: #e11d48;
    transform: translateY(-3px);
}

.button-accent {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4);
}

.button-accent:hover {
    background-color: #0d9488;
    transform: translateY(-3px);
}

.button-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background-color: transparent;
}

.button-outline:hover {
    background-color: var(--primary);
    color: white;
}

.button-accent {
    background-color: var(--accent);
    color: var(--dark);
    box-shadow: 0 4px 14px rgba(240, 171, 252, 0.4);
}

.button-accent:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Header styles */
header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100;
    background-color: var(--background);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.logo span {
    color: var(--primary);
}

.menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero section */
.hero {
    padding: 100px 0 0;
    background-color: #fecdd3;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    text-align: left;
    margin-bottom: 60px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero h2 span {
    color: var(--primary);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

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

.hero-decoration {
    width: 100%;
    margin-bottom: -5px;
}

/* Features section */
.features {
    padding: var(--section-spacing) 0;
    background-color: var(--background);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.section-header.light {
    color: white;
}

.section-header.light .sub-heading {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.sub-heading {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background-color: #fecdd3;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
    margin-top: 1rem;
}

.section-header.light p {
    color: rgba(255, 255, 255, 0.8);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--radius);
    background-color: white;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.feature-icon {
    margin-bottom: 1.5rem;
}

/* How-to section */
.how-to {
    padding: var(--section-spacing) 0;
    background-color: #fff1f2;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

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

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.cta-center {
    text-align: center;
    margin-top: 3rem;
}

/* Advantages section */
.advantages {
    padding: var(--section-spacing) 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    padding: 2rem;
    border-radius: var(--radius);
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

/* FAQ section */
.faq {
    padding: var(--section-spacing) 0;
    background-color: var(--background);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: white;
    box-shadow: var(--shadow);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    background-color: #fff1f2;
    color: var(--dark);
    transition: background-color 0.3s ease;
}

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

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

/* Call to Action section */
.call-to-action {
    padding: var(--section-spacing) 0;
    background-color: #fff1f2;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 3rem;
    border-radius: var(--radius);
    text-align: center;
    color: white;
    box-shadow: var(--shadow);
}

.cta-box h2 {
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer styles */
footer {
    padding: 3rem 0;
    background-color: var(--dark);
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.footer-links a {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

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

.footer-legal {
    opacity: 0.6;
    font-size: 0.875rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .menu-button {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--background);
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .main-nav.active {
        max-height: 500px;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .main-nav li {
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--light-gray);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .section-spacing {
        --section-spacing: 60px;
    }
    
    .hero {
        padding: 60px 0 0;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .feature-cards,
    .advantage-grid {
        grid-template-columns: 1fr;
    }
}
