:root {
    --bg-main: #020612;
    --card-bg: #060b19;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    
    --brand-web: #2563eb;
    --brand-web-light: #3b82f6;
    
    --brand-sam: #1d4ed8;
    --brand-sam-light: #2563eb;
    
    --brand-lg: #be185d;
    --brand-lg-light: #db2777;
    
    --brand-fire: #ea580c;
    --brand-fire-light: #f97316;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

:focus {
    outline: 3px solid #00D4FF;
    outline-offset: 4px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    border-radius: 8px;
    transition: outline 0.1s ease, box-shadow 0.1s ease;
}

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Abstract Background Curves */
.bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.glow-left {
    position: absolute;
    top: 20%;
    left: -20%;
    width: 60%;
    height: 40%;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.15) 0%, transparent 60%);
    filter: blur(60px);
    transform: rotate(-15deg);
}

.glow-right {
    position: absolute;
    top: 30%;
    right: -20%;
    width: 60%;
    height: 40%;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.1) 0%, transparent 60%);
    filter: blur(60px);
    transform: rotate(15deg);
}

.curve-line {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg width="100%" height="100%" viewBox="0 0 1440 400" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0,200 C320,100 420,300 1440,150" stroke="rgba(37,99,235,0.15)" stroke-width="2" fill="none"/></svg>') no-repeat center center;
    background-size: cover;
    opacity: 0.8;
}

main.container {
    position: relative;
    z-index: 1;
    width: 90vw;
    max-width: clamp(1000px, 80vw, 1600px);
    padding: clamp(60px, 5vh, 100px) clamp(20px, 2vw, 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.header-text {
    text-align: center;
    margin-bottom: 40px;
}

.header-text h1 {
    font-size: clamp(2rem, 3.5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.header-text h1 .text-light-blue {
    color: #60a5fa;
}

.header-text p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(15px, 2vw, 30px);
    width: 100%;
    margin-bottom: clamp(30px, 4vh, 60px);
}

.card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover, .card:focus {
    transform: translateY(-5px) scale(1.02);
}

.card:focus {
    outline-offset: 8px;
    border-radius: 16px;
    z-index: 10;
}

.card-web { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 10px 40px rgba(59, 130, 246, 0.1); }
.card-sam { border-color: rgba(29, 78, 216, 0.4); box-shadow: 0 10px 40px rgba(29, 78, 216, 0.1); }
.card-lg  { border-color: rgba(219, 39, 119, 0.4); box-shadow: 0 10px 40px rgba(219, 39, 119, 0.1); }
.card-fire{ border-color: rgba(234, 88, 12, 0.4); box-shadow: 0 10px 40px rgba(234, 88, 12, 0.1); }

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border: 2px solid;
    background: var(--card-bg);
}

.card-web .icon-wrapper { border-color: #3b82f6; box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.2); }
.card-sam .icon-wrapper { border-color: #1d4ed8; box-shadow: inset 0 0 20px rgba(29, 78, 216, 0.2); }
.card-lg  .icon-wrapper { border-color: #db2777; box-shadow: inset 0 0 20px rgba(219, 39, 119, 0.2); }
.card-fire .icon-wrapper { border-color: #ea580c; box-shadow: inset 0 0 20px rgba(234, 88, 12, 0.2); }

.card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.divider {
    width: 24px;
    height: 3px;
    border-radius: 2px;
    margin-bottom: 16px;
}
.card-web .divider { background-color: #3b82f6; }
.card-sam .divider { background-color: #1d4ed8; }
.card-lg  .divider { background-color: #db2777; }
.card-fire .divider{ background-color: #ea580c; }

.card p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 25px;
    min-height: 40px;
}

.btn {
    width: 100%;
    padding: 12px 0;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    transition: filter 0.2s ease;
}
.btn:hover { filter: brightness(1.15); }

.card-web .btn { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.card-sam .btn { background: linear-gradient(90deg, #1e3a8a, #1d4ed8); }
.card-lg  .btn { background: linear-gradient(90deg, #be185d, #db2777); }
.card-fire .btn{ background: linear-gradient(90deg, #c2410c, #ea580c); }

.card-footer {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.card-footer svg {
    color: var(--text-gray);
}

.short-url {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.short-url .label {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 2px;
}

.short-url .url {
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 500;
}
.short-url .url:hover { text-decoration: underline; }

.card-web .url { color: #60a5fa; }
.card-sam .url { color: #60a5fa; }
.card-lg  .url { color: #f472b6; }
.card-fire .url{ color: #fb923c; }

/* Platforms Banner */
.platforms-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px 40px;
    text-decoration: none;
    color: var(--text-white);
    background: transparent;
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    transition: background 0.3s ease;
}

.platforms-banner:hover, .platforms-banner:focus {
    background: rgba(255,255,255,0.03);
}

.platforms-banner:focus {
    outline-offset: 6px;
    border-radius: 12px;
}

.banner-title {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-main);
    padding: 0 15px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
}

.platforms-icons {
    display: flex;
    gap: 60px;
    align-items: center;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.platform-item span {
    font-size: 0.95rem;
    font-weight: 600;
}

.platforms-divider {
    width: 1px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 10px;
}

.platforms-text {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.6;
    text-align: left;
}

.footer {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.85rem;
}
.footer a {
    color: #10b981;
    text-decoration: none;
}
.footer a:hover { text-decoration: underline; }

.divider-v {
    margin: 0 10px;
    opacity: 0.4;
}

/* Help Section */
.help-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 25px;
}

.help-features, .help-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    color: #e5e7eb;
}

.help-features svg, .help-contact svg {
    color: #9ca3af;
}

.help-features .dot {
    margin: 0 6px;
    font-size: 1.2rem;
    line-height: 1;
}

.help-divider {
    width: 1px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.2);
}

.help-contact a {
    color: #3b82f6;
    text-decoration: none;
}

.help-contact a:hover {
    text-decoration: underline;
}

/* TV Header & Footer Bars */
.tv-bar {
    position: absolute;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: clamp(10px, 1vh, 15px) clamp(20px, 2vw, 40px);
    font-size: clamp(0.8rem, 1vw, 1.2rem);
    color: var(--text-gray);
}
#tv-top-bar { top: 0; border-top: none; }
#tv-bottom-bar { bottom: 0; border-bottom: none; }

.tv-bar-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1vw, 20px);
}
.tv-bar-content strong { color: var(--text-white); }
.tv-bar-content svg { color: #00c3ff; margin-right: 5px; }

@media (max-width: 640px) {
    .bottom-banner { flex-direction: column; gap: 20px; align-items: flex-start; }
    .header-text h1 { font-size: 2.2rem; }
}
