@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --color-bg-black: #050908;
    --color-bg-navy: #09121a;
    --color-bg-green: #0b1513;
    
    --color-tether: #26A17B;
    --color-tether-accent: #20E3B2;
    
    --color-text-white: #FFFFFF;
    --color-text-light: #E9EEEC;
    --color-text-gray: #AAB5B1;
    --color-text-dark: #75807C;
    
    --font-kr: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif;
    --font-en: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-kr);
    background-color: var(--color-bg-black);
    color: var(--color-text-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Utilities */
.text-en {
    font-family: var(--font-en);
}

.text-tether {
    color: var(--color-tether);
}

.text-accent {
    color: var(--color-tether-accent);
}

.text-white { color: var(--color-text-white); }
.text-light { color: var(--color-text-light); }
.text-gray { color: var(--color-text-gray); }
.text-dark { color: var(--color-text-dark); }

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(38, 161, 123, 0.3);
    box-shadow: 0 8px 32px rgba(38, 161, 123, 0.1);
    transform: translateY(-2px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background: var(--color-tether);
    color: var(--color-text-white);
}

.btn-primary:hover {
    background: var(--color-tether-accent);
    box-shadow: 0 0 16px rgba(32, 227, 178, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text-white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Header Override for Landing */
#header.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
    background: transparent;
    border-bottom: 1px solid transparent;
}

#header.landing-header.scrolled {
    background: rgba(5, 9, 8, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#header.landing-header .landing-nav a {
    color: var(--color-text-light);
    transition: color 0.3s;
    font-weight: 500;
}

#header.landing-header .landing-nav a:hover,
#header.landing-header .landing-nav a.active {
    color: var(--color-tether-accent);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Sections Base */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-eyebrow {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-tether);
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 40px;
    color: var(--color-text-white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-desc {
    font-size: 18px;
    color: var(--color-text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* --- 6. HERO SECTION --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('../img/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding-top: 80px; /* offset header */
}

#hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(5,9,8,0.9) 0%, rgba(5,9,8,0.6) 50%, rgba(5,9,8,0.2) 100%);
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 650px;
}

.hero-eyebrow {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(38, 161, 123, 0.15);
    color: var(--color-tether-accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(38, 161, 123, 0.3);
}

.hero-title {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--color-text-white);
    font-weight: 800;
}

.hero-desc {
    font-size: 20px;
    color: var(--color-text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-trust {
    display: flex;
    gap: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trust-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-gray);
}

.trust-item-desc {
    font-size: 16px;
    color: var(--color-text-white);
    font-weight: 500;
}

/* --- 7. TETHER GUIDE SECTION --- */
#guide {
    background: var(--color-bg-black);
    background: radial-gradient(circle at 50% 0%, rgba(11,21,19,0.8) 0%, rgba(5,9,8,1) 100%);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.guide-card-title {
    font-size: 22px;
    color: var(--color-tether-accent);
    margin-bottom: 16px;
}

.guide-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* --- 8. USDT BUY SERVICE --- */
#buy {
    background-image: url('../img/buy_bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

#buy::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(11, 21, 19, 0.85); /* Deep Green tint */
    z-index: 1;
}

#buy .container {
    position: relative;
    z-index: 2;
}

.service-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.process-step {
    display: flex;
    gap: 24px;
}

.step-num {
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-tether);
    opacity: 0.8;
}

.step-content h4 {
    font-size: 20px;
    color: var(--color-text-white);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--color-text-gray);
    font-size: 15px;
}

.service-calculator {
    background: rgba(5, 9, 8, 0.6);
    border: 1px solid rgba(38, 161, 123, 0.4);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.calc-title {
    font-size: 22px;
    margin-bottom: 32px;
    color: var(--color-text-white);
    text-align: center;
}

.calc-row {
    margin-bottom: 24px;
}

.calc-label {
    display: block;
    font-size: 14px;
    color: var(--color-text-gray);
    margin-bottom: 8px;
}

.calc-value {
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-white);
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.calc-value.highlight {
    color: var(--color-tether-accent);
    border-bottom-color: rgba(38, 161, 123, 0.3);
}

/* --- 9. USDT SELL SERVICE --- */
#sell {
    background-image: url('../img/sell_bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

#sell::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 9, 8, 0.9); /* Black/Silver tint */
    z-index: 1;
}

#sell .container {
    position: relative;
    z-index: 2;
}

#sell .service-calculator {
    border-color: rgba(255, 255, 255, 0.2);
}

#sell .step-num {
    color: var(--color-text-light);
}

#sell .calc-value.highlight {
    color: var(--color-tether-accent);
    border-bottom-color: rgba(38, 161, 123, 0.3);
}

/* --- 10. TRUST INDICATORS --- */
.trust-banner {
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 40px 0;
}

