/**
 * Landing Page - Dindin
 */

/* ================== GOOGLE FONTS ================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@500;600;700;800&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* ================== CSS VARIABLES ================== */
:root {
    --color-primary: #0d9488;
    --color-primary-dark: #0f766e;
    --color-primary-light: #ccfbf1;
    --color-primary-glow: rgba(13, 148, 136, 0.3);

    --color-text-primary: #1c1917;
    --color-text-secondary: #44403c;
    --color-text-muted: #78716c;
    --color-text-white: #fff;
    --color-text-white-muted: rgba(255, 255, 255, 0.7);

    --color-bg-dark: #1c1917;
    --color-bg-dark-2: #292524;
    --color-bg-light: #fafaf9;
    --color-bg-card: #fff;
    --color-border: #e0e6ef;

    --shadow-card: 0 4px 20px 0 rgba(34, 34, 59, 0.07);
    --shadow-card-hover: 0 8px 32px 0 rgba(34, 34, 59, 0.13);
    --shadow-btn: 0 4px 16px rgba(13, 148, 136, 0.35);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;

    --font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    --font-family-heading: 'DM Sans', var(--font-family);
}

/* ================== RESET ================== */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img, video { max-width: 100%; display: block; }

/* ================== NAVBAR ================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(28, 25, 23, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-family: var(--font-family-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.02em;
}

.navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    display: block;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar-links a {
    color: var(--color-text-white-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.navbar-links a:hover {
    color: var(--color-text-white);
}

.btn-navbar-login {
    background: var(--color-primary);
    color: var(--color-text-white) !important;
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-navbar-login:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-btn);
}

/* ================== HERO ================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #1c1917 0%, #292524 40%, var(--color-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 0.8s ease both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(13, 148, 136, 0.15);
    border: 1px solid rgba(13, 148, 136, 0.3);
    color: #99f6e4;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: var(--font-family-heading);
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--color-text-white);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 1.2rem;
}

.hero h1 .highlight {
    color: #5eead4;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-white-muted);
    line-height: 1.7;
    margin: 0 0 2rem;
    max-width: 480px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-text-white);
    border: none;
    border-radius: var(--radius-md);
    padding: 0.95rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 52px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text-white-muted);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 0.95rem 2.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 52px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-white);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-visual {
    animation: fadeInUp 0.8s ease 0.2s both;
    max-width: 320px;
    margin: 0 auto;
}

.demo-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-xl);
    aspect-ratio: 16 / 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--color-text-white-muted);
    position: relative;
    overflow: hidden;
}

.demo-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), transparent);
    pointer-events: none;
}

.demo-placeholder .play-icon {
    width: 64px;
    height: 64px;
    background: rgba(13, 148, 136, 0.2);
    border: 2px solid rgba(13, 148, 136, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.2s;
    cursor: pointer;
}

.demo-placeholder .play-icon:hover {
    background: rgba(13, 148, 136, 0.35);
    transform: scale(1.08);
}

.demo-placeholder span {
    font-size: 0.9rem;
    font-weight: 500;
}

.demo-video {
    width: 100%;
    border-radius: var(--radius-xl);
    display: block;
}

/* ================== SECTION BASE ================== */
.section {
    padding: 5rem 2rem;
}

.section-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-white);
}

.section-light {
    background: var(--color-bg-light);
}

.section-white {
    background: var(--color-bg-card);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-family: var(--font-family-heading);
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 0.8rem;
    border: none;
    display: block;
    padding: 0;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-dark .section-header p {
    color: var(--color-text-white-muted);
}

/* ================== HOW IT WORKS ================== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    counter-reset: step;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    counter-increment: step;
    position: relative;
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-text-white);
    margin: 0 auto 1.2rem;
    box-shadow: 0 4px 16px rgba(13, 148, 136, 0.3);
}

.step-card h3 {
    font-family: var(--font-family-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.6rem;
}

.step-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    display: block;
}

/* Step connector arrows */
.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -1.25rem;
    width: 2.5rem;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), transparent);
}

