/* digitaltelomere.com - Glassmorphism Frosted SaaS */
/* Palette: #1e3a5f, #0d4f4f, #14b8a6, #f0f9ff, #94a3b8, #ffffff */
/* Fonts: Space Grotesk" (Google Fonts), Inter" (Google Fonts), Fira Code" (Google Fonts) -- labels. */

:root {
    --deep-blue: #1e3a5f;
    --dark-teal: #0d4f4f;
    --teal: #14b8a6;
    --text: #f0f9ff;
    --secondary: #94a3b8;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-blur: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(180deg, #1e3a5f 0%, #0d4f4f 50%, #1e3a5f 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === Ambient Orbs === */
.orbs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 55%);
    top: 5%;
    left: 15%;
    animation: orbFloat1 25s ease-in-out infinite;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.10) 0%, transparent 55%);
    top: 40%;
    right: 5%;
    animation: orbFloat2 30s ease-in-out infinite;
}

.orb-3 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(30, 58, 95, 0.25) 0%, transparent 55%);
    bottom: 15%;
    left: 35%;
    animation: orbFloat3 22s ease-in-out infinite;
}

.orb-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.08) 0%, transparent 55%);
    top: 60%;
    left: -5%;
    animation: orbFloat4 28s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25px, 30px) scale(1.03); }
    66% { transform: translate(15px, -15px) scale(0.97); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, 25px) scale(0.96); }
    66% { transform: translate(-30px, -10px) scale(1.04); }
}

@keyframes orbFloat4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.06); }
    66% { transform: translate(-15px, 20px) scale(0.94); }
}

/* === Particles === */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(240, 249, 255, 0.2);
    border-radius: 50%;
    animation: particleDrift linear infinite;
}

.particle.large {
    width: 3px;
    height: 3px;
    background: rgba(20, 184, 166, 0.15);
}

@keyframes particleDrift {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    8% {
        opacity: 0.4;
    }
    92% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-100vh) translateX(40px);
        opacity: 0;
    }
}

/* === Grid Overlay === */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* === Glass Panel Base === */
.glass-panel {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.glass-panel:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(255, 255, 255, 0.22);
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem;
}

.hero-inner {
    position: relative;
}

.hero-panel {
    padding: 3.5rem 4rem;
    text-align: center;
    max-width: 580px;
    position: relative;
    overflow: hidden;
}

.hero-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.06) 0%, transparent 60%);
    animation: heroPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroPulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(0.8); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.brand-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.brand-icon svg {
    filter: drop-shadow(0 0 8px rgba(20, 184, 166, 0.3));
}

.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: #f0f9ff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: #94a3b8;
    margin-top: 0.85rem;
    line-height: 1.6;
}

/* === Data Strand === */
.data-strand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2.5rem 1.5rem;
    position: relative;
    z-index: 1;
}

.strand-line {
    height: 1px;
    flex: 1;
    max-width: 120px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.3), transparent);
}

.strand-dots {
    display: flex;
    gap: 6px;
    padding: 0 12px;
}

.strand-dot {
    width: 3px;
    height: 3px;
    background: #14b8a6;
    border-radius: 50%;
    opacity: 0.4;
    animation: strandPulse 3s ease-in-out infinite;
}

.strand-dot:nth-child(odd) {
    animation-delay: 0.5s;
}

.strand-dot:nth-child(3n) {
    animation-delay: 1s;
    opacity: 0.6;
}

@keyframes strandPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.3); }
}

.data-strand-alt .strand-dot {
    background: #94a3b8;
}

/* === Section Shared === */
.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: #f0f9ff;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* === Features === */
.features {
    max-width: 860px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

.features-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card-large {
    grid-column: 1 / -1;
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon svg {
    opacity: 0.85;
}

.feature-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #f0f9ff;
    margin-bottom: 0.6rem;
}

.feature-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.7;
}

/* === Protection Stack === */
.protection {
    padding: 4rem 1.5rem 5rem;
    position: relative;
    z-index: 1;
}

