/*
Theme Name: aiscibrain
Theme URI: https://www.aiscibrain.com
Author: aiscibrain
Author URI: https://www.aiscibrain.com
Description: Premium AI solutions theme — dark, elegant, modern. Built for aiscibrain.com, Hong Kong's AI solutions provider for cross-border e-commerce.
Version: 1.0.0
License: GPL v2 or later
Text Domain: aiscibrain
*/

/* ═══════════════════════════════════════════
   aiscibrain — Premium WordPress Theme
   ═══════════════════════════════════════════ */

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

:root {
  --bg: #0a0a0f;
  --bg-card: rgba(255,255,255,0.03);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(200,168,94,0.2);
  --gold: #c8a85e;
  --gold-bright: #dbbf78;
  --text: #e8e6e3;
  --text-dim: rgba(232,230,227,0.5);
  --text-faint: rgba(232,230,227,0.3);
  --gold-glow: rgba(200,168,94,0.08);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 50% -20%, var(--gold-glow), transparent),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(180,140,70,0.04), transparent),
    radial-gradient(ellipse 30% 30% at 20% 60%, rgba(100,80,200,0.03), transparent);
  pointer-events: none; z-index: 0;
}

.grid-bg {
  position: fixed; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: 0;
}

.content { position: relative; z-index: 1; }

/* ─── WordPress Overrides ─── */
.wp-block-post-content { max-width: none; padding: 0; }
.admin-bar nav { top: 32px; }
body.admin-bar::before { top: 32px; }

/* ─── Navigation ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.85);
  border-bottom: 1px solid var(--border);
  padding: 16px 48px;
  display: flex; justify-content: space-between; align-items: center;
}

.logo {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.5px; color: var(--text);
}

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

.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
  font-size: 13px; font-weight: 500; color: var(--text-dim);
}

.nav-links li { cursor: pointer; transition: color .3s; }

.nav-links li:hover,
.nav-links li.current-menu-item { color: var(--text); }

.nav-links li a {
  color: inherit; text-decoration: none;
  transition: color .3s;
}

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

.nav-cta {
  background: var(--gold); border: none; color: var(--bg);
  padding: 9px 22px; border-radius: 6px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .3s;
}

.nav-cta:hover { background: var(--gold-bright); }

/* ─── Section Common ─── */
.section { max-width: 1200px; margin: 0 auto; padding: 100px 48px; }

.section-tag {
  font-size: 11px; text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold); margin-bottom: 12px; font-weight: 500;
}

.section-h2 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 42px; font-weight: 600; line-height: 1.15;
  letter-spacing: -1px; margin-bottom: 16px;
}

.section-sub {
  font-size: 16px; color: var(--text-dim); max-width: 560px;
  line-height: 1.7; font-weight: 300;
}

/* ─── Hero ─── */
.hero-section { padding: 180px 48px 100px; text-align: center; }

.hero-badge {
  display: inline-block; border: 1px solid rgba(200,168,94,0.25);
  border-radius: 100px; padding: 5px 18px; font-size: 11px; font-weight: 500;
  color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 28px;
}

.hero-section h1 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 76px; font-weight: 700;
  line-height: 1.08; letter-spacing: -2px; max-width: 880px; margin: 0 auto 24px;
}

.hero-section h1 .accent {
  background: linear-gradient(145deg, var(--gold), #f0dea0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-section .hero-desc {
  font-size: 17px; color: var(--text-dim); max-width: 620px;
  margin: 0 auto 44px; font-weight: 300; line-height: 1.7;
}

.hero-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.btn-gold {
  background: var(--gold); border: none; color: var(--bg);
  padding: 14px 32px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .3s; text-decoration: none; display: inline-block;
}

.btn-gold:hover { background: var(--gold-bright); color: var(--bg); }

.btn-ghost {
  background: transparent; border: 1px solid rgba(232,230,227,0.15);
  color: var(--text); padding: 14px 32px; border-radius: 8px;
  font-size: 14px; font-weight: 500; cursor: pointer; transition: all .3s;
  text-decoration: none; display: inline-block;
}

.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ─── Trust Bar ─── */
.trust-bar { text-align: center; padding: 40px 48px 60px; }

.trust-bar p {
  font-size: 10px; text-transform: uppercase; letter-spacing: 4px;
  color: var(--text-faint); margin-bottom: 32px;
}

.trust-row {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 40px;
  align-items: center;
}

.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-faint); font-weight: 400;
}

.trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: 0.5; }

/* ─── Services Grid ─── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }

.service-card {
  background: linear-gradient(155deg, var(--bg-card), rgba(255,255,255,0.01));
  border: 1px solid var(--border); border-radius: 14px; padding: 36px 32px;
  transition: all .35s; position: relative; overflow: hidden;
}

.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(145deg, rgba(200,168,94,0.04), transparent 50%);
  opacity: 0; transition: opacity .35s;
}

.service-card:hover::before { opacity: 1; }

.service-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }

.service-card .svc-icon { font-size: 28px; margin-bottom: 18px; }

.service-card h3 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 20px; font-weight: 600;
  margin-bottom: 10px; color: var(--text);
}

.service-card p {
  font-size: 13px; color: var(--text-dim); line-height: 1.7;
}

.service-card .svc-tag {
  display: inline-block; margin-top: 16px; padding: 4px 10px;
  border-radius: 6px; font-size: 10px; font-weight: 500;
  background: rgba(200,168,94,0.08); color: var(--gold);
}

/* ─── Case Studies ─── */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }

.case-card {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  transition: all .35s; background: var(--bg-card); cursor: pointer;
}

.case-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }

.case-img {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 44px; position: relative; overflow: hidden;
}

.case-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,10,15,0.7), transparent 40%);
}

.case-body { padding: 24px 22px; }

.case-body .ind {
  font-size: 10px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--gold); margin-bottom: 6px; font-weight: 500;
}

.case-body h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 17px; font-weight: 600;
  margin-bottom: 6px; color: var(--text);
}

.case-body p {
  font-size: 13px; color: var(--text-dim); line-height: 1.6;
}

.case-body .case-stack {
  display: inline-block; margin-top: 12px; padding: 3px 10px;
  border-radius: 6px; font-size: 10px; font-weight: 500;
  background: rgba(200,168,94,0.08); color: var(--gold);
}

