/* prototype.st - Frutiger Aero Glossy Tech */

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

:root {
    --sky-start: #87CEEB;
    --sky-end: #FFF8F0;
    --deep-bg: #1B3A5C;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.40);
    --text-primary: #1A2744;
    --text-secondary: #5A6A7E;
    --accent-teal: #00BFA5;
    --accent-coral: #FF7B7B;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-primary);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--sky-start) 0%, var(--sky-end) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* =====================
   FLOATING BUBBLES
   ===================== */
@keyframes drift1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(30px, -20px); }
    50% { transform: translate(-10px, 15px); }
    75% { transform: translate(20px, -10px); }
}

@keyframes drift2 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(-25px, 20px); }
    66% { transform: translate(15px, -25px); }
}

@keyframes drift3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -30px); }
}

.bubbles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1), transparent 70%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.bubble-1 {
    width: 160px;
    height: 160px;
    top: 10%;
    right: 15%;
    animation: drift1 8s ease-in-out infinite;
}

.bubble-2 {
    width: 80px;
    height: 80px;
    top: 30%;
    left: 8%;
    animation: drift2 10s ease-in-out infinite;
}

.bubble-3 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 5%;
    animation: drift3 12s ease-in-out infinite;
}

.bubble-4 {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 20%;
    animation: drift1 7s ease-in-out infinite;
}

.bubble-5 {
    width: 120px;
    height: 120px;
    bottom: 10%;
    left: 40%;
    animation: drift2 9s ease-in-out infinite;
}

/* =====================
   GLASS PANEL BASE
   ===================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 12px 24px rgba(0,0,0,0.05), 0 24px 48px rgba(0,0,0,0.03);
}

/* =====================
   SECTION 1: PRODUCT HERO
   ===================== */
.section-hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 40px;
}

.hero-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px 80px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 12px 24px rgba(0,0,0,0.05), 0 24px 48px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-glass.visible {
    opacity: 1;
    transform: scale(1);
}

.glass-highlight {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    transition: left 0.8s ease;
    pointer-events: none;
}

.hero-glass.highlight-sweep .glass-highlight {
    left: 150%;
}

.hero-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-meta {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* =====================
   SECTION 2: BENTO GRID
   ===================== */
.section-features {
    position: relative;
    z-index: 2;
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 48px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
    perspective: 1000px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 12px 24px rgba(0,0,0,0.05), 0 24px 48px rgba(0,0,0,0.03);
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.glass-card:hover {
    transform: translateY(-8px) scale(1);
    box-shadow: 0 8px 12px rgba(0,0,0,0.1), 0 20px 40px rgba(0,0,0,0.08), 0 40px 60px rgba(0,0,0,0.05);
}

/* Card icons (CSS-drawn shapes) */
.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.icon-circle {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-teal), var(--sky-start));
    opacity: 0.8;
}

.icon-triangle {
    width: 0;
    height: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
    border-bottom: 48px solid var(--accent-coral);
    opacity: 0.8;
    background: none;
}

.icon-square {
    border-radius: 8px;
    background: linear-gradient(135deg, var(--sky-start), var(--accent-teal));
    opacity: 0.8;
}

.icon-hex {
    width: 48px;
    height: 28px;
    background: var(--accent-teal);
    position: relative;
    opacity: 0.8;
    margin-top: 14px;
    margin-bottom: 22px;
}

.icon-hex::before,
.icon-hex::after {
    content: '';
    position: absolute;
    width: 0;
    border-left: 24px solid transparent;
    border-right: 24px solid transparent;
}

.icon-hex::before {
    top: -14px;
    border-bottom: 14px solid var(--accent-teal);
}

.icon-hex::after {
    bottom: -14px;
    border-top: 14px solid var(--accent-teal);
}

.icon-diamond {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-teal));
    transform: rotate(45deg);
    border-radius: 4px;
    opacity: 0.8;
    margin: 7px;
}

.icon-pill {
    width: 48px;
    height: 24px;
    border-radius: 12px;
    background: linear-gradient(90deg, var(--accent-teal), var(--sky-start));
    opacity: 0.8;
    margin-top: 12px;
    margin-bottom: 12px;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-desc {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.card-meta {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--accent-teal);
    letter-spacing: 0.1em;
}

/* =====================
   SECTION 3: SHOWCASE STRIP
   ===================== */
.section-showcase {
    position: relative;
    z-index: 2;
    padding: 80px 40px;
    overflow: hidden;
}

.showcase-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 48px;
}

.showcase-strip {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.device {
    position: relative;
    background: linear-gradient(180deg, #e0e8f0, #c8d4e0);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 12px 24px rgba(0,0,0,0.05), 0 24px 48px rgba(0,0,0,0.03);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    overflow: hidden;
}

.device.revealed {
    opacity: 1;
    transform: translateY(0);
}

.device:hover {
    transform: scale(1.05);
}

.device-phone {
    width: 120px;
    height: 240px;
    border-radius: 20px;
    padding: 12px 8px;
}

.device-tablet {
    width: 200px;
    height: 270px;
    border-radius: 16px;
    padding: 16px 12px;
}

.device-laptop {
    width: 320px;
    height: 210px;
    border-radius: 12px 12px 0 0;
    padding: 12px 16px;
}

.device-screen {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent-teal), var(--sky-start), var(--accent-coral));
    opacity: 0.5;
    transition: opacity 0.5s ease 0.3s;
}

.device.revealed .device-screen {
    opacity: 1;
}

.device-base {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 360px;
    height: 16px;
    background: linear-gradient(180deg, #d0d8e0, #b8c4d0);
    border-radius: 0 0 4px 4px;
}

.device-gloss {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.6);
}

/* =====================
   SECTION 4: GLASS FOOTER
   ===================== */
.section-footer {
    position: relative;
    z-index: 2;
    padding: 80px 40px 120px;
    display: flex;
    justify-content: center;
}

.footer-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 60px 48px;
    max-width: 800px;
    width: 80%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.07), 0 12px 24px rgba(0,0,0,0.05), 0 24px 48px rgba(0,0,0,0.03);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease, backdrop-filter 0.8s ease;
}

.footer-glass.revealed {
    opacity: 1;
    transform: translateY(0);
}

.footer-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-text {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.footer-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-meta .meta-item {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-glass {
        padding: 40px 32px;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .showcase-strip {
        flex-direction: column;
        align-items: center;
    }

    .device-base {
        display: none;
    }

    .footer-glass {
        width: 95%;
        padding: 40px 24px;
    }
}
