@font-face {
    font-family: Pretendard;
    font-weight: 800;
    font-display: swap;
    src: local("Pretendard ExtraBold"), url("./fonts/Pretendard-ExtraBold.woff2") format("woff2");
}

@font-face {
    font-family: Pretendard;
    font-weight: 700;
    font-display: swap;
    src: local("Pretendard Bold"), url("./fonts/Pretendard-Bold.woff2") format("woff2");
}

@font-face {
    font-family: Pretendard;
    font-weight: 600;
    font-display: swap;
    src: local("Pretendard SemiBold"), url("./fonts/Pretendard-SemiBold.woff2") format("woff2");
}

@font-face {
    font-family: Pretendard;
    font-weight: 500;
    font-display: swap;
    src: local("Pretendard Medium"), url("./fonts/Pretendard-Medium.woff2") format("woff2");
}

/* ── Blue-Green Tech Theme ── */
:root {
    --bg-base: #030712;
    --bg-surface: #0b1220;
    --bg-card: rgba(12, 22, 40, 0.72);
    --cyan: #22d3ee;
    --cyan-dim: #0891b2;
    --teal: #14b8a6;
    --green: #10b981;
    --accent: #2dd4bf;
    --text-primary: #e8f4ff;
    --text-body: #94a8c4;
    --border: rgba(34, 211, 238, 0.18);
    --border-bright: rgba(45, 212, 191, 0.45);
    --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.15);
    --glow-teal: 0 0 40px rgba(20, 184, 166, 0.12);
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    margin: 0;
    min-height: 100vh;
    background: var(--bg-base);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Background effects ── */
.bg-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 75%);
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}

.bg-glow--cyan {
    width: 420px;
    height: 420px;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(34, 211, 238, 0.22) 0%, transparent 70%);
    animation: floatGlow 8s ease-in-out infinite;
}

.bg-glow--green {
    width: 360px;
    height: 360px;
    bottom: 10%;
    right: -80px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.16) 0%, transparent 70%);
    animation: floatGlow 10s ease-in-out infinite reverse;
}

@keyframes floatGlow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(20px); }
}

/* ── Page layout ── */
.page-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 28px 18px calc(100px + var(--safe-bottom));
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Hero ── */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0 28px;
    position: relative;
}

.hero-ring {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 1px dashed rgba(34, 211, 238, 0.25);
    animation: spinRing 20s linear infinite;
}

.hero-ring::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(20, 184, 166, 0.12);
}

@keyframes spinRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.image-container {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--teal) 50%, var(--green) 100%);
    box-shadow: var(--glow-cyan), 0 8px 28px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--bg-base);
}

/* ── Main content flow ── */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Intro card ── */
.intro-section {
    position: relative;
}

.text-container {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 26px 22px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.text-container::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(180deg, var(--cyan), var(--teal), var(--green));
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}

.text-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.35), rgba(20, 184, 166, 0.35), transparent);
}

.text-container h1 {
    font-size: 24px;
    margin: 0 0 10px;
    color: var(--text-primary);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
}

.text-container p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.92;
    font-weight: 500;
    text-align: justify;
    margin: 0;
    padding-left: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ── Primary CTA (separated for clarity) ── */
.action-section {
    padding: 0 2px;
}

.button {
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: #021018;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    text-align: center;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--accent) 45%, var(--green) 100%);
    box-shadow:
        var(--glow-teal),
        0 6px 24px rgba(34, 211, 238, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.22) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow:
        0 10px 36px rgba(34, 211, 238, 0.35),
        0 0 48px rgba(20, 184, 166, 0.2);
}

.button:hover::before {
    transform: translateX(100%);
}

.button:active {
    transform: translateY(0) scale(0.99);
}

/* ── Banner ── */
.banner-section {
    padding: 4px 0;
}

.second-image-container {
    position: relative;
    width: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow:
        0 16px 44px rgba(0, 0, 0, 0.35),
        var(--glow-cyan);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    cursor: pointer;
}

.second-image-container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 55%, rgba(3, 7, 18, 0.5) 100%);
    pointer-events: none;
}

.second-image-container:hover {
    transform: translateY(-3px);
    border-color: var(--border-bright);
    box-shadow:
        0 20px 52px rgba(0, 0, 0, 0.4),
        0 0 56px rgba(34, 211, 238, 0.18);
}

.second-image-container a {
    display: block;
    line-height: 0;
}

.second-image-container img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
}

.second-text-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(6, 14, 28, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--text-primary);
    font-size: 14.5px;
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    line-height: 1.55;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.second-text-overlay::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    margin-right: 8px;
    vertical-align: middle;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* ── Sticky bottom CTA ── */
.cta-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 18px calc(14px + var(--safe-bottom));
    background: linear-gradient(to top, rgba(3, 7, 18, 0.97) 55%, rgba(3, 7, 18, 0.75) 85%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(34, 211, 238, 0.1);
}

.cta-footer .second-button {
    max-width: 560px;
    margin: 0 auto;
}

.second-button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    text-align: left;
    border: 1.5px solid var(--border-bright);
    border-radius: var(--radius-lg);
    cursor: pointer;
    background: rgba(10, 24, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        var(--glow-teal),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    animation: ctaPulse 3s ease-in-out infinite;
}

.second-button:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        0 0 40px rgba(34, 211, 238, 0.2);
}

.second-button:active {
    transform: translateY(0);
}

.second-button img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(34, 211, 238, 0.35);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.2);
}

.second-button__text {
    flex: 1;
    min-width: 0;
}

@keyframes ctaPulse {
    0%, 100% {
        border-color: var(--border-bright);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), var(--glow-teal);
    }
    50% {
        border-color: rgba(34, 211, 238, 0.65);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 36px rgba(34, 211, 238, 0.15);
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .page-wrapper {
        padding: 20px 14px calc(96px + var(--safe-bottom));
    }

    .hero {
        padding: 4px 0 22px;
    }

    .hero-ring {
        width: 118px;
        height: 118px;
    }

    .image-container {
        width: 92px;
        height: 92px;
    }

    .text-container {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .text-container p {
        font-size: 14px;
        line-height: 1.88;
    }

    .button {
        font-size: 14.5px;
        padding: 16px 18px;
    }

    .second-button {
        font-size: 13.5px;
        padding: 12px 14px;
        gap: 12px;
    }

    .second-button img {
        width: 38px;
        height: 38px;
    }

    .second-text-overlay {
        font-size: 13px;
        padding: 10px 14px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .cta-footer {
        padding: 12px 14px calc(12px + var(--safe-bottom));
    }
}

@media (min-width: 769px) {
    .cta-footer {
        padding-left: max(18px, calc((100vw - 560px) / 2 + 18px));
        padding-right: max(18px, calc((100vw - 560px) / 2 + 18px));
    }
}
