/* ===================================
   CepSandık Landing Page Styles
   Design tokens matching mobile app
   =================================== */

:root {
    /* Colors */
    --primary: #136dec;
    --primary-dark: #0d5bc8;
    --primary-light: rgba(19, 109, 236, 0.1);
    --background: #f6f7f8;
    --background-dark: #101822;
    --text-primary: #111418;
    --text-secondary: #617289;
    --text-muted: #9ca3af;
    --white: #ffffff;
    --border: #dbe0e6;
    --success: #10b981;

    /* Typography */
    --font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 100px;

    /* Effects */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

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

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

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

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

.logo-icon {
    color: var(--primary);
    font-size: 32px;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

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

.hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle at center, var(--primary-light) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 560px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-light);
    border: 1px solid rgba(19, 109, 236, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 24px;
}

.badge .material-symbols-outlined {
    font-size: 16px;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero h1 .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn .material-symbols-outlined {
    font-size: 20px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(19, 109, 236, 0.4);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 109, 236, 0.5);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: var(--text-primary);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

.phone-screen {
    height: 100%;
    background: var(--background);
    border-radius: 32px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.screen-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.screen-header .greeting {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.screen-header .subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

.screen-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.card-icon .material-symbols-outlined {
    color: var(--primary);
    font-size: 24px;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 12px;
}

.community-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill {
    padding: 6px 12px;
    background: var(--background);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.screen-poll {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    width: fit-content;
}

.poll-badge.live {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.poll-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.poll-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.poll-button {
    margin-top: 8px;
    padding: 10px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* Features Section */
.features {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
}

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

.feature-card {
    padding: 32px;
    background: var(--background);
    border-radius: var(--radius-xl);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon .material-symbols-outlined {
    font-size: 28px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works */
.how-it-works {
    padding: var(--section-padding) 0;
    background: var(--background);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.step {
    text-align: center;
    max-width: 280px;
    opacity: 0;
    transform: translateY(30px);
}

.step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 14px rgba(19, 109, 236, 0.4);
}

.step h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step p {
    font-size: 15px;
    color: var(--text-secondary);
}

.step-connector {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    margin-top: 32px;
    flex-shrink: 0;
}

/* Download Section */
.download {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--text-primary) 0%, #1a2a3a 100%);
}

.download-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
}

.download-content.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.download-text h2 {
    font-size: clamp(32px, 4vw, 42px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.download-text p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    max-width: 500px;
}

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

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.store-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.store-btn .material-symbols-outlined {
    font-size: 32px;
    color: var(--white);
}

.store-info {
    display: flex;
    flex-direction: column;
}

.store-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.store-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

.qr-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: center;
}

.qr-placeholder {
    width: 160px;
    height: 160px;
    background: var(--background);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.qr-placeholder .material-symbols-outlined {
    font-size: 80px;
    color: var(--text-muted);
}

.qr-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--background);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-top: 12px;
}

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

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--success);
}

.security-badge .material-symbols-outlined {
    font-size: 18px;
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-muted);
}

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

    .hero-content {
        max-width: 100%;
    }

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

    .hero-visual {
        order: -1;
    }

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

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

    .steps {
        flex-direction: column;
        gap: 32px;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        background: linear-gradient(180deg, var(--primary), var(--primary-light));
        margin: 0 auto;
    }

    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .download-text p {
        margin: 0 auto 32px;
    }

    .store-buttons {
        justify-content: center;
    }

    .download-visual {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 100px 0 60px;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .phone-mockup {
        width: 200px;
        height: 420px;
        padding: 8px;
        border-radius: 32px;
    }

    .phone-screen {
        padding: 16px 12px;
        gap: 12px;
        border-radius: 26px;
    }

    .screen-header .greeting {
        font-size: 14px;
    }

    .screen-header .subtitle {
        font-size: 11px;
    }

    .screen-card {
        padding: 12px;
    }

    .card-icon {
        width: 32px;
        height: 32px;
        margin-bottom: 8px;
    }

    .card-icon .material-symbols-outlined {
        font-size: 18px;
    }

    .card-title {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .pill {
        padding: 4px 8px;
        font-size: 10px;
    }

    .screen-poll {
        padding: 12px;
        gap: 6px;
    }

    .poll-badge {
        font-size: 9px;
        padding: 3px 8px;
    }

    .poll-title {
        font-size: 12px;
    }

    .poll-desc {
        font-size: 10px;
    }

    .poll-button {
        padding: 8px;
        font-size: 11px;
        margin-top: 4px;
    }

    .store-buttons {
        flex-direction: column;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}