/* ── Google Font ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800;900&display=swap');

/* ── Tailwind v4 theme tokens (extends the CDN theme) ────────────────────── */
@theme {
  --color-brand-orange:   #f6921e;
  --color-brand-orange-600: #dd831b;
  --color-brand-light:    #0271bb;
  --color-brand-dark:     #005993;
  --color-brand-navy:     #0a1628;
  --color-brand-black:    #0a0a0a;
  --color-dark-bg:        #0a0f1a;
  --font-sans:    'Outfit', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Outfit', ui-sans-serif, sans-serif;
  --shadow-brand:    0 4px 24px rgba(2,113,187,0.25);
  --shadow-brand-lg: 0 8px 48px rgba(2,113,187,0.35);
  --shadow-orange:   0 4px 24px rgba(246,146,30,0.35);
}

/* ── CSS variables ───────────────────────────────────────────────────────── */
:root {
  --color-brand-orange: #f6921e;
  --color-brand-blue:   #005993;
  --color-brand-navy:   #0a1628;
  --color-brand-black:  #0a0a0a;
  --color-dark-bg:      #0a0f1a;
}

/* ── Base ────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body { background-color: #0a0f1a; color: #f3f4f6; font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', ui-sans-serif, sans-serif; letter-spacing: -0.025em; }

/* ── 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(0,89,147,0.45) 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(2,113,187,0.28) 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(246,146,30,0.10) 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(255,255,255,0.07)'/%3E%3C/svg%3E");
}

/* ── Gradient text ───────────────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(to right, #0271bb, #f6921e);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-gradient-text {
  background: linear-gradient(100deg, #4da6d9 0%, #0271bb 40%, #f6921e 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ── Section labels ──────────────────────────────────────────────────────── */
.section-label { color: #f6921e; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; }
.section-title { font-size: clamp(1.875rem, 5vw, 3rem); font-weight: 700; color: white; line-height: 1.15; }
.section-subtitle { font-size: 1.125rem; color: #9ca3af; 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;
  background-color: rgba(2,113,187,0.15); color: #0271bb; border: 1px solid rgba(2,113,187,0.2);
}

/* ── Shadow utilities ────────────────────────────────────────────────────── */
.shadow-orange { box-shadow: 0 4px 24px rgba(246,146,30,0.35); }
.shadow-brand  { box-shadow: 0 4px 24px rgba(2,113,187,0.25); }

/* ── Glow utilities ──────────────────────────────────────────────────────── */
.glow-brand  { filter: drop-shadow(0 0 20px rgba(2,113,187,0.4)); }
.glow-orange { filter: drop-shadow(0 0 20px rgba(246,146,30,0.4)); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; background-color: #f6921e; color: white; font-weight: 600; border-radius: 0.875rem;
  transition: all 0.2s; box-shadow: 0 4px 24px rgba(246,146,30,0.35); cursor: pointer; border: none;
}
.btn-primary:hover { background-color: #dd831b; }
.btn-primary:active { transform: scale(0.95); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; background-color: #0271bb; color: white; font-weight: 600; border-radius: 0.875rem;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-secondary:hover { background-color: #005993; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border: 1px solid rgba(2,113,187,0.4); color: #0271bb; font-weight: 600; border-radius: 0.875rem;
  background: transparent; transition: all 0.2s; cursor: pointer;
}
.btn-outline:hover { background-color: rgba(2,113,187,0.1); }

/* ── Hero mockup ─────────────────────────────────────────────────────────── */
.mockup-window {
  position: relative; width: 100%; border-radius: 1rem; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1); background: #0d1526;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.mockup-chrome {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07); background: #111927;
}
.mockup-glow {
  position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%);
  width: 60%; height: 60px;
  background: radial-gradient(ellipse, rgba(2,113,187,0.35) 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 rgba(255,255,255,0.08); background: #0d1526; padding: 1.5rem;
  transition: all 0.3s; cursor: default;
}
.agent-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-2px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.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: #0d1526; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem; padding: 1.5rem; transition: all 0.3s; overflow: hidden;
}
.feature-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-1px); box-shadow: 0 12px 40px rgba(0,0,0,0.35); }

.pricing-card {
  background: #0d1526; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem; padding: 1.75rem; transition: all 0.3s;
  display: flex; flex-direction: column;
}
.pricing-card:hover { border-color: rgba(255,255,255,0.2); }
.pricing-card-featured {
  border-color: rgba(2,113,187,0.3); background: #0d1c30;
  box-shadow: 0 0 0 1px rgba(2,113,187,0.2), 0 24px 60px rgba(0,89,147,0.15);
}
.pricing-badge {
  position: absolute; top: -0.875rem; left: 50%; transform: translateX(-50%);
  padding: 0.25rem 1rem; font-size: 0.75rem; font-weight: 700; color: white; border-radius: 9999px;
  background: #f6921e; box-shadow: 0 4px 24px rgba(246,146,30,0.35);
}

