/* ===== AMURA CRUDA — Product Page ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #050508;
    --accent: #00a78a;
    --accent-dark: #0c7762;
    --accent-light: #0fcea9;
    --accent-glow: rgba(0,167,138,0.15);
    --text: #F2F2F2;
    --text-dim: #7B8CA8;
    --surface: rgba(255,255,255,0.03);
    --border: rgba(255,255,255,0.06);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --violet: #8B5CF6;
    --violet-glow: rgba(139,92,246,0.15);
}

[data-theme="light"] {
    --bg: #F5F5F7;
    --text: #1A1A2E;
    --text-dim: #64748B;
    --surface: rgba(0,0,0,0.03);
    --border: rgba(0,0,0,0.06);
    --accent-glow: rgba(0,167,138,0.10);
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== TOPBAR (same as other product pages) ===== */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 56px; display: flex; align-items: center; padding: 0 32px;
    background: var(--theme-nav-bg, rgba(5,5,8,0.7));
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s, border-color 0.3s;
}
.topbar-inner { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.topbar-logo img { height: 30px; width: auto; }
.topbar-back { font-size: 13px; font-weight: 500; color: var(--text-dim); display: flex; align-items: center; gap: 6px; transition: color 0.2s; }
.topbar-back:hover { color: var(--text); }
.topbar-back svg { width: 16px; height: 16px; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-cta { padding: 7px 18px; font-size: 13px; font-weight: 600; color: #fff; background: var(--accent); border-radius: 7px; transition: background 0.2s, box-shadow 0.2s; }
.topbar-cta:hover { background: var(--accent-dark); box-shadow: 0 0 24px var(--accent-glow); }

/* ===== HERO ===== */
.cruda-hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; overflow: hidden;
}

/* Dot grid background */
.cruda-hero-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(0,167,138,0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent 70%);
}

.cruda-hero-glow {
    position: absolute; top: 45%; left: 50%;
    width: 650px; height: 650px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0,167,138,0.10) 0%, rgba(139,92,246,0.04) 40%, transparent 60%);
    animation: cruda-glow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cruda-glow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.6; }
}

/* Floating data blocks */
.cruda-hero-blocks { position: absolute; inset: 0; pointer-events: none; }
.hb {
    position: absolute;
    left: var(--x); top: var(--y);
    width: 36px; height: 24px;
    background: rgba(0,167,138,0.04);
    border: 1px solid rgba(0,167,138,0.08);
    border-radius: 4px;
    animation: hb-float 6s ease-in-out infinite;
    animation-delay: var(--d);
}
.hb::after {
    content: '';
    position: absolute; top: 50%; left: 6px; right: 6px;
    height: 2px; border-radius: 1px;
    background: rgba(0,167,138,0.15);
    transform: translateY(-50%);
}

@keyframes hb-float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
    50% { transform: translateY(-12px) rotate(2deg); opacity: 0.8; }
}

.cruda-hero-content { position: relative; z-index: 1; max-width: 800px; padding: 0 24px; }

.cruda-hero-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 14px 5px 7px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--accent-light);
    background: rgba(0,167,138,0.06); border: 1px solid rgba(0,167,138,0.12);
    border-radius: 100px; margin-bottom: 32px;
}
.cruda-hero-tag-icon {
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); border-radius: 50%;
}
.cruda-hero-tag-icon svg { width: 12px; height: 12px; color: #fff; }

.cruda-hero h1 {
    font-size: clamp(40px, 6vw, 72px); font-weight: 800;
    line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 24px;
}
.cruda-hero h1 .glow-text {
    background: linear-gradient(135deg, var(--accent-light), var(--accent), var(--violet));
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 5s ease-in-out infinite alternate;
}
@keyframes gradient-shift {
    0% { background-position: 0% center; }
    100% { background-position: 100% center; }
}

.cruda-hero-desc {
    font-size: clamp(16px, 2vw, 20px); color: var(--text-dim);
    line-height: 1.65; max-width: 580px; margin: 0 auto 44px;
}
.cruda-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.btn-cruda {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 32px; font-size: 15px; font-weight: 600;
    color: #fff; background: var(--accent); border-radius: 12px;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.btn-cruda::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%); transition: transform 0.5s;
}
.btn-cruda:hover::before { transform: translateX(100%); }
.btn-cruda:hover { box-shadow: 0 0 40px rgba(0,167,138,0.4), 0 4px 20px rgba(0,0,0,0.3); transform: translateY(-2px); }

.btn-cruda-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 32px; font-size: 15px; font-weight: 600;
    color: var(--text); background: rgba(255,255,255,0.04);
    border: 1px solid var(--border); border-radius: 12px; transition: all 0.3s;
}
.btn-cruda-outline:hover { border-color: rgba(0,167,138,0.3); background: rgba(0,167,138,0.05); transform: translateY(-2px); }

