/* ============================================================
   POHPEH Design System V2 — Modern AI/Developer SaaS Theme
   Tokens · Base · Components · Animations
   Static-first · no JS · preserves all existing class names
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* brand (locked) */
  --ph-teal: #00B4B8;
  --ph-teal-deep: #084A4E;
  --ph-orange: #FF6B35;            /* hexagon core ONLY */
  --ph-slate: #12343B;
  --ph-offwhite: #F5F4F0;

  /* V2 extended palette — AI/developer SaaS */
  --ph-bg: #060B12;                /* dark canvas */
  --ph-bg-soft: #0A1220;
  --ph-surface: #0E1A2B;
  --ph-surface-2: #132238;
  --ph-border: rgba(148, 178, 215, 0.16);
  --ph-border-strong: rgba(0, 180, 184, 0.35);
  --ph-text: #E8EEF7;
  --ph-text-muted: #93A5BE;
  --ph-text-dim: #5F738F;

  /* gradients */
  --ph-grad-hero: radial-gradient(1200px 600px at 20% -10%, rgba(0,180,184,.22), transparent 60%),
                  radial-gradient(1000px 500px at 90% 0%, rgba(124,92,255,.18), transparent 55%),
                  radial-gradient(800px 500px at 60% 120%, rgba(0,180,184,.10), transparent 60%);
  --ph-grad-cta: linear-gradient(135deg, #00B4B8 0%, #1E7F9C 50%, #7C5CFF 100%);
  --ph-grad-card: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  --ph-glow-teal: 0 0 0 1px rgba(0,180,184,.25), 0 8px 40px -8px rgba(0,180,184,.35);
  --ph-glow-violet: 0 0 0 1px rgba(124,92,255,.25), 0 8px 40px -8px rgba(124,92,255,.35);

  /* typography */
  --ph-font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --ph-font-body: 'Inter', system-ui, sans-serif;
  --ph-font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* radius / shadow */
  --ph-radius-sm: 10px;
  --ph-radius: 16px;
  --ph-radius-lg: 22px;
  --ph-radius-full: 999px;
  --ph-shadow-card: 0 1px 2px rgba(0,0,0,.4), 0 12px 40px -12px rgba(0,0,0,.55);

  /* layout */
  --ph-container: 1200px;
  --ph-gutter: 24px;
  --ph-section: 110px;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ph-font-body);
  background: var(--ph-bg);
  color: var(--ph-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: var(--ph-font-display); line-height: 1.15; letter-spacing: -0.02em; color: var(--ph-text); }
p { color: var(--ph-text-muted); }
a { color: var(--ph-teal); text-decoration: none; }
a:hover { color: #4FDCE0; }
img, svg { max-width: 100%; display: block; }
::selection { background: rgba(0,180,184,.35); color: #fff; }

.container { max-width: var(--ph-container); margin: 0 auto; padding: 0 var(--ph-gutter); }
section { padding: var(--ph-section) 0; position: relative; }
@media (max-width: 768px) { section { padding: 64px 0; } }

/* ---------- 3. BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--ph-radius-sm);
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ph-grad-cta); color: #fff;
  box-shadow: 0 4px 24px -6px rgba(0,180,184,.5);
}
.btn-primary:hover { box-shadow: 0 8px 32px -6px rgba(0,180,184,.65); color: #fff; }
.btn-secondary {
  border-color: var(--ph-border-strong); color: var(--ph-text);
  background: rgba(255,255,255,.03);
}
.btn-secondary:hover { background: rgba(0,180,184,.12); color: #fff; }
.btn-ghost { color: var(--ph-text-muted); padding: 8px 14px; }
.btn-ghost:hover { color: var(--ph-text); background: rgba(255,255,255,.05); }
.btn-orange { background: var(--ph-orange); color: #1A0B05; }
.btn-orange:hover { background: #E55A2B; color: #1A0B05; }
.btn-lg { padding: 15px 34px; font-size: 1.02rem; border-radius: 14px; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- 4. NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,11,18,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ph-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav-brand { font-family: var(--ph-font-display); font-weight: 700; font-size: 1.3rem; color: var(--ph-text); display: flex; align-items: center; gap: 10px; }
.nav-brand .dot { color: var(--ph-teal); }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: var(--ph-text-muted); text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ph-text); background: rgba(255,255,255,.05); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.lang-switch {
  font-size: .85rem; font-weight: 600; color: var(--ph-text-muted);
  border: 1px solid var(--ph-border); padding: 7px 12px; border-radius: 8px; transition: all .15s;
}
.lang-switch:hover { color: var(--ph-text); border-color: var(--ph-border-strong); }
@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ---------- 5. HERO ---------- */
.hero {
  text-align: center;
  padding: 130px 0 100px;
  background: var(--ph-grad-hero);
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,180,184,.5), rgba(124,92,255,.5), transparent);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,180,184,.1); border: 1px solid rgba(0,180,184,.3);
  color: #4FDCE0; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 7px 16px; border-radius: var(--ph-radius-full);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  margin-bottom: 22px;
  background: linear-gradient(120deg, #fff 30%, #7FE3E6 55%, #B9A8FF 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ph-text-muted);
  max-width: 640px; margin: 0 auto 38px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 6. SECTIONS / CARDS ---------- */
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ph-teal); margin-bottom: 12px;
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: 18px; }
.section-sub { color: var(--ph-text-muted); max-width: 660px; margin-bottom: 48px; font-size: 1.05rem; }
.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

.card {
  background: var(--ph-grad-card);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  padding: 28px;
  box-shadow: var(--ph-shadow-card);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,180,184,.5), transparent);
  opacity: 0; transition: opacity .2s;
}
.card:hover { transform: translateY(-3px); border-color: var(--ph-border-strong); box-shadow: var(--ph-glow-teal); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { font-size: .93rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- 7. BADGES / STATUS ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 700; letter-spacing: .06em;
  padding: 5px 12px; border-radius: var(--ph-radius-full);
  border: 1px solid transparent;
}
.badge-available { background: rgba(30,142,90,.15); color: #4EE39A; border-color: rgba(30,142,90,.4); }
.badge-soon { background: rgba(147,165,190,.1); color: var(--ph-text-muted); border-color: var(--ph-border); }
.badge-popular { background: rgba(124,92,255,.15); color: #B9A8FF; border-color: rgba(124,92,255,.4); }
.status-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- 8. PRICING ---------- */
.price { font-family: var(--ph-font-display); font-size: 2.1rem; font-weight: 700; margin: 10px 0 0; color: var(--ph-text); }
.muted { color: var(--ph-text-dim); font-size: .85rem; }
.card.featured { border-color: var(--ph-border-strong); box-shadow: var(--ph-glow-teal); }
.card.featured:hover { box-shadow: var(--ph-glow-teal); }

ul.checklist { list-style: none; margin: 18px 0 0; padding: 0; }
ul.checklist li { padding: 6px 0; font-size: .92rem; color: var(--ph-text-muted); display: flex; gap: 8px; align-items: flex-start; }
ul.checklist li::before { content: '✓'; color: var(--ph-teal); font-weight: 700; flex-shrink: 0; }
ul.clean { list-style: none; }
ul.clean li { padding: 6px 0; }

/* ---------- 9. PAGE HERO (inner pages) ---------- */
.page-hero { padding: 90px 0 48px; background: var(--ph-grad-hero); }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: var(--ph-text-muted); max-width: 680px; font-size: 1.08rem; }

/* ---------- 10. SAFETY / DARK SECTION ---------- */
.safety { background: linear-gradient(180deg, rgba(0,180,184,.06), transparent); border-top: 1px solid var(--ph-border); border-bottom: 1px solid var(--ph-border); }
.safety .mode {
  background: var(--ph-surface); border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius); padding: 26px; text-align: left;
}
.safety .mode h3 { margin-bottom: 8px; }

/* ---------- 11. SCORE ---------- */
.score { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--ph-font-display); }
.score b { font-size: 1.7rem; color: var(--ph-text); }

/* ---------- 12. SPLIT ---------- */
.split { display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.split > * { flex: 1; min-width: 280px; }

/* ---------- 13. V2 COMPONENTS ---------- */
/* Logo cloud */
.logo-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; align-items: center; }
.logo-cloud span {
  font-family: var(--ph-font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--ph-text-dim); letter-spacing: .02em;
  padding: 10px 18px; border: 1px solid var(--ph-border); border-radius: 12px;
  background: rgba(255,255,255,.02);
  transition: color .15s, border-color .15s;
}
.logo-cloud span:hover { color: var(--ph-text); border-color: var(--ph-border-strong); }

