/* Shared design system for all product pages. Keep in sync — see website/README.md */

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

:root {
    --bg: #0a0a0a;
    --surface: #111;
    --border: #1a1a1a;
    --text: #e0e0e0;
    --text-dim: #666;
    --accent: #667eea;
    --accent-glow: rgba(102, 126, 234, 0.15);
    --green: #34d399;
    --amber: #f5a623;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* Nav */
nav { padding: 20px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.logo { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-icon { width: 28px; height: 28px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-dl { background: var(--accent); color: #fff !important; padding: 8px 20px; border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 600; }
.nav-back { display: inline-flex; align-items: center; gap: 6px; }

/* Hero */
.hero { padding: 100px 0 80px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 1200px; height: 800px; background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 60%); pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(102,126,234,0.1); border: 1px solid rgba(102,126,234,0.2); color: var(--accent); padding: 6px 16px; border-radius: 20px; font-size: 13px; margin-bottom: 32px; }
.badge .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
.badge.badge-soon { color: var(--amber); background: rgba(245,166,35,0.1); border-color: rgba(245,166,35,0.2); }
.badge.badge-soon .dot { background: var(--amber); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
h1 { font-size: 64px; font-weight: 700; letter-spacing: -2.5px; line-height: 1.05; margin-bottom: 24px; background: linear-gradient(to bottom, #fff 30%, #555 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 20px; color: var(--text-dim); max-width: 640px; margin: 0 auto 40px; }
.actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 0; }
.btn-primary { background: var(--accent); color: #fff; padding: 16px 36px; border-radius: 12px; text-decoration: none; font-size: 16px; font-weight: 600; transition: all 0.2s; display: inline-block; border: none; cursor: pointer; }
.btn-primary:hover { background: #5a6fd6; transform: translateY(-1px); }
.btn-primary.disabled { background: #2a2a30; color: #777; cursor: default; pointer-events: none; }
.btn-secondary { border: 1px solid #333; color: var(--text-dim); padding: 16px 36px; border-radius: 12px; text-decoration: none; font-size: 16px; transition: all 0.2s; display: inline-block; }
.btn-secondary:hover { border-color: #666; color: var(--text); }
.btn-small { padding: 10px 22px; font-size: 14px; border-radius: 10px; }

/* Section basics */
.section-label { text-align: center; font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.section-title { text-align: center; font-size: 40px; font-weight: 700; letter-spacing: -1.5px; margin-bottom: 64px; }

/* Feature grid (reused for product feature lists) */
.features { padding: 100px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px; transition: all 0.2s; }
.feature-card:hover { border-color: #333; transform: translateY(-2px); }
.feature-card .icon { font-size: 24px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.feature-card p a { color: var(--accent); text-decoration: none; }
.feature-card p a:hover { text-decoration: underline; }

/* Product grid (homepage) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 40px 32px; display: flex; flex-direction: column; transition: all 0.2s; }
.product-card:hover { border-color: #333; transform: translateY(-3px); }
.product-card .icon-lg { width: 52px; height: 52px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 24px; }
.product-card .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.product-card .tag.tag-soon { color: var(--amber); }
.product-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.5px; }
.product-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 28px; flex-grow: 1; }
.product-card .card-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Config-style two-column info blocks */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.info-block { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.info-block h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--green); }
.info-block p { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 12px; }
.info-block code { background: #1a1a1a; padding: 2px 8px; border-radius: 4px; font-size: 13px; color: #aaa; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: rgba(102,126,234,0.1); color: var(--accent); padding: 4px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; }

/* CTA */
.cta { padding: 120px 0; text-align: center; }
.cta h2 { font-size: 48px; font-weight: 700; letter-spacing: -2px; margin-bottom: 16px; }
.cta p { color: var(--text-dim); font-size: 18px; margin-bottom: 40px; }

/* Simple content pages (privacy / support) */
.doc { padding: 80px 0 120px; max-width: 760px; margin: 0 auto; }
.doc h1 { font-size: 40px; text-align: left; margin-bottom: 8px; -webkit-text-fill-color: initial; background: none; letter-spacing: -1.5px; }
.doc .updated { color: var(--text-dim); font-size: 14px; margin-bottom: 48px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -0.5px; }
.doc p, .doc li { color: var(--text-dim); font-size: 15px; line-height: 1.8; margin-bottom: 12px; }
.doc ul { padding-left: 20px; margin-bottom: 12px; }
.doc a { color: var(--accent); text-decoration: none; }
.doc a:hover { text-decoration: underline; }
.doc code { background: #1a1a1a; padding: 2px 8px; border-radius: 4px; font-size: 13px; color: #aaa; }

/* Brand/compatibility badges (e.g. MDM bar) — styled wordmarks, not third-party logo assets */
.brand-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.brand-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--text-dim); letter-spacing: 0.2px; transition: all 0.2s; }
.brand-pill:hover { border-color: #333; color: var(--text); }
.brand-pill .glyph { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Vibe-coded ribbon — fixed corner banner on every page */
.vibe-ribbon { position: fixed; bottom: 0; left: 0; width: 170px; height: 170px; overflow: hidden; z-index: 1000; pointer-events: none; }
.vibe-ribbon span {
    position: absolute;
    display: block;
    width: 230px;
    padding: 7px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
    color: #fff;
    font: 600 12px/1.2 -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.3px;
    text-align: center;
    left: -58px;
    bottom: 34px;
    transform: rotate(45deg);
    pointer-events: auto;
}
@media (max-width: 768px) {
    .vibe-ribbon { width: 130px; height: 130px; }
    .vibe-ribbon span { width: 180px; font-size: 10px; left: -46px; bottom: 26px; padding: 6px 0; }
}

/* Footer */
footer { padding: 32px 0; text-align: center; font-size: 13px; color: #333; border-top: 1px solid var(--border); }
footer a { color: var(--accent); text-decoration: none; }
footer .footer-links { margin-top: 8px; }
footer .footer-links a { color: var(--text-dim); margin: 0 8px; }
footer .footer-links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 40px; }
    .doc h1 { font-size: 32px; }
    .feature-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .hero p { font-size: 17px; }
    .nav-links { gap: 14px; }
}

/* ── Concept-app notice ── */
.concept-note { max-width: 640px; margin: -16px auto 40px; background: rgba(245,166,35,0.06); border: 1px solid rgba(245,166,35,0.2); border-radius: 12px; padding: 14px 20px; font-size: 14px; line-height: 1.6; color: var(--text-dim); text-align: left; }
.concept-note strong { color: var(--amber); font-weight: 600; }
.concept-note.inline { margin: 0 0 32px; max-width: none; }

/* ── Homepage section headers + Runes tiles (patterns, not apps) ── */
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: 36px; font-weight: 700; letter-spacing: -1.2px; margin-bottom: 12px; }
.section-head p { color: var(--text-dim); font-size: 16px; }
.runes-section { padding: 80px 0 100px; border-top: 1px solid var(--border); }
.rune-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.rune-tile { display: flex; flex-direction: column; gap: 6px; border: 1px dashed #2c2c33; border-radius: 14px; padding: 22px; text-decoration: none; color: inherit; transition: all 0.2s; }
.rune-tile:hover { border-color: var(--accent); background: var(--surface); }
.rune-tile .rune-meta { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.rune-tile .rune-glyph { font-size: 24px; line-height: 1.2; }
.rune-tile h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.rune-tile .rune-sub { font-size: 14px; color: var(--text); }
.rune-tile p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.rune-tile .rune-uses { margin-top: auto; padding-top: 10px; font-size: 12px; color: #555; }
.runes-more { text-align: center; margin-top: 32px; }