/* ================== FEATURES ================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-border);
    transition: all 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(13, 148, 136, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: var(--font-family-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--color-text-primary);
}

.feature-card p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.feature-screenshot {
    margin-top: 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    width: 100%;
}

/* ================== DEMO SECTION ================== */
.demo-section-visual {
    max-width: 360px;
    margin: 0 auto;
}

.demo-video-wrapper {
    background: var(--color-bg-dark-2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-video-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    color: var(--color-text-white-muted);
    position: relative;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05), rgba(13, 148, 136, 0.02));
}

.demo-video-placeholder .play-btn {
    width: 80px;
    height: 80px;
    background: rgba(13, 148, 136, 0.2);
    border: 2px solid rgba(13, 148, 136, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    cursor: pointer;
    transition: all 0.25s;
}

.demo-video-placeholder .play-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(13, 148, 136, 0.4);
}

.demo-video-placeholder p {
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* ================== PRICING ================== */
.pricing-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 2px solid var(--color-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), #5eead4);
}

.pricing-label {
    display: inline-block;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-price {
    margin-bottom: 0.5rem;
}

.pricing-currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    vertical-align: super;
}

.pricing-value {
    font-family: var(--font-family-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-text-primary);
    letter-spacing: -0.03em;
}

.pricing-price-old {
    opacity: 0.35;
    margin-bottom: 0.3rem;
    position: relative;
}

.pricing-price-old::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 110%;
    height: 3px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transform: translate(-50%, -50%) rotate(-8deg);
}

.pricing-free {
    font-family: var(--font-family-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.pricing-free-period {
    font-size: 0.95rem;
    color: var(--color-primary-dark);
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-period {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .check {
    color: var(--color-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.pricing-card .btn-primary {
    width: 100%;
    justify-content: center;
    font-size: 1.15rem;
    padding: 1rem;
}

/* ================== HERO BOT LINKS ================== */
.hero-bot-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 0.6rem;
}

.hero-bot-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}

.hero-bot-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
    opacity: 0.7;
}

.hero-bot-link:hover { opacity: 1; }

.hero-bot-link.telegram { color: #5ABCE5; }
.hero-bot-link.whatsapp { color: #5BEA8C; }

/* ================== BOT CTA BAND ================== */
.section-primary-band {
    background: var(--color-primary);
    padding: 2.5rem 2rem;
}

.bot-cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.bot-cta-band-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    color: #fff;
}

.bot-cta-band-text strong {
    font-size: 1.15rem;
    font-weight: 700;
}

.bot-cta-band-text span {
    font-size: 0.95rem;
    opacity: 0.85;
}

.bot-cta-band-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.bot-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.bot-cta-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.bot-cta-whatsapp {
    background: #fff;
    color: #128c7e;
}

.bot-cta-whatsapp img {
    filter: none !important;
}

.bot-cta-telegram {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}

.bot-cta-telegram img {
    filter: brightness(0) invert(1) !important;
}

@media (max-width: 640px) {
    .bot-cta-band {
        flex-direction: column;
        align-items: flex-start;
    }
    .bot-cta-band-actions {
        width: 100%;
    }
    .bot-cta-btn {
        flex: 1;
        justify-content: center;
    }
}

/* ================== FOOTER ================== */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-white-muted);
    padding: 3rem 2rem 2rem;
    text-align: center;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    font-family: var(--font-family-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-text-white-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* ================== SCROLL ANIMATIONS ================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ================== KEYFRAMES ================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================== MOBILE MENU ================== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1.2rem;
    }

    .navbar-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(28, 25, 23, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 0 1.5rem;
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
    }

    .navbar-links.open {
        display: flex;
        max-height: 300px;
        opacity: 1;
        padding: 1.2rem 1.5rem;
        gap: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 5rem 1.2rem 3rem;
        min-height: auto;
        background: linear-gradient(180deg, #1c1917 0%, #292524 60%, rgba(15, 118, 110, 0.3) 100%);
    }

    .hero::before {
        width: 100%;
        height: 100%;
        top: -30%;
        right: -10%;
        background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 50%);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 3.5rem 1.2rem;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .step-card::after {
        display: none !important;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .pricing-value {
        font-size: 2.8rem;
    }

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

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 0.8rem;
    }
}

/* ================== REDUCED MOTION ================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
