/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
    --black: #000000;
    --surface: #0d0d0d;
    --surface2: #141414;
    --border: rgba(255,255,255,0.09);
    --text: #ffffff;
    --muted: #888888;
    --cyan: #00e5ff;
    --cyan2: #4fd1ff;
    --blue: #3b6fff;
    --purple: #7c3aed;
    --grad-btn: linear-gradient(90deg, #5b47fb 0%, #3b6fff 100%);
}

html {
    scroll-behavior: smooth;
    background-color: rgba(0, 0, 0, 0.88); /* nav 배경색과 통일 — 상태바 safe area 색상 일치 */
}

body {
    background: rgba(0, 0, 0, 0.88); /* nav 배경색과 통일 */
    color: var(--text);
    font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available; /* iOS Safari 뷰포트 높이 보정 */
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }

/* ── NAV ── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

/* index.html hero 최상단에서만 투명 */
.nav.at-top {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.nav-logo-svg {
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(0,229,255,0.5));
    transition: filter 0.3s;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.nav-logo-link:hover .nav-logo-svg {
    filter: drop-shadow(0 0 12px rgba(0,229,255,0.8));
}

.nav-logo-text {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--cyan), var(--cyan2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.9rem;
    color: #aaa;
}

.nav-links a:hover { color: #fff; }

.nav-btn {
    padding: 0.45rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.85rem;
    color: #ddd;
    transition: border-color 0.2s, color 0.2s;
}

.nav-btn:hover { border-color: rgba(255,255,255,0.3); color: #fff; }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    gap: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
    color: #aaa;
}

.nav-mobile.open { display: flex; }
.nav-mobile a:hover { color: #fff; }

/* 햄버거 메뉴 열릴 때: at-top 투명 상태여도 강제 불투명 */
.nav.menu-open {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-color: var(--border) !important;
}

.mobile-logout-btn {
    background: none;
    border: none;
    color: #fa5757;
    font-size: 0.95rem;
    font-family: 'Noto Sans KR', sans-serif;
    cursor: pointer;
    text-align: left;
    padding: 0;
}

/* ── 유저 드롭다운 ── */
.nav-user-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(0,229,255,0.08);
    border: 1px solid rgba(0,229,255,0.3);
    border-radius: 999px;
    padding: 6px 14px 6px 10px;
    color: #e0eaf4;
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.nav-user-btn:hover {
    background: rgba(0,229,255,0.15);
    border-color: rgba(0,229,255,0.5);
}

.nav-user-email {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-chevron {
    opacity: 0.6;
    transition: transform 0.2s;
}

.nav-user-btn[aria-expanded="true"] .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #0d0d0d;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 8px;
    min-width: 160px;
    z-index: 200;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.nav-dropdown.open { display: block; }

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #c0d4e4;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
    width: 100%;
    background: none;
    border: none;
    font-family: 'Noto Sans KR', sans-serif;
    text-align: left;
}

.nav-dropdown-item:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}

.nav-logout-btn {
    color: #fa8080;
}

.nav-logout-btn:hover {
    background: rgba(250,87,87,0.1) !important;
    color: #fa5757 !important;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-size: 0.97rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-primary {
    background: var(--grad-btn);
    color: #fff;
}

.btn-ghost {
    background: rgba(255,255,255,0.07);
    color: #ddd;
    border: 1px solid var(--border);
}

.btn-full { width: 100%; }

/* ── HERO ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    padding: 160px 2rem 100px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.75;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.1) 30%,
        rgba(0,0,0,0.7) 75%,
        #000 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.hero-logo-svg {
    filter: drop-shadow(0 0 18px rgba(0,229,255,0.55))
            drop-shadow(0 0 40px rgba(0,229,255,0.2));
    transition: filter 0.4s;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(1.75rem, 9vw, 80px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    min-height: 2em;
    overflow: visible;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.hero-title .line-white { display: block; color: #fff; }
.hero-title .line-cyan {
    display: block;
    background: linear-gradient(90deg, var(--cyan), var(--cyan2), #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    margin: 1.8rem auto 0;
    max-width: 600px;
    font-size: clamp(0.92rem, 1.2vw, 1.1rem);
    line-height: 1.9;
    color: rgba(255,255,255,0.55);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2.5rem;
}

.hero-text-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 14px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.38);
    text-decoration: none;
    transition: color 0.2s;
}

.hero-text-link:hover { color: rgba(255,255,255,0.65); }

.hero-image-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 60px auto 0;
    padding: 0 2rem;
}

.hero-main-img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid rgba(0, 229, 255, 0.18);
    box-shadow:
        0 0 0 1px rgba(0,229,255,0.08),
        0 40px 80px rgba(0,0,0,0.7),
        0 0 60px rgba(0,229,255,0.08);
    display: block;
}

/* ── TRADINGVIEW INTRO ── */
.tv-intro {
    padding: 100px 2rem;
    border-top: 1px solid var(--border);
}

.tv-intro-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tv-intro .section-title {
    margin-bottom: 1.2rem;
}

.tv-intro .section-title .cyan {
    background: linear-gradient(90deg, var(--cyan), var(--cyan2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tv-intro-desc {
    font-size: clamp(0.92rem, 1.3vw, 1.05rem);
    color: rgba(255,255,255,0.55);
    line-height: 1.85;
    margin-bottom: 3.5rem;
}

.tv-intro-desc strong {
    color: rgba(255,255,255,0.85);
    font-weight: 700;
}

.tv-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    margin-bottom: 3rem;
}

.tv-step {
    flex: 1;
    max-width: 260px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, transform 0.2s;
}

.tv-step:hover {
    border-color: rgba(0,229,255,0.3);
    transform: translateY(-3px);
}

.tv-step-num {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--cyan);
    margin-bottom: 1rem;
    opacity: 0.85;
}

.tv-step-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.tv-step-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.7;
}

.tv-step-arrow {
    color: rgba(255,255,255,0.18);
    padding: 0 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.tv-intro-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
}

@media (max-width: 768px) {
    .tv-steps {
        flex-direction: column;
        gap: 1rem;
    }
    .tv-step { max-width: 100%; width: 100%; }
    .tv-step-arrow {
        padding: 0;
        transform: rotate(90deg);
    }
}

/* ── COPY BRIDGE ── */
.copy-bridge {
    text-align: center;
    padding: 140px 24px;
}

.copy-bridge-q {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.copy-bridge-desc {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.8;
}

/* ── TRUST ── */
.trust-section {
    padding: 48px 2rem 64px;
}

.trust-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.trust-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 12px;
    opacity: 0.9;
}

.trust-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: rgba(255,255,255,0.9);
    margin-bottom: 36px;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.trust-stat {
    background: rgba(255,255,255,0.02);
    padding: 32px 20px;
    text-align: center;
    transition: background 0.2s;
}

.trust-stat:hover { background: rgba(255,255,255,0.04); }

.trust-stat-num {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--cyan), var(--cyan2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.trust-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.38);
    line-height: 1.6;
}

@media (max-width: 560px) {
    .trust-stats { grid-template-columns: repeat(3, 1fr); }
    .trust-stat { padding: 24px 12px; }
    .trust-stat-num { font-size: 1.4rem; }
}

/* ── PRICING ── */
.pricing {
    padding: 100px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-title {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    text-align: center;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.pricing-sub {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: -0.5rem;
    text-align: center;
}

.pricing-title .cyan {
    background: linear-gradient(90deg, var(--cyan), var(--cyan2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tab switcher */
.plan-tabs {
    display: flex;
    width: fit-content;
    margin: 0 auto 2rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px;
    gap: 2px;
}

.plan-tab {
    position: relative;
    padding: 0.5rem 2rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    transition: background 0.2s, color 0.2s;
}

.plan-tab:hover:not(.active) {
    color: rgba(255,255,255,0.8);
}

.plan-tab-badge {
    position: absolute;
    top: -8px;
    right: -4px;
    font-size: 0.55rem;
    background: var(--cyan);
    color: #000;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.plan-tab.active {
    background: #fff;
    color: #000;
    font-weight: 700;
    box-shadow: 0 2px 12px rgba(255,255,255,0.15);
}

/* Stage */
.pricing-stage {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    align-items: start;
}

.stage-chart {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.stage-chart-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Info panel */
.stage-panel {
    background:
        radial-gradient(ellipse at 110% -10%, rgba(0,229,255,0.13) 0%, transparent 55%),
        radial-gradient(ellipse at -10% 110%, rgba(120,80,255,0.08) 0%, transparent 50%),
        #0d0d0d;
    border: 1px solid rgba(0,229,255,0.18);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 0 1px rgba(0,229,255,0.06), 0 24px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,229,255,0.05);
    position: relative;
    overflow: hidden;
}

.plan-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.plan-info.hidden { display: none; }

.plan-info-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.plan-name {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.plan-sub {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

.plan-thumb-wrap {
    width: 100px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.plan-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.plan-price strong {
    font-size: 2.2rem;
    font-weight: 900;
}

.plan-price span {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 400;
    margin-left: 0.25rem;
}

.popular-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--cyan), var(--cyan2));
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.plan-desc {
    font-size: 0.85rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.5);
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.plan-footer-note {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    margin-top: 8px;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.78);
    line-height: 1.5;
}

.plan-features li::before {
    content: '';
    flex-shrink: 0;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(59,111,255,0.15);
    border: 1.5px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%233b6fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

/* ── FEATURES ── */
.features {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 100px 2rem;
}

.features-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1rem;
    opacity: 0.85;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 3.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: left;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: rgba(59,111,255,0.3);
    transform: translateY(-3px);
}

.feature-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 1rem;
    color: var(--cyan);
}
.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ── FAQ ── */
.faq {
    padding: 100px 2rem;
}

.faq-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.faq-list {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--surface);
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    color: var(--text);
    transition: color 0.2s;
}

.faq-q:hover { color: rgba(255,255,255,0.8); }

.faq-icon {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--muted);
    flex-shrink: 0;
    transition: transform 0.25s;
    line-height: 1;
    margin-top: 0.1rem;
}

.faq-q[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    color: var(--cyan);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.85;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.4rem;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.faq-a br {
    display: block;
    content: '';
    margin-bottom: 0.55rem;
}

.faq-a.open {
    max-height: 1200px;
    padding: 0.9rem 1.4rem 1.4rem;
}

/* ── FOOTER ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
}

.footer-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-sep {
    color: rgba(255,255,255,0.2);
    font-size: 0.8rem;
}

.footer-biz {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-biz-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.4rem 0.6rem;
    font-size: 0.78rem;
    line-height: 1.7;
}

.footer-biz-chunk {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-biz-sep {
    color: rgba(255,255,255,0.18);
}

.footer-biz-label {
    color: rgba(255,255,255,0.28);
    margin-right: 0.25rem;
}

.footer-biz-value {
    color: rgba(255,255,255,0.5);
}

/* 전화번호 자동 링크 하이라이트 방지 */
.footer a[href^="tel"],
.footer-biz-value a {
    color: inherit;
    text-decoration: none;
    pointer-events: none;
}
.footer-biz-value {
    -webkit-text-decoration-skip: none;
}
/* iOS Safari 전화번호 자동감지 색상 오버라이드 */
a[x-apple-data-detectors],
[x-apple-data-detectors] {
    color: inherit !important;
    text-decoration: none !important;
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
}

.footer-disclaimer {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.22);
    font-style: italic;
    line-height: 1.6;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    width: 100%;
}

/* 데스크탑: 카드 안 이미지 숨김 (왼쪽 큰 이미지 사용) */
.plan-card-img { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    /* 모바일: 탭 스위치 유지, 왼쪽 차트 숨기고 카드 안 이미지 표시 */
    .stage-chart { display: none; }
    .pricing-stage { grid-template-columns: 1fr; }

    .stage-panel {
        background: #0d0d0d;
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 20px;
        padding: 28px 24px;
    }

    .plan-card-img-wrap {
        width: 100%;
        aspect-ratio: 16/9;
        border-radius: 12px;
        overflow: hidden;
        background: #0a0a0a;
        margin: 8px 0;
    }

    .plan-card-img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

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

    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
}

@media (max-width: 560px) {
    .hero { padding: 100px 1.25rem 60px; }
    .pricing { padding: 70px 1.25rem; }
    .features { padding: 70px 1.25rem; }
    .faq { padding: 70px 1.25rem; }
    .features-grid { grid-template-columns: 1fr; }
    .btn { width: 100%; max-width: 300px; }
    .btn-full { max-width: 100%; }
    .hero-desc { font-size: 0.82rem; }

    /* 히어로 타이틀: 모바일에서 더 크게 */
    .hero-title {
        font-size: clamp(1.75rem, 10vw, 3rem);
        min-height: 1.8em;
    }

    /* 푸터: 모바일 폰트 축소 + 세로 배치 */
    .footer-biz-row {
        flex-direction: column;
        align-items: center;
        gap: 0.12rem;
        font-size: 0.72rem;
    }
    .footer-biz-sep { display: none; }
    .footer-biz-chunk { gap: 0.2rem; }
    .footer-links a { font-size: 0.8rem; }
    .footer-copy, .footer-disclaimer { font-size: 0.7rem; }

    /* FAQ 모바일 */
    .faq-q { font-size: 0.9rem; padding: 1rem 1.1rem; }
    .faq-a { font-size: 0.85rem; }
    .faq-a.open { padding: 0.75rem 1.1rem 1.2rem; }
}

/* ── Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    position: relative;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem 2.25rem 2rem;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.28s ease;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(0, 229, 255, 0.05);
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.3rem;
    font-size: 1.1rem;
    color: var(--muted);
    transition: color 0.2s;
    line-height: 1;
}
.modal-close:hover { color: var(--text); }

.modal-header { margin-bottom: 1.75rem; }

.modal-sub {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.modal-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, #ffffff 0%, #b0c8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.input-wrap { position: relative; }

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: var(--text);
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: rgba(255,255,255,0.25); }
.form-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12);
}

.input-wrap .form-input { padding-right: 2.8rem; }

.pw-toggle {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    transition: color 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
}
.pw-toggle:hover { color: var(--text); }

.btn-full { width: 100%; }

.modal-submit {
    margin-top: 0.5rem;
    padding: 0.9rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: 10px;
}

/* Divider */
.modal-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0 1.1rem;
}
.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}
.divider-text {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
}

/* Social buttons */
.modal-social { display: flex; flex-direction: column; gap: 0.65rem; }

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    transition: filter 0.2s, transform 0.15s;
    cursor: pointer;
    border: none;
}
.social-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.social-btn:active { transform: translateY(0); }

