@font-face {
  font-family: 'BlueHighway';
  src: url('fonts/BlueHighway.otf') format('opentype');
  font-weight: normal;  
  font-style: normal;   
}
*{
    box-sizing: border-box;
    margin: 0; 
    padding: 0;
}

a{
	text-decoration: none;
    padding: 0;
    border: none;
    font: inherit;
    color: inherit;
}
html {
    font-family: 'BlueHighway', monospace;
    overflow-x: hidden;
    overflow-y: scroll;
    -ms-overflow-style: none;  
    scroll-behavior: smooth;
}

:root {
    --bg-sage: #DAE8D5;  
    --app-green: #0F803C; 
    --app-red: #A01010;   
    --app-dark: #1C1C1E; 
}

body {
    background-color: var(--bg-sage);
    color: var(--app-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo {
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-cta {
    text-decoration: none;
    color: var(--app-dark);
    font-weight: 600;
    border: 2px solid var(--app-dark);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column-reverse; 
    align-items: center;
    min-height: 80vh;
}



.hero-content {
    flex: 1;
    padding-top: 2rem;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 450px;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.button-row {
    display: flex;
    gap: 1rem;
}

.btn {
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.45s ease;
    background-color: var(--app-dark);
    color: white;
}

.btn:hover {
    background: #fff;
    color: var(--app-dark);
}

/* CSS 3D Cylinder Visual */
.hero-visual {
    flex: 1;
    display: flex;
    flex-direction: column; 
    justify-content: center;
    align-items: center;
    perspective: 1000px; 
    height: 450px;
    position: relative;
    z-index: 10; 
}

/* The wrapper handles the rotation */
.cylinder-wrapper {
    position: relative;
    cursor: pointer;
    width: 160px;
    height: 300px;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); 
}

.cylinder-wrapper.flipped {
    transform: rotateZ(180deg);
}

/* The cylinder shape */
.cylinder {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: inset -10px 0 20px rgba(0,0,0,0.2);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(1px); 
}

.cylinder-top {
    flex: 1;
    background: var(--app-green);
    background: linear-gradient(90deg, #1aa350 0%, var(--app-green) 50%, #0a5a2a 100%);
}

.cylinder-band {
    height: 12px;
    background: #000;
}

.cylinder-bottom {
    flex: 1;
    background: var(--app-red);
    background: linear-gradient(90deg, #c72626 0%, var(--app-red) 50%, #690a0a 100%);
}

.shadow {
    width: 140px;
    height: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    margin-top: 20px;
    filter: blur(5px);
}


.caption {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
    user-select: none; 
}

body {
    transition: background-color 0.6s ease;
}
body.red-mode {
    background-color: #ffcdd2; 
}

/* How It Works */
.how-it-works {
    padding: 5rem 5%;
    background-color: rgba(255,255,255,0.4);
}

.how-it-works h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    background-color: #fff;
}
.light-green{
    background: var(--bg-sage);

}
.light-red{
    background: var(--bg-red);

}
.status-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.status-dot.green { background-color: var(--app-green); box-shadow: 0 0 10px var(--app-green); }
.status-dot.red { background-color: var(--app-red); box-shadow: 0 0 10px var(--app-red); }

.story {
    padding: 6rem 5%;
    background-color: var(--app-dark);
    color: #fff;
    text-align: center;
    transition: background-color 0.6s ease, color 0.6s ease;
}


body.red-mode .story h2 {
    color: #ff5252;
}

.story-content {
    max-width: 600px;
    margin: 0 auto;
}

.story h2 {
    color: var(--app-green); 
    font-size: 1rem;
    margin-bottom: 1rem;
}

.story h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.story p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
footer {
    padding: 5rem 5%;
    text-align: center;
}

footer h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.app-badges {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.store-badge {
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.45s ease;
    background-color: var(--app-dark);
}

.store-badge:hover {
    background: #fff;
    color: var(--app-dark);
}


.copyright {
    margin-top: 4rem;
    font-size: 0.8rem;
    opacity: 0.5;
}

@media screen and (min-width: 850px) {
    .hero {
        flex-direction: row;
        justify-content: space-between;
        padding: 2rem 10% 2rem 15%;

    }
}


@media screen and (max-width: 850px) {
    .hero {
        padding: 2rem 5% 2rem 10%;

    }
}
@media screen and (max-width: 550px) {
    .hero-content h1{
        font-size: 2rem;
    }
    .how-it-works h2{
        font-size: 2rem;

    }
    footer h2{
        font-size: 2rem;

    }
    .story h3{
        font-size: 1.5rem;

    }

}