.case-ag { background: linear-gradient(145deg, #1e3b1e, #2d5a27); }
.case-ge { background: linear-gradient(145deg, #1a2d4a, #2a4070); }
.case-ph { background: linear-gradient(145deg, #2e1a4a, #4a2870); }
.case-ec { background: linear-gradient(145deg, #3b2e1a, #5a3d20); }
.case-qt { background: linear-gradient(145deg, #1a2838, #243850); }
.case-nl { background: linear-gradient(145deg, #183828, #245040); }

/* ─── Pricing ─── */
.pricing-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }

.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 40px 32px;
  transition: all .35s; position: relative;
}

.price-card.featured {
  border-color: rgba(200,168,94,0.25);
  background: linear-gradient(155deg, rgba(200,168,94,0.05), var(--bg-card));
}

.price-card.featured::after {
  content: 'Popular'; position: absolute; top: 14px; right: 14px;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  padding: 3px 10px; border-radius: 6px; background: rgba(200,168,94,0.12); color: var(--gold);
}

.price-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }

.price-card h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 20px; font-weight: 600; margin-bottom: 4px;
}

.price-card .price-type {
  font-size: 12px; color: var(--text-dim); margin-bottom: 20px; font-weight: 400;
}

.price-card .amount {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 40px; font-weight: 700; margin-bottom: 24px;
}

.price-card .amount span { font-size: 18px; color: var(--text-dim); font-weight: 400; }

.price-card ul {
  list-style: none; font-size: 13px; color: var(--text-dim);
  line-height: 2.2; margin-bottom: 28px; padding: 0;
}

.price-card ul li::before { content: '✓ '; color: var(--gold); font-weight: 600; }

.price-card .btn-block {
  width: 100%; padding: 13px; border-radius: 8px; border: 1px solid var(--border);
  background: transparent; color: var(--text); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .3s; display: block; text-align: center;
  text-decoration: none;
}

.price-card .btn-block:hover { border-color: var(--gold); color: var(--gold); }

.price-card.featured .btn-block { background: var(--gold); color: var(--bg); border: none; }

.price-card.featured .btn-block:hover { background: var(--gold-bright); }

/* ─── API Playground ─── */
.api-card {
  background: linear-gradient(155deg, rgba(200,168,94,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(200,168,94,0.12); border-radius: 16px;
  padding: 48px; margin-top: 48px;
}

.api-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 36px; }

.api-stat { text-align: center; }

.api-stat .num {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 32px; font-weight: 700; color: var(--gold);
}

.api-stat .lbl { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

.api-providers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 36px;
}

.api-prov {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; text-align: center; transition: all .3s;
}

.api-prov:hover { border-color: var(--border-hover); }

.api-prov .prov-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }

.api-prov .prov-model { font-size: 11px; color: var(--text-dim); }

.api-prov .prov-price {
  font-size: 11px; color: var(--gold); margin-top: 8px; font-weight: 500;
}

.code-block {
  background: #08080d; border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 24px; font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 13px; line-height: 1.8; color: var(--text-dim); overflow-x: auto;
  white-space: pre; word-wrap: normal;
}

.code-block .kw { color: #c792ea; }
.code-block .str { color: #c3e88d; }
.code-block .fn { color: #82aaff; }
.code-block .cmt { color: #546e7a; }
.code-block .uri { color: var(--gold); }

/* ─── CTA ─── */
.cta-section { text-align: center; padding: 100px 48px; }

.cta-section h2 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 48px; font-weight: 700;
  letter-spacing: -1px; margin-bottom: 16px;
}

.cta-section h2 .accent {
  background: linear-gradient(145deg, var(--gold), #f0dea0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.cta-section p {
  font-size: 16px; color: var(--text-dim); margin-bottom: 36px;
  max-width: 480px; margin-inline: auto;
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border); padding: 48px 48px 32px;
  display: flex; justify-content: space-between; align-items: flex-start;
  max-width: 1200px; margin: 0 auto; flex-wrap: wrap; gap: 32px;
}

.footer-brand .logo { font-size: 20px; margin-bottom: 8px; }

.footer-brand p { font-size: 12px; color: var(--text-faint); }

.footer-links { display: flex; gap: 48px; }

.footer-col h5 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-dim); margin-bottom: 14px;
}

.footer-col a {
  display: block; font-size: 13px; color: var(--text-faint);
  text-decoration: none; margin-bottom: 8px; transition: color .3s;
}

.footer-col a:hover { color: var(--gold); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .services-grid, .case-grid, .pricing-row { grid-template-columns: repeat(2, 1fr); }
  .api-providers { grid-template-columns: repeat(2, 1fr); }
  .api-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav { padding: 14px 24px; }
  .nav-links { display: none; }
  .section { padding: 60px 24px; }
  .hero-section { padding: 140px 24px 80px; }
  .hero-section h1 { font-size: clamp(32px, 8vw, 76px); }
  .services-grid, .case-grid, .pricing-row { grid-template-columns: 1fr; }
  .api-providers, .api-stats { grid-template-columns: 1fr; }
  .api-card { padding: 24px; }
  .section-h2 { font-size: 32px; }
  .cta-section h2 { font-size: 32px; }
  footer { flex-direction: column; text-align: center; align-items: center; }
  .footer-links { flex-direction: column; text-align: center; gap: 24px; }
  .trust-row { gap: 20px; }
  .hero-btns { flex-direction: column; align-items: center; }
}

/* ─── WordPress Content Area ─── */
.entry-content { margin: 0; max-width: 100%; }
.site-main { padding: 0; }