.social-btn.kakao {
    background: #FEE500;
    color: rgba(0, 0, 0, 0.85);
}

.social-btn.google {
    background: #ffffff;
    color: #1a1a1a;
}

/* Modal footer text */
.modal-footer-text {
    margin-top: 1.4rem;
    text-align: center;
    font-size: 0.83rem;
    color: var(--muted);
}

.link-btn {
    color: var(--cyan);
    font-weight: 600;
    font-size: inherit;
    font-family: inherit;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s;
}
.link-btn:hover { opacity: 0.75; }

.modal-terms {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.2);
    line-height: 1.5;
}
.terms-link { color: rgba(255,255,255,0.35); text-decoration: underline; }
.terms-link:hover { color: var(--muted); }

@media (max-width: 480px) {
    .modal-box { padding: 2rem 1.5rem 1.75rem; }
    .modal-title { font-size: 1.65rem; }
}

/* ── SAFE AREA (iOS notch / Dynamic Island / home indicator) ── */

body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* 고정 nav: position:fixed + top:0 이므로 배경이 safe area 전체를 덮음
   padding-top으로 nav-inner 콘텐츠를 Dynamic Island 아래로 밀어냄 */
.nav {
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

/* at-top(투명) 상태에서도 Dynamic Island / 상태바 영역은 항상 불투명으로 채움
   - html::before(z-index:101) 방식은 nav 위에 덮어 배경색 불일치 유발
   - nav::before(position:absolute)는 nav 안에 위치해 배경이 자연스럽게 연결됨 */
.nav.at-top::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: env(safe-area-inset-top, 0px);
    background: rgba(0, 0, 0, 0.88); /* nav 배경색과 통일 */
    pointer-events: none;
}

