:root {
    --bg-gradient: linear-gradient(135deg, #fdfbf7 0%, #f1f7fc 45%, #fef7ee 100%);
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --text-title: #0f172a;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-gradient);
    color: var(--text-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3.5rem 1.5rem;
}

header {
    text-align: center;
    max-width: 925px;
    margin-bottom: 3.5rem;
}

.header-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid #fed7aa;
    color: #ea580c;
    font-size: 0.825rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.08);
}

header h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-title);
    line-height: 1.15;
}

header h1 span {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 600;
    color: #475569;
    margin-top: 0.5rem;
    margin-bottom: 0.85rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
    display: block;
}

header h2,
header p,
header .header-desc,
header .header-note {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 400;
    color: #64748b;
    line-height: 1.6;
}

header .header-note {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    margin-top: 0.4rem;
    color: #94a3b8;
}

.container-main {
    max-width: 1540px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
}

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.25rem;
    }
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    padding: 1.85rem 1.35rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #cbd5e1;
    transition: height 0.2s ease;
}

.card-ca2009::before {
    background: linear-gradient(90deg, #eab308 0%, #f97316 50%, #ea580c 100%);
}

.card-ca2010::before {
    background: linear-gradient(90deg, #f97316 0%, #ef4444 50%, #dc2626 100%);
}

.card-kr2011::before {
    background: linear-gradient(90deg, #0047a0 0%, #cd2e3a 50%, #eab308 100%);
}

.card-kr2016::before {
    background: linear-gradient(90deg, #cd2e3a 0%, #eab308 50%, #0047a0 100%);
}

.card-ariamondu::before {
    background: linear-gradient(90deg, #796957 0%, #b89758 50%, #4a6b5d 100%);
}

.card-airwayfarer::before {
    background: linear-gradient(90deg, #3581b8 0%, #6e8387 50%, #0f141c 100%);
}

.card-placeholder::before {
    background: #cbd5e1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card:hover::before {
    height: 6px;
}

.card-ca2009:hover {
    border-color: #fde047;
}

.card-ca2010:hover {
    border-color: #fca5a5;
}

.card-kr2011:hover {
    border-color: #93c5fd;
}

.card-kr2016:hover {
    border-color: #93c5fd;
}

.card-ariamondu:hover {
    border-color: #b89758;
}

.card-airwayfarer:hover {
    border-color: #3581b8;
}

.card-flag {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    width: 30px;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.08);
    opacity: 0.85;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

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

.card:hover .card-flag {
    opacity: 1;
    transform: scale(1.08) translateY(-1px);
    box-shadow: 0 4px 8px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.card h2,
.card h3,
.card h4,
.card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    color: var(--text-title);
    line-height: 1.3;
    padding-right: 2rem;
}

.card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meta-dot {
    width: 4px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 50%;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-ca2009 {
    background: #ea580c;
    color: #ffffff;
}

.btn-ca2009:hover {
    background: #c2410c;
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.25);
}

.btn-ca2010 {
    background: #dc2626;
    color: #ffffff;
}

.btn-ca2010:hover {
    background: #b91c1c;
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.25);
}

.btn-kr2011 {
    background: #0047a0;
    color: #ffffff;
}

.btn-kr2011:hover {
    background: #00367a;
    box-shadow: 0 6px 16px rgba(0, 71, 160, 0.25);
}

.btn-kr2016 {
    background: #002f6c;
    color: #ffffff;
}

.btn-kr2016:hover {
    background: #001f4d;
    box-shadow: 0 6px 16px rgba(0, 47, 108, 0.25);
}

.btn-ariamondu {
    background: #796957;
    color: #ffffff;
}

.btn-ariamondu:hover {
    background: #5c4e3f;
    box-shadow: 0 6px 16px rgba(121, 105, 87, 0.25);
}

.btn-airwayfarer {
    background: #3581b8;
    color: #ffffff;
}

.btn-airwayfarer:hover {
    background: #2b6d9c;
    box-shadow: 0 6px 16px rgba(53, 129, 184, 0.35);
}

/* Transition Section */
.transition-section {
    text-align: center;
    max-width: 925px;
    margin: 2.75rem auto 1rem auto;
    padding: 0 1rem;
}

.transition-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ffffff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    margin-bottom: 0.85rem;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.transition-title {
    font-size: clamp(1.45rem, 2.5vw, 1.95rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-title);
    margin-bottom: 0.65rem;
    line-height: 1.25;
}

.transition-text {
    font-size: clamp(0.98rem, 1.8vw, 1.08rem);
    font-weight: 400;
    color: #64748b;
    line-height: 1.65;
}

/* Full Width Card - AirWayfarer */
.card-full {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    padding: 2.25rem 2.5rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.card-airwayfarer-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3581b8 0%, #6e8387 50%, #0f141c 100%);
    transition: height 0.2s ease;
}

.card-airwayfarer-full:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #3581b8;
}

.card-airwayfarer-full:hover::before {
    height: 6px;
}

.card-full-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.card-full-brand {
    display: flex;
    align-items: flex-start;
    gap: 1.75rem;
    flex: 1;
}

.card-full-logo {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15rem;
}

.card-full-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-full-info {
    flex: 1;
}

.card-full-header-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
}

.card-full-info .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f141c;
    line-height: 1.2;
    padding-right: 0;
    margin-bottom: 0;
}

.card-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3581b8;
    background: rgba(53, 129, 184, 0.08);
    border: 1px solid rgba(53, 129, 184, 0.16);
    padding: 0.2rem 0.75rem;
    border-radius: 9999px;
    letter-spacing: 0.01em;
}

.card-full-info p {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.65;
    margin-bottom: 1.15rem;
    max-width: 980px;
}

.card-full-footer-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.features-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.3rem 0.65rem;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #1e293b;
}

.card-full-info .meta {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-full-action {
    flex-shrink: 0;
}

.btn-dashboard {
    padding: 1rem 1.85rem;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 1080px) {
    .card-full-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .card-full-action {
        width: 100%;
    }

    .card-full-action .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .card-full-brand {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .card-full-footer-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
    }
}

.card-placeholder {
    border: 2px dashed #cbd5e1;
    background: rgba(255, 255, 255, 0.65);
}

.card-placeholder:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
    border-color: #94a3b8;
}

.card-placeholder h2,
.card-placeholder h3,
.card-placeholder h4,
.card-placeholder .card-title {
    color: #64748b;
}

.btn-disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border: 1px solid #e2e8f0;
}

footer {
    margin-top: 4rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}