/* ===========================================
   Make.com 메이크닷컴 - 자동화 윤리 가이드
   Color Scheme: Make.com Style
   =========================================== */

:root {
    /* 메인 색상: rgb(115, 2, 215) = #7302d7 */
    --primary: #7302d7;
    --primary-dark: #5a01ab;
    --primary-light: #cb30e0;
    /* 그라데이션 색상: rgb(133, 11, 215) = #850bd7, rgb(203, 48, 224) = #cb30e0 */
    --secondary: #cb30e0;
    --accent: #ff6b6b;
    --warning: #facc15;
    --dark: #0f0f23;
    --dark-light: #1a1a2e;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --white: #ffffff;
    /* 그라데이션: rgb(133, 11, 215) → rgb(203, 48, 224) */
    --gradient-primary: linear-gradient(135deg, rgb(133, 11, 215) 0%, rgb(203, 48, 224) 100%);
    --gradient-dark: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(115, 2, 215, 0.3);
    --radius: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--gray-100);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
}

h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { color: var(--gray-300); }

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

a:hover {
    color: var(--secondary);
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(115, 2, 215, 0.2);
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(15, 15, 35, 0.98);
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    padding: 10px 18px;
    color: var(--gray-300);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: var(--white);
    background: rgba(115, 2, 215, 0.15);
}

.main-nav a.active {
    color: var(--white);
    background: var(--primary);
}

.nav-cta {
    margin-left: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(115, 2, 215, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(115, 2, 215, 0.5);
    color: var(--white);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--gray-300);
    border: 1px solid var(--gray-600);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    background: var(--gradient-dark);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(115, 2, 215, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(115, 2, 215, 0.15);
    border: 1px solid rgba(115, 2, 215, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--dark-light);
    border: 1px solid rgba(115, 2, 215, 0.2);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-glow);
}

.hero-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 30px;
}

.hero-card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.hero-card-title {
    font-size: 1.5rem;
}

.checklist {
    list-style: none;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray-300);
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist .check-icon {
    width: 24px;
    height: 24px;
    background: rgba(0, 212, 170, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Features Section */
.section {
    padding: 100px 0;
    background: var(--dark);
}

.section-dark {
    background: var(--dark-light);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header .badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(115, 2, 215, 0.15);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-400);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 35px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(115, 2, 215, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(115, 2, 215, 0.15);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Ethics Section */
.ethics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.ethics-card {
    background: linear-gradient(135deg, rgba(115, 2, 215, 0.1) 0%, rgba(0, 212, 170, 0.05) 100%);
    border: 1px solid rgba(115, 2, 215, 0.2);
    border-radius: var(--radius-lg);
    padding: 35px;
    display: flex;
    gap: 20px;
}

.ethics-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}

.ethics-content h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.ethics-content p {
    font-size: 0.95rem;
}

/* Warning Cards */
.warning-section {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(250, 204, 21, 0.05) 100%);
    border-top: 1px solid rgba(255, 107, 107, 0.2);
    border-bottom: 1px solid rgba(255, 107, 107, 0.2);
}

.warning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.warning-card {
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: var(--radius);
    padding: 25px;
}

.warning-card .icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.warning-card h4 {
    color: var(--accent);
    margin-bottom: 10px;
}

.warning-card p {
    font-size: 0.9rem;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: var(--dark-light);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--gray-400);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(115, 2, 215, 0.15) 0%, rgba(0, 212, 170, 0.1) 100%);
    border-top: 1px solid rgba(115, 2, 215, 0.3);
    border-bottom: 1px solid rgba(0, 212, 170, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236c31e3' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: 30px;
}

.cta-content .btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}

.cta-content .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(115, 2, 215, 0.5);
}

/* Footer */
.site-footer {
    background: var(--gray-900);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--dark-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--white);
}

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

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--gray-400);
    font-size: 0.95rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--gray-500);
}

.footer-links a:hover {
    color: var(--gray-300);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero-visual {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ethics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid rgba(115, 2, 215, 0.2);
    }

    .main-nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 10px;
    }

    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .section {
        padding: 60px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item {
        padding: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-card {
        padding: 25px;
    }

    .feature-card {
        padding: 25px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Auth Pages Styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark);
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    background: var(--dark-light);
    border: 1px solid rgba(115, 2, 215, 0.2);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    box-shadow: var(--shadow-glow);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 25px;
}

.auth-header h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--gray-400);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-200);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--dark);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(115, 2, 215, 0.2);
}

.form-group input::placeholder {
    color: var(--gray-500);
}

.form-group input:disabled,
.form-group input:read-only {
    background: var(--gray-800);
    color: var(--gray-500);
    cursor: not-allowed;
}

.form-actions {
    margin-top: 30px;
}

.form-actions .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

.auth-links {
    margin-top: 25px;
    text-align: center;
}

.auth-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
    margin: 0 10px;
}

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

.auth-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-700);
}

.auth-divider span {
    padding: 0 15px;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.form-checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--gray-400);
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: var(--accent);
}

.alert-success {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: var(--secondary);
}

/* Mypage Styles */
.mypage-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 80px;
}

.mypage-header {
    margin-bottom: 40px;
}

.mypage-section {
    background: var(--dark-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 35px;
    margin-bottom: 30px;
}

.mypage-section h3 {
    font-size: 1.25rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.withdraw-link {
    display: block;
    text-align: right;
    margin-top: 40px;
    font-size: 0.75rem;
    color: var(--gray-600);
    opacity: 0.6;
}

.withdraw-link:hover {
    color: var(--accent);
    opacity: 1;
}

/* Legal Pages */
.legal-page {
    padding: 120px 0 80px;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content h3 {
    font-size: 1.25rem;
    margin: 40px 0 15px;
    color: var(--primary-light);
}

.legal-content p,
.legal-content li {
    color: var(--gray-300);
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
}

.legal-content strong {
    color: var(--white);
}

/* Sitemap Page */
.sitemap-page {
    padding: 120px 0 80px;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.sitemap-section {
    background: var(--dark-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sitemap-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--primary-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.sitemap-section li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sitemap-section li:last-child {
    border-bottom: none;
}

.sitemap-section a {
    color: var(--gray-300);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sitemap-section a:hover {
    color: var(--secondary);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-small { font-size: 0.875rem; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