/* 푸터: 홈 인디케이터 영역 */
.footer {
    padding-bottom: calc(3rem + env(safe-area-inset-bottom));
}

/* 모달: 전 방향 safe area 반영 */
.modal-overlay {
    padding: calc(1.5rem + env(safe-area-inset-top))
             calc(1.5rem + env(safe-area-inset-right))
             calc(1.5rem + env(safe-area-inset-bottom))
             calc(1.5rem + env(safe-area-inset-left));
}

/* ───────────────────────────────────────────
   TOAST & CONFIRM — 색상 변수 (퍼플 테마 전환 시 이 블록만 수정)
─────────────────────────────────────────── */
:root {
    /* Toast */
    --toast-success-bg:     rgba(16, 185, 129, 0.12);
    --toast-success-border: rgba(16, 185, 129, 0.35);
    --toast-success-icon:   #10b981;
    --toast-success-text:   #d1fae5;

    --toast-error-bg:       rgba(239, 68, 68, 0.12);
    --toast-error-border:   rgba(239, 68, 68, 0.35);
    --toast-error-icon:     #ef4444;
    --toast-error-text:     #fee2e2;

    --toast-info-bg:        rgba(0, 229, 255, 0.10);
    --toast-info-border:    rgba(0, 229, 255, 0.30);
    --toast-info-icon:      #00e5ff;
    --toast-info-text:      #e0f7ff;

    /* Confirm modal */
    --confirm-bg:           #0d0d0d;
    --confirm-border:       rgba(255, 255, 255, 0.10);
    --confirm-ok-bg:        var(--grad-btn);
    --confirm-danger-bg:    linear-gradient(90deg, #b91c1c 0%, #ef4444 100%);
}

/* ── Toast Container ── */
#bl-toast-container {
    position: fixed;
    top: calc(1.2rem + env(safe-area-inset-top, 0px));
    right: 1.2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    pointer-events: none;
    max-width: calc(100vw - 2.4rem);
}