.protection-inner {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.stack-container {
    margin: 2.5rem auto;
    display: flex;
    justify-content: center;
}

.stack {
    position: relative;
    width: 320px;
    height: 220px;
}

.stack-layer {
    position: absolute;
    width: 280px;
    height: 140px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 12px 16px;
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.stack-layer .layer-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: #94a3b8;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity 0.4s ease;
}

.stack:hover .stack-layer .layer-label {
    opacity: 0.8;
}

.layer-1 {
    background: rgba(255, 255, 255, 0.03);
    top: 0;
    left: calc(50% - 140px);
    z-index: 1;
}

.layer-2 {
    background: rgba(255, 255, 255, 0.05);
    top: 20px;
    left: calc(50% - 132px);
    z-index: 2;
}

.layer-3 {
    background: rgba(255, 255, 255, 0.08);
    top: 40px;
    left: calc(50% - 124px);
    z-index: 3;
}

.layer-4 {
    background: rgba(255, 255, 255, 0.12);
    top: 60px;
    left: calc(50% - 116px);
    z-index: 4;
    border-color: rgba(20, 184, 166, 0.30);
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.06);
}

.stack:hover .layer-1 { transform: translateY(-6px) translateX(-6px); }
.stack:hover .layer-2 { transform: translateY(-3px) translateX(-3px); }
.stack:hover .layer-3 { transform: translateY(3px) translateX(3px); }
.stack:hover .layer-4 {
    transform: translateY(6px) translateX(6px);
    border-color: rgba(20, 184, 166, 0.50);
    box-shadow: 0 0 40px rgba(20, 184, 166, 0.10);
}

.stack-caption {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.stack-caption .fira {
    font-family: 'Fira Code', monospace;
    color: #14b8a6;
}

/* === Metrics === */
.metrics {
    padding: 3rem 1.5rem 4rem;
    position: relative;
    z-index: 1;
}

.metrics-header {
    text-align: center;
    margin-bottom: 2rem;
}

.metrics-row {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.metric-card {
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.25), transparent);
}

.metric-value {
    font-family: 'Fira Code', monospace;
    font-size: clamp(2.2rem, 4.5vw, 3rem);
    color: #14b8a6;
    font-weight: 400;
    line-height: 1;
}

.metric-suffix {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    color: #14b8a6;
    opacity: 0.8;
}

.metric-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* === Close Section === */
.close-section {
    padding: 5rem 1.5rem 3rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.close-panel {
    padding: 3rem 3.5rem;
    text-align: center;
    max-width: 480px;
    position: relative;
}

.close-icon {
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: center;
}

.close-icon svg {
    filter: drop-shadow(0 0 12px rgba(20, 184, 166, 0.25));
}

.close-message {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: #f0f9ff;
    line-height: 1.3;
}

.close-sub {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-top: 0.75rem;
    opacity: 0.7;
}

/* === Footer === */
.footer {
    padding: 2rem 1.5rem 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.65rem;
    color: #94a3b8;
    opacity: 0.5;
    letter-spacing: 0.03em;
}

/* === Fade In Animation === */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.features-grid .fade-in:nth-child(2) { transition-delay: 0.12s; }
.features-grid .fade-in:nth-child(3) { transition-delay: 0.24s; }
.metrics-row .fade-in:nth-child(2) { transition-delay: 0.12s; }
.metrics-row .fade-in:nth-child(3) { transition-delay: 0.24s; }

/* === Responsive === */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-large {
        grid-column: auto;
    }

    .metrics-row {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        padding: 2.5rem 2rem;
    }

    .stack {
        width: 260px;
    }

    .stack-layer {
        width: 230px;
    }

    .layer-1 { left: calc(50% - 115px); }
    .layer-2 { left: calc(50% - 107px); }
    .layer-3 { left: calc(50% - 99px); }
    .layer-4 { left: calc(50% - 91px); }

    .close-panel {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero-panel {
        padding: 2rem 1.5rem;
    }

    .feature-card {
        padding: 24px;
    }

    .metric-card {
        padding: 24px 16px;
    }

    .strand-dots {
        gap: 4px;
    }

    .strand-dot {
        width: 2px;
        height: 2px;
    }
}
