/* ── Typeface ────────────────────────────────────────────────────────────────
   Archivo  — display + body (one family, six weights)
   JetBrains Mono — numbers, tags, eyebrow labels, code, timestamps */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── Tailwind v4 theme tokens (extends the CDN theme) ────────────────────── */
@theme {
  --color-bg:        #0A1628;
  --color-recessed:  #050C18;
  --color-accent:    #FF7A1A;
  --color-accent-600:#E96A0C;
  --color-ink:       #F5EFE5;

  /* legacy aliases — kept so older class names keep resolving */
  --color-brand-orange:     #FF7A1A;
  --color-brand-orange-600: #E96A0C;
  --color-brand-light:      #FF7A1A;
  --color-brand-dark:       #E96A0C;
  --color-brand-navy:       #0A1628;
  --color-dark-bg:          #0A1628;

  --font-sans:    'Archivo', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Archivo', ui-sans-serif, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --shadow-accent: 0 6px 30px rgba(255,122,26,0.30);
  --shadow-brand:  0 18px 50px rgba(0,0,0,0.55);
}

/* ── CSS variables ───────────────────────────────────────────────────────── */
:root {
  --bg:          #0A1628;
  --recessed:    #050C18;
  --accent:      #FF7A1A;
  --accent-600:  #E96A0C;
  --ink:         #F5EFE5;
  --ink-muted:   rgba(245,239,229,0.55);
  --ink-faint:   rgba(245,239,229,0.32);
  --hairline:    rgba(245,239,229,0.09);
  --hairline-strong: rgba(245,239,229,0.18);
}

/* ── Base ────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background-color: #0A1628;
  color: #F5EFE5;
  font-family: 'Archivo', ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo', ui-sans-serif, sans-serif;
  letter-spacing: -0.022em;
  font-weight: 800;
}
::selection { background: rgba(255,122,26,0.30); color: #fff; }

/* ── Hero orb animations ─────────────────────────────────────────────────── */
@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(50px, 30px) scale(1.06); }
  66%       { transform: translate(-25px, 55px) scale(0.96); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-45px, 20px) scale(1.09); }
  66%       { transform: translate(30px, -40px) scale(0.94); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(35px, -28px) scale(1.12); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(6px); opacity: 0.5; }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@keyframes typingBounce {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%       { opacity: 1; transform: translateY(-3px); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Orb elements ────────────────────────────────────────────────────────── */
.orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(90px); }
.orb-1 { width: 700px; height: 700px; top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(255,122,26,0.10) 0%, transparent 70%);
  animation: orbFloat1 14s ease-in-out infinite; }
.orb-2 { width: 550px; height: 550px; top: 80px; right: -100px;
  background: radial-gradient(circle, rgba(245,239,229,0.045) 0%, transparent 70%);
  animation: orbFloat2 17s ease-in-out infinite 2.5s; }
.orb-3 { width: 450px; height: 450px; bottom: 80px; left: 25%;
  background: radial-gradient(circle, rgba(255,122,26,0.08) 0%, transparent 65%);
  animation: orbFloat3 20s ease-in-out infinite 5s; }

/* ── Dot grid texture ────────────────────────────────────────────────────── */
.dot-grid {
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='28' viewBox='0 0 28 28' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='2' cy='2' r='1' fill='rgba(245,239,229,0.06)'/%3E%3C/svg%3E");
}

/* ── Gradient text ───────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(100deg, #F5EFE5 0%, #FF7A1A 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-gradient-text {
  background: linear-gradient(100deg, #F5EFE5 0%, #FFB066 55%, #FF7A1A 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* ── Countdown ───────────────────────────────────────────────────────────── */
.countdown-row {
  display: flex; align-items: flex-start; justify-content: center; gap: 0.5rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: #F5EFE5;
}
@media (min-width: 640px) { .countdown-row { gap: 1rem; } }
.countdown-unit { display: flex; flex-direction: column; align-items: center; }
.countdown-unit > span:first-child { display: inline-block; text-align: center; width: 1.5em; }
.countdown-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase;
  margin-top: 0.25rem; color: var(--ink-faint);
}
.countdown-sep {
  font-weight: 300; line-height: 1; padding-top: 0.05em;
  opacity: 0.35; color: var(--accent);
}

/* ── Section labels (mono eyebrow) ───────────────────────────────────────── */
.section-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: #FF7A1A; font-weight: 500; font-size: 0.8125rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.section-title { font-size: clamp(1.875rem, 5vw, 3rem); font-weight: 800; color: var(--ink); line-height: 1.12; }
.section-subtitle { font-size: 1.125rem; color: var(--ink-muted); max-width: 40rem; }

