/* Core CSS and Custom Design System
   Designed for Ecommiki - Agentic Commerce Portal
   Theme: High-End Dark Mode, Neon Highlights, Glassmorphism
   Author: koray.t@cor3us.com
   v2.0.0 (2026-10): order dialog, steps, FAQ, bundle, consent, mobile nav
*/

/* CSS Reset & Variables */
:root {
    --bg-dark: hsl(222, 47%, 6%);
    --bg-card: rgba(16, 22, 42, 0.7);
    --bg-card-highlight: rgba(26, 32, 58, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-glow: rgba(124, 58, 237, 0.3);
    
    --color-text: hsl(210, 40%, 98%);
    --color-muted: hsl(215, 20%, 65%);
    --color-primary: hsl(263, 80%, 60%);
    --color-primary-hover: hsl(263, 90%, 65%);
    --color-accent: hsl(190, 90%, 50%);
    --color-accent-glow: rgba(6, 182, 212, 0.15);
    --color-success: hsl(142, 70%, 50%);

    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(124, 58, 237, 0.25);
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Text Gradient & Highlights */
.text-gradient {
    background: linear-gradient(135deg, var(--color-primary) 30%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent {
    color: var(--color-accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, hsl(263, 90%, 50%) 100%);
    color: #fff;
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(124, 58, 237, 0.45);
}

.btn-secondary {
    background-color: var(--bg-card-highlight);
    color: var(--color-text);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: var(--color-primary);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

/* Header & Navbar */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 10, 19, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    letter-spacing: -0.03em;
}

.logo-accent {
    color: var(--color-primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.main-nav a:hover {
    color: var(--color-text);
}

.main-nav .nav-btn {
    padding: 8px 20px;
    margin-left: 8px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 100px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(124, 58, 237, 0.08) 0%, transparent 60%);
}

.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 400px;
    opacity: 0.15;
    z-index: -1;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-muted);
    max-width: 720px;
    margin: 0 auto 40px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-premium);
}

.stat-item {
    border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--color-accent);
}

.stat-label {
    font-size: 13px;
    color: var(--color-muted);
    margin-top: 4px;
}

/* Section Header */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
}

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

/* ROI Section */
.roi-section {
    padding: 100px 0;
    background: radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
}

.roi-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
}

.roi-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
}

/* Form Styles & Sliders */
.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 12px;
}

.slider-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
    transition: var(--transition-smooth);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.value-display {
    align-self: flex-end;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-accent);
}

/* Results panel */
.results-card {
    background: linear-gradient(135deg, rgba(20, 26, 46, 0.9) 0%, rgba(10, 15, 30, 0.95) 100%);
    border: 1px solid var(--border-color-glow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.results-header {
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted);
}

.result-highlight {
    margin: 32px 0;
    text-align: center;
}

.result-big-label {
    font-size: 14px;
    color: var(--color-muted);
    margin-bottom: 4px;
}

.result-big-value {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--color-success);
    text-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.result-breakdown {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    margin-bottom: 32px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 12px;
}

.breakdown-item span {
    color: var(--color-muted);
}

/* Catalog / Products Section */
.catalog-section {
    padding: 100px 0;
    background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
}

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

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary-hover);
    box-shadow: var(--shadow-premium);
}

.highlighted-product {
    background: linear-gradient(180deg, rgba(20, 26, 46, 0.8) 0%, rgba(16, 22, 42, 0.8) 100%);
    border: 1px dashed var(--color-primary);
    position: relative;
}

.highlighted-product::before {
    content: "En Popüler";
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.product-icon {
    font-size: 36px;
    margin-bottom: 20px;
}

.product-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.product-desc {
    font-size: 14px;
    color: var(--color-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    margin-bottom: 32px;
}

.product-features li {
    font-size: 13px;
    color: var(--color-text);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.product-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

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

.product-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 10px;
    color: var(--color-muted);
    text-transform: uppercase;
}

.price-val {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text);
}

/* Contact / Lead Section */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(7, 10, 19, 0.8) 100%);
    border-top: 1px solid var(--border-color);
}

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

.contact-info h2 {
    font-size: 40px;
    margin-bottom: 24px;
}

.contact-info p {
    color: var(--color-muted);
    margin-bottom: 20px;
}

.contact-note {
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--color-primary);
    padding: 12px 20px;
    border-radius: 0 8px 8px 0;
}

.contact-details {
    margin-top: 40px;
}

.contact-detail-item {
    font-size: 15px;
}

.contact-detail-item a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

.contact-detail-item a:hover {
    text-decoration: underline;
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
}