.trust-banner-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.trust-icon {
    font-size: 32px;
    color: var(--color-tether);
    margin-bottom: 16px;
}

.trust-title {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-gray);
    margin-bottom: 4px;
}

.trust-desc {
    font-size: 16px;
    color: var(--color-text-white);
    font-weight: 600;
}

/* --- 11. NOTICE SECTION --- */
#notice {
    background: var(--color-bg-black);
}

.notice-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notice-item {
    display: flex;
    align-items: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.notice-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.notice-badge {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light);
    margin-right: 24px;
}

.notice-title {
    flex: 1;
    font-size: 16px;
    color: var(--color-text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 20px;
}

.notice-date {
    font-family: var(--font-en);
    font-size: 14px;
    color: var(--color-text-gray);
}

.notice-more {
    text-align: center;
    margin-top: 40px;
}

/* --- 12. CONTACT SECTION --- */
#contact {
    background-image: url('../img/contact_bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 9, 8, 0.85);
    z-index: 1;
}

#contact .container {
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 680px;
    margin: 0 auto;
}

.contact-card {
    text-align: center;
}

.contact-icon {
    font-size: 40px;
    color: var(--color-tether-accent);
    margin-bottom: 20px;
}

.contact-card h4 {
    font-size: 20px;
    color: var(--color-text-white);
    margin-bottom: 12px;
}

.contact-card p {
    color: var(--color-text-gray);
    font-size: 15px;
    margin-bottom: 24px;
    min-height: 48px;
}

/* --- 13. FINAL CTA --- */
.final-cta {
    text-align: center;
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.final-cta h2 {
    font-size: 36px;
    color: var(--color-text-white);
    margin-bottom: 16px;
}

.final-cta p {
    font-size: 18px;
    color: var(--color-text-gray);
    margin-bottom: 40px;
}

.final-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* --- FOOTER OVERRIDE --- */
#landing-footer {
    /* footer styles if needed */
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   - Laptop  : max-width 1280px
   - Tablet  : max-width 1024px
   - Mobile  : max-width 767px
   - Small   : max-width 480px
   PC layout is preserved above these breakpoints.
   ============================================= */

/* --- LAPTOP (max-width: 1280px) --- */
@media (max-width: 1280px) {
    .container {
        padding: 0 32px;
    }

    .hero-title {
        font-size: 50px;
    }

    .service-layout {
        grid-template-columns: 1fr 380px;
        gap: 48px;
    }
}

/* --- TABLET (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 28px;
    }

    /* Section */
    .section {
        padding: 96px 0;
    }

    .section-title {
        font-size: 34px;
    }

    .section-desc {
        font-size: 16px;
    }

    /* Hero */
    .hero-title {
        font-size: 44px;
    }

    .hero-desc {
        font-size: 18px;
    }

    .hero-content {
        max-width: 560px;
    }

    /* Service layout: stack vertically on tablet */
    .service-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-calculator {
        max-width: 520px;
        margin: 0 auto;
        padding: 32px;
    }

    /* Guide grid: 2-col stays, padding reduces */
    .guide-grid {
        gap: 20px;
    }

    .glass-card {
        padding: 28px;
    }

    /* Trust banner */
    .trust-banner-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Final CTA */
    .final-cta h2 {
        font-size: 30px;
    }

    .final-cta p {
        font-size: 16px;
    }
}