/* ── Badge ───────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600; border-radius: 9999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background-color: rgba(255,122,26,0.12); color: #FF7A1A; border: 1px solid rgba(255,122,26,0.25);
}

/* ── Shadow utilities ────────────────────────────────────────────────────── */
.shadow-orange { box-shadow: 0 6px 30px rgba(255,122,26,0.30); }
.shadow-accent { box-shadow: 0 6px 30px rgba(255,122,26,0.30); }
.shadow-brand  { box-shadow: 0 18px 50px rgba(0,0,0,0.55); }

/* ── Glow utilities ──────────────────────────────────────────────────────── */
.glow-brand  { filter: drop-shadow(0 0 20px rgba(255,122,26,0.30)); }
.glow-orange { filter: drop-shadow(0 0 20px rgba(255,122,26,0.40)); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; background-color: #FF7A1A; color: #0A1628; font-weight: 700; border-radius: 0.75rem;
  transition: all 0.2s; box-shadow: 0 6px 30px rgba(255,122,26,0.30); cursor: pointer; border: none;
}
.btn-primary:hover { background-color: #E96A0C; }
.btn-primary:active { transform: scale(0.96); }

/* secondary — quiet neutral button (no second accent colour) */
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; background-color: rgba(245,239,229,0.06); color: #F5EFE5; font-weight: 600; border-radius: 0.75rem;
  border: 1px solid rgba(245,239,229,0.14); transition: all 0.2s; cursor: pointer;
}
.btn-secondary:hover { background-color: rgba(245,239,229,0.10); border-color: rgba(245,239,229,0.22); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border: 1px solid rgba(255,122,26,0.45); color: #FF7A1A; font-weight: 600; border-radius: 0.75rem;
  background: transparent; transition: all 0.2s; cursor: pointer;
}
.btn-outline:hover { background-color: rgba(255,122,26,0.10); }

/* ── Hero mockup ─────────────────────────────────────────────────────────── */
.mockup-window {
  position: relative; width: 100%; border-radius: 1rem; overflow: hidden;
  border: 1px solid var(--hairline); background: #0A1628;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(245,239,229,0.04) inset;
}
.mockup-chrome {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--hairline); background: #050C18;
}
.mockup-glow {
  position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%);
  width: 60%; height: 60px;
  background: radial-gradient(ellipse, rgba(255,122,26,0.30) 0%, transparent 70%);
  filter: blur(20px); pointer-events: none;
}

/* ── Agent/feature/pricing cards ─────────────────────────────────────────── */
.agent-card {
  position: relative; overflow: hidden; border-radius: 1rem;
  border: 1px solid var(--hairline); background: #0A1628; padding: 1.5rem;
  transition: all 0.3s; cursor: default;
}
.agent-card:hover { border-color: var(--hairline-strong); transform: translateY(-2px); box-shadow: 0 20px 60px rgba(0,0,0,0.45); }
.agent-card-glow {
  position: absolute; top: 0; left: 0; right: 0; height: 100px;
  pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
}
.agent-card:hover .agent-card-glow { opacity: 1; }

.feature-card {
  position: relative; background: #0A1628; border: 1px solid var(--hairline);
  border-radius: 1rem; padding: 1.5rem; transition: all 0.3s; overflow: hidden;
}
.feature-card:hover { border-color: var(--hairline-strong); transform: translateY(-1px); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }

.pricing-card {
  background: #0A1628; border: 1px solid var(--hairline);
  border-radius: 1rem; padding: 1.75rem; transition: all 0.3s;
  display: flex; flex-direction: column;
}
.pricing-card:hover { border-color: var(--hairline-strong); }
.pricing-card-featured {
  border-color: rgba(255,122,26,0.40); background: #0A1628;
  box-shadow: 0 0 0 1px rgba(255,122,26,0.25), 0 24px 60px rgba(255,122,26,0.10);
}
.pricing-badge {
  position: absolute; top: -0.875rem; left: 50%; transform: translateX(-50%);
  padding: 0.25rem 1rem; font-size: 0.6875rem; font-weight: 700; color: #0A1628; border-radius: 9999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase;
  background: #FF7A1A; box-shadow: 0 6px 30px rgba(255,122,26,0.30);
}

/* ── Feature sections ────────────────────────────────────────────────────── */
.feature-section { padding: 6rem 1.25rem; }
.feature-grid {
  max-width: 72rem; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}
.feature-heading { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; line-height: 1.18; letter-spacing: -0.022em; margin-bottom: 1rem; }
.feature-body { font-size: 1rem; line-height: 1.6; margin-bottom: 1.5rem; }
.feature-bullet { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.875rem; color: var(--ink-muted); margin-bottom: 0.625rem; }
.mockup-shell { border-radius: 1rem; border: 1px solid var(--hairline); overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(245,239,229,0.03) inset; }

/* ── Live dot (functional online indicator — keeps green) ────────────────── */
.live-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #4ade80; display: block; box-shadow: 0 0 0 0 rgba(74,222,128,0.6); animation: pulse-ring 2s ease-out infinite; }
.live-dot-sm { width: 0.375rem; height: 0.375rem; border-radius: 50%; background: #4ade80; display: inline-block; box-shadow: 0 0 0 0 rgba(74,222,128,0.5); animation: pulse-ring 2s ease-out infinite; }

/* ── Typing dots ─────────────────────────────────────────────────────────── */
.typing-dot { animation: typingBounce 1s ease-in-out infinite; }

/* ── Scroll bounce ───────────────────────────────────────────────────────── */
.scroll-bounce { animation: scrollBounce 2s ease-in-out infinite; }

/* ── Spin ────────────────────────────────────────────────────────────────── */
.animate-spin { animation: spin 1s linear infinite; }

/* ── Reveal on scroll ────────────────────────────────────────────────────── */
.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[data-direction="left"]  { transform: translateX(28px); }
.reveal[data-direction="right"] { transform: translateX(-28px); }
.reveal.visible { opacity: 1; transform: none; }

/* ── Calendly modal ──────────────────────────────────────────────────────── */
.calendly-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center; padding: 0.5rem;
}
.calendly-overlay.open { display: flex; }
.calendly-overlay-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px); cursor: pointer;
}
.calendly-panel {
  position: relative; z-index: 10; width: 100%; max-width: 42rem;
  height: min(97vh, 900px); display: flex; flex-direction: column;
  background: #0A1628; border: 1px solid var(--hairline);
  border-radius: 1rem; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  animation: fadeIn 0.2s ease-out;
}

/* ── Ensemble card (about page) ──────────────────────────────────────────── */
.cadre-card {
  position: relative; overflow: hidden; border-radius: 1rem;
  border: 1px solid var(--hairline); background: #0A1628; padding: 1.5rem;
  display: flex; flex-direction: column; transition: all 0.3s; cursor: default;
}
.cadre-card:hover { border-color: var(--hairline-strong); transform: translateY(-2px); box-shadow: 0 20px 60px rgba(0,0,0,0.45); }
.cadre-card-glow {
  position: absolute; top: 0; left: 0; right: 0; height: 100px;
  pointer-events: none; opacity: 0; transition: opacity 0.4s ease;
}
.cadre-card:hover .cadre-card-glow { opacity: 1; }
.cadre-bio { position: relative; font-style: italic; }
.cadre-bio::before {
  content: '\201C'; font-family: Georgia,'Times New Roman',serif; font-size: 5rem; line-height: 1;
  position: absolute; top: -0.15em; left: -0.05em; color: #FF7A1A; opacity: 0.25;
  pointer-events: none; user-select: none;
}

/* ── Form inputs ─────────────────────────────────────────────────────────── */
.form-input {
  width: 100%; padding: 0.625rem 1rem; background: #050C18;
  border: 1px solid var(--hairline); border-radius: 0.625rem; color: var(--ink);
  font-size: 0.875rem; font-family: inherit; transition: all 0.2s; outline: none;
}
.form-input::placeholder { color: var(--ink-faint); }
.form-input:focus { border-color: rgba(255,122,26,0.55); box-shadow: 0 0 0 3px rgba(255,122,26,0.15); }
select.form-input {
  -webkit-appearance: none !important; -moz-appearance: none !important; appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23F5EFE5' stroke-width='1.5' opacity='0.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1rem;
  padding: 0.625rem 2.5rem 0.625rem 1rem; line-height: 1.25; cursor: pointer;
}
select.form-input option { background: #050C18; color: var(--ink); }

/* ── Comparison grid ─────────────────────────────────────────────────────── */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(0, 200px));
}
.comparison-grid a { white-space: nowrap; }

/* ── Hero badge ──────────────────────────────────────────────────────────── */
.hero-badge {
  border-radius: 9999px; border: 1px solid var(--hairline-strong);
  background: rgba(245,239,229,0.04); padding: 0.375rem 1rem; backdrop-filter: blur(4px);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* ── Header scroll transition ────────────────────────────────────────────── */
.header-scrolled {
  background: rgba(10,22,40,0.9) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
  box-shadow: 0 1px 0 rgba(245,239,229,0.03);
}

/* ── Mobile menu ─────────────────────────────────────────────────────────── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 40;
  background: rgba(10,22,40,0.98); backdrop-filter: blur(20px);
  flex-direction: column;
}
.mobile-menu.open { display: flex; }

/* ── Scrollbar hide ──────────────────────────────────────────────────────── */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Text balance ────────────────────────────────────────────────────────── */
.text-balance { text-wrap: balance; }

/* ══ Brand colour utilities ══════════════════════════════════════════════════
   Explicit definitions so these resolve regardless of Tailwind CDN version.
   conduk runs a single accent — all legacy "brand-*" names now map to it. */

/* ── conduk wordmark — in-text orange ū ──────────────────────────────────────
   Applied by the DOM script in layout.php to every "conduk" mention.
   Forces solid accent even inside .gradient-text headings. */
.brand-u {
  color: #FF7A1A;
  -webkit-text-fill-color: #FF7A1A;
}

/* New canonical names */
.bg-bg          { background-color: #0A1628; }
.bg-recessed    { background-color: #050C18; }
.bg-accent      { background-color: #FF7A1A; }
.bg-accent-600  { background-color: #E96A0C; }
.text-accent    { color: #FF7A1A; }
.text-ink       { color: #F5EFE5; }
.text-ink-muted { color: rgba(245,239,229,0.55); }
.text-ink-faint { color: rgba(245,239,229,0.32); }
.border-accent  { border-color: #FF7A1A; }
.font-mono      { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; }

/* Background fills (legacy names → accent / surfaces) */
.bg-brand-orange           { background-color: #FF7A1A; }
.bg-brand-orange-600       { background-color: #E96A0C; }
.bg-brand-light            { background-color: #FF7A1A; }
.bg-brand-dark             { background-color: #E96A0C; }
.bg-brand-navy             { background-color: #0A1628; }
.bg-brand-black            { background-color: #050C18; }

/* Background fills with opacity */
.bg-brand-orange\/5          { background-color: rgba(255,122,26,0.05); }
.bg-brand-orange\/10         { background-color: rgba(255,122,26,0.10); }
.bg-brand-orange\/15         { background-color: rgba(255,122,26,0.15); }
.bg-brand-orange\/20         { background-color: rgba(255,122,26,0.20); }
.bg-brand-orange\/30         { background-color: rgba(255,122,26,0.30); }
.bg-brand-orange\/\[0\.03\]  { background-color: rgba(255,122,26,0.03); }
.bg-brand-dark\/40           { background-color: rgba(255,122,26,0.12); }
.bg-brand-light\/10          { background-color: rgba(255,122,26,0.10); }
.bg-accent\/10               { background-color: rgba(255,122,26,0.10); }
.bg-accent\/15               { background-color: rgba(255,122,26,0.15); }

/* Hover background fills */
.hover\:bg-brand-orange:hover       { background-color: #FF7A1A; }
.hover\:bg-brand-orange-600:hover   { background-color: #E96A0C; }
.hover\:bg-brand-dark:hover         { background-color: #E96A0C; }
.hover\:bg-brand-light:hover        { background-color: #E96A0C; }
.hover\:bg-accent-600:hover         { background-color: #E96A0C; }

/* Text colours */
.text-brand-orange         { color: #FF7A1A; }
.text-brand-light          { color: #FF7A1A; }
.text-brand-dark           { color: #FF7A1A; }
.text-brand-orange\/80     { color: rgba(255,122,26,0.80); }
.text-brand-light\/60      { color: rgba(255,122,26,0.60); }

/* Hover text colours */
.hover\:text-brand-orange:hover { color: #FF7A1A; }
.hover\:text-brand-light:hover  { color: #FF7A1A; }
.hover\:text-accent:hover       { color: #FF7A1A; }
.hover\:text-brand-white:hover  { color: #F5EFE5; }

/* Group-hover text colours */
.group:hover .group-hover\:text-brand-light { color: #FF7A1A; }
.group:hover .group-hover\:text-accent      { color: #FF7A1A; }

/* Border colours */
.border-brand-orange       { border-color: #FF7A1A; }
.border-brand-light        { border-color: #FF7A1A; }
.border-brand-dark         { border-color: #FF7A1A; }
.border-brand-orange\/20   { border-color: rgba(255,122,26,0.20); }
.border-brand-orange\/30   { border-color: rgba(255,122,26,0.30); }
.border-brand-orange\/50   { border-color: rgba(255,122,26,0.50); }
.border-brand-light\/30    { border-color: rgba(255,122,26,0.30); }
.border-brand-light\/40    { border-color: rgba(255,122,26,0.40); }
.border-accent\/20         { border-color: rgba(255,122,26,0.20); }
.border-accent\/30         { border-color: rgba(255,122,26,0.30); }

/* Font families */
.font-display { font-family: 'Archivo', ui-sans-serif, sans-serif; }
.font-sans    { font-family: 'Archivo', ui-sans-serif, system-ui, sans-serif; }
