/* * PROJECT: DG-DOMESTIC
 * STYLE: iOS 18 Glassmorphism Evolution
 * VERSION: v1.0.5
 * CHANGE: Fix mobile white gap (dvh + html background)
 */

/* RESET & CORE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --bg-gradient: linear-gradient(145deg, #121212, #1c1c1e);
    --glass-bg: rgba(28, 28, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shine: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-dim: #a1a1a6;
    --accent-glow: rgba(255, 255, 255, 0.03);
}

/* 🔥 FIX CLAVE */
html {
    background: var(--bg-gradient);
    background-color: #1d1d1d;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;

    background:
        radial-gradient(at 20% 20%, rgba(255, 255, 255, 0.05) 0px, transparent 40%),
        radial-gradient(at 80% 80%, rgba(255, 255, 255, 0.04) 0px, transparent 40%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.80' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E"),
        var(--bg-gradient);

    background-repeat: repeat, repeat, repeat, no-repeat;
    background-size: auto, auto, 200px 200px, cover;
    background-attachment: fixed;

    color: var(--text-main);

    min-height: 100dvh; /* 🔥 FIX REAL */
    width: 100%;

    display: flex;
    justify-content: center;
    line-height: 1.5;
}

/* CONTAINER */
.container {
    width: 100%;
    max-width: 1100px;
    padding: 60px 24px;
}

/* TITLE */
.main-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 60px;
    text-align: center;
    background: linear-gradient(to bottom, #ffffff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* SECTIONS LAYOUT */
.sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: start;
}

/* SECTION CARD */
.section {
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    
    padding: 28px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
    
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.section:hover {
    transform: translateY(-4px);
    background: rgba(44, 44, 46, 0.7);
}

/* SECTION TITLE */
.section-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 24px;
    padding-bottom: 12px;
    
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    display: block;
    width: 100%;
}

/* BUTTONS */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* BUTTON */
button {
    position: relative;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
    
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Shine */
button::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: 0.5s;
}

button:hover::after {
    left: 100%;
}

button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

button:active {
    transform: scale(0.96);
    background: rgba(255, 255, 255, 0.08);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .container {
        padding: 40px 16px;
    }
    .main-title {
        font-size: 32px;
    }
    .sections {
        grid-template-columns: 1fr;
    }
}