:root {
  --aiph-primary: #6c4df6;
  --aiph-primary-2: #8b5cf6;
  --aiph-cyan: #06b6d4;
  --aiph-ink: #111827;
  --aiph-text: #334155;
  --aiph-muted: #64748b;
  --aiph-bg: #f8fafc;
  --aiph-card: #ffffff;
  --aiph-border: #e5e7eb;
  --aiph-radius: 22px;
  --aiph-shadow: 0 18px 55px rgba(15, 23, 42, .08);
  --aiph-container: 1180px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--aiph-bg);
  color: var(--aiph-text);
  font-family: Inter, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { text-decoration: none; }
.aiph-container { width: min(var(--aiph-container), calc(100% - 40px)); margin: 0 auto; }
.aiph-site-main { overflow: hidden; }

/* Header */
.aiph-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,.75);
}
.aiph-header-inner { min-height: 76px; display:flex; align-items:center; justify-content:space-between; gap:22px; }
.aiph-logo { display:inline-flex; align-items:center; gap:10px; color:var(--aiph-ink); font-size:19px; font-weight:800; letter-spacing:-.04em; }
.aiph-logo-mark {
  width:36px;height:36px;display:grid;place-items:center;border-radius:11px;color:#fff;
  background:linear-gradient(135deg,var(--aiph-primary),var(--aiph-cyan));
  box-shadow:0 8px 22px rgba(108,77,246,.25);
}
.aiph-nav { display:flex; align-items:center; gap:27px; }
.aiph-nav a { color:#475569; font-size:14px; font-weight:650; transition:.2s; }
.aiph-nav a:hover { color:var(--aiph-primary); }
.aiph-header-actions { display:flex; align-items:center; gap:10px; }
.aiph-search-toggle, .aiph-menu-toggle {
  border:0; background:transparent; color:var(--aiph-ink); cursor:pointer; font-size:22px; padding:8px;
}
.aiph-header-cta { background:var(--aiph-ink); color:#fff; padding:11px 16px; border-radius:12px; font-size:13px; font-weight:750; }
.aiph-menu-toggle { display:none; }
.aiph-mobile-menu, .aiph-search-panel { display:none; }
.aiph-search-panel.is-open { display:block; border-top:1px solid var(--aiph-border); padding:16px 0; background:#fff; }
.aiph-search-form, .aiph-main-search { display:flex; align-items:center; gap:10px; border:1px solid var(--aiph-border); background:#fff; border-radius:15px; padding:7px; }
.aiph-search-form span, .aiph-main-search span { padding-left:12px; font-size:20px; color:var(--aiph-muted); }
.aiph-search-form input, .aiph-main-search input { flex:1; border:0; outline:0; min-width:0; background:transparent; font-size:15px; }
.aiph-search-form button, .aiph-main-search button { border:0; background:var(--aiph-primary); color:#fff; border-radius:11px; padding:11px 17px; font-weight:750; cursor:pointer; }

/* Hero */
.aiph-hero { position:relative; background:radial-gradient(circle at 75% 35%, rgba(139,92,246,.15), transparent 34%), linear-gradient(180deg,#fff 0%,#f8faff 100%); padding:86px 0 70px; }
.aiph-hero-grid { display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:60px; }
.aiph-eyebrow, .aiph-kicker, .aiph-mini-label { font-size:11px; font-weight:850; letter-spacing:.14em; color:var(--aiph-primary); }
.aiph-eyebrow { display:flex; align-items:center; gap:8px; margin-bottom:17px; }
.aiph-eyebrow span { width:8px;height:8px;border-radius:50%;background:var(--aiph-cyan);box-shadow:0 0 0 5px rgba(6,182,212,.12); }
.aiph-hero h1 { color:var(--aiph-ink); font-size:clamp(42px,5.1vw,72px); line-height:1.02; letter-spacing:-.055em; max-width:720px; margin:0 0 22px; font-weight:850; }
.aiph-hero p { max-width:630px; font-size:18px; line-height:1.7; color:#64748b; margin:0 0 28px; }
.aiph-hero-buttons { display:flex; gap:12px; flex-wrap:wrap; }
.aiph-btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:13px 18px; border-radius:13px; font-size:14px; font-weight:800; transition:transform .2s,box-shadow .2s; }
.aiph-btn:hover { transform:translateY(-2px); }
.aiph-btn-primary { background:linear-gradient(135deg,var(--aiph-primary),var(--aiph-primary-2)); color:#fff; box-shadow:0 13px 28px rgba(108,77,246,.23); }
.aiph-btn-secondary { background:#fff; color:var(--aiph-ink); border:1px solid var(--aiph-border); }
.aiph-btn-dark { background:var(--aiph-ink); color:#fff; }
.aiph-btn-white { background:#fff; color:var(--aiph-primary); }
.aiph-btn-outline-white { color:#fff; border:1px solid rgba(255,255,255,.35); }
.aiph-hero-proof { display:flex; align-items:center; gap:10px; margin-top:25px; color:#64748b; font-size:13px; }
.aiph-avatar-stack { display:flex; }
.aiph-avatar-stack i { width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#111827;color:#fff;border:2px solid #fff;font-size:9px;font-style:normal;margin-left:-5px; }
.aiph-avatar-stack i:first-child { margin-left:0;background:var(--aiph-primary); }

.aiph-hero-art { position:relative; min-height:470px; display:grid; place-items:center; }
.aiph-glow { position:absolute; width:390px;height:390px;border-radius:50%;background:radial-gradient(circle,rgba(108,77,246,.24),transparent 66%); filter:blur(8px); }
.aiph-art-card { position:absolute; width:340px; height:430px; border-radius:30px; overflow:hidden; }
.aiph-art-back { transform:rotate(8deg) translate(28px,5px); background:linear-gradient(145deg,#e2e8f0,#c4b5fd 55%,#67e8f9); box-shadow:var(--aiph-shadow); }
.aiph-art-front { padding:18px; display:flex; flex-direction:column; justify-content:space-between; color:#fff; background:linear-gradient(155deg,#111827,#312e81 48%,#0e7490); box-shadow:0 35px 80px rgba(15,23,42,.25); }
.aiph-art-top { display:flex; justify-content:space-between; font-size:10px; font-weight:800; letter-spacing:.14em; opacity:.85; }
.aiph-art-person { flex:1; margin:16px 0; border-radius:22px; background:
  radial-gradient(circle at 50% 29%, #f5d0b5 0 9%, transparent 9.5%),
  radial-gradient(ellipse at 50% 63%, #111827 0 23%, transparent 23.5%),
  radial-gradient(ellipse at 50% 78%, #a78bfa 0 28%, transparent 28.5%),
  linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.02));
}
.aiph-art-caption { display:flex; flex-direction:column; gap:5px; }
.aiph-art-caption strong { font-size:20px; letter-spacing:-.03em; }
.aiph-art-caption span { font-size:12px; opacity:.7; }
.aiph-floating-chip { position:absolute; padding:10px 13px; border:1px solid rgba(255,255,255,.7); background:rgba(255,255,255,.88); backdrop-filter:blur(12px); border-radius:13px; color:var(--aiph-ink); font-size:11px; font-weight:800; box-shadow:0 15px 35px rgba(15,23,42,.12); }
.chip-one { top:70px; left:4%; }.chip-two { right:0; top:43%; }.chip-three { bottom:50px; left:2%; }

/* Search / sections */
.aiph-search-section { margin-top:-1px; position:relative; z-index:2; }
.aiph-search-card { display:flex; align-items:center; justify-content:space-between; gap:30px; padding:25px 28px; background:#fff; border:1px solid var(--aiph-border); border-radius:20px; box-shadow:var(--aiph-shadow); }
.aiph-search-card h2 { margin:6px 0 0; color:var(--aiph-ink); font-size:22px; letter-spacing:-.035em; }
.aiph-main-search { min-width:min(520px,100%); }
.aiph-section { padding:88px 0; }
.aiph-section-soft { background:#f1f5f9; }
.aiph-section-heading { display:flex; align-items:end; justify-content:space-between; gap:25px; margin-bottom:32px; }
.aiph-section-heading.centered { display:block; text-align:center; max-width:700px; margin-left:auto; margin-right:auto; }
.aiph-section-heading h2 { color:var(--aiph-ink); font-size:clamp(28px,3vw,42px); letter-spacing:-.045em; line-height:1.1; margin:8px 0 8px; }
.aiph-section-heading p { color:var(--aiph-muted); margin:0; }
.aiph-view-all { color:var(--aiph-primary); font-weight:800; font-size:13px; }

/* Cards */
.aiph-card-grid { display:grid; gap:22px; }
.aiph-grid-3 { grid-template-columns:repeat(3,1fr); }
.aiph-grid-4 { grid-template-columns:repeat(4,1fr); }
.aiph-card { background:#fff; border:1px solid var(--aiph-border); border-radius:var(--aiph-radius); overflow:hidden; transition:transform .22s,box-shadow .22s; }
.aiph-card:hover { transform:translateY(-5px); box-shadow:var(--aiph-shadow); }
.aiph-card-media { display:block; aspect-ratio:16/10; overflow:hidden; background:linear-gradient(135deg,#ede9fe,#cffafe); }
.aiph-card-media img { width:100%;height:100%;object-fit:cover;transition:transform .5s; }
.aiph-card:hover .aiph-card-media img { transform:scale(1.04); }
.aiph-placeholder { width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#ede9fe,#cffafe);color:var(--aiph-primary);font-weight:900;letter-spacing:.12em;font-size:12px; }
.aiph-card-body { padding:18px; }
.aiph-card-meta { display:flex; align-items:center; gap:9px; color:#94a3b8; font-size:11px; font-weight:650; }
.aiph-badge { color:var(--aiph-primary); background:#f1edff; border-radius:999px; padding:5px 8px; font-weight:800; }
.aiph-card-title { margin:12px 0 8px; font-size:19px; line-height:1.25; letter-spacing:-.025em; }
.aiph-card-title a { color:var(--aiph-ink); }
.aiph-card-excerpt { color:var(--aiph-muted); font-size:13px; line-height:1.65; margin:0 0 15px; }
.aiph-read-more { color:var(--aiph-primary); font-size:12px; font-weight:850; }
.aiph-card-featured { display:grid; grid-template-columns:1.35fr 1fr; }
.aiph-card-featured .aiph-card-media { aspect-ratio:auto; min-height:380px; }
.aiph-card-featured .aiph-card-body { display:flex; flex-direction:column; justify-content:center; padding:45px; }
.aiph-card-featured .aiph-card-title { font-size:34px; }
.aiph-card-featured .aiph-card-excerpt { font-size:15px; }

/* Categories */
.aiph-category-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; }
.aiph-category-card { display:flex; align-items:center; gap:13px; background:#fff; border:1px solid var(--aiph-border); padding:17px; border-radius:16px; color:var(--aiph-ink); transition:.2s; }
.aiph-category-card:hover { border-color:#c4b5fd; box-shadow:0 12px 35px rgba(108,77,246,.08); transform:translateY(-2px); }
.aiph-category-icon { flex:0 0 42px; width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#f1edff;color:var(--aiph-primary);font-weight:900; }
.aiph-category-text { min-width:0; display:flex; flex-direction:column; gap:4px; }
.aiph-category-text strong { font-size:13px; }
.aiph-category-text small { color:var(--aiph-muted); font-size:10px; line-height:1.4; }
.aiph-category-arrow { margin-left:auto; color:#94a3b8; }

/* Featured / split */
.aiph-featured-section { padding-top:55px; }
.aiph-split-section { display:grid; grid-template-columns:.8fr 1.2fr; gap:55px; align-items:center; }
.aiph-split-copy h2 { font-size:clamp(32px,4vw,52px); line-height:1.05; color:var(--aiph-ink); letter-spacing:-.05em; margin:10px 0 18px; }
.aiph-split-copy p { color:var(--aiph-muted); line-height:1.75; margin-bottom:25px; }
.aiph-mini-mosaic { display:grid; grid-template-columns:1.1fr .9fr; grid-template-rows:210px 210px; gap:14px; }
.aiph-mosaic-card { border-radius:23px; overflow:hidden; position:relative; background:linear-gradient(135deg,#ddd6fe,#cffafe); }
.aiph-mosaic-card:after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 45%,rgba(15,23,42,.55)); }
.aiph-mosaic-card span { position:absolute; z-index:2; bottom:15px; left:15px; color:#fff; font-weight:800; font-size:13px; }
.mosaic-one { grid-row:span 2; background:linear-gradient(150deg,#a78bfa,#164e63); }
.mosaic-two { background:linear-gradient(150deg,#67e8f9,#4c1d95); }
.mosaic-three { background:linear-gradient(150deg,#fbcfe8,#7c3aed); }
.mosaic-four { display:none; }

/* Steps */
.aiph-steps { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:#dbe3ee; border:1px solid #dbe3ee; border-radius:20px; overflow:hidden; }
.aiph-step { background:#fff; padding:28px; min-height:190px; }
.aiph-step span { color:var(--aiph-primary); font-size:12px; font-weight:900; }
.aiph-step h3 { color:var(--aiph-ink); margin:28px 0 8px; font-size:17px; }
.aiph-step p { margin:0; color:var(--aiph-muted); font-size:13px; line-height:1.6; }

/* Newsletter */
.aiph-newsletter { padding:0 0 88px; }
.aiph-newsletter-card { border-radius:28px; padding:50px; display:flex; justify-content:space-between; align-items:center; gap:30px; color:#fff; background:linear-gradient(120deg,#312e81,#6c4df6 55%,#0891b2); box-shadow:0 30px 70px rgba(49,46,129,.2); }
.aiph-newsletter-card h2 { font-size:clamp(28px,4vw,45px); max-width:700px; letter-spacing:-.045em; line-height:1.05; margin:8px 0 10px; }
.aiph-newsletter-card p { margin:0; opacity:.78; max-width:620px; }
.aiph-newsletter-card .aiph-kicker { color:#c4b5fd; }
.aiph-newsletter-actions { display:flex; gap:10px; flex-shrink:0; }

/* Single */
.aiph-reading-progress { position:fixed; left:0; top:0; height:3px; width:0; background:linear-gradient(90deg,var(--aiph-primary),var(--aiph-cyan)); z-index:9999; }
.aiph-single-main { padding:45px 0 0; }
.aiph-single-layout { display:grid; grid-template-columns:minmax(0,820px) 280px; gap:45px; align-items:start; }
.aiph-breadcrumbs { display:flex; flex-wrap:wrap; gap:7px; color:#94a3b8; font-size:11px; margin-bottom:25px; }
.aiph-breadcrumbs a { color:var(--aiph-primary); }
.aiph-entry-header h1 { color:var(--aiph-ink); font-size:clamp(34px,5vw,58px); line-height:1.05; letter-spacing:-.05em; margin:14px 0; }
.aiph-entry-byline { color:#64748b; font-size:12px; }
.aiph-entry-image { margin:28px 0; }
.aiph-entry-image img { width:100%; border-radius:24px; display:block; }
.aiph-entry-content { background:#fff; border:1px solid var(--aiph-border); border-radius:24px; padding:clamp(24px,5vw,48px); font-size:17px; line-height:1.85; color:#334155; }
.aiph-entry-content h2, .aiph-entry-content h3, .aiph-entry-content h4 { color:var(--aiph-ink); line-height:1.2; letter-spacing:-.03em; margin-top:1.8em; }
.aiph-entry-content img { max-width:100%; height:auto; border-radius:16px; }
.aiph-entry-content a { color:var(--aiph-primary); font-weight:650; }
.aiph-entry-content blockquote { margin:28px 0; padding:18px 22px; border-left:4px solid var(--aiph-primary); background:#f5f3ff; border-radius:0 14px 14px 0; }
.aiph-prompt-box { position:relative; margin:28px 0; padding:22px; border-radius:18px; border:1px solid #c4b5fd; background:linear-gradient(145deg,#faf8ff,#f0fdff); }
.aiph-prompt-label { color:var(--aiph-primary); font-size:11px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; padding-right:120px; }
.aiph-prompt-text { margin-top:13px; white-space:pre-wrap; font-size:15px; line-height:1.7; color:#1e293b; }
.aiph-copy-btn { position:absolute; top:17px; right:17px; border:0; border-radius:10px; padding:9px 12px; background:var(--aiph-ink); color:#fff; cursor:pointer; font-size:11px; font-weight:800; }
.aiph-copy-btn.is-copied { background:#059669; }
.aiph-tags { margin-top:22px; font-size:12px; color:#64748b; }
.aiph-single-sidebar { position:sticky; top:105px; }
.aiph-sidebar-card { background:#111827; color:#fff; padding:24px; border-radius:20px; }
.aiph-sidebar-card .aiph-kicker { color:#a78bfa; }
.aiph-sidebar-card h3 { color:#fff; margin:10px 0; font-size:21px; line-height:1.2; }
.aiph-sidebar-card p { color:#cbd5e1; font-size:13px; line-height:1.65; }
.aiph-widget { background:#fff; padding:20px; border:1px solid var(--aiph-border); border-radius:18px; margin-top:16px; }
.aiph-widget-title { color:var(--aiph-ink); }
.aiph-related { padding-top:50px; }

/* Archive */
.aiph-archive-main, .aiph-page-main, .aiph-404 { padding:70px 0 90px; }
.aiph-archive-header { margin-bottom:35px; max-width:820px; }
.aiph-archive-header h1 { color:var(--aiph-ink); font-size:clamp(34px,5vw,58px); line-height:1.05; letter-spacing:-.05em; margin:10px 0 12px; }
.aiph-archive-description { color:var(--aiph-muted); line-height:1.7; }
.aiph-archive-header .aiph-main-search { margin-top:25px; max-width:650px; }
.aiph-pagination { margin-top:35px; }
.aiph-pagination .nav-links { display:flex; gap:8px; flex-wrap:wrap; }
.aiph-pagination a, .aiph-pagination span { padding:9px 13px; border-radius:10px; background:#fff; border:1px solid var(--aiph-border); color:var(--aiph-ink); font-size:12px; }
.aiph-pagination .current { background:var(--aiph-primary); color:#fff; border-color:var(--aiph-primary); }
.aiph-content-narrow { max-width:820px; }
.aiph-empty-state { grid-column:1/-1; background:#fff; border:1px solid var(--aiph-border); border-radius:20px; padding:45px; text-align:center; }
.aiph-empty-state h2, .aiph-empty-state h3 { color:var(--aiph-ink); }

/* 404 */
.aiph-404-card { max-width:700px; margin:auto; text-align:center; padding:70px 30px; background:#fff; border:1px solid var(--aiph-border); border-radius:28px; box-shadow:var(--aiph-shadow); }
.aiph-404-number { font-size:110px; line-height:.8; font-weight:900; letter-spacing:-.08em; color:var(--aiph-primary); }
.aiph-404-card h1 { color:var(--aiph-ink); font-size:36px; margin:30px 0 10px; }
.aiph-404-card p { color:var(--aiph-muted); margin-bottom:25px; }
.aiph-404-card .aiph-main-search { max-width:600px; margin:0 auto 20px; }

/* Footer */
.aiph-footer { background:#0b1120; color:#94a3b8; padding:65px 0 20px; }
.aiph-footer-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:40px; }
.aiph-footer-logo { color:#fff; margin-bottom:15px; }
.aiph-footer-copy { max-width:320px; line-height:1.7; font-size:13px; }
.aiph-footer h3 { color:#fff; font-size:13px; margin:0 0 15px; }
.aiph-footer-grid > div:not(:first-child) a { display:block; color:#94a3b8; font-size:12px; margin:10px 0; }
.aiph-footer-grid > div:not(:first-child) a:hover { color:#fff; }
.aiph-footer-bottom { border-top:1px solid rgba(255,255,255,.08); margin-top:45px; padding-top:18px; display:flex; justify-content:space-between; gap:15px; font-size:11px; }
.aiph-socials { display:flex; gap:15px; }
.aiph-socials a { color:#cbd5e1; }

/* Responsive */
@media (max-width: 1050px) {
  .aiph-nav { gap:16px; }
  .aiph-grid-4 { grid-template-columns:repeat(2,1fr); }
  .aiph-category-grid { grid-template-columns:repeat(2,1fr); }
  .aiph-single-layout { grid-template-columns:1fr; }
  .aiph-single-sidebar { display:none; }
}
@media (max-width: 800px) {
  .aiph-container { width:min(var(--aiph-container),calc(100% - 28px)); }
  .aiph-nav, .aiph-header-cta { display:none; }
  .aiph-menu-toggle { display:block; }
  .aiph-mobile-menu.is-open { display:flex; flex-direction:column; gap:0; background:#fff; border-top:1px solid var(--aiph-border); }
  .aiph-mobile-menu a { padding:14px 20px; color:var(--aiph-ink); font-weight:700; border-bottom:1px solid #f1f5f9; }
  .aiph-hero { padding:55px 0 35px; }
  .aiph-hero-grid { grid-template-columns:1fr; gap:20px; }
  .aiph-hero h1 { font-size:44px; }
  .aiph-hero-art { min-height:400px; }
  .aiph-art-card { width:285px; height:365px; }
  .aiph-search-card { flex-direction:column; align-items:stretch; }
  .aiph-main-search { min-width:0; }
  .aiph-grid-3 { grid-template-columns:1fr 1fr; }
  .aiph-card-featured { grid-template-columns:1fr; }
  .aiph-card-featured .aiph-card-media { min-height:0; aspect-ratio:16/10; }
  .aiph-card-featured .aiph-card-body { padding:25px; }
  .aiph-card-featured .aiph-card-title { font-size:28px; }
  .aiph-split-section { grid-template-columns:1fr; }
  .aiph-steps { grid-template-columns:1fr 1fr; }
  .aiph-newsletter-card { flex-direction:column; align-items:flex-start; padding:32px; }
  .aiph-footer-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 560px) {
  .aiph-header-inner { min-height:66px; }
  .aiph-hero h1 { font-size:39px; }
  .aiph-hero p { font-size:16px; }
  .aiph-hero-art { min-height:360px; }
  .aiph-art-card { width:245px; height:315px; }
  .aiph-floating-chip { font-size:9px; padding:8px 9px; }
  .chip-one { left:0; top:35px; }.chip-two { right:0; }.chip-three { left:0; bottom:20px; }
  .aiph-section { padding:65px 0; }
  .aiph-section-heading { align-items:flex-start; flex-direction:column; }
  .aiph-grid-3, .aiph-grid-4, .aiph-category-grid { grid-template-columns:1fr; }
  .aiph-steps { grid-template-columns:1fr; }
  .aiph-step { min-height:auto; }
  .aiph-newsletter-actions { width:100%; flex-direction:column; }
  .aiph-newsletter-actions .aiph-btn { width:100%; }
  .aiph-footer-grid { grid-template-columns:1fr; }
  .aiph-footer-bottom { flex-direction:column; }
  .aiph-entry-content { padding:22px 18px; font-size:16px; }
  .aiph-entry-header h1 { font-size:36px; }
  .aiph-prompt-label { padding-right:0; padding-bottom:42px; }
  .aiph-copy-btn { top:48px; right:17px; }
}
