:root{
    --bg-1:#0b0b0c;
    --bg-2:#0a0a0b;
    --accent-1:#ef4444; /* red-500 */
    --accent-2:#f43f5e; /* rose-500 */
    --glass:#111115cc;
    --border:#232326;
    --text:#e7e7ea;
    --muted:#9b9ba1;
}

/* ===== Base ===== */
*{box-sizing:border-box}
html,body{height:100%}
body{
    margin:0;
    color:var(--text);
    background:
        radial-gradient(60rem 60rem at 70% 10%, rgba(244,63,94,.22), transparent 60%),
        radial-gradient(60rem 60rem at 20% 90%, rgba(239,68,68,.22), transparent 60%),
        linear-gradient(180deg,var(--bg-2),var(--bg-1));
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji","Segoe UI Emoji";
    line-height:1.45;
    overflow-x:hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.page{
    position:relative;
    min-height:100vh;
    overflow:hidden;
}

/* Soft aurora ribbons */
.aurora:before,
.aurora:after{
    content:"";
    position:absolute;
    inset:auto;
    filter:blur(60px);
    opacity:.4;
    pointer-events:none;
}
.aurora:before{
    height:38rem;width:38rem;left:-5rem;top:45%;
    background:radial-gradient(closest-side, rgba(225,29,72,.5), transparent 70%);
    transform:rotate(-12deg);
}
.aurora:after{
    height:40rem;width:40rem;left:35%;top:-8rem;
    background:radial-gradient(closest-side, rgba(244,63,94,.5), transparent 70%);
    transform:rotate(12deg);
}

/* Tiny grain */
.grain{
    position:absolute;inset:0;pointer-events:none;mix-blend-mode:overlay;opacity:.18;
    background-image:radial-gradient(#000 1px, transparent 1px);
    background-size:4px 4px;
}

.container{
    max-width:1200px;
    margin:0 auto;
    padding:2rem 1rem 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 3rem 1.25rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 5rem 1.25rem 2rem;
    }
}

/* Brand */
.brand{
    display:flex;
    align-items:center;
    gap:12px;
}

@media (min-width: 768px) {
    .brand {
        gap: 16px;
    }
}

.brand-logo{
    width:40px;
    height:40px;
    border-radius:12px;
    background:linear-gradient(135deg, var(--accent-2), var(--accent-1));
    display:grid;
    place-items:center;
    box-shadow:0 20px 60px -20px rgba(239,68,68,.6);
    font-weight:900;
    font-size: 14px;
}

@media (min-width: 768px) {
    .brand-logo {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 16px;
    }
}

.brand-title{
    margin:0;
    font-size:24px;
    font-weight:800;
    letter-spacing:-.02em;
}

@media (min-width: 768px) {
    .brand-title {
        font-size: 28px;
    }
}

.brand-sub{
    margin:.1rem 0 0;
    color:var(--muted);
    font-size:12px;
}

@media (min-width: 768px) {
    .brand-sub {
        font-size: 13px;
    }
}

/* Hero */
.hero{
    margin-top:2rem;
}

@media (min-width: 768px) {
    .hero {
        margin-top: 2.5rem;
    }
}

@media (min-width:1024px){
    .hero{
        margin-top: 3rem;
    }
}

.content-wrapper{
    max-width: 800px;
    margin: 0 auto;
}

.headline{
    font-size:clamp(28px, 6vw, 52px);
    font-weight:900;
    letter-spacing:-.02em;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 1rem;
}

.subline{
    margin-bottom: 2rem;
    color:var(--muted);
    font-size:clamp(16px, 2.5vw, 18px);
    font-weight:500;
    line-height: 1.4;
    text-align: center;
}

/* Domains Grid */
.domains-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .domains-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }
}

/* Domain Cards */
.domain-card{
    background:linear-gradient(180deg,#0f0f13cc,#0c0c10cc);
    border:1px solid var(--border);
    border-radius:16px;
    padding: 1.5rem;
    -webkit-backdrop-filter:blur(14px);
    backdrop-filter:blur(14px);
    box-shadow:0 24px 100px -24px rgba(0,0,0,.75);
    transition: all 0.3s ease;
}

.domain-card:hover{
    transform: translateY(-4px);
    box-shadow:0 32px 120px -24px rgba(0,0,0,.85);
}

.domain-card.primary{
    border-color: var(--accent-1);
    background:linear-gradient(180deg, rgba(239,68,68,.1), rgba(244,63,94,.05));
}

.domain-card.primary:hover{
    box-shadow:0 32px 120px -24px rgba(239,68,68,.3);
}

.domain-header{
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.domain-icon{
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.domain-icon svg{
    width: 24px;
    height: 24px;
}

.domain-info{
    flex: 1;
}

.domain-title{
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--text);
}

.domain-subtitle{
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

.domain-url{
    margin-top: 1rem;
}

.domain-link{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-1);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 0.75rem 1rem;
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.domain-link:hover{
    background: var(--accent-1);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(239,68,68,.4);
}

.external-icon{
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Guide Section */
.guide-section{
    margin-bottom: 3rem;
}

.guide-title{
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text);
}

.guide-card{
    background:linear-gradient(180deg,#0f0f13cc,#0c0c10cc);
    border:1px solid var(--border);
    border-radius:16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    -webkit-backdrop-filter:blur(14px);
    backdrop-filter:blur(14px);
    box-shadow:0 24px 100px -24px rgba(0,0,0,.75);
    transition: all 0.3s ease;
}

.guide-card:hover{
    transform: translateY(-2px);
    box-shadow:0 28px 110px -24px rgba(0,0,0,.85);
}

.guide-header{
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.guide-icon{
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.guide-icon svg{
    width: 20px;
    height: 20px;
}

.guide-card-title{
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: var(--text);
}

.guide-content{
    margin-top: 1rem;
}

.guide-text{
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.guide-steps{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.step{
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-text{
    color: var(--text);
    font-weight: 500;
}

kbd{
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 12px;
    color: var(--accent-1);
    font-weight: 600;
}

/* VPN Info */
.vpn-info{
    margin-top: 1rem;
}

.vpn-example{
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-size: 14px;
}

.vpn-example strong{
    color: var(--accent-1);
}

.vpn-steps{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Back Section */
.back-section{
    text-align: center;
    margin-top: 3rem;
}

.back-btn{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.back-btn:hover{
    background: rgba(255,255,255,.1);
    color: var(--accent-1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,.3);
}

.back-icon{
    width: 18px;
    height: 18px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem 1rem;
    }
    
    .domains-grid {
        gap: 1rem;
    }
    
    .domain-card {
        padding: 1.25rem;
    }
    
    .domain-header {
        gap: 0.75rem;
    }
    
    .domain-icon {
        width: 40px;
        height: 40px;
    }
    
    .domain-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .domain-title {
        font-size: 16px;
    }
    
    .domain-subtitle {
        font-size: 13px;
    }
    
    .domain-link {
        font-size: 14px;
        padding: 0.625rem 0.875rem;
    }
    
    .guide-card {
        padding: 1.25rem;
    }
    
    .guide-header {
        gap: 0.75rem;
    }
    
    .guide-icon {
        width: 36px;
        height: 36px;
    }
    
    .guide-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .guide-card-title {
        font-size: 16px;
    }
    
    .step {
        gap: 0.75rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .step-text {
        font-size: 14px;
    }
    
    .vpn-example {
        padding: 0.875rem;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.75rem 1rem;
    }
    
    .brand {
        gap: 8px;
    }
    
    .brand-logo {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .brand-title {
        font-size: 20px;
    }
    
    .brand-sub {
        font-size: 11px;
    }
    
    .domains-grid {
        gap: 0.75rem;
    }
    
    .domain-card {
        padding: 1rem;
    }
    
    .domain-header {
        gap: 0.5rem;
    }
    
    .domain-icon {
        width: 36px;
        height: 36px;
    }
    
    .domain-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .domain-title {
        font-size: 15px;
    }
    
    .domain-subtitle {
        font-size: 12px;
    }
    
    .domain-link {
        font-size: 13px;
        padding: 0.5rem 0.75rem;
    }
    
    .guide-card {
        padding: 1rem;
    }
    
    .guide-header {
        gap: 0.5rem;
    }
    
    .guide-icon {
        width: 32px;
        height: 32px;
    }
    
    .guide-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .guide-card-title {
        font-size: 15px;
    }
    
    .step {
        gap: 0.5rem;
    }
    
    .step-number {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }
    
    .step-text {
        font-size: 13px;
    }
    
    .vpn-example {
        padding: 0.75rem;
        font-size: 12px;
    }
    
    kbd {
        font-size: 11px;
        padding: 1px 4px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border: #444;
        --text: #fff;
        --muted: #ccc;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .domain-card,
    .guide-card,
    .back-btn {
        transition: none;
    }
    
    .domain-card:hover,
    .guide-card:hover,
    .back-btn:hover {
        transform: none;
    }
}
