/* Americano Scoreboard Specific Styles */

/* Base Styles */
:root {
    --felt-green: #35654d;
    --felt-dark: #1e3c2f;
    --card-white: #fdfdfd;
    --card-red: #e74c3c;
    --card-black: #2c3e50;
    --gold: #f1c40f;
    --gold-dark: #d4ac0d;
    --text-on-green: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.3);
}

body {
    background-color: var(--felt-green);
    background-image: radial-gradient(circle at 50% 30%, #4a8a6a 0%, var(--felt-green) 40%, var(--felt-dark) 100%);
    color: var(--text-on-green);
    overflow-x: hidden;
    font-family: 'Poppins', sans-serif;
}

/* Felt Texture Overlay */
.felt-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3h1v1H1V3zm2-2h1v1H3V1z' fill='%23000000' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 6rem; /* Less padding since no header */
    padding-bottom: 6rem;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero__content {
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* App Icon Styling */
.app-icon-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2.5rem;
    perspective: 1000px;
    animation: icon-float 6s ease-in-out infinite;
}

.app-icon {
    width: 100%;
    height: 100%;
    border-radius: 40px; /* Squircle shape like iOS */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.2);
    display: block;
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-icon-wrapper:hover .app-icon {
    transform: scale(1.05) rotate(2deg);
}

.app-icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.8;
    animation: glow-pulse 4s infinite alternate;
}

@keyframes icon-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes glow-pulse {
    0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.hero__title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-on-green);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 1rem;
    letter-spacing: -1px;
    background: linear-gradient(to bottom, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    font-weight: 300;
}

.hero__buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.app-btn {
    background-color: var(--card-black);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 200px;
}

.app-btn i {
    font-size: 2rem;
}

.app-btn span {
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.2;
}

.app-btn span strong {
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
}

.app-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.4);
}

.app-btn.apple:hover {
    background-color: #000;
}

.app-btn.google:hover {
    background-color: #333;
}

/* Floating Elements (Background) */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.card-float {
    position: absolute;
    width: 90px;
    height: 126px; /* 3.5x2.5 ratio roughly */
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    opacity: 0.15; /* Subtle */
    user-select: none;
    border: 1px solid rgba(0,0,0,0.1);
}

.card-float::before, .card-float::after {
    content: '';
    position: absolute;
    font-size: 0.8rem;
}

/* Positioning specific cards */
.card-1 { top: 15%; left: 10%; animation: float-slow 8s infinite ease-in-out; }
.card-2 { top: 25%; right: 15%; animation: float-medium 7s infinite ease-in-out 1s; }
.card-3 { bottom: 20%; left: 20%; animation: float-fast 9s infinite ease-in-out 0.5s; }
.card-4 { bottom: 30%; right: 10%; animation: float-medium 10s infinite ease-in-out 2s; }

.chip {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 6px dashed rgba(255,255,255,0.8);
    box-shadow: inset 0 0 0 4px rgba(0,0,0,0.2), 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0.2;
}

.chip-1 { top: 40%; left: 5%; animation: spin-float 12s linear infinite; }
.chip-2 { bottom: 15%; right: 25%; animation: spin-float-reverse 15s linear infinite; }
.chip-3 { top: 10%; right: 30%; animation: spin-float 10s linear infinite 2s; }

.card-float.red { color: var(--card-red); }
.card-float.black { color: var(--card-black); }
.chip.gold { background-color: var(--gold); border-color: rgba(255,255,255,0.6); }
.chip.blue { background-color: #3498db; border-color: rgba(255,255,255,0.6); }
.chip.red { background-color: var(--card-red); border-color: rgba(255,255,255,0.6); }

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-20px) rotate(-5deg); }
}
@keyframes float-medium {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-25px) rotate(20deg); }
}
@keyframes float-fast {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(0deg); }
}
@keyframes spin-float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}
@keyframes spin-float-reverse {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(-180deg); }
    100% { transform: translateY(0) rotate(-360deg); }
}

/* Features Section */
.features {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__title {
    font-size: 2.5rem;
    color: var(--text-on-green);
    margin-bottom: 0.5rem;
}

.section__subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: default;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.4);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--gold);
    transform: scale(1.1) rotate(5deg);
}

.feature-icon {
    font-size: 2rem;
    color: var(--gold);
    transition: color 0.3s ease;
}

.feature-card:hover .feature-icon {
    color: var(--felt-dark);
}

.feature-title {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.feature-desc {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Privacy Policy Section */
.privacy {
    padding: 6rem 0;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.privacy__container {
    background: white;
    color: #333;
    padding: 4rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.privacy__title {
    text-align: center;
    color: var(--card-black);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.privacy__content h3 {
    color: var(--card-black);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.privacy__content h4 {
    color: var(--card-black);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    opacity: 0.9;
}

.privacy__content p, .privacy__content li {
    line-height: 1.7;
    margin-bottom: 0.8rem;
    color: #555;
    font-size: 1rem;
}

.privacy__content ul {
    margin-left: 1.5rem;
    list-style-type: disc;
    margin-bottom: 1.5rem;
}

.privacy-divider {
    margin: 2.5rem 0;
    border: none;
    height: 1px;
    background: #e0e0e0;
}

/* Footer */
.app-footer {
    background-color: var(--felt-dark);
    padding: 3rem 0;
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* Scroll Animation Class */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Responsive */
@media screen and (max-width: 768px) {
    .hero__title {
        font-size: 2.5rem;
    }
    
    .app-icon-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .privacy__container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .features__grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}
