/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(to bottom right, #000000, #09090b, #0a0a0a);
    color: #ffffff;
    line-height: 1.6;
}

/* Page Container */
.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    width: 100%;
}

/* Hero Section */
.hero-section {
    margin-bottom: 4rem;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
}

.hero-text-normal {
    display: inline-block;
}

/* Glitch Effect for "foo" */
.glitch-text {
    position: relative;
    display: inline-block;
    animation: glitch-skew 1s infinite;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff00de;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00de;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
        transform: skew(0.45deg);
    }
    5% {
        clip: rect(70px, 9999px, 71px, 0);
        transform: skew(0.24deg);
    }
    10% {
        clip: rect(88px, 9999px, 10px, 0);
        transform: skew(0.95deg);
    }
    15% {
        clip: rect(23px, 9999px, 85px, 0);
        transform: skew(0.85deg);
    }
    20% {
        clip: rect(47px, 9999px, 97px, 0);
        transform: skew(0.12deg);
    }
    25% {
        clip: rect(99px, 9999px, 46px, 0);
        transform: skew(0.34deg);
    }
    30% {
        clip: rect(16px, 9999px, 2px, 0);
        transform: skew(0.76deg);
    }
    35% {
        clip: rect(58px, 9999px, 27px, 0);
        transform: skew(0.55deg);
    }
    40% {
        clip: rect(35px, 9999px, 65px, 0);
        transform: skew(0.67deg);
    }
    45% {
        clip: rect(82px, 9999px, 19px, 0);
        transform: skew(0.42deg);
    }
    50% {
        clip: rect(11px, 9999px, 73px, 0);
        transform: skew(0.91deg);
    }
    55% {
        clip: rect(64px, 9999px, 38px, 0);
        transform: skew(0.28deg);
    }
    60% {
        clip: rect(92px, 9999px, 5px, 0);
        transform: skew(0.63deg);
    }
    65% {
        clip: rect(41px, 9999px, 56px, 0);
        transform: skew(0.19deg);
    }
    70% {
        clip: rect(77px, 9999px, 84px, 0);
        transform: skew(0.73deg);
    }
    75% {
        clip: rect(25px, 9999px, 62px, 0);
        transform: skew(0.38deg);
    }
    80% {
        clip: rect(53px, 9999px, 14px, 0);
        transform: skew(0.82deg);
    }
    85% {
        clip: rect(69px, 9999px, 91px, 0);
        transform: skew(0.51deg);
    }
    90% {
        clip: rect(8px, 9999px, 49px, 0);
        transform: skew(0.26deg);
    }
    95% {
        clip: rect(96px, 9999px, 33px, 0);
        transform: skew(0.69deg);
    }
    100% {
        clip: rect(44px, 9999px, 78px, 0);
        transform: skew(0.15deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
        transform: skew(0.72deg);
    }
    5% {
        clip: rect(22px, 9999px, 44px, 0);
        transform: skew(0.33deg);
    }
    10% {
        clip: rect(89px, 9999px, 12px, 0);
        transform: skew(0.87deg);
    }
    15% {
        clip: rect(51px, 9999px, 76px, 0);
        transform: skew(0.41deg);
    }
    20% {
        clip: rect(7px, 9999px, 93px, 0);
        transform: skew(0.64deg);
    }
    25% {
        clip: rect(74px, 9999px, 18px, 0);
        transform: skew(0.22deg);
    }
    30% {
        clip: rect(36px, 9999px, 59px, 0);
        transform: skew(0.78deg);
    }
    35% {
        clip: rect(98px, 9999px, 29px, 0);
        transform: skew(0.56deg);
    }
    40% {
        clip: rect(13px, 9999px, 81px, 0);
        transform: skew(0.39deg);
    }
    45% {
        clip: rect(67px, 9999px, 3px, 0);
        transform: skew(0.84deg);
    }
    50% {
        clip: rect(42px, 9999px, 95px, 0);
        transform: skew(0.17deg);
    }
    55% {
        clip: rect(86px, 9999px, 54px, 0);
        transform: skew(0.61deg);
    }
    60% {
        clip: rect(19px, 9999px, 72px, 0);
        transform: skew(0.29deg);
    }
    65% {
        clip: rect(63px, 9999px, 8px, 0);
        transform: skew(0.75deg);
    }
    70% {
        clip: rect(31px, 9999px, 88px, 0);
        transform: skew(0.43deg);
    }
    75% {
        clip: rect(94px, 9999px, 26px, 0);
        transform: skew(0.68deg);
    }
    80% {
        clip: rect(48px, 9999px, 61px, 0);
        transform: skew(0.32deg);
    }
    85% {
        clip: rect(5px, 9999px, 97px, 0);
        transform: skew(0.86deg);
    }
    90% {
        clip: rect(79px, 9999px, 37px, 0);
        transform: skew(0.24deg);
    }
    95% {
        clip: rect(15px, 9999px, 69px, 0);
        transform: skew(0.52deg);
    }
    100% {
        clip: rect(91px, 9999px, 46px, 0);
        transform: skew(0.71deg);
    }
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg, 0deg);
    }
    10% {
        transform: skew(-1deg, 0deg);
    }
    20% {
        transform: skew(0.5deg, 0deg);
    }
    30% {
        transform: skew(-0.5deg, 0deg);
    }
    40% {
        transform: skew(1deg, 0deg);
    }
    50% {
        transform: skew(-1deg, 0deg);
    }
    60% {
        transform: skew(0.5deg, 0deg);
    }
    70% {
        transform: skew(-0.5deg, 0deg);
    }
    80% {
        transform: skew(1deg, 0deg);
    }
    90% {
        transform: skew(-1deg, 0deg);
    }
    100% {
        transform: skew(0deg, 0deg);
    }
}

