:root {
    --bg-color: #0f172a;
    /* Dark slate blue/gray */
    --surface-color: #1e293b;
    --primary-color: #38bdf8;
    /* Sky blue */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #f472b6;
    /* Pink */
    --font-family: 'Outfit', sans-serif;
    --border-radius: 16px;
    --max-width: 1200px;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 60%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    margin-bottom: 4rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.app-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.app-store-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--primary-color);
    color: #0f172a;
    padding: 1rem 2rem;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.3);
}

.hero-image {
    z-index: 1;
    position: relative;
    width: 100%;
    max-width: 400px;
    /* Adjust based on asset */
    perspective: 1000px;
}

.app-mockup {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: rotateX(5deg) scale(0.95);
    /* Subtle 3D effect */
    transition: transform 0.5s ease;
}

.app-mockup:hover {
    transform: rotateX(0deg) scale(1);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.feature-card {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Screenshots Section */
.screenshots {
    padding: 4rem 2rem;
    text-align: center;
}

.carousel-container {
    margin-bottom: 4rem;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.carousel-container h3 {
    text-align: center;
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.screenshot-carousel {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 5vw 3rem 5vw;
    /* added bottom padding for shadows */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    align-items: center;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.screenshot-carousel::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.screenshot-carousel {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.screenshot-carousel .screenshot-img {
    flex: 0 0 auto;
    scroll-snap-align: center;
}

.screenshot-img {
    height: auto;
    max-height: 500px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.screenshot-img:hover {
    transform: translateY(-10px);
}

.screenshot-img.ipad {
    max-height: 400px;
    border-radius: 12px;
}

/* Footer */
footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

.footer-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .hero {
        padding: 8rem 2rem;
    }

    h1 {
        font-size: 4.5rem;
    }
}