/* ── 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: 700; line-height: 1.2; letter-spacing: -0.025em; 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: #d1d5db; margin-bottom: 0.625rem; }
.mockup-shell { border-radius: 1rem; border: 1px solid rgba(255,255,255,0.09); overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset; }

/* ── Live dot ────────────────────────────────────────────────────────────── */
.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: #0a0f1a; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  animation: fadeIn 0.2s ease-out;
}

/* ── Cadre card (about page) ─────────────────────────────────────────────── */
.cadre-card {
  position: relative; overflow: hidden; border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08); background: #0d1526; padding: 1.5rem;
  display: flex; flex-direction: column; transition: all 0.3s; cursor: default;
}
.cadre-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-2px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.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: #f6921e; opacity: 0.25;
  pointer-events: none; user-select: none;
}

/* ── Form inputs ─────────────────────────────────────────────────────────── */
.form-input {
  width: 100%; padding: 0.625rem 1rem; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 0.75rem; color: white;
  font-size: 0.875rem; font-family: inherit; transition: all 0.2s; outline: none;
}
.form-input::placeholder { color: #6b7280; }
.form-input:focus { border-color: rgba(2,113,187,0.3); box-shadow: 0 0 0 2px rgba(2,113,187,0.15); }

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

/* ── Hero badge ──────────────────────────────────────────────────────────── */
.hero-badge { border-radius: 9999px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); padding: 0.375rem 1rem; backdrop-filter: blur(4px); }

/* ── Header scroll transition ────────────────────────────────────────────── */
.header-scrolled {
  background: rgba(10,15,26,0.9) !important;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

/* ── Mobile menu ─────────────────────────────────────────────────────────── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 40;
  background: rgba(10,15,26,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 color utilities ══════════════════════════════════════════════════
   Explicit definitions so these work regardless of Tailwind CDN version.
   Tailwind v4 CDN ignores tailwind.config; these classes guarantee colours. */

/* Background fills */
.bg-brand-orange           { background-color: #f6921e; }
.bg-brand-orange-600       { background-color: #dd831b; }
.bg-brand-light            { background-color: #0271bb; }
.bg-brand-dark             { background-color: #005993; }
.bg-brand-navy             { background-color: #0a1628; }
.bg-brand-black            { background-color: #0a0a0a; }

/* Background fills with opacity */
.bg-brand-orange\/5          { background-color: rgba(246,146,30,0.05); }
.bg-brand-orange\/10         { background-color: rgba(246,146,30,0.10); }
.bg-brand-orange\/15         { background-color: rgba(246,146,30,0.15); }
.bg-brand-orange\/20         { background-color: rgba(246,146,30,0.20); }
.bg-brand-orange\/30         { background-color: rgba(246,146,30,0.30); }
.bg-brand-orange\/\[0\.03\]  { background-color: rgba(246,146,30,0.03); }
.bg-brand-dark\/40           { background-color: rgba(0,89,147,0.40); }
.bg-brand-light\/10          { background-color: rgba(2,113,187,0.10); }

/* Hover background fills */
.hover\:bg-brand-orange:hover       { background-color: #f6921e; }
.hover\:bg-brand-orange-600:hover   { background-color: #dd831b; }
.hover\:bg-brand-dark:hover         { background-color: #005993; }
.hover\:bg-brand-light:hover        { background-color: #0271bb; }

/* Text colours */
.text-brand-orange         { color: #f6921e; }
.text-brand-light          { color: #0271bb; }
.text-brand-dark           { color: #005993; }
.text-brand-orange\/80     { color: rgba(246,146,30,0.80); }
.text-brand-light\/60      { color: rgba(2,113,187,0.60); }

/* Hover text colours */
.hover\:text-brand-orange:hover { color: #f6921e; }
.hover\:text-brand-light:hover  { color: #0271bb; }
.hover\:text-brand-white:hover  { color: #ffffff; }

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

/* Border colours */
.border-brand-orange       { border-color: #f6921e; }
.border-brand-light        { border-color: #0271bb; }
.border-brand-dark         { border-color: #005993; }
.border-brand-orange\/20   { border-color: rgba(246,146,30,0.20); }
.border-brand-orange\/30   { border-color: rgba(246,146,30,0.30); }
.border-brand-orange\/50   { border-color: rgba(246,146,30,0.50); }
.border-brand-light\/30    { border-color: rgba(2,113,187,0.30); }
.border-brand-light\/40    { border-color: rgba(2,113,187,0.40); }

/* Font families (Tailwind v4 CDN no longer reads tailwind.config fontFamily) */
.font-display { font-family: 'Outfit', ui-sans-serif, sans-serif; }
.font-sans    { font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif; }

/* Box shadows (brand) */
.shadow-brand    { box-shadow: 0 4px 24px rgba(2,113,187,0.25); }
.shadow-brand-lg { box-shadow: 0 8px 48px rgba(2,113,187,0.35); }
.shadow-orange   { box-shadow: 0 4px 24px rgba(246,146,30,0.35); }