/* 모바일: 오른쪽 하단 */
@media (max-width: 768px) {
    #bl-toast-container {
        top: auto;
        bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
        right: 1rem;
        left: 1rem;
        max-width: 100%;
    }
}

/* ── Toast Item ── */
.bl-toast {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem 0.9rem 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid;
    font-size: 0.875rem;
    font-family: 'Noto Sans KR', system-ui, sans-serif;
    line-height: 1.5;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    pointer-events: all;
    max-width: 360px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
    opacity: 0;
    transform: translateX(16px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.bl-toast.bl-toast-show {
    opacity: 1;
    transform: translateX(0);
}

.bl-toast.bl-toast-hide {
    opacity: 0;
    transform: translateX(16px);
}

.bl-toast-success {
    background:   var(--toast-success-bg);
    border-color: var(--toast-success-border);
    color:        var(--toast-success-text);
}

.bl-toast-error {
    background:   var(--toast-error-bg);
    border-color: var(--toast-error-border);
    color:        var(--toast-error-text);
}

.bl-toast-info {
    background:   var(--toast-info-bg);
    border-color: var(--toast-info-border);
    color:        var(--toast-info-text);
}

.bl-toast-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 900;
    margin-top: 1px;
    color: #fff;
}

.bl-toast-success .bl-toast-icon { background: var(--toast-success-icon); }
.bl-toast-error   .bl-toast-icon { background: var(--toast-error-icon); }
.bl-toast-info    .bl-toast-icon { background: var(--toast-info-icon); color: #000; }

.bl-toast-msg { flex: 1; }

.bl-toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.30);
    font-size: 0.72rem;
    cursor: pointer;
    padding: 2px;
    margin-top: 1px;
    line-height: 1;
    font-family: inherit;
    transition: color 0.15s;
}
.bl-toast-close:hover { color: rgba(255, 255, 255, 0.65); }

