/* ===========================================
   DAILYWIN LANDING PAGE - NEO-BRUTALIST DESIGN
   =========================================== */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
    /* Light Theme (Default) */
    --bg-primary: #FDFBF7;
    --bg-card: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: #666666;
    --accent-green: #84e217;
    --accent-lime: #A3E635;
    --accent-orange: #FFB74D;
    --accent-blue: #4FC3F7;
    --accent-purple: #9575CD;
    --accent-yellow: #FFD54F;
    --accent-pink: #FFF1F0;
    --border-color: #000000;
    --shadow-color: #000000;

    /* Font */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Neo-Brutalist Settings */
    --border-width: 2px;
    --shadow-offset: 4px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #121212;
    --bg-card: #1E1E1E;
    --text-primary: #FFFFFF;
    --text-secondary: #AAAAAA;
    --border-color: #333333;
    --shadow-color: #000000;
}

/* ---------- Base Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 65ch;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Container ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Icons ---------- */
.icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.icon-fill {
    fill: currentColor;
    stroke: none;
}

/* ---------- Neo-Brutalist Components ---------- */

/* Neo Card */
.neo-card {
    background: var(--bg-card);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.neo-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0 var(--shadow-color);
}

/* Neo Button */
.neo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--accent-green);
    color: #000;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 var(--shadow-color);
    cursor: pointer;
    transition: all 0.15s ease;
}

.neo-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0 var(--shadow-color);
}

.neo-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 var(--shadow-color);
}

.neo-btn--secondary {
    background: var(--bg-card);
    color: var(--text-primary);
}

.neo-btn--outline {
    background: transparent;
    color: var(--text-primary);
}

.neo-btn svg {
    width: 24px;
    height: 24px;
}

/* Play Store Badge specific */
.play-store-btn {
    padding: 8px 16px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    border: 2px solid #000;
    display: inline-flex;
    align-items: center;
    height: 60px;
}

.play-store-btn svg {
    height: 100%;
    width: auto;
}

.play-store-btn:hover {
    background: #333;
}

/* Neo Badge */
.neo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--accent-pink);
    color: #000;
    font-size: 0.875rem;
    font-weight: 700;
    border: var(--border-width) solid var(--border-color);
    border-radius: 999px;
}

.neo-badge svg {
    width: 16px;
    height: 16px;
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: var(--border-width) solid var(--border-color);
    padding: 16px 0;
    transition: background-color 0.3s ease;
}

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

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

.nav__logo img {
    height: 48px;
    width: auto;
    transition: height 0.3s ease;
}

.nav__logo-text {
    font-size: 1.5rem;
    font-weight: 800;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav__links a {
    font-weight: 600;
    transition: color 0.2s ease;
    position: relative;
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-green);
    transition: width 0.2s ease;
}

.nav__links a:hover::after,
.nav__links a.active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle */
.theme-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: var(--border-width) solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.theme-toggle:hover {
    transform: rotate(15deg);
}

/* Mobile Menu Toggle */
.nav__mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--bg-card);
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
}

.nav__mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

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

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero__content {
    max-width: 600px;
}

.hero__badge {
    margin-bottom: 24px;
}

.hero__title {
    margin-bottom: 24px;
}

.hero__title span {
    color: var(--accent-green);
}

.hero__description {
    margin-bottom: 32px;
    font-size: 1.25rem;
}

.hero__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__phone {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    height: 580px;
    background: #1a1a1a;
    border-radius: 40px;
    border: 4px solid #000;
    box-shadow: 8px 8px 0 var(--shadow-color);
    position: relative;
    overflow: hidden;
    padding: 12px;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 12px;
    z-index: 10;
}

.phone-mockup__screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    display: block;
}

.phone-mockup__image {
    width: 100%;
    height: calc(100% + 35px);
    object-fit: cover;
    object-position: top center;
    margin-top: -30px;
    display: block;
}

.phone-mockup__header {
    padding: 40px 16px 16px;
    text-align: center;
}

.phone-mockup__logo {
    width: 60px;
    margin: 0 auto 8px;
}

.phone-mockup__greeting {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.phone-mockup__content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phone-mockup__card {
    background: var(--accent-green);
    border: 2px solid #000;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 3px 3px 0 #000;
}

.phone-mockup__card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
}

.phone-mockup__card-sub {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.7);
}

.phone-mockup__mini-card {
    background: var(--bg-card);
    border: 2px solid #000;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 2px 2px 0 #000;
    display: flex;
    align-items: center;
    gap: 12px;
}

.phone-mockup__mini-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.phone-mockup__mini-icon svg {
    width: 18px;
    height: 18px;
}

