/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #A78BFA;
    --primary-dark: #8B5CF6;
    --primary-light: #F5F3FF;
    --secondary: #F472B6;
    --secondary-light: #FCE7F3;
    --text-dark: #1F2937;
    --text-medium: #6B7280;
    --text-light: #9CA3AF;
    --bg-white: #ffffff;
    --bg-light: #FAFAFA;
    --bg-pink: #FDF2F8;
    --border: #F3E8FF;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--bg-white);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-medium);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.btn-header {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-header:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    padding: 140px 24px 80px;
    background: linear-gradient(180deg, #FDF2F8 0%, #FAF5FF 50%, var(--bg-white) 100%);
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--secondary-light);
    color: var(--secondary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-concept {
    color: var(--primary);
    font-weight: 500;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero h1 .highlight {
    color: var(--primary);
}

.hero-desc {
    font-size: 17px;
    color: var(--text-medium);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(155, 126, 222, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(155, 126, 222, 0.4);
}

.btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    background: white;
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--primary-light);
}

.hero-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
}

/* Phone Mockup */
.hero-mockup {
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 50%, #eeeeee 100%);
    border-radius: 48px;
    padding: 10px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.15),
        inset 0 3px 6px rgba(255, 255, 255, 1),
        inset 0 -3px 6px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Power button - right side */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 160px;
    right: -4px;
    width: 4px;
    height: 50px;
    background: linear-gradient(90deg, #f0f0f0, #d8d8d8);
    border-radius: 0 3px 3px 0;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.15);
}

/* Volume buttons - left side (붙어있음) */
.phone-frame::after {
    content: '';
    position: absolute;
    top: 130px;
    left: -4px;
    width: 4px;
    height: 65px;
    background: linear-gradient(90deg, #d8d8d8, #f0f0f0);
    border-radius: 3px 0 0 3px;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.15);
}

/* Mute switch - left side (위에 따로) */
.hero-mockup {
    position: relative;
}

.hero-mockup::before {
    content: '';
    position: absolute;
    top: calc(50% - 80px);
    left: calc(50% - 154px);
    width: 4px;
    height: 18px;
    background: linear-gradient(90deg, #d8d8d8, #f0f0f0);
    border-radius: 3px 0 0 3px;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.15);
}

.phone-notch {
    display: none;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-notch {
    display: none;
}

/* App Status Bar */
.app-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-light);
}

.status-icons {
    display: flex;
    gap: 4px;
}

.signal, .wifi, .battery {
    width: 16px;
    height: 10px;
    background: var(--text-dark);
    border-radius: 2px;
}

.wifi {
    width: 14px;
}

.battery {
    width: 20px;
    border-radius: 3px;
}

/* App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 16px;
}

.app-title {
    font-weight: 700;
}

.app-icons {
    display: flex;
    gap: 12px;
}

.icon-search, .icon-noti {
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
}

/* App Tabs */
.app-tabs {
    display: flex;
    gap: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 0 8px;
}

.tab {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

/* App Content */
.app-content {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    background: var(--bg-light);
}

.post-item {
    background: white;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.post-category {
    display: inline-block;
    padding: 2px 6px;
    background: var(--secondary-light);
    color: var(--secondary);
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
}

.post-time {
    font-size: 9px;
    color: var(--text-light);
}

.post-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    line-height: 1.3;
}

.post-preview {
    font-size: 9px;
    color: var(--text-medium);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    gap: 12px;
    font-size: 9px;
    color: var(--text-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.meta-item svg {
    opacity: 0.7;
}

.cat-job {
    background: #DBEAFE;
    color: #2563EB;
}

.cat-parent {
    background: #FEF3C7;
    color: #D97706;
}

/* App Bottom Navbar */
.app-navbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 8px;
    background: white;
    border-top: 1px solid var(--border);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 8px;
    color: var(--text-light);
    cursor: pointer;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item svg {
    opacity: 0.6;
}

.nav-item.active svg {
    opacity: 1;
}

.nav-item.write-btn svg {
    color: var(--primary);
    opacity: 1;
}

/* Screen visibility */
.app-content {
    display: none !important;
}

.app-content.active {
    display: block !important;
}

.screen-chat.active {
    display: flex !important;
}

/* Matching Screen */
.screen-matching {
    padding: 16px 12px;
}

.matching-header-text {
    font-size: 12px;
    color: var(--text-medium);
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.4;
}

.match-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.match-avatar-small {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    border-radius: 50%;
}

.match-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.match-item-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
}

.match-item-topic {
    font-size: 9px;
    color: var(--text-light);
}

.match-item-btn {
    padding: 4px 10px;
    background: var(--primary);
    color: white;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 600;
}

/* Write Screen */
.screen-write {
    padding: 12px;
}

.write-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.write-category {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 10px;
    background: white;
}

.write-title {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 10px;
}

.write-content {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 10px;
    height: 120px;
    resize: none;
}

.write-submit {
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

/* Profile Screen */
.screen-profile {
    padding: 16px 12px;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
}

.profile-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.profile-badge {
    padding: 3px 8px;
    background: var(--secondary-light);
    color: var(--secondary);
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-menu-item {
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-dark);
    cursor: pointer;
}

/* Chat Screen */
.screen-chat {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.chat-messages {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.chat-bubble {
    max-width: 80%;
    padding: 8px 10px;
    border-radius: 12px;
    font-size: 10px;
    line-height: 1.4;
}

.chat-bubble.received {
    background: white;
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble.sent {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: white;
    border-top: 1px solid var(--border);
}

.chat-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 10px;
}

.chat-send {
    padding: 8px 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
}

/* Features Section */
.features {
    padding: 100px 24px;
    background: var(--bg-white);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(155, 126, 222, 0.1);
    border-color: var(--primary-light);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Community Section */
.community {
    padding: 100px 24px;
    background: var(--bg-pink);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    padding: 20px 24px;
    border-radius: 16px;
    transition: all 0.3s;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(155, 126, 222, 0.15);
}

.category-icon {
    font-size: 24px;
}

.category-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.category-count {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
}

/* Matching Section */
.matching {
    padding: 100px 24px;
    background: var(--bg-white);
}

.matching-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.matching-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.matching-text p {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 24px;
    line-height: 1.8;
}

.matching-features {
    list-style: none;
}

.matching-features li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    font-size: 15px;
    color: var(--text-medium);
}

.matching-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.matching-visual {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.match-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-light);
    padding: 20px 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.match-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 50%;
}

.match-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.match-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.match-tag {
    font-size: 13px;
    color: var(--text-light);
}

.btn-match {
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-match:hover {
    background: var(--primary-dark);
}

/* Download Section */
.download {
    padding: 100px 24px;
    background: linear-gradient(135deg, #A78BFA 0%, #F472B6 100%);
    text-align: center;
}

.download h2 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.download > .section-inner > p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.store-icon {
    font-size: 28px;
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-label {
    font-size: 10px;
    color: var(--text-light);
}

.store-name {
    font-size: 16px;
    font-weight: 600;
}

.coming-soon {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 24px 30px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.footer-info p {
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-contact {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .matching-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero h1 {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-inner {
        flex-direction: column;
        gap: 24px;
    }
}