/* ── Confirm Modal ── */
.bl-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        calc(1.5rem + env(safe-area-inset-top,    0px))
        calc(1.5rem + env(safe-area-inset-right,  0px))
        calc(1.5rem + env(safe-area-inset-bottom, 0px))
        calc(1.5rem + env(safe-area-inset-left,   0px));
    opacity: 0;
    transition: opacity 0.22s ease;
}

.bl-confirm-overlay.active { opacity: 1; }

.bl-confirm-box {
    background: var(--confirm-bg);
    border: 1px solid var(--confirm-border);
    border-radius: 18px;
    padding: 2rem 2rem 1.6rem;
    width: 100%;
    max-width: 380px;
    transform: translateY(14px) scale(0.97);
    transition: transform 0.25s ease;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 229, 255, 0.04);
    font-family: 'Noto Sans KR', system-ui, sans-serif;
}

.bl-confirm-overlay.active .bl-confirm-box {
    transform: translateY(0) scale(1);
}

.bl-confirm-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.7rem;
    color: #fff;
}

.bl-confirm-msg {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.75;
    margin-bottom: 1.75rem;
}

.bl-confirm-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
}

.bl-confirm-cancel {
    padding: 0.58rem 1.2rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #999;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}
.bl-confirm-cancel:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.bl-confirm-ok {
    padding: 0.58rem 1.2rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    background: var(--confirm-ok-bg);
    border: none;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s, transform 0.15s;
}
.bl-confirm-ok:hover { opacity: 0.88; transform: translateY(-1px); }
.bl-confirm-ok:active { transform: translateY(0); }

.bl-confirm-ok.danger {
    background: var(--confirm-danger-bg);
}

@media (max-width: 480px) {
    .bl-confirm-actions { flex-direction: column-reverse; }
    .bl-confirm-cancel,
    .bl-confirm-ok { width: 100%; text-align: center; }
    .bl-toast { max-width: 100%; }
}
