/* Storytime Styles - Adapted from PriceKit */
:root {
    --app-indigo: #007AFF; /* Storytime Blue */
    --app-indigo-glow: rgba(0, 122, 255, 0.3);
    --dark-bg: #0A0B10;
    --dark-surface: #15171F;
    --light-text: #ffffff;
    --gray-text: #94A3B8;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--light-text);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--app-indigo);
}

img {
    max-width: 100%;
    height: auto;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-text {
    font-size: 4rem;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.85); opacity: 0.5; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.85); opacity: 0.5; }
}

/* Header */
header {
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all var(--transition-speed);
}

header.scrolled {
    background-color: rgba(10, 11, 16, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.logo-container h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

nav ul li a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--gray-text);
}

nav ul li a:hover {
    color: var(--light-text);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--app-indigo-glow);
    filter: blur(150px);
    border-radius: 50%;
    z-index: -1;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1.2;
}

.hero-content h2 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -2px;
    background: linear-gradient(to bottom right, #fff, #94A3B8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray-text);
    margin-bottom: 40px;
    max-width: 540px;
}

.app-store-button {
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.app-store-button:hover {
    transform: translateY(-4px) scale(1.02);
}

.hero-image {
    flex: 0.8;
}

.hero-image img {
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--dark-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 80px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--dark-surface);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(74, 93, 253, 0.3);
    background: rgba(74, 93, 253, 0.03);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.feature-card p {
    color: var(--gray-text);
    line-height: 1.7;
}

/* Download Section */
.download {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(to bottom, var(--dark-bg), var(--dark-surface));
}

.download h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.download p {
    color: var(--gray-text);
    margin-bottom: 40px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 80px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-text);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column ul li a {
    color: var(--gray-text);
    font-size: 0.95rem;
}

.footer-column ul li a:hover {
    color: var(--light-text);
}

.copyright {
    text-align: center;
    color: var(--gray-text);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--light-text);
    margin: 5px 0;
    transition: 0.3s;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero .container { flex-direction: column; text-align: center; }
    .hero-content { padding: 0; }
    .hero-content h2 { font-size: 3rem; }
    .hero-image { width: 100%; max-width: 600px; }
    .footer-content { flex-direction: column; gap: 60px; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--dark-surface);
        z-index: 200;
        transition: 0.4s;
        padding: 100px 40px;
    }
    nav.open { right: 0; }
    nav ul { flex-direction: column; gap: 32px; }
    nav ul li a { font-size: 1.5rem; }
}
