/* ============================================================
   영지씨 — Page-specific Styles
   ============================================================ */

/* ====== PAGE HERO (subpages) ====== */
.page-hero {
    padding: 140px 0 60px;
    background: var(--cream);
    text-align: center;
}
.page-hero-inner {
    max-width: 600px;
    margin: 0 auto;
}

/* ====== HERO (index) ====== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    padding: 120px 80px 80px;
    background: var(--cream);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}
.hero-shape--1 {
    width: 600px; height: 600px;
    background: var(--gold-light);
    top: -15%; right: -5%;
    opacity: 0.1;
    animation: shape-drift 16s ease-in-out infinite alternate;
}
.hero-shape--2 {
    width: 400px; height: 400px;
    background: #FB923C;
    bottom: -10%; left: -5%;
    opacity: 0.06;
    animation: shape-drift 20s ease-in-out infinite alternate-reverse;
}
.hero-shape--3 {
    width: 300px; height: 300px;
    background: var(--amber);
    top: 40%; left: 30%;
    opacity: 0.05;
    animation: shape-drift 14s ease-in-out infinite alternate;
}
@keyframes shape-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.08); }
}
.hero-grain {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 200px;
}

.hero-content {
    position: relative;
    max-width: 520px;
    z-index: 2;
}
.hero-eyebrow {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 900;
    color: var(--charcoal);
    line-height: 1.3;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.hero-title-em {
    position: relative;
    color: var(--gold);
    display: inline-block;
}
.hero-title-em::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: -4px;
    right: -4px;
    height: 12px;
    background: var(--gold-glow);
    border-radius: 4px;
    z-index: -1;
}
.hero-desc {
    font-size: 16px;
    color: var(--brown-500);
    line-height: 1.8;
    margin-bottom: 36px;
    font-weight: 300;
}
.hero-actions {
    display: flex;
    gap: 12px;
}

/* Hero Phone */
.hero-phone {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}
.phone-frame {
    width: 280px;
    background: var(--white);
    border-radius: 32px;
    padding: 12px;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.04),
        0 20px 60px rgba(44, 24, 16, 0.12),
        0 8px 24px rgba(44, 24, 16, 0.06);
}
.phone-frame--sm { width: 240px; }
.phone-screen {
    background: var(--warm-50);
    border-radius: 22px;
    padding: 16px;
    min-height: 400px;
}
.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--brown-600);
    margin-bottom: 20px;
    padding: 0 4px;
}
.phone-status-icons {
    display: flex;
    gap: 4px;
    color: var(--brown-400);
}
.phone-app-header {
    margin-bottom: 20px;
    padding: 0 4px;
}
.phone-app-greeting {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--charcoal);
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}
.phone-app-subtitle {
    font-size: 12px;
    color: var(--brown-400);
    font-weight: 400;
}
.phone-card {
    border-radius: 16px;
    margin-bottom: 10px;
}
.phone-card--main {
    background: linear-gradient(135deg, var(--gold), var(--amber));
    padding: 20px;
    color: var(--white);
}
.phone-card-label {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.8;
    margin-bottom: 4px;
}
.phone-card-amount {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.phone-card-bar {
    height: 6px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    margin-bottom: 6px;
    overflow: hidden;
}
.phone-card-bar-fill {
    height: 100%;
    background: var(--white);
    border-radius: 3px;
    animation: bar-fill 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}
@keyframes bar-fill { from { width: 0 !important; } }
.phone-card-meta {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.75;
}
.phone-cards-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.phone-card--mini {
    background: var(--white);
    border: 1px solid var(--brown-100);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.phone-mini-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.phone-mini-icon--gold { background: #FEF3C7; color: var(--gold); }
.phone-mini-icon--amber { background: #FFF7ED; color: #EA580C; }
.phone-mini-label {
    font-size: 10px;
    color: var(--brown-400);
    font-weight: 400;
}
.phone-mini-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--charcoal);
    letter-spacing: -0.02em;
}

/* Hero scroll indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}
.hero-scroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-light);
    animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(12px); opacity: 1; }
}

/* ====== FEATURES ====== */
.features {
    padding: 120px 0;
    background: var(--cream);
}
.feature-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.feature-card {
    background: var(--white);
    border: 1px solid var(--brown-100);
    border-radius: 24px;
    padding: 40px 36px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--amber));
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(217, 119, 6, 0.08);
    border-color: var(--warm-200);
}
.feature-card:hover::before { opacity: 1; }
.feature-card-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 900;
    color: var(--brown-100);
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
}
.feature-card:hover .feature-card-number { color: rgba(217, 119, 6, 0.12); }
.feature-card-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: var(--warm-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 20px;
    transition: background 0.3s, color 0.3s;
}
.feature-card:hover .feature-card-icon {
    background: var(--gold);
    color: var(--white);
}
.feature-card-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 900;
    color: var(--charcoal);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}
.feature-card-desc {
    font-size: 14px;
    color: var(--brown-500);
    line-height: 1.7;
    margin-bottom: 20px;
    font-weight: 300;
}
.feature-card-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.feature-card-list li {
    font-size: 13px;
    font-weight: 500;
    color: var(--brown-600);
    padding-left: 20px;
    position: relative;
}
.feature-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold-glow);
    border: 2px solid var(--gold-light);
}
.features-more {
    text-align: center;
    margin-top: 40px;
}

/* ====== ABOUT ====== */
.about {
    padding: 120px 0;
    background: var(--white);
}
.about-summary {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.about-lead {
    font-size: 18px;
    color: var(--brown-700);
    line-height: 1.8;
    margin-bottom: 32px;
    font-weight: 400;
}
.about-lead strong {
    color: var(--gold);
    font-weight: 700;
}
.about-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    margin-bottom: 32px;
}
.about-stat { text-align: center; }
.about-stat-num {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: var(--charcoal);
    letter-spacing: -0.03em;
}
.about-stat-suffix {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
}
.about-stat-label {
    display: block;
    font-size: 12px;
    color: var(--brown-400);
    margin-top: 4px;
    font-weight: 400;
}

/* ====== DOWNLOAD PAGE ====== */
.download--page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 140px 24px 80px;
        gap: 48px;
    }
    .hero-content { max-width: 100%; }
    .hero-eyebrow { justify-content: center; }
    .hero-actions { justify-content: center; }
    .phone-frame { width: 240px; margin: 0 auto; }
    .phone-screen { min-height: 340px; }
}

@media (max-width: 768px) {
    .page-hero { padding: 110px 0 40px; }
    .hero-title { font-size: 32px; }
    .hero-desc { font-size: 15px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .phone-frame { width: 220px; }
    .phone-frame--sm { width: 200px; }
    .about, .features { padding: 80px 0; }
    .about-stats { gap: 28px; }
    .about-stat-num { font-size: 28px; }
    .feature-cards { grid-template-columns: 1fr; }
    .feature-card { padding: 32px 28px; }
}

@media (max-width: 480px) {
    .hero { padding: 110px 16px 60px; }
}