.form-title {
    font-size: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.form-group-input {
    margin-bottom: 20px;
}

.form-group-input label {
    display: block;
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 8px;
}

.form-group-input input,
.form-group-input textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.form-group-input input:focus,
.form-group-input textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 48px 0;
    background-color: #04060b;
}

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

.footer-brand {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
}

.footer-brand p {
    font-size: 12px;
    color: var(--color-muted);
    font-weight: 400;
    margin-top: 4px;
}

.footer-contact {
    font-size: 13px;
    color: var(--color-muted);
}

.footer-contact a {
    color: var(--color-text);
    text-decoration: none;
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 40px;
    }
    .roi-grid {
        grid-template-columns: 1fr;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; /* Mobile menu placeholder */
    }
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 16px;
    }
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}


/* ===================================================================
   v2.0.0 additions
   =================================================================== */

.fine-print {
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 16px;
    line-height: 1.5;
}

.fine-print.center { text-align: center; }

a { color: var(--color-accent); }

/* Bundle */
.bundle-card {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 32px 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color-glow);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
}

.bundle-card h3 { font-size: 24px; margin-bottom: 8px; }
.bundle-card p { color: var(--color-muted); max-width: 620px; }
.bundle-action { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }

/* How it works */
.how-section { padding: 100px 0; }

.steps-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    position: relative;
}

.step-num {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-accent-glow);
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 16px;
}

.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--color-muted); }

/* FAQ */
.faq-section { padding: 40px 0 100px; }
.faq-container { max-width: 820px; }

.faq-section details {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 24px;
    margin-bottom: 12px;
}

.faq-section summary {
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    list-style: none;
    position: relative;
    padding-right: 28px;
}

.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: -2px;
    font-size: 22px;
    color: var(--color-accent);
    transition: transform 0.2s;
}
.faq-section details[open] summary::after { transform: rotate(45deg); }
.faq-section details p { color: var(--color-muted); margin-top: 12px; font-size: 14px; }

/* Forms (shared) */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group-input select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 14px;
}
.form-group-input select option { background: #10162a; }
.form-group-input select:focus { outline: none; border-color: var(--color-primary); }

.form-group-input input:user-invalid { border-color: rgba(239, 68, 68, 0.6); }

.consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--color-muted);
    margin: 4px 0 20px;
    cursor: pointer;
}
.consent input { margin-top: 3px; accent-color: var(--color-primary); flex-shrink: 0; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.form-status { margin-top: 16px; font-size: 14px; }
.form-status:empty { display: none; }
.form-status.is-error { color: hsl(0, 85%, 70%); }
.form-status.is-success {
    color: var(--color-text);
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 10px;
    padding: 16px;
}
.form-status .order-id { font-family: var(--font-heading); font-size: 18px; color: var(--color-success); }
.form-status .btn { margin-top: 12px; }

button[disabled] { opacity: 0.6; cursor: wait; }

/* Order dialog */
#order-dialog {
    width: min(720px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--border-color-glow);
    border-radius: 20px;
    background: hsl(222, 45%, 9%);
    color: var(--color-text);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
#order-dialog::backdrop { background: rgba(3, 5, 12, 0.75); backdrop-filter: blur(4px); }
#order-dialog form { padding: 28px 32px 32px; }

.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dialog-head h3 { font-size: 24px; }
.dialog-close {
    background: none;
    border: none;
    color: var(--color-muted);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
.dialog-close:hover { color: var(--color-text); }

.product-picks {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: grid;
    gap: 10px;
}
.product-picks legend { font-size: 13px; color: var(--color-muted); padding: 0 6px; }
.product-picks label { display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer; }
.product-picks input { accent-color: var(--color-primary); }

.order-total { text-align: right; margin-bottom: 20px; font-size: 15px; }
.order-total strong { font-family: var(--font-heading); font-size: 22px; color: var(--color-success); }
.order-total .fine-print { margin: 0; }

body.dialog-open { overflow: hidden; }

/* v2 responsive */
@media (max-width: 992px) {
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .bundle-card { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
    .main-nav { display: flex; gap: 0; }
    .main-nav a:not(.nav-btn) { display: none; }
    .hero-section { padding: 140px 0 72px; }
    .hero-title { font-size: 34px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .roi-card, .contact-form-card { padding: 24px; }
    .result-big-value { font-size: 36px; }
    .steps-grid, .form-row { grid-template-columns: 1fr; }
    .bundle-card { padding: 24px; }
    .bundle-action { width: 100%; justify-content: space-between; }
    #order-dialog form { padding: 20px; }
    .contact-info h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
