:root {
    --primary-orange: #f58220;
    --background-black: #000000;
    --text-white: #ffffff;
    --gray-dark: #2c2c2c;
    --correct-green: #6aaa64;
    --present-yellow: #c9b458;
    --absent-gray: #3a3a3c;
    --tile-empty: #121213;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(245, 130, 32, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(245, 130, 32, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
}

.main-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    padding: 60px 20px 30px;
    text-align: center;
}

.logo {
    max-width: 140px;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-orange);
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* Rešetka simulacije */
.grid-mockup {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    margin: 40px 0;
}

.row {
    display: flex;
    flex-direction: row; 
    gap: 8px;
}

.tile {
    width: 55px;
    height: 55px;
    border: 2px solid var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
    background-color: var(--tile-empty);
}

/* Animacije simulacije */
.row-1 .tile { animation: flip 0.5s ease forwards; animation-delay: calc(var(--delay) * 0.1s + 0.5s); opacity: 0; }
.row-2 .tile { animation: flip 0.5s ease forwards; animation-delay: calc(var(--delay) * 0.1s + 1.8s); opacity: 0; }
.row-3 .tile { animation: flip 0.5s ease forwards; animation-delay: calc(var(--delay) * 0.1s + 3.1s); opacity: 0; }
.row-4 .tile { animation: flip 0.5s ease forwards; animation-delay: calc(var(--delay) * 0.1s + 4.4s); opacity: 0; }
.row-5 .tile { animation: flip 0.5s ease forwards; animation-delay: calc(var(--delay) * 0.1s + 5.7s); opacity: 0; }

@keyframes flip {
    0% { transform: rotateX(0); opacity: 0; }
    45% { transform: rotateX(90deg); opacity: 1; }
    100% { transform: rotateX(0); opacity: 1; }
}

.correct { background-color: var(--correct-green) !important; border-color: var(--correct-green); }
.present { background-color: var(--present-yellow) !important; border-color: var(--present-yellow); }
.absent { background-color: var(--absent-gray) !important; border-color: var(--absent-gray); }

/* Primeri */
.example-item {
    margin-bottom: 25px;
}

.example-row {
    display: flex;
    flex-direction: row; 
    justify-content: center;
    gap: 8px;
    margin: 15px 0 8px 0;
}

.examples .tile {
    opacity: 1; 
}
.header-download {
    display: none; /* Skrito privzeto (za namizne računalnike) */
    width: 100%; /* Zagotovi, da zavzame celotno širino */
    justify-content: center; /* Postavi gumb točno na sredino */
    margin-top: 40px; /* Povečan razmik nad gumbom (prilagodite po želji) */
    animation: pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation-delay: 0.3s;
    animation-fill-mode: both;
}
/* Ostalo */
main { padding: 20px; text-align: center; }
section { margin-bottom: 60px; }
h2 { color: var(--primary-orange); margin-bottom: 25px; font-size: 2rem; }

.instructions-list { list-style: none; text-align: left; display: inline-block; max-width: 500px; }
.instructions-list li { margin-bottom: 15px; padding-left: 35px; position: relative; }
.instructions-list li::before { content: "●"; position: absolute; left: 10px; color: var(--primary-orange); }

.animate-pop { animation: pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes pop { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.store-button {
    border: 2px solid var(--primary-orange);
    color: white;
    padding: 10px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: 0.3s;
}

.store-button:hover { background: var(--primary-orange); color: black; transform: translateY(-3px); }
.store-button .icon { width: 32px; height: 32px; fill: currentColor; margin-right: 15px; }
.download-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.top-text { font-size: 0.75rem; }
.bottom-text { font-size: 1.2rem; font-weight: bold; }

footer { 
    padding: 20px 20px; 
    opacity: 1 !important; /* Forces the footer to be fully visible */
    border-top: 1px solid var(--gray-dark); 
    text-align: center;
}

.footer-links {
    margin-top: 20px;
}

@media (max-width: 600px) {
    h1 { font-size: 2.5rem; }
    .tile { width: 45px; height: 45px; font-size: 1.4rem; }
    .main-wrapper { background: black; }
}

/* --- CAROUSEL STYLES --- */
.screenshots-section {
    margin-top: 40px;
    margin-bottom: 80px;
    text-align: center;
}

.carousel-container {
    display: flex;
    flex-direction: row; 
    flex-wrap: nowrap; 
    gap: 40px; 
    overflow-x: auto; 
    overflow-y: hidden;
    width: 100%;
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth;
    padding: 40px calc(50% - 140px);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    width: 280px; 
    min-width: 280px; 
    flex-shrink: 0;   
    scroll-snap-align: center; 
    position: relative;
    transition: transform 0.3s ease;
}

.phone-img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6));
    border-radius: 40px;
    user-select: none; 
    -webkit-user-drag: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--gray-dark);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot.active {
    background-color: var(--primary-orange);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(245, 130, 32, 0.5);
}

@media (max-width: 600px) {
    .carousel-item {
        width: 220px; 
        min-width: 220px;
    }
    .carousel-container {
        padding: 30px calc(50% - 110px); 
        gap: 20px;
    }
}

/* --- POLICY PAGE STYLES --- */
.privacy-link {
    color: #f58220 !important; /* Bright orange */
    text-decoration: underline !important;
    font-size: 1.1rem !important; /* Slightly larger for visibility */
    font-weight: bold !important;
    display: inline-block;
}

.privacy-link:visited {
    color: #f58220 !important; /* Prevents it from turning purple */
}

.privacy-link:hover {
    color: #ffffff !important; /* Turns white on hover */
}

.policy-text {
    text-align: left;
    max-width: 700px;
    margin: 0 auto;
}

.policy-text h2 {
    font-size: 1.8rem;
    margin-top: 40px;
    margin-bottom: 15px;
}

.policy-text h3 {
    color: var(--primary-orange);
    margin-top: 25px;
    margin-bottom: 10px;
}

.policy-text p {
    margin-bottom: 15px;
    opacity: 0.9;
}

.policy-list {
    margin-left: 20px;
    margin-bottom: 20px;
    list-style-type: square;
}

.policy-list li {
    margin-bottom: 10px;
    opacity: 0.9;
}