/*
Theme Name: Themis
Theme URI: https://themis.example.com/
Author: Themis
Author URI: https://themis.example.com/
Description: A one-page marketing theme for Themis, on-premise project management with a bring-your-own-model AI layer. Built for enterprises that keep delivery data on their own servers.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: themis
Tags: one-page, business, custom-colors, custom-logo
*/

/* ============ Reset and tokens ============ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ink: #0b1220;
  --ink-2: #101a2e;
  --ink-3: #16233c;
  --paper: #f5f1e8;
  --paper-dim: #c9c4b6;
  --muted: #8d94a6;
  --gold: #e0aa4e;
  --gold-soft: rgba(224, 170, 78, 0.14);
  --line: rgba(245, 241, 232, 0.12);
  --line-strong: rgba(245, 241, 232, 0.22);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --max: 1140px;
  --radius: 14px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--paper);
}

p {
  margin: 0 0 1.2em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Header ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--paper);
}

.brand .mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--paper-dim);
  font-size: 15px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--paper);
}

.site-nav .nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.site-nav .nav-cta:hover {
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
}

/* ============ Hero ============ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 96px;
  background:
    radial-gradient(900px 500px at 78% -10%, rgba(224, 170, 78, 0.13), transparent 60%),
    radial-gradient(700px 480px at 8% 110%, rgba(60, 90, 160, 0.16), transparent 55%),
    var(--ink);
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}

.hero .wrap > *,
.split > * {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  background: rgba(224, 170, 78, 0.07);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.lede {
  font-size: 19px;
  color: var(--paper-dim);
  max-width: 34em;
  margin-bottom: 36px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover {
  background: #edbd6a;
  color: var(--ink);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--paper);
}

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

/* Hero panel: a local-inference console card */

.hero-panel {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.75;
}

.hero-panel .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7fd18b;
}

.panel-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7fd18b;
}

.hero-panel .line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.hero-panel .k {
  color: var(--muted);
  margin-right: 1ch;
}

.hero-panel .v {
  color: var(--paper);
}

.hero-panel .gold {
  color: var(--gold);
}

.hero-panel .note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

/* ============ Stat strip ============ */

.stat-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}

.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 30px 24px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat .num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
}

.stat .lbl {
  font-size: 14px;
  color: var(--muted);
}

/* ============ Sections ============ */

.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 46em;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 42px);
}

.section-head p {
  color: var(--paper-dim);
  font-size: 18px;
}

.section-head .eyebrow {
  margin-bottom: 18px;
}

/* Cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.alt .card {
  background: var(--ink);
}

.card .icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 18px;
}

.card h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 0;
}

/* AI section split */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.split h2 {
  font-size: clamp(30px, 3.6vw, 40px);
}

.split p {
  color: var(--paper-dim);
}

.model-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.model-list li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--paper-dim);
}

.model-list li.local {
  border-color: var(--gold);
  color: var(--gold);
}

.ai-features {
  display: grid;
  gap: 16px;
}

.ai-feature {
  background: var(--ink);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 20px 22px;
}

.ai-feature h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.ai-feature p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 0;
}

.callout {
  margin-top: 28px;
  border: 1px solid var(--gold-soft);
  background: rgba(224, 170, 78, 0.06);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--paper-dim);
  font-size: 15.5px;
}

.callout strong {
  color: var(--gold);
  font-weight: 600;
}

/* Integration chips */

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.chip {
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 15px;
  color: var(--paper-dim);
  background: var(--ink);
}

.chip.tier1 {
  border-color: rgba(224, 170, 78, 0.45);
  color: var(--paper);
}

.chip .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 2px;
}

/* Migration timeline */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps li {
  counter-increment: step;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  background: var(--ink-3);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.steps h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.steps p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 0;
}

/* Pricing */

.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  background: var(--ink);
}

.price-card.featured {
  border-color: var(--gold);
  background: linear-gradient(160deg, rgba(224, 170, 78, 0.1), transparent 55%), var(--ink);
}

.price-card h3 {
  font-size: 22px;
}

.price-card .price-line {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 14px;
}

.price-card ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--paper-dim);
  font-size: 15.5px;
}

.price-card li {
  margin-bottom: 8px;
}

/* Final CTA */

.final-cta {
  text-align: center;
  padding: 110px 0;
  background:
    radial-gradient(700px 380px at 50% 120%, rgba(224, 170, 78, 0.14), transparent 65%),
    var(--ink-2);
  border-top: 1px solid var(--line);
}

.final-cta h2 {
  font-size: clamp(32px, 4vw, 48px);
  max-width: 16em;
  margin-left: auto;
  margin-right: auto;
}

.final-cta p {
  color: var(--paper-dim);
  font-size: 18px;
  max-width: 36em;
  margin: 0 auto 36px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  background: var(--ink);
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ============ WordPress core classes ============ */

.alignnone { margin-left: 0; margin-right: 0; max-width: 100%; }
.aligncenter { display: block; margin: 1em auto; }
.alignright { float: right; margin: 0.5em 0 1em 1em; }
.alignleft { float: left; margin: 0.5em 1em 1em 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--muted); text-align: center; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sticky,
.bypostauthor {
  outline: none;
}

/* ============ Responsive ============ */

@media (max-width: 960px) {
  .hero .wrap,
  .split {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .card-grid.two,
  .steps,
  .pricing {
    grid-template-columns: 1fr 1fr;
  }

  .stat-strip .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(3) {
    border-left: none;
  }

  .stat {
    border-top: 1px solid var(--line);
  }

  .stat:nth-child(-n + 2) {
    border-top: none;
  }
}

@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .card-grid,
  .card-grid.two,
  .steps,
  .pricing,
  .stat-strip .wrap {
    grid-template-columns: 1fr;
  }

  .stat + .stat {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .stat:first-child {
    border-top: none;
  }

  .hero-panel {
    font-size: 12px;
    padding: 20px 18px 18px;
  }

  .hero-panel .line {
    white-space: normal;
    overflow: visible;
  }
}