.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--text-dim); font-size: 11px; font-weight: 500;
    letter-spacing: 0.1em; text-transform: uppercase;
    animation: bounce-down 2s ease-in-out infinite;
}
.scroll-indicator svg { width: 20px; height: 20px; }
@keyframes bounce-down {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== STATS ===== */
.cruda-stats {
    position: relative; padding: 60px 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(0,167,138,0.02), transparent);
}
.cruda-stats-grid {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 20px;
}
.stat-item { text-align: center; }
.stat-value {
    font-size: clamp(36px, 5vw, 56px); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 14px; font-weight: 500; color: var(--text-dim); }
@media (min-width: 768px) { .cruda-stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* ===== FEATURE SECTIONS ===== */
.cruda-feature { padding: 120px 0; position: relative; }
.cruda-feature + .cruda-feature { border-top: 1px solid var(--border); }
.cruda-feature-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: grid; grid-template-columns: 1fr; gap: 60px; align-items: center;
}
.cruda-feature-content { max-width: 520px; }
.cruda-tag {
    display: inline-block; font-size: 12px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 20px;
}
.cruda-feature-title {
    font-size: clamp(28px, 3.5vw, 40px); font-weight: 800;
    line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 20px;
}
.cruda-feature-desc { font-size: 16px; color: var(--text-dim); line-height: 1.7; margin-bottom: 32px; }
.cruda-feature-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.cruda-feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.cruda-check {
    width: 22px; height: 22px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,167,138,0.1); border-radius: 6px; color: var(--accent); margin-top: 1px;
}
.cruda-check svg { width: 13px; height: 13px; }

.cruda-feature-visual {
    position: relative; border-radius: 20px; overflow: hidden;
    aspect-ratio: 4/3; background: var(--surface); border: 1px solid var(--border);
}
.cruda-visual-inner {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; padding: 24px;
}

@media (min-width: 1024px) {
    .cruda-feature-inner { grid-template-columns: 1fr 1fr; }
    .cruda-feature:nth-child(even) .cruda-feature-inner { direction: rtl; }
    .cruda-feature:nth-child(even) .cruda-feature-inner > * { direction: ltr; }
}

/* ===== ENTITY DEMO ===== */
.entity-demo {
    width: 100%; max-width: 300px;
    background: rgba(0,0,0,0.3); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden;
}
.ent-header {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.ent-icon {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,167,138,0.08); border-radius: 6px; color: var(--accent);
}
.ent-name { font-size: 14px; font-weight: 700; flex: 1; }
.ent-badge {
    font-size: 10px; font-weight: 600; padding: 2px 8px;
    color: var(--accent-light); background: rgba(0,167,138,0.08);
    border-radius: 4px;
}

