/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

:root {
    --color-bg-dark: #0d0b1e;
    --color-bg-hero: #1a1040;
    --color-purple: #6c3fc5;
    --color-purple-light: #8b5cf6;
    --color-blue: #3b82f6;
    --color-accent: #7c3aed;
    --color-white: #ffffff;
    --color-text-muted: rgba(255,255,255,0.65);
    --color-card-bg: rgba(255,255,255,0.07);
    --color-card-border: rgba(255,255,255,0.12);
    --font-main: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    background: var(--color-bg-dark);
    color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition);
    border: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-primary {
    background: var(--color-purple);
    color: var(--color-white);
}

.btn-cta {
    background: linear-gradient(135deg, var(--color-purple), var(--color-blue));
    color: var(--color-white);
    padding: 16px 48px;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 18px 0;
    background: rgba(22, 16, 56, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 1px 0 rgba(139, 92, 246, 0.15),
                0 4px 32px rgba(108, 63, 197, 0.25),
                0 8px 64px rgba(108, 63, 197, 0.1);
    transition: background var(--transition);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header.scrolled {
    background: rgba(13, 11, 30, 0.96);
    border-bottom-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 1px 0 rgba(139, 92, 246, 0.2),
                0 4px 40px rgba(108, 63, 197, 0.35),
                0 8px 80px rgba(108, 63, 197, 0.15);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-white);
}

.primary-nav ul {
    display: flex;
    gap: 36px;
}

.primary-nav a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--transition);
}
.primary-nav a:hover { color: var(--color-white); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--color-white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0d0b1e 0%, #1e1050 40%, #2d1b6e 70%, #1a0d4a 100%);
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(108,63,197,0.35) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 80px;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    max-width: 420px;
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Hero mockup visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup {
    position: relative;
    width: 320px;
    height: 380px;
}

.mockup-phone {
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 160px; height: 280px;
    background: linear-gradient(160deg, #1e1a3a, #2d2060);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    overflow: hidden;
}

.mockup-screen {
    padding: 16px 12px;
}

.mockup-menu-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.1);
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
}

.mockup-food-img {
    position: absolute;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    background: linear-gradient(135deg, #3d2a6e, #5b3fa0);
}

.mockup-food-1 {
    width: 130px; height: 100px;
    top: 0; left: 0;
    background: linear-gradient(135deg, #4a3080 0%, #6b4db0 100%);
}

.mockup-food-2 {
    width: 110px; height: 85px;
    bottom: 20px; left: 20px;
    background: linear-gradient(135deg, #2d1f5e 0%, #4a3590 100%);
}

.mockup-qr {
    position: absolute;
    top: 10px; left: 60px;
    width: 60px; height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 3px;
    padding: 6px;
}

.mockup-qr::before, .mockup-qr::after {
    content: '';
    grid-column: span 3;
    background: repeating-linear-gradient(
        0deg,
        #1a1040 0px, #1a1040 3px,
        transparent 3px, transparent 6px
    );
    border-radius: 2px;
}

/* ===== FEATURES ===== */
.features {
    background: linear-gradient(180deg, #f0f0f8 0%, #e8e8f5 100%);
    padding: 80px 0 60px;
    color: #1a1040;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 60px;
}

.feature-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1040;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

.feature-card--large {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 220px;
    padding: 16px 28px 28px;
    background: linear-gradient(135deg, #f8f8ff, #ededfa);
}

.features-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature-card--wide {
    grid-column: span 2;
}

/* Trusted by — replaced by Nomio Carousel plugin */

/* ===== PRICING ===== */
.pricing {
    background: linear-gradient(135deg, #0d0b1e 0%, #1e1050 50%, #0d0b1e 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    bottom: -20%; left: 50%;
    transform: translateX(-50%);
    width: 700px; height: 400px;
    background: radial-gradient(ellipse, rgba(108,63,197,0.25) 0%, transparent 70%);
    pointer-events: none;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 48px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px; height: 26px;
    cursor: pointer;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--color-purple);
    border-radius: 50px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    left: 3px; top: 3px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider { background: var(--color-blue); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

.pricing-cards {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 24px;
    position: relative;
}

.pricing-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 32px 28px;
    min-width: 240px;
    flex: 1;
    max-width: 340px;
    position: relative;
    transition: transform var(--transition);
    text-align: center;
}

.pricing-card:hover { transform: translateY(-4px); }

.pricing-card--mid {
    background: rgba(255,255,255,0.09);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 0 30px rgba(108, 63, 197, 0.2), 0 0 60px rgba(108, 63, 197, 0.08);
    transform: scale(1.04);
    z-index: 1;
}
.pricing-card--mid:hover { transform: scale(1.04) translateY(-4px); }

.pricing-card--featured {
    background: linear-gradient(160deg, rgba(108,63,197,0.3), rgba(59,130,246,0.2));
    border-color: rgba(139,92,246,0.4);
}
.pricing-card--featured:hover { transform: translateY(-4px); }

.plan-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.badge-pro {
    font-size: 0.65rem;
    font-weight: 800;
    background: var(--color-purple);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.plan-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

/* ===== CTA ===== */
.cta-section {
    background: #0d0b1e;
    padding: 100px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.cta-sub {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
}

.cta-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #0a0818;
    padding: 48px 0 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-links {
    display: flex;
    gap: 48px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--color-white); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding-bottom: 60px;
    }

    .hero-desc { margin: 0 auto 32px; }

    .hero-visual { display: none; }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-right {
        grid-template-columns: 1fr;
    }

    .feature-card--wide { grid-column: span 1; }

    .primary-nav { display: none; }
    .primary-nav.is-open {
        display: flex;
        position: fixed;
        top: 60px; left: 50%;
        transform: translateX(-50%);
        right: auto; bottom: auto;
        width: auto;
        min-width: 200px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 14px;
        flex-direction: column;
        align-items: center;
        z-index: 99;
        padding: 20px 32px;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
        animation: nomio-menu-in 0.3s ease both;
    }
    .primary-nav.is-open ul {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        width: 100%;
    }
    .primary-nav.is-open a {
        font-size: 1.1rem;
        color: white;
        font-weight: 600;
        display: block;
        padding: 8px 0;
        transition: color 0.2s;
    }
    .primary-nav.is-open a:hover { color: #8b5cf6; }

    @keyframes nomio-menu-in {
        from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
        to   { opacity: 1; transform: translateX(-50%) translateY(0); }
    }

    .nav-toggle { display: flex; z-index: 101; }

    .pricing-cards {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card--mid {
        transform: none;
    }
    .pricing-card--mid:hover {
        transform: translateY(-4px);
    }

    .footer-inner { flex-direction: column; }
    .footer-links { flex-wrap: wrap; gap: 24px; }
}

/* ===== PRICING CARD CONTENT ===== */
.plan-price {
    margin: 12px 0 20px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-monthly,
.price-yearly {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1;
}

.price-period {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.plan-features {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.plan-features li {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-purple-light);
    font-weight: 700;
}

.btn-plan {
    display: block;
    text-align: center;
    padding: 11px 20px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    background: rgba(255,255,255,0.1);
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.2);
    transition: background var(--transition), transform var(--transition);
    margin-top: auto;
}

.btn-plan:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-1px);
}

.btn-plan--pro {
    background: linear-gradient(135deg, var(--color-purple), var(--color-blue));
    border-color: transparent;
}

.btn-plan--pro:hover {
    background: linear-gradient(135deg, #7c4fd0, #4a90f5);
}

/* Make cards flex columns so CTA sticks to bottom */
.pricing-card {
    display: flex;
    flex-direction: column;
}

/* Billing toggle JS behavior */
.pricing-cards[data-billing="yearly"] .price-monthly { display: none; }
.pricing-cards[data-billing="yearly"] .price-yearly  { display: inline; }
.pricing-cards[data-billing="monthly"] .price-yearly { display: none; }

/* ===== FEATURE CARD — BG + IMAGE SUPPORT ===== */
.feature-card {
    position: relative;
    overflow: hidden;
}

/* Background image layer — sits behind content, blurred */
.feature-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(4px);
    transform: scale(1.06); /* prevent blur edge bleed */
    z-index: 0;
    pointer-events: none;
}

/* Ensure card content sits above the bg layer */
.feature-card-body {
    position: relative;
    z-index: 1;
}

/* Content image inside card */
.feature-card-img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
}

.feature-card--large .feature-card-img {
    max-height: 280px;
}

/* ===== PRICING CARD — LOGO ===== */
.plan-logo {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.plan-logo-img {
    max-height: 44px;
    max-width: 160px;
    width: auto;
    object-fit: contain;
    display: block;
}

.plan-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

/* ===== HERO MOCKUP — UPLOADED IMAGES ===== */
.hero-single-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.4));
}

.mockup-phone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 24px;
}

.mockup-food-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 14px;
}

/* ===== INNER PAGES (page.php / single.php) ===== */
.page-content {
    padding: 140px 0 80px;
    min-height: 70vh;
}

.page-article {
    max-width: 760px;
    margin: 0 auto;
}

.page-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.page-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
}

.page-body {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.page-body h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 40px 0 12px;
}

.page-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 32px 0 10px;
}

