/* Global Styles */
:root {
    --primary-color: #8C52FF;
    --primary-dark: #321A54;
    --primary-light: #A47EFF;
    --background-dark: #1A0B2E;
    --background-medium: #2E1A54;
    --accent-color: #FFD166;
    --text-color: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-bg: rgba(255, 255, 255, 0.15);
    --card-bg-hover: rgba(255, 255, 255, 0.2);
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --border-radius: 12px;
    --iphone-color: #1D1D1F;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
    background: linear-gradient(to bottom, var(--background-dark), var(--background-medium), var(--background-dark));
    min-height: 100vh;
    line-height: 1.6;
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-shadow: 0 1px 3px var(--shadow-color);
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: var(--space-xl);
}

h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s ease;
}

.primary-btn {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.secondary-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

section {
    padding: var(--space-xl) 0;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 90vh;
    padding: var(--space-xl) 0;
    gap: var(--space-xl);
}

.hero-content {
    flex: 1;
    max-width: 55%;
}

.logo {
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 48px;
    height: 48px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-icon.small {
    width: 32px;
    height: 32px;
}

.logo-text-container {
    display: flex;
    align-items: baseline;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-light);
}

.logo-rule {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-left: var(--space-xs);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-lg);
    max-width: 90%;
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: var(--space-xl);
}

/* iPhone Mockup */
.iphone-mockup {
    position: relative;
    width: 280px;
    height: 595px;
    background-color: var(--iphone-color);
    border-radius: 48px;
    padding: 4px;
    box-shadow: 
        -12px 30px 60px -12px rgba(0, 0, 0, 0.7),
        -5px 15px 40px -5px rgba(0, 0, 0, 0.5),
        -25px 5px 20px -5px rgba(0, 0, 0, 0.3),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 3px solid var(--iphone-color);
    transform: perspective(1000px) rotateY(-20deg) rotateX(2deg) rotateZ(-1deg) translateZ(20px) skewX(1deg);
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

/* Top reflection */
.iphone-mockup:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(
        225deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    z-index: 2;
    pointer-events: none;
    border-radius: 45px 45px 0 0;
}

/* Right side reflection (was left side) */
.iphone-mockup:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 15px;
    height: 100%;
    background: linear-gradient(
        -90deg,
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 2;
    pointer-events: none;
    border-radius: 0 48px 48px 0;
}

.iphone-mockup:hover {
    transform: perspective(1000px) rotateY(-15deg) rotateX(1deg) rotateZ(0deg) translateZ(25px) skewX(0deg);
    box-shadow: 
        -15px 35px 65px -12px rgba(0, 0, 0, 0.65),
        -8px 18px 40px -5px rgba(0, 0, 0, 0.45),
        -25px 5px 25px -5px rgba(0, 0, 0, 0.35),
        inset 0 0 0 2px rgba(255, 255, 255, 0.15),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Side edge to make the iPhone appear thicker */
.iphone-inner:before {
    content: "";
    position: absolute;
    left: -22px;
    top: 0;
    width: 28px;
    height: 100%;
    background-color: rgba(29, 29, 31, 0.85);
    transform: skewY(45deg) translateZ(-10px) translateX(-7px);
    transform-origin: top left;
    z-index: 3;
    box-shadow: inset 2px 0 3px rgba(0, 0, 0, 0.3);
    border-radius: 5px 0 0 5px;
}

/* Left side edge to enhance 3D effect */
.iphone-inner:after {
    content: "";
    position: absolute;
    right: -3px;
    top: 0;
    width: 4px;
    height: 100%;
    background-color: rgba(40, 40, 42, 0.9);
    transform: translateZ(1px);
    z-index: 2;
    border-radius: 2px;
    box-shadow: inset -1px 0 2px rgba(0, 0, 0, 0.4);
}

/* Volume buttons on the side edge (new selector to avoid conflict) */
.iphone-mockup .volume-buttons {
    position: absolute;
    left: -6px;
    top: 100px;
    width: 3px;
    height: 60px;
    background-color: rgba(20, 20, 20, 0.9);
    transform: translateZ(14px);
    z-index: 4;
    border-radius: 1px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5),
                0 100px 0 rgba(20, 20, 20, 0.9),
                0 100px 2px rgba(0, 0, 0, 0.5),
                0 160px 0 rgba(20, 20, 20, 0.9),
                0 160px 2px rgba(0, 0, 0, 0.5);
}

/* Create a new element for the bottom edge */
.bottom-edge {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 18px;
    background-color: rgba(29, 29, 31, 0.8);
    transform: skewX(45deg) translateZ(-5px) translateY(4px);
    transform-origin: bottom right;
    z-index: 3;
    border-radius: 0 0 40px 40px;
    box-shadow: inset 0 -2px 3px rgba(0, 0, 0, 0.3), 0 4px 5px -2px rgba(0, 0, 0, 0.5);
}

.iphone-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    overflow: hidden;
    transform: translateZ(1px);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--background-dark);
}

