/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 320px;
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    -webkit-font-smoothing: antialiased;
}

body, td, p, ul, ol, li, select, textarea, div, span, blockquote {
    color: #2d2d3a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== TYPOGRAPHY ===== */
h1 {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    padding: 0;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #1a1a2e;
}

h2 {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: #1a1a2e;
    margin-bottom: 16px;
}

h3 {
    font-family: 'DM Sans', 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a1a2e;
}

h1, h2, h3 {
    padding-left: 0;
    padding-right: 0;
}

p {
    color: #4a4a5a;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

a {
    text-decoration: none;
    transition: color 0.2s ease;
}

iframe {
    border-style: none;
    border-width: 0;
}

/* ===== COLOR PALETTE ===== */
:root {
    --primary: #e67e22;
    --primary-dark: #c0641a;
    --primary-light: #f5a623;
    --accent: #2c3e7a;
    --dark: #1a1a2e;
    --dark-surface: #16213e;
    --gray-50: #f8f9fa;
    --gray-100: #f0f1f3;
    --gray-200: #e2e4e8;
    --gray-400: #9ca3af;
    --gray-600: #4a4a5a;
    --gray-800: #2d2d3a;
    --white: #ffffff;
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-accent: linear-gradient(135deg, #e67e22 0%, #f5a623 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ===== HEADER / NAV ===== */
#top {
    display: block;
    background-color: var(--dark);
    margin: 0;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

#topheader {
    display: flex;
    align-items: center;
    padding: 0 24px;
    margin: 0 auto;
    max-width: 1200px;
    height: 90px;
}

#logodiv {
    width: 180px;
    height: auto;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 20px 0 14px;
}

#imgheader {
    width: 180px;
    height: auto;
}

#nav {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    padding: 0;
}

/* Navigation hamburger for mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 6px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== BUTTONS ===== */
.button {
    display: inline-block;
    width: auto;
    height: auto;
    text-align: center;
    margin: 0;
}

.button a {
    display: inline-block;
    padding: 10px 24px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-400);
    background: transparent;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.button a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.linkOnLight {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.linkOnLight:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.linkOnDark {
    color: var(--primary-light);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.linkOnDark:hover {
    color: var(--white);
    border-bottom-color: var(--primary-light);
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 14px 36px;
    background: var(--gradient-accent);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(230, 126, 34, 0.35);
    letter-spacing: 0.02em;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(230, 126, 34, 0.5);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--gradient-hero);
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(230, 126, 34, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 70% 50%, rgba(15, 52, 96, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3.2rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    color: var(--gray-400);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

/* ===== APP ICONS ROW ===== */
#appiconsrow {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.appicon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-md);
}

.appicon:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* ===== PAGE CONTENT SECTIONS ===== */
.sidemargins {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 24px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    background: var(--white);
    padding: 60px 24px;
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.testimonial-stars {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-quote {
    font-style: italic;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.testimonial-author {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark);
}

.testimonial-app {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== APPS PAGE ===== */
#wrapper {
    background: var(--gray-50);
}

#centerdiv {
    margin: 0 auto;
    max-width: 1200px;
}

#headerdiv {
    padding: 0;
}

#apps_container {
    margin: 0 auto;
    max-width: 900px;
    padding: 48px 24px;
}

.roundedframe {
    border-radius: var(--radius-lg);
    background: var(--gradient-hero);
    padding: 48px 36px;
    margin-bottom: 36px;
    display: block;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.05);
}

.roundedframe h1 {
    font-size: 2rem;
}

#appslist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.alignedcenter {
    margin: 0 auto;
    text-align: center;
}

.lighttext {
    color: rgba(255,255,255,0.9);
    margin: 0 auto;
    text-align: center;
    font-weight: 500;
}

/* ===== VIDEO ===== */
.videocontainer {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.embeddedvideo1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== ABOUT PAGE ===== */
img.resize {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: block;
    margin: 16px auto 24px;
}

.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    position: relative;
    padding-bottom: 12px;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* ===== STORE BADGES ===== */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
    align-items: center;
}

.store-badges a {
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.store-badges a:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* ===== FOOTER ===== */
#bottom {
    background: var(--gradient-hero);
    margin: 0;
    padding: 40px 20px;
    width: 100%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copyright {
    color: var(--gray-400);
    font-size: 0.85rem;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 0 auto 40px;
    border-radius: 2px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

/* Subtle float for app icons */
@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.icon-float {
    animation: floatIcon 3s ease-in-out infinite;
}

.icon-float-1 { animation-delay: 0s; }
.icon-float-2 { animation-delay: 0.5s; }
.icon-float-3 { animation-delay: 1s; }
.icon-float-4 { animation-delay: 1.5s; }
.icon-float-5 { animation-delay: 2s; }
.icon-float-6 { animation-delay: 2.5s; }

/* Glow text - modernized */
.glowtext {
    text-shadow: none;
    color: var(--primary);
    font-weight: 700;
}

#glowheader {
    padding-bottom: 5px;
}

/* ===== RESPONSIVE ===== */
@media all and (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .hero-section h1 {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    #appiconsrow {
        gap: 12px;
        flex-wrap: wrap;
    }

    .appicon {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .roundedframe {
        padding: 32px 20px;
    }

    #apps_container {
        padding: 24px 16px;
    }

    .nav-toggle {
        display: block;
    }

    #nav {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 16px 0;
        gap: 4px;
    }

    #nav.active {
        display: flex;
    }

    #topheader {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 20px;
    }

    #logodiv {
        flex: 1;
    }

    .button a {
        display: block;
        padding: 12px 24px;
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

@media all and (max-width: 480px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.7rem;
    }

    .hero-section {
        padding: 60px 16px 40px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .appicon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .sidemargins {
        padding: 32px 16px;
    }

    .testimonial-card {
        padding: 20px;
    }

    #imgheader {
        width: 140px;
    }
}

@media all and (max-width: 320px) {
    body {
        font-size: 14px;
    }

    #imgheader {
        width: 120px;
    }

    .appicon {
        width: 42px;
        height: 42px;
    }
}

/* ===== MISC ===== */
q {
    font-style: italic;
    font-weight: 500;
}

hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 32px 0;
}

pre {
    display: block;
    font: 13px 'Fira Code', 'Courier New', Courier, monospace;
    padding: 16px;
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    margin: 0.75em 0;
    border-radius: var(--radius-sm);
    overflow-x: auto;
}

#footerline { margin: 0 auto; align-content: center; display: block; }
#footertext { margin: 0 auto; text-align: center; }

/* Legacy animation classes - disabled in favor of modern subtle animations */
.rotate-center-0,
.rotate-center-1,
.rotate-center-2,
.rotate-center-3,
.rotate-center-4,
.rotate-center-5 {
    animation: none;
}