/* Apps Container */
.apps-container {
    width: 100%;
    max-width: 64rem;
}

.apps-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

/* Apps Grid */
.apps-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

/* App Card (link: icon + name) */
.app-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    background-color: rgba(24, 24, 27, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid #27272a;
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.app-card:hover {
    border-color: #52525b;
    transform: scale(1.05);
}

.app-card:focus {
    outline: none;
}

.app-card:focus-visible {
    outline: 2px solid #a1a1aa;
    outline-offset: 4px;
    border-color: #71717a;
}

/* App Logo */
.app-logo {
    width: 6rem;
    height: 6rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    background-color: #27272a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* App Name */
.app-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0;
    color: #ffffff;
}

/* Store Buttons */
.store-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.store-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #e4e4e7;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.store-button:hover {
    background-color: #ffffff;
}

.store-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Footer */
.footer {
    padding: 1.5rem 1rem;
    text-align: center;
    color: #71717a;
    border-top: 1px solid #18181b;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.footer-link {
    color: #71717a;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    display: inline-block;
}

.footer-link.glitch-link {
    animation: glitch-skew 1s infinite;
}

.footer-link.glitch-link::before,
.footer-link.glitch-link::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    pointer-events: none;
}

.footer-link.glitch-link::before {
    left: 2px;
    text-shadow: -2px 0 #ff00de;
    clip: rect(0, 9999px, 100%, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.footer-link.glitch-link::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00de;
    clip: rect(0, 9999px, 100%, 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

.footer-link:hover {
    color: #e4e4e7;
}

.footer-separator {
    color: #71717a;
}

/* Content Pages (Imprint, Privacy) */
.content-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    max-width: 64rem;
    margin: 0 auto;
    padding: 3rem 1rem;
    width: 100%;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #71717a;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    z-index: 1;
}

.back-link.glitch-link {
    animation: glitch-skew 1s infinite;
}

.back-link.glitch-link::before,
.back-link.glitch-link::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    pointer-events: none;
    z-index: -1;
}

.back-link.glitch-link::before {
    left: 2px;
    text-shadow: -2px 0 #ff00de;
    clip: rect(0, 9999px, 100%, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.back-link.glitch-link::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00de;
    clip: rect(0, 9999px, 100%, 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

.back-link:hover {
    color: #e4e4e7;
}

.content-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.content-section {
    margin-bottom: 2rem;
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.content-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.content-section p {
    color: #a1a1aa;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-section .glitch-text {
    color: #a1a1aa;
}

.content-section ul {
    list-style-type: disc;
    list-style-position: inside;
    color: #a1a1aa;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.content-section a {
    color: #71717a;
    text-decoration: underline;
    transition: color 0.2s ease;
    position: relative;
    display: inline-block;
}

.content-section a.glitch-link {
    animation: glitch-skew 1s infinite;
    color: #a1a1aa !important;
}

.content-section a.glitch-link::before,
.content-section a.glitch-link::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    pointer-events: none;
}

.content-section a.glitch-link::before {
    left: 2px;
    text-shadow: -2px 0 #ff00de;
    clip: rect(0, 9999px, 100%, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.content-section a.glitch-link::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00de;
    clip: rect(0, 9999px, 100%, 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

.content-section a.glitch-link:link,
.content-section a.glitch-link:visited,
.content-section a.glitch-link:active,
.content-section a.glitch-link:hover {
    color: #a1a1aa !important;
}

.content-section a:hover {
    color: #e4e4e7;
}

/* Override link color for glitch-text email */
.content-section p a.glitch-text,
.content-section p a.glitch-text:link,
.content-section p a.glitch-text:visited,
.content-section p a.glitch-text:active,
.content-section p a.glitch-text:hover,
.content-section a.glitch-text,
.content-section a.glitch-text:link,
.content-section a.glitch-text:visited,
.content-section a.glitch-text:active,
.content-section a.glitch-text:hover {
    color: #a1a1aa !important;
    text-decoration: none !important;
}

.content-nav {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #18181b;
}

.content-nav-link {
    color: #71717a;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    display: inline-block;
}

.content-nav-link.glitch-link {
    animation: glitch-skew 1s infinite;
}

.content-nav-link.glitch-link::before,
.content-nav-link.glitch-link::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    pointer-events: none;
}

.content-nav-link.glitch-link::before {
    left: 2px;
    text-shadow: -2px 0 #ff00de;
    clip: rect(0, 9999px, 100%, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.content-nav-link.glitch-link::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00de;
    clip: rect(0, 9999px, 100%, 0);
    animation: glitch-anim2 2s infinite linear alternate-reverse;
}

.content-nav-link:hover {
    color: #e4e4e7;
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-title {
        font-size: 3.75rem;
    }
    
    .apps-heading {
        font-size: 2rem;
    }
    
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .content-title {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 6rem;
    }
    
    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