.app-screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.iphone-notch {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background-color: var(--iphone-color);
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* How It Works Section */
.how-it-works {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
}

.step {
    flex: 1;
    text-align: center;
    padding: var(--space-md);
}

.step-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: var(--space-md);
}

/* Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background-color: var(--card-bg);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background-color: var(--card-bg-hover);
}

.feature-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: var(--space-md);
}

/* Beta Sign-up Section */
.beta-signup {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    border-radius: var(--border-radius);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.form-group {
    display: flex;
    margin-top: var(--space-lg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.form-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    font-size: 1rem;
    outline: none;
}

.form-group button {
    border-radius: 0;
}

.privacy-note {
    font-size: 0.8rem;
    margin-top: var(--space-sm);
    color: var(--text-tertiary);
}

/* Donation Section */
.donation {
    text-align: center;
    padding: var(--space-xl) 0;
}

.donation-subtitle {
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.donation-options {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.donation-btn {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    min-width: 100px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: 600;
}

.donation-btn:hover {
    background-color: var(--card-bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.donation-btn.custom {
    background-color: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.donation-features {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
}

.donation-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--text-secondary);
}

.donation-feature i {
    color: var(--accent-color);
}

/* Footer */
footer {
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.footer-logo {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-logo .logo-text {
    font-size: 1.75rem;
}

.footer-logo .logo-rule {
    font-size: 1.25rem;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--text-color);
    transform: translateY(-2px);
}

.footer-links a i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* Thank You Message Styling */
.thank-you-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thank-you-content {
    background: linear-gradient(to bottom, #2E1A54, #1A0B2E);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.thank-you-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #FFD166;
}

.thank-you-content p {
    margin-bottom: 1.5rem;
}

.close-thank-you {
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg) 0;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-image {
        padding-left: 0;
        margin-top: var(--space-xl);
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step {
        margin-bottom: var(--space-lg);
    }
    
    .donation-features {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .iphone-mockup {
        transform: perspective(1000px) rotateY(-10deg) rotateX(2deg) rotateZ(0deg) translateZ(10px) skewX(0deg);
    }
    
    .iphone-mockup:hover {
        transform: perspective(1000px) rotateY(-7deg) rotateX(1deg) rotateZ(0deg) translateZ(15px) skewX(0deg);
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input {
        width: 100%;
        border-radius: var(--border-radius) var(--border-radius) 0 0;
    }
    
    .form-group button {
        width: 100%;
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }
    
    .donation-options {
        flex-direction: column;
        align-items: center;
    }
    
    .donation-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .iphone-mockup {
        transform: perspective(1000px) rotateY(-7deg) rotateX(2deg) rotateZ(0deg) translateZ(5px) skewX(0deg);
        width: 260px;
        height: 550px;
    }
    
    .iphone-mockup:hover {
        transform: perspective(1000px) rotateY(-5deg) rotateX(1deg) rotateZ(0deg) translateZ(10px) skewX(0deg);
    }
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
} 