.ent-fields { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.ent-field {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 6px;
    background: rgba(255,255,255,0.02);
    opacity: 0; transform: translateX(-8px);
    transition: opacity 0.3s, transform 0.3s;
}
.entity-demo.animate .ent-field { opacity: 1; transform: translateX(0); }
.ent-field:nth-child(1) { transition-delay: 0.1s; }
.ent-field:nth-child(2) { transition-delay: 0.2s; }
.ent-field:nth-child(3) { transition-delay: 0.3s; }
.ent-field:nth-child(4) { transition-delay: 0.4s; }
.ent-field:nth-child(5) { transition-delay: 0.5s; }
.ent-field:nth-child(6) { transition-delay: 0.6s; }

.ef-type {
    font-size: 9px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; padding: 2px 6px;
    color: var(--accent); background: rgba(0,167,138,0.08);
    border-radius: 3px; min-width: 56px; text-align: center;
}
.ef-name { font-size: 12px; color: var(--text-dim); }

.ent-action {
    padding: 10px 16px; border-top: 1px solid var(--border);
}
.ent-migrate-btn {
    display: block; text-align: center;
    padding: 8px; font-size: 12px; font-weight: 600;
    color: #fff; background: var(--accent); border-radius: 6px;
    opacity: 0; transform: translateY(4px);
    transition: opacity 0.4s 0.8s, transform 0.4s 0.8s;
}
.entity-demo.animate .ent-migrate-btn { opacity: 1; transform: translateY(0); }

/* ===== FORM DEMO ===== */
.form-demo {
    width: 100%; max-width: 340px;
    display: flex; flex-direction: column; gap: 12px;
}
.fd-row { display: flex; gap: 12px; }
.fd-field { display: flex; flex-direction: column; gap: 4px; }
.fd-field.half { flex: 1; }
.fd-field.full { width: 100%; }
.fd-label { font-size: 10px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.fd-input {
    padding: 8px 12px; background: rgba(255,255,255,0.03);
    border: 1px solid var(--border); border-radius: 6px;
}
.fd-placeholder { font-size: 12px; color: var(--text-dim); opacity: 0.6; }
.fd-select {
    padding: 8px 12px; background: rgba(255,255,255,0.03);
    border: 1px solid var(--border); border-radius: 6px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: var(--text-dim);
}
.fd-radio { display: flex; gap: 6px; padding-top: 4px; }
.fd-radio-opt {
    padding: 6px 16px; font-size: 11px; font-weight: 600;
    border: 1px solid var(--border); border-radius: 6px; color: var(--text-dim);
}
.fd-radio-opt.active {
    background: rgba(0,167,138,0.1); border-color: var(--accent);
    color: var(--accent-light);
}
.fd-richtext {
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    border-radius: 6px; overflow: hidden;
}
.fd-rt-toolbar {
    display: flex; gap: 4px; padding: 6px 10px;
    border-bottom: 1px solid var(--border);
}
.fd-rt-toolbar span {
    width: 18px; height: 18px; background: rgba(255,255,255,0.04);
    border-radius: 3px;
}
.fd-rt-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.fd-rt-line { height: 6px; background: rgba(255,255,255,0.04); border-radius: 3px; }
.fd-rt-line.w75 { width: 75%; }
.fd-rt-line.w90 { width: 90%; }
.fd-rt-line.w100 { width: 100%; }

/* ===== LIST DEMO ===== */
.list-demo {
    width: 100%; max-width: 340px;
    background: rgba(0,0,0,0.3); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
}
.ld-toolbar {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.ld-search {
    flex: 1; height: 26px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 5px;
}
.ld-filters { display: flex; gap: 6px; }
.ld-filter {
    display: flex; align-items: center; gap: 4px;
    padding: 4px 10px; font-size: 10px; font-weight: 600;
    color: var(--text-dim); background: rgba(255,255,255,0.03);
    border: 1px solid var(--border); border-radius: 4px;
}
.ld-filter.active {
    color: var(--accent-light); border-color: rgba(0,167,138,0.3);
    background: rgba(0,167,138,0.06);
}
.ld-table { font-size: 12px; }
.ld-row {
    display: grid; grid-template-columns: 1.2fr 1fr 0.6fr;
    padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,0.03);
    align-items: center;
}
.ld-header {
    font-weight: 600; color: var(--text-dim); font-size: 10px;
    text-transform: uppercase; letter-spacing: 0.06em;
    background: rgba(255,255,255,0.02);
}
.ld-name { display: block; width: 75%; height: 8px; background: rgba(255,255,255,0.06); border-radius: 4px; }
.ld-cat { color: var(--text-dim); }
.ld-bool { font-size: 10px; font-weight: 600; }
.ld-bool.yes { color: var(--accent-light); }
.ld-bool.no { color: var(--text-dim); opacity: 0.5; }
.ld-pagination {
    display: flex; gap: 4px; justify-content: center; padding: 10px;
}
.ld-page {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 600; border-radius: 4px;
    color: var(--text-dim);
}
.ld-page.active {
    color: #fff; background: var(--accent);
}

/* ===== FRONTEND DEMO ===== */
.frontend-demo {
    width: 100%; max-width: 320px;
    display: flex; flex-direction: column; gap: 16px;
}
.fed-url {
    padding: 10px 14px;
    background: rgba(0,0,0,0.4); border: 1px solid var(--border);
    border-radius: 8px; font-size: 11px; font-family: monospace;
    color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fed-proto { color: var(--text-dim); opacity: 0.5; }
.fed-path { color: var(--accent-light); }

.fed-cards { display: flex; gap: 10px; }
.fed-card {
    flex: 1; background: rgba(255,255,255,0.03);
    border: 1px solid var(--border); border-radius: 10px;
    overflow: hidden;
}
.fed-card-img { height: 50px; background: rgba(0,167,138,0.04); }
.fed-card-body { padding: 8px; }
.fed-card-title { height: 6px; width: 80%; background: rgba(255,255,255,0.08); border-radius: 3px; margin-bottom: 6px; }
.fed-card-meta { height: 4px; width: 50%; background: rgba(255,255,255,0.04); border-radius: 2px; }

.fed-cache {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 10px; font-weight: 500; color: var(--accent);
    padding: 8px; background: rgba(0,167,138,0.04);
    border: 1px solid rgba(0,167,138,0.08); border-radius: 6px;
}

/* ===== DEEP DIVE: TYPES ===== */
.cruda-deep {
    padding: 120px 0; border-top: 1px solid var(--border); text-align: center;
}
.cruda-deep-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.cruda-deep h2 {
    font-size: clamp(28px, 3.5vw, 40px); font-weight: 800;
    letter-spacing: -0.025em; margin-bottom: 16px;
}
.cruda-deep-desc {
    font-size: 16px; color: var(--text-dim);
    max-width: 560px; margin: 0 auto 60px; line-height: 1.7;
}

.cruda-types-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; max-width: 700px; margin: 0 auto;
}
@media (min-width: 768px) { .cruda-types-grid { grid-template-columns: repeat(3, 1fr); } }

.cruda-type {
    padding: 20px 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; text-align: center;
    display: flex; flex-direction: column; gap: 8px;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.cruda-type:hover {
    border-color: rgba(0,167,138,0.25);
    box-shadow: 0 0 24px var(--accent-glow);
    transform: translateY(-3px);
}
.ct-type {
    font-size: 14px; font-weight: 700; color: var(--text);
}
.ct-sql {
    font-size: 11px; font-weight: 500; font-family: monospace;
    color: var(--accent); opacity: 0.8;
}

/* ===== CTA FINAL ===== */
.cruda-cta {
    padding: 120px 0; text-align: center;
    position: relative; overflow: hidden;
}
.cruda-cta::before {
    content: ''; position: absolute;
    bottom: 0; left: 50%; transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(0,167,138,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.cruda-cta-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; padding: 0 24px; }
.cruda-cta h2 {
    font-size: clamp(32px, 4.5vw, 48px); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 20px;
}
.cruda-cta p { font-size: 17px; color: var(--text-dim); line-height: 1.7; margin-bottom: 36px; }
.cruda-cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ===== FOOTER MINI ===== */
.cruda-footer { border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; }
.cruda-footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
}
.cruda-footer-logo img { height: 22px; }
.cruda-footer-text { font-size: 13px; color: var(--text-dim); }

/* ===== REVEAL ===== */
.reveal {
    opacity: 0; transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .cruda-hero { min-height: 90vh; padding-top: 80px; }
    .scroll-indicator { display: none; }
    .cruda-feature { padding: 80px 0; }
    .cruda-deep { padding: 80px 0; }
    .cruda-cta { padding: 80px 0; }
    .topbar { padding: 0 16px; }
    .cruda-feature-visual { aspect-ratio: auto; min-height: 280px; }
    .cruda-types-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .cruda-type { padding: 14px 10px; }
    .ct-type { font-size: 12px; }
    .ct-sql { font-size: 9px; }
}
