/* LayerPay Site Styles */
:root {
    --primary: #627eea;
    --primary-dark: #5469d4;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #22c55e;
    --warning: #f59e0b;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

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

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

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

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

.nav-cta {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
}

.nav-cta:hover { background: var(--primary-dark); }

/* Hero */
.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f4ec 100%);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text);
}

.hero p {
    font-size: 20px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover { background: var(--primary-dark); color: var(--white); }

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

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

/* Sections */
section {
    padding: 80px 0;
}

section.alt { background: var(--white); }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

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

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    transition: box-shadow 0.2s;
}

.feature-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #627eea20, #627eea10);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* Flow Steps */
.flow-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.flow-step {
    display: flex;
    gap: 30px;
    position: relative;
    padding-bottom: 40px;
}

.flow-step:last-child { padding-bottom: 0; }

.flow-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.flow-step:not(:last-child) .flow-number::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 40px);
    background: var(--border);
    z-index: 1;
}

.flow-content {
    flex: 1;
    padding-top: 10px;
}

.flow-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.flow-content p {
    color: var(--text-light);
    margin-bottom: 15px;
}

.flow-visual {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    color: var(--text-light);
}

/* Platform Cards */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 768px) {
    .platforms-grid { grid-template-columns: 1fr; }
}

.platform-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.platform-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin: 0 auto 20px;
}

.platform-icon.woo { background: #96588a; }
.platform-icon.presta { background: #df0067; }
.platform-icon.magento { background: #f26322; }

.platform-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.platform-card .version {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.platform-card .btn {
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}

.platform-card .size {
    font-size: 13px;
    color: var(--text-light);
}

/* Code Blocks */
.code-block {
    background: #1e293b;
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.code-block code {
    color: #e2e8f0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.8;
}

.code-block .comment { color: #64748b; }
.code-block .string { color: #86efac; }
.code-block .keyword { color: #c4b5fd; }

/* Docs Layout */
.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 40px 0;
}

@media (max-width: 900px) {
    .docs-layout { grid-template-columns: 1fr; }
}

.docs-sidebar {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 90px;
}

.docs-sidebar h4 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.docs-sidebar ul {
    list-style: none;
}

.docs-sidebar li {
    margin-bottom: 8px;
}

.docs-sidebar a {
    color: var(--text);
    font-size: 15px;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}

.docs-sidebar a:hover,
.docs-sidebar a.active {
    background: var(--bg);
    color: var(--primary);
}

.docs-content {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
}

.docs-content h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.docs-content .subtitle {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.docs-content h2 {
    font-size: 24px;
    margin: 40px 0 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.docs-content h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.docs-content h3 {
    font-size: 18px;
    margin: 30px 0 15px;
}

.docs-content p {
    margin-bottom: 15px;
}

.docs-content ul, .docs-content ol {
    margin: 15px 0 15px 25px;
}

.docs-content li {
    margin-bottom: 8px;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    gap: 12px;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg);
    font-weight: 600;
    font-size: 14px;
}

td { font-size: 15px; }

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--primary);
}

.faq-item.open .faq-question::after { content: '−'; }

.faq-answer {
    padding: 0 25px 20px;
    color: var(--text-light);
    display: none;
}

.faq-item.open .faq-answer { display: block; }

/* Footer */
footer {
    background: var(--text);
    color: #94a3b8;
    padding: 60px 0 30px;
}

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

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
}

footer h4 {
    color: var(--white);
    font-size: 14px;
    margin-bottom: 20px;
}

footer ul { list-style: none; }

footer li { margin-bottom: 10px; }

footer a { color: #94a3b8; font-size: 14px; }
footer a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 30px;
    text-align: center;
    font-size: 14px;
}

/* Networks badges */
.networks {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px;
}

.network-badge {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    section { padding: 50px 0; }
    .section-title h2 { font-size: 28px; }
    .flow-step { flex-direction: column; gap: 15px; }
    .flow-step:not(:last-child) .flow-number::after { display: none; }
}