/* --- MOBILE (max-width: 767px) --- */
@media (max-width: 767px) {
    .container {
        padding: 0 28px;
    }

    /* ── Reduce reveal animation distance on mobile ── */
    .reveal {
        transform: translateY(18px);
        transition: all 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Section */
    .section {
        padding: 48px 0;
    }

    .section-header {
        margin-bottom: 40px;
        text-align: left;
    }

    .section-eyebrow {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .section-title {
        font-size: 26px;
        line-height: 1.35;
        margin-bottom: 14px;
    }

    .section-desc {
        font-size: 15px;
        line-height: 1.65;
        /* Keep readable width on mobile */
        max-width: 100%;
        /* Remove forced <br> appearance by letting text flow */
        word-break: keep-all;
        overflow-wrap: break-word;
    }

    /* ── Hero ── */
    #hero {
        min-height: 100svh; /* use svh on mobile */
        padding-top: 80px;
        align-items: center;
        padding-bottom: 24px;
        background-size: auto 150%;
        background-position: center top;
    }

    #hero::before {
        /* On mobile darken more for legibility */
        background: linear-gradient(180deg, rgba(5,9,8,0.88) 0%, rgba(5,9,8,0.70) 60%, rgba(5,9,8,0.55) 100%);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-eyebrow {
        font-size: 11px;
        letter-spacing: 0.5px;
        padding: 5px 10px;
        margin-bottom: 18px;
        /* Allow wrap if needed */
        white-space: normal;
        word-break: keep-all;
    }

    .hero-title {
        font-size: 30px;
        line-height: 1.3;
        margin-bottom: 16px;
        word-break: keep-all;
    }

    .hero-desc {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 28px;
        color: var(--color-text-light);
        word-break: keep-all;
    }

    /* Hero description inline <br> → hide on mobile so text reflows */
    .hero-desc br {
        display: none;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
        max-width: 440px;
        margin: 0 auto 40px;
    }

    .hero-actions .btn {
        max-width: none;
        padding: 14px 10px;
        font-size: 14px;
        word-break: keep-all;
    }

    .hero-trust {
        flex-direction: column;
        gap: 16px;
        padding-top: 24px;
    }

    .trust-item-title {
        font-size: 12px;
    }

    .trust-item-desc {
        font-size: 14px;
    }

    /* ── Guide ── */
    #guide .section-desc br {
        display: none;
    }

    .guide-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 0 auto 32px;
        max-width: 440px;
    }

    .glass-card {
        padding: 28px 24px;
    }

    .guide-card-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .guide-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 440px;
        margin: 0 auto;
    }

    .guide-actions .btn {
        max-width: none;
        padding: 14px 10px;
        font-size: 14px;
        word-break: keep-all;
    }

    /* ── Buy / Sell Service ── */
    .service-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    #buy .section-desc br,
    #sell .section-desc br {
        display: none;
    }

    .process-steps {
        gap: 24px;
    }

    .process-step {
        gap: 16px;
        align-items: flex-start;
    }

    .step-num {
        font-size: 20px;
        min-width: 32px;
        padding-top: 2px;
    }

    .step-content h4 {
        font-size: 17px;
        margin-bottom: 6px;
    }

    .step-content p {
        font-size: 14px;
        line-height: 1.6;
        word-break: keep-all;
    }

    .service-calculator {
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        padding: 32px 24px;
        border-radius: 20px;
    }

    .calc-title {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .calc-row {
        margin-bottom: 18px;
    }

    .calc-label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .calc-value {
        font-size: 20px;
        padding-bottom: 10px;
    }

    /* ── Notice ── */
    .notice-list {
        gap: 12px;
    }

    .notice-item {
        padding: 16px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .notice-badge {
        margin-right: 12px;
        font-size: 12px;
        padding: 3px 10px;
    }

    .notice-title {
        font-size: 14px;
        padding-right: 0;
        /* Allow full-width title on mobile */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .notice-date {
        font-size: 12px;
    }

    .notice-more {
        margin-top: 28px;
    }

    /* ── Contact ── */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 0 auto;
        max-width: 440px;
    }

    #contact .section-desc br {
        display: none;
    }

    .contact-icon {
        font-size: 32px;
        margin-bottom: 14px;
    }

    .contact-card h4 {
        font-size: 18px;
    }

    .contact-card p {
        font-size: 14px;
        min-height: unset;
        margin-bottom: 18px;
        word-break: keep-all;
    }

    /* ── Final CTA ── */
    .final-cta {
        padding: 60px 0;
    }

    .final-cta h2 {
        font-size: 26px;
        line-height: 1.35;
        margin-bottom: 12px;
        word-break: keep-all;
    }

    .final-cta p {
        font-size: 15px;
        margin-bottom: 28px;
        word-break: keep-all;
    }

    .final-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        max-width: 440px;
        margin: 0 auto;
    }

    .final-actions .btn {
        max-width: none;
        padding: 14px 10px;
        font-size: 14px;
        word-break: keep-all;
    }

    /* ── Navigation (mobile menu) ── */
    .landing-nav {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(5, 9, 8, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 16px 20px 24px;
        gap: 4px;
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
        z-index: 99;
    }

    .landing-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .landing-nav a {
        padding: 12px 8px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .landing-nav a:last-child {
        border-bottom: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* ── Buttons global ── */
    .btn {
        font-size: 16px;
        padding: 16px 24px;
        width: 100%;
        display: flex;
        justify-content: center;
        margin: 0 auto;
    }

    /* ── Trust Banner ── */
    .trust-banner-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* ── Footer ── */
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

/* --- SMALL MOBILE (max-width: 480px) --- */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 23px;
    }

    .hero-eyebrow {
        font-size: 10px;
        letter-spacing: 0;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-desc {
        font-size: 14px;
    }

    .guide-card-title {
        font-size: 16px;
    }

    .calc-value {
        font-size: 18px;
    }

    .final-cta h2 {
        font-size: 22px;
    }

    .final-cta p {
        font-size: 14px;
    }

    .service-calculator {
        padding: 20px 16px;
    }

    .glass-card {
        padding: 20px 16px;
    }
}