.phone-mockup__mini-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 4px 4px 0 #000;
    color: #000;
}

.floating-element svg {
    width: 60%;
    height: 60%;
}

.floating-element--1 {
    top: 10%;
    right: -20px;
    width: 60px;
    height: 60px;
    background: var(--accent-orange);
    border: 2px solid #000;
    border-radius: 12px;
    animation-delay: 0s;
}

.floating-element--2 {
    bottom: 20%;
    left: -30px;
    width: 50px;
    height: 50px;
    background: var(--accent-purple);
    border: 2px solid #000;
    border-radius: 50%;
    animation-delay: 2s;
}

.floating-element--3 {
    top: 30%;
    left: -40px;
    width: 40px;
    height: 40px;
    background: var(--accent-blue);
    border: 2px solid #000;
    border-radius: 8px;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ---------- Features Section ---------- */
.features {
    padding: 100px 0;
}

.features__header {
    text-align: center;
    margin-bottom: 64px;
}

.features__header h2 {
    margin-bottom: 16px;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
}

.feature-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--border-width) solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    color: #000;
}

.feature-card__icon svg {
    width: 32px;
    height: 32px;
}

.feature-card__icon--green {
    background: var(--accent-green);
}

.feature-card__icon--orange {
    background: var(--accent-orange);
}

.feature-card__icon--blue {
    background: var(--accent-blue);
}

.feature-card__icon--purple {
    background: var(--accent-purple);
}

.feature-card__icon--yellow {
    background: var(--accent-yellow);
}

.feature-card__title {
    margin-bottom: 12px;
}

/* ---------- Stats Section ---------- */
.stats {
    padding: 80px 0;
    background: var(--accent-green);
    border-top: var(--border-width) solid var(--border-color);
    border-bottom: var(--border-width) solid var(--border-color);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat__number {
    font-size: 3rem;
    font-weight: 800;
    color: #000;
}

.stat__label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
}

/* ---------- CTA Section ---------- */
.cta {
    padding: 100px 0;
    text-align: center;
}

.cta__inner {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    margin-bottom: 24px;
}

.cta p {
    margin: 0 auto 32px;
}

/* ---------- Footer ---------- */
.footer {
    padding: 48px 0;
    border-top: var(--border-width) solid var(--border-color);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

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

.footer__logo img {
    height: 40px;
    transition: height 0.3s ease;
}

[data-theme="dark"] .footer__logo img {
    height: 55px;
}

.footer__links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.footer__links a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: var(--text-primary);
}

.footer__copyright {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer__copyright svg {
    width: 14px;
    height: 14px;
    fill: #ff5252;
    stroke: none;
}

/* ---------- Page Header (for inner pages) ---------- */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--bg-card);
    border-bottom: var(--border-width) solid var(--border-color);
}

.page-header h1 {
    margin-bottom: 16px;
}

/* ---------- Content Section ---------- */
.content {
    padding: 80px 0;
}

.content h2 {
    margin: 48px 0 16px;
}

.content h3 {
    margin: 32px 0 12px;
}

.content p {
    margin-bottom: 16px;
    max-width: none;
}

.content ul,
.content ol {
    margin: 16px 0;
    padding-left: 32px;
}

.content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* About Cards */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.about-card {
    padding: 32px;
    text-align: center;
}

.about-card__icon {
    width: 64px;
    height: 64px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--text-primary);
}

.about-card__icon svg {
    width: 32px;
    height: 32px;
}

/* ---------- Animations ---------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation */
.stagger-1 {
    transition-delay: 0.1s;
}

.stagger-2 {
    transition-delay: 0.2s;
}

.stagger-3 {
    transition-delay: 0.3s;
}

.stagger-4 {
    transition-delay: 0.4s;
}

.stagger-5 {
    transition-delay: 0.5s;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content {
        order: 2;
        margin: 0 auto;
    }

    .hero__phone {
        order: 1;
    }

    .hero__cta {
        justify-content: center;
    }

    .stats__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
        position: absolute;
        top: calc(100% + var(--border-width));
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 24px;
        border-bottom: var(--border-width) solid var(--border-color);
        gap: 16px;
    }

    .nav__logo img {
        display: none;
    }

    .nav__links.active {
        display: flex;
    }

    .nav__mobile-toggle {
        display: flex;
    }

    .phone-mockup {
        width: 240px;
        height: 500px;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .neo-btn {
        padding: 14px 24px;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .stats__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .stat__number {
        font-size: 2.25rem;
    }

    .hero__cta {
        flex-direction: column;
    }

    .neo-btn {
        width: 100%;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}