* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #fee500;
    --primary-dark: #f9d900;
    --secondary-color: #3c1e1e;
    --accent-color: #ff6b6b;
    --success-color: #51cf66;
    --danger-color: #ff6b6b;
    --dark-bg: #1a1a2e;
    --card-bg: #ffffff;
    --text-primary: #191919;
    --text-secondary: #666666;
    --kakao-yellow: #fee500;
    --kakao-bg: #b2c7d9;
    --message-sent: #fee500;
    --message-received: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="2" fill="white" opacity="0.1"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Landing */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--kakao-yellow);
    color: var(--secondary-color);
    font-weight: 900;
    letter-spacing: -0.5px;
    box-shadow: 0 8px 20px rgba(254, 229, 0, 0.35);
}

.brand-title {
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.75);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.topbar-link:hover {
    background: rgba(255, 255, 255, 0.14);
}

.topbar-cta {
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: #191919;
    text-decoration: none;
    font-weight: 800;
    transition: all 0.2s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.topbar-cta:hover {
    transform: translateY(-2px);
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    margin: 26px 0 24px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.hero-content {
    padding: 34px 30px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.hero-kicker {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
    letter-spacing: -0.2px;
    margin-bottom: 10px;
}

.hero-title {
    font-size: 3.2em;
    line-height: 1.03;
    margin-bottom: 14px;
    color: #ffffff;
    letter-spacing: -2px;
    font-weight: 950;
}

.hero-subtitle {
    font-size: 1.15em;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    max-width: 60ch;
    margin-bottom: 18px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.btn {
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--kakao-yellow);
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: -0.2px;
    box-shadow: 0 12px 30px rgba(254, 229, 0, 0.28);
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.btn-ghost {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.24);
}

.hero-meta {
    margin-top: 10px;
}

.meta-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-label {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
}

.meta-chip {
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.meta-chip.online {
    background: rgba(81, 207, 102, 0.22);
    border-color: rgba(81, 207, 102, 0.35);
}

.meta-chip.offline {
    background: rgba(255, 107, 107, 0.22);
    border-color: rgba(255, 107, 107, 0.35);
}

.hero-panel {
    display: flex;
}

.panel-card {
    flex: 1;
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.panel-title {
    font-weight: 950;
    color: #1b1b1b;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.panel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #f6f7fb;
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.panel-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.panel-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 1.4em;
}

.panel-name {
    font-weight: 900;
    color: #191919;
    letter-spacing: -0.3px;
}

.panel-desc {
    color: #6b7280;
    font-size: 0.92em;
    margin-top: 2px;
}

.panel-badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.06);
    color: #1f2937;
}

.panel-badge.online {
    background: rgba(81, 207, 102, 0.18);
    color: #0b5f1f;
}

.panel-badge.offline {
    background: rgba(255, 107, 107, 0.18);
    color: #7a0b0b;
}

.panel-hint {
    margin-top: 14px;
    color: #6b7280;
    font-size: 0.92em;
    line-height: 1.5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.service-card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 3px solid transparent;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

.service-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.service-card h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-bottom: 20px;
}

.service-status {
    margin-top: 20px;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
}

.status-badge.online {
    background: var(--success-color);
}

.status-badge.offline {
    background: var(--danger-color);
}

footer {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.section {
    margin-top: 22px;
    position: relative;
    z-index: 1;
}

.section-head {
    margin: 18px 0;
    padding: 0 8px;
}

.section-title {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 950;
    letter-spacing: -1px;
    font-size: 1.6em;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.72);
    margin-top: 6px;
}

.section-mini {
    margin-top: 18px;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mini-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
}

.mini-title {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 950;
    letter-spacing: -0.4px;
    margin-bottom: 8px;
}

.mini-desc {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.6;
    font-size: 0.98em;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 6px 6px;
    color: rgba(255, 255, 255, 0.75);
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .mini-grid {
        grid-template-columns: 1fr;
    }
}

/* 공통 페이지 스타일 */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 30px;
    padding: 40px;
    min-height: 80vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.page-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 2.5em;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.back-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111827;
    font-size: 1em;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: rgba(102, 126, 234, 0.7);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    background: #ffffff;
}

.input-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-primary {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading {
    text-align: center;
    padding: 40px;
    font-size: 1.2em;
}

.result-container {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.error-message {
    background: var(--danger-color);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.success-message {
    background: var(--success-color);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}