.page-body h4, .page-body h5, .page-body h6 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    margin: 24px 0 8px;
}

.page-body p {
    margin-bottom: 16px;
}

.page-body a {
    color: var(--color-purple-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.page-body a:hover {
    color: var(--color-white);
}

.page-body ul, .page-body ol {
    margin: 16px 0;
    padding-left: 24px;
    list-style: disc;
}

.page-body ol {
    list-style: decimal;
}

.page-body li {
    margin-bottom: 8px;
}

.page-body blockquote {
    border-left: 3px solid var(--color-purple);
    padding: 12px 20px;
    margin: 24px 0;
    background: rgba(108, 63, 197, 0.08);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
}

.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.page-body th, .page-body td {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
}

.page-body th {
    background: rgba(108, 63, 197, 0.15);
    font-weight: 600;
    color: var(--color-white);
}

.page-body code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

.page-body pre {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.page-body pre code {
    background: none;
    padding: 0;
}

.page-body hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 32px 0;
}

/* ===== SITE LOGO ===== */
.site-logo-img {
    height: 36px !important;
    width: auto !important;
    max-width: 160px !important;
    max-height: 36px !important;
    object-fit: contain;
    display: block;
}

.footer-brand .site-logo-img {
    height: 32px !important;
    max-height: 32px !important;
    max-width: 140px !important;
}

/* ===== STRIKETHROUGH ORIGINAL PRICE ===== */
.price-original {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
    margin-right: 4px;
}

/* ===== FOOTER BOTTOM — IYZICO BADGE ===== */
.footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
}

.footer-bottom .footer-contact {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.iyzico-badge {
    height: 28px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.iyzico-badge:hover {
    opacity: 1;
}

/* ===== FOOTER CONTACT INFO ===== */
.footer-contact-item {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
    max-width: 320px;
}

.footer-contact-item strong {
    color: rgba(255, 255, 255, 0.65);
    margin-right: 4px;
    font-size: 0.75rem;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s;
}

.footer-contact-item a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== FOOTER BRAND DESCRIPTION ===== */
.footer-brand-desc {
    margin-top: 12px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    max-width: 420px;
}