/* Product preview mockup (dashboard) */
.preview-wrap { position: relative; max-width: 860px; margin: 0 auto; }
.preview-glow { position: absolute; inset: -20% -10% -30% -10%; background: radial-gradient(closest-side, rgba(0,180,184,.18), transparent 70%); filter: blur(30px); z-index: 0; }
.dashboard {
  position: relative; z-index: 1;
  background: var(--ph-surface);
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius-lg);
  box-shadow: var(--ph-shadow-card), 0 30px 80px -30px rgba(0,180,184,.3);
  overflow: hidden;
  text-align: left;
}
.dashboard-head {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px; border-bottom: 1px solid var(--ph-border);
  background: rgba(255,255,255,.02);
}
.dashboard-head i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dashboard-head i:nth-child(1) { background: #FF5F57; }
.dashboard-head i:nth-child(2) { background: #FEBC2E; }
.dashboard-head i:nth-child(3) { background: #28C840; }
.dashboard-title { margin-left: 10px; font-size: .82rem; color: var(--ph-text-dim); font-family: var(--ph-font-mono); }
.dashboard-body { padding: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .dashboard-body { grid-template-columns: 1fr; } }
.metric-card {
  background: rgba(255,255,255,.03); border: 1px solid var(--ph-border);
  border-radius: 14px; padding: 18px 20px;
}
.metric-card .k { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ph-text-dim); font-weight: 600; }
.metric-card .v { font-family: var(--ph-font-display); font-size: 2rem; font-weight: 700; margin-top: 4px; color: var(--ph-text); }
.metric-card .v em { font-style: normal; color: var(--ph-teal); }
.metric-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.07); margin-top: 12px; overflow: hidden; }
.metric-bar span { display: block; height: 100%; border-radius: 4px; background: var(--ph-grad-cta); }
.metric-card .ok { font-size: .85rem; color: #4EE39A; margin-top: 10px; display: flex; gap: 8px; align-items: center; }
.metric-card .ok::before { content: '✓'; }

/* Workflow steps */
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: wf; }
@media (max-width: 800px) { .workflow { grid-template-columns: 1fr; } }
.wf-step { position: relative; padding: 30px 26px; background: var(--ph-surface); border: 1px solid var(--ph-border); border-radius: var(--ph-radius); }
.wf-step::before {
  counter-increment: wf; content: '0' counter(wf);
  font-family: var(--ph-font-display); font-size: .85rem; font-weight: 700; color: var(--ph-teal);
  display: inline-block; padding: 4px 12px; border: 1px solid var(--ph-border-strong); border-radius: var(--ph-radius-full);
  margin-bottom: 16px;
}
.wf-step h3 { margin-bottom: 8px; }
.wf-step p { font-size: .92rem; }

/* Integration cards */
.integration-item { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: rgba(255,255,255,.02); border: 1px solid var(--ph-border); border-radius: 12px; transition: border-color .15s, transform .15s; }
.integration-item:hover { border-color: var(--ph-border-strong); transform: translateY(-2px); }
.integration-item .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--ph-surface-2); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.integration-item strong { font-size: .95rem; }
.integration-item small { display: block; color: var(--ph-text-dim); font-size: .8rem; }

/* CTA band */
.cta-band {
  position: relative;
  background: var(--ph-grad-cta);
  border-radius: var(--ph-radius-lg);
  padding: 64px 40px;
  text-align: center;
  overflow: hidden;
}
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 200px at 50% 0%, rgba(255,255,255,.15), transparent 70%); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 14px; position: relative; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 28px; position: relative; }

/* Footer */
.footer { background: var(--ph-bg-soft); border-top: 1px solid var(--ph-border); padding: 70px 0 36px; }
.footer h3 { color: var(--ph-text); margin-bottom: 18px; font-size: .95rem; }
.footer a { color: var(--ph-text-muted); text-decoration: none; display: block; margin-bottom: 10px; font-size: .9rem; transition: color .15s; }
.footer a:hover { color: var(--ph-teal); }
.footer-bottom { border-top: 1px solid var(--ph-border); margin-top: 48px; padding-top: 26px; text-align: center; font-size: .9rem; color: var(--ph-text-muted); }
.footer-bottom strong { color: var(--ph-text); }

/* ---------- 14. ANIMATIONS ---------- */
@keyframes ph-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ph-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ph-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes ph-gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.animate-in { animation: ph-fade-up .6s ease both; }
.animate-in.d1 { animation-delay: .08s; }
.animate-in.d2 { animation-delay: .16s; }
.animate-in.d3 { animation-delay: .24s; }
.animate-float { animation: ph-float 6s ease-in-out infinite; }
.animate-pulse { animation: ph-pulse 2.4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 15. MISC UTILITIES ---------- */
.mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 48px; }
.lead { font-size: 1.12rem; }
.relative { position: relative; }
