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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --background: #f8fafc;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    background-color: #1a1a1a;
    min-height: 100%;
}

body {
    font-family: 'Chalkduster', 'Comic Sans MS', cursive, sans-serif;
    background-color: #1a1a1a;
    background-image: url('https://d3od4vl78dd97d.cloudfront.net/timesx2026/images/chalkbacksmall.png');
    background-repeat: repeat;
    background-attachment: scroll;
    background-size: auto;
    background-position: top left;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: #000000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

/* Tooltip styling */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    z-index: 1001;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6), 0 0 40px rgba(99, 102, 241, 0.4);
}

[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    z-index: 1001;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.5));
}

/* Only show tooltips on devices with hover capability (desktop) */
@media (hover: hover) and (pointer: fine) {
    [data-tooltip]:hover::after {
        opacity: 1;
        bottom: -40px;
    }

    [data-tooltip]:hover::before {
        opacity: 1;
        bottom: -13px;
    }
}

.play-link {
    color: var(--white);
    text-decoration: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    margin-right: 1.5rem;
    transition: transform 0.2s, filter 0.3s;
    display: inline-block;
    position: relative;
    line-height: 1;
}

.play-link img {
    display: block;
    width: auto;
    height: auto;
}

.play-link:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.8));
}

.share-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s, transform 0.3s, filter 0.3s;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.share-btn:hover {
    color: rgba(255, 255, 255, 1);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.share-btn svg {
    width: 20px;
    height: 20px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.appstore-btn {
    display: block;
    transition: filter 0.3s;
    position: relative;
}

.appstore-btn img {
    width: auto;
    height: auto;
    display: block;
}

.appstore-btn:hover {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

/* Hero Slider */
.hero {
    padding-top: 70px;
    background: transparent;
}

.slider-container {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    height: 30vh;
    max-height: 30vh;
    overflow: hidden;
    z-index: 100;
    background-color: #000000;
}

.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 2s ease-in-out, filter 2s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    filter: blur(0);
    pointer-events: auto;
    z-index: 1;
}

.slide.fading-out {
    opacity: 0;
    filter: blur(20px);
    z-index: 0;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
    will-change: transform;
}

/* Ken Burns effect animations */
@keyframes kenBurnsZoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

@keyframes kenBurnsZoomOut {
    0% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes kenBurnsPanRight {
    0% {
        transform: scale(1.15) translateX(-5%);
    }
    100% {
        transform: scale(1.15) translateX(5%);
    }
}

@keyframes kenBurnsPanLeft {
    0% {
        transform: scale(1.15) translateX(5%);
    }
    100% {
        transform: scale(1.15) translateX(-5%);
    }
}

@keyframes kenBurnsZoomInPanRight {
    0% {
        transform: scale(1) translateX(-3%);
    }
    100% {
        transform: scale(1.15) translateX(3%);
    }
}

@keyframes kenBurnsZoomOutPanLeft {
    0% {
        transform: scale(1.15) translateX(3%);
    }
    100% {
        transform: scale(1) translateX(-3%);
    }
}

/* Ken Burns effect classes */
.slide.kb-zoom-in img {
    animation: kenBurnsZoomIn 12s ease-out both;
}

.slide.kb-zoom-out img {
    animation: kenBurnsZoomOut 12s ease-in both;
}

.slide.kb-pan-right img {
    animation: kenBurnsPanRight 12s ease-in-out both;
}

.slide.kb-pan-left img {
    animation: kenBurnsPanLeft 12s ease-in-out both;
}

.slide.kb-zoom-in-pan-right img {
    animation: kenBurnsZoomInPanRight 12s ease-out both;
}

.slide.kb-zoom-out-pan-left img {
    animation: kenBurnsZoomOutPanLeft 12s ease-in both;
}

/* Keep animation state when fading out */
.slide.fading-out.kb-zoom-in img,
.slide.fading-out.kb-zoom-out img,
.slide.fading-out.kb-pan-right img,
.slide.fading-out.kb-pan-left img,
.slide.fading-out.kb-zoom-in-pan-right img,
.slide.fading-out.kb-zoom-out-pan-left img {
    animation-play-state: running;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    z-index: 10;
}

.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.install-btn {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.install-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.appstore-btn-large {
    display: inline-block;
    transition: filter 0.3s;
}

.appstore-btn-large img {
    width: auto;
    height: auto;
    display: block;
}

.appstore-btn-large:hover {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
}

.slider-btn {
    display: none;
}

.slider-dots {
    display: none;
}

/* Ticker */
.ticker-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: #000000;
    overflow: hidden;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.ticker-container.hidden {
    display: none;
}

.ticker-container.static {
    justify-content: center;
    padding: 0 10px;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-ticker 30s linear infinite;
    will-change: transform;
    height: 20px;
    line-height: 20px;
}

.ticker-content.static {
    animation: none;
    transform: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-text {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    color: #999999;
    line-height: 20px;
    display: inline-block;
    vertical-align: top;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-25%);
    }
}

@keyframes blink-ticker {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.ticker-content.blinking {
    animation: blink-ticker 1.0s ease-in-out infinite !important;
    transform: none !important;
}

/* Features Section */
.features {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: calc(30vh + 70px);
    background: transparent;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.feature-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4rem;
    background: rgba(45, 35, 30, 0.60);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image img {
    width: auto;
    height: auto;
    max-width: 330px;
    max-height: 717px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-image-large img {
    width: auto;
    height: auto;
    max-width: 370px;
    max-height: 717px;
    object-fit: contain;
}

.feature-text {
    flex: 1;
}

.smart-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 100px;
    height: auto;
    z-index: 10;
}

.feature-text h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--white);
}

.feature-text p {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.feature-text ul {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    list-style: none;
    padding-left: 3rem;
    padding-right: 2rem;
    margin-top: 1.5rem;
}

.feature-text ul li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    display: flex;
    align-items: flex-start;
}

.feature-text ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.1rem;
    color: #4ade80;
    font-weight: bold;
    font-size: 1.3rem;
}

.feature-text ul li:last-child {
    margin-bottom: 0;
}

.image-link {
    display: block;
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
}

.image-link:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

.image-link img {
    pointer-events: none;
}

/* Download CTA */
.download-cta {
    background: rgb(45, 35, 30);
    padding: 5rem 5%;
    text-align: center;
    color: var(--white);
}

.download-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.download-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s, text-shadow 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.footnote {
    color: var(--text-light);
    font-size: 0.75rem;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.copyright {
    color: var(--text-light);
    font-size: 0.85rem;
}

.visit-counter {
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: normal;
    margin-top: 0.5rem;
    opacity: 0.4;
}

/* Privacy Policy Page */
.back-link {
    color: var(--white);
    text-decoration: none;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9rem;
    transition: opacity 0.3s, filter 0.3s;
    display: inline-block;
    position: relative;
}

.back-link:hover {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.privacy-content {
    padding: 5rem 5%;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--card-shadow);
}

.privacy-container h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.privacy-container h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.privacy-container h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.privacy-container p {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.privacy-container ul {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    margin-left: 2rem;
}

.privacy-container ul li {
    margin-bottom: 0.5rem;
}

.privacy-container a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.privacy-container a:hover {
    text-decoration: underline;
}

.privacy-summary {
    background: rgba(99, 102, 241, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    margin: 2.5rem 0;
    border-radius: 8px;
}

.privacy-summary h3 {
    margin-top: 0;
    color: var(--primary);
}

.privacy-summary p {
    margin-bottom: 0;
}

.back-to-site {
    display: inline-block;
    margin-top: 2rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.back-to-site:hover {
    transform: translateX(-5px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-card,
    .feature-card.reverse {
        flex-direction: column;
        text-align: center;
    }

    .feature-image img {
        width: auto;
        height: auto;
        max-width: 350px;
        max-height: 600px;
    }

    .feature-image-large img {
        width: auto;
        height: auto;
        max-width: 400px;
        max-height: 600px;
    }

    .feature-text ul {
        padding-left: 2rem;
        padding-right: 1rem;
        text-align: left;
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

    .slide-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
        background-size: 500px auto;
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .install-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-text h3 {
        font-size: 1.5rem;
    }

    .feature-image img {
        width: auto;
        height: auto;
        max-width: 320px;
        max-height: 550px;
    }

    .feature-image-large img {
        width: auto;
        height: auto;
        max-width: 350px;
        max-height: 550px;
    }

    .feature-text ul {
        font-size: 1rem;
        margin-top: 1rem;
        padding-left: 1.5rem;
        padding-right: 0.5rem;
        text-align: left;
    }

    .feature-text ul li {
        margin-bottom: 0.75rem;
        padding-left: 1.75rem;
        display: block;
    }

    .feature-text ul li:before {
        font-size: 1.1rem;
    }

    .download-cta h2 {
        font-size: 1.75rem;
    }

    .download-cta p {
        font-size: 1rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .ticker-text {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    [data-tooltip]::after {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 480px) {
    body {
        background-attachment: scroll;
        background-size: 400px auto;
    }

    .navbar {
        padding: 1rem 3%;
    }

    .navbar-right {
        gap: 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .play-link {
        font-size: 0.9rem;
        margin-right: 1rem;
        padding: 0.4rem 1rem;
    }

    .share-btn {
        padding: 0.3rem;
    }

    .share-btn svg {
        width: 18px;
        height: 18px;
    }

    .appstore-btn img {
        max-width: 100px;
    }

    .ticker-text {
        font-size: 11px;
    }

    /* Slightly smaller tooltips on mobile */
    [data-tooltip]::after {
        font-size: 0.65rem;
        padding: 0.35rem 0.5rem;
    }

    [data-tooltip]::before {
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 5px solid rgba(0, 0, 0, 0.9);
    }
}

    .slide-content h1 {
        font-size: 1.5rem;
    }

    .features {
        padding: 3rem 3%;
    }

    .feature-card {
        padding: 1.5rem;
        gap: 2rem;
    }

    .feature-image img {
        width: auto;
        height: auto;
        max-width: 280px;
        max-height: 500px;
    }

    .feature-image-large img {
        width: auto;
        height: auto;
        max-width: 300px;
        max-height: 500px;
    }

    .feature-text ul {
        padding-left: 0.5rem;
        padding-right: 0.25rem;
        font-size: 0.95rem;
        text-align: left;
    }

    .feature-text ul li {
        padding-left: 1.5rem;
        display: block;
    }

    .privacy-container {
        padding: 2rem 1.5rem;
    }

    .privacy-container h1 {
        font-size: 2rem;
    }

    .privacy-container h2 {
        font-size: 1.4rem;
    }

    .privacy-content {
        padding: 3rem 3%;
    }
}
