/*
Theme Name: SCRIBES
Theme URI: https://scribes.cloud
Author: SCRIBES
Author URI: https://scribes.cloud
Description: Official SCRIBES marketing theme — dark glassmorphism design with warm amber accents.
Version: 1.0.0
License: Proprietary
Text Domain: scribes
*/

/* ================================================================
   CSS VARIABLES — Design Tokens
   ================================================================ */
:root {
  --radius: 0.625rem;
  --background: oklch(0.08 0.002 0);
  --foreground: oklch(0.95 0 0);
  --card: oklch(0.12 0.003 0 / 60%);
  --card-foreground: oklch(0.95 0 0);
  --popover: oklch(0.12 0.003 0 / 95%);
  --popover-foreground: oklch(0.95 0 0);
  --primary: oklch(0.72 0.14 55);
  --primary-foreground: oklch(0.98 0 0);
  --secondary: oklch(0.18 0.004 0 / 70%);
  --secondary-foreground: oklch(0.90 0 0);
  --muted: oklch(0.18 0.004 0 / 60%);
  --muted-foreground: oklch(0.60 0.005 0);
  --accent: oklch(0.18 0.004 0 / 80%);
  --accent-foreground: oklch(0.95 0 0);
  --destructive: oklch(0.62 0.24 25);
  --border: oklch(0.25 0.003 0 / 50%);
  --input: oklch(0.18 0.004 0 / 70%);
  --ring: oklch(0.72 0.14 55 / 50%);
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-color: var(--border);
}

html {
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  line-height: 1.5;
}

body {
  font-family: 'Inter', 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--foreground);
  background-color: oklch(0.07 0.002 0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: oklch(0.50 0.01 0 / 30%) transparent;
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: oklch(0.50 0.01 0 / 30%); border-radius: 9999px; }
*::-webkit-scrollbar-thumb:hover { background: oklch(0.60 0.02 0 / 50%); }

/* ================================================================
   BACKGROUND TEXTURES
   ================================================================ */

/* Dot grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, oklch(0.45 0 0 / 25%) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Noise grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
}

/* ================================================================
   GLASSMORPHISM
   ================================================================ */
.glass {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37), inset 0 1px 1px 0 rgba(255,255,255,0.1);
}

.glass-strong {
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.5), inset 0 1px 1px 0 rgba(255,255,255,0.15);
}

.glass-navbar {
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  background: oklch(0.10 0.002 0 / 55%);
  border-bottom: 1px solid oklch(0.25 0.003 0 / 40%);
  box-shadow: 0 4px 24px 0 rgba(0,0,0,0.3), inset 0 1px 0 0 rgba(255,255,255,0.04);
}

/* ================================================================
   GLOW & SHADOWS
   ================================================================ */
.glow-bot { box-shadow: 0 0 15px oklch(0.72 0.14 55 / 25%); }
.shadow-bot { box-shadow: 0 8px 24px oklch(0.72 0.14 55 / 20%); }

/* ================================================================
   CARD HOVER
   ================================================================ */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px 0 rgba(0,0,0,0.5), inset 0 1px 1px 0 rgba(255,255,255,0.15);
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.72 0.14 55);
  color: oklch(0.98 0 0);
  box-shadow: 0 8px 24px oklch(0.72 0.14 55 / 25%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover {
  background: oklch(0.68 0.15 55);
  box-shadow: 0 12px 32px oklch(0.72 0.14 55 / 35%);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--secondary-foreground);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-outline:hover {
  border-color: var(--ring);
  color: var(--foreground);
}

/* ================================================================
   BADGE
   ================================================================ */
.badge-bot {
  background: oklch(0.72 0.14 55 / 20%);
  color: oklch(0.80 0.14 55);
  border: 1px solid oklch(0.72 0.14 55 / 40%);
}

/* ================================================================
   LOGO
   ================================================================ */
.logo-themed {
  filter: invert(1) brightness(1.1);
}

/* ================================================================
   TRANSITIONS
   ================================================================ */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   TEXT COLORS (from oklch design tokens)
   ================================================================ */
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-secondary-foreground { color: var(--secondary-foreground); }
.text-primary { color: var(--primary); }
.text-primary-foreground { color: var(--primary-foreground); }
.text-amber-highlight { color: oklch(0.78 0.14 58); }

/* ================================================================
   LAYOUT HELPERS
   ================================================================ */
.container-main {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.container-narrow {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.container-tight {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.container-pricing {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

/* ================================================================
   SWISS FLAG SVG (inline)
   ================================================================ */
.swiss-flag {
  display: inline-block;
  width: 16px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 24'%3E%3Crect width='32' height='24' rx='2' fill='%23D52B1E'/%3E%3Crect x='13' y='6' width='6' height='12' fill='%23fff'/%3E%3Crect x='10' y='9' width='12' height='6' fill='%23fff'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

/* ================================================================
   GRID HELPERS
   ================================================================ */
.grid-features {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .grid-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-features { grid-template-columns: repeat(3, 1fr); } }

.grid-platforms {
  display: grid;
  gap: 1rem;
  max-width: 48rem;
  margin: 0 auto;
}
@media (min-width: 640px) { .grid-platforms { grid-template-columns: repeat(2, 1fr); } }

.grid-pricing {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 1024px) { .grid-pricing { grid-template-columns: repeat(3, 1fr); } }

.grid-sovereignty {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) { .grid-sovereignty { grid-template-columns: repeat(2, 1fr); } }

.grid-footer {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) { .grid-footer { grid-template-columns: repeat(4, 1fr); } }

/* ================================================================
   SECTION SPACING
   ================================================================ */
.section { padding: 6rem 0; }
.section-hero { padding-top: 9rem; padding-bottom: 6rem; }

/* Account for fixed navbar on all pages */
body { padding-top: 0; }
body:not(.elementor-page) .landing-page { padding-top: 5rem; }

/* Elementor page fixes — push content below fixed nav */
body.elementor-page .elementor-top-section:first-child {
  padding-top: 10rem !important;
}

/* Ensure Elementor doesn't override our dark background */
.elementor-section { background-color: transparent !important; }
.elementor-widget-html { width: 100%; }
.elementor-column-gap-default > .elementor-column > .elementor-widget-wrap { padding: 0 !important; }

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
.heading-hero {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) { .heading-hero { font-size: 3.75rem; } }
@media (min-width: 1024px) { .heading-hero { font-size: 4.5rem; } }

.heading-section {
  font-size: 1.875rem;
  font-weight: 700;
}

.heading-card {
  font-size: 1.125rem;
  font-weight: 600;
}

/* ================================================================
   ICON PLACEHOLDER (Lucide-style SVG via WP)
   ================================================================ */
.icon {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
  flex-shrink: 0;
}
.icon-sm {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* ================================================================
   UTILITIES
   ================================================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; line-height: 1.42; }
.text-xs { font-size: 0.75rem; line-height: 1.33; }
.text-base { font-size: 1rem; line-height: 1.5; }
.text-lg { font-size: 1.125rem; line-height: 1.55; }
.text-xl { font-size: 1.25rem; line-height: 1.4; }
.text-4xl { font-size: 2.25rem; font-weight: 700; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: calc(var(--radius) + 4px); }
.rounded-2xl { border-radius: calc(var(--radius) + 8px); }
.rounded-3xl { border-radius: calc(var(--radius) + 12px); }
.rounded-lg { border-radius: var(--radius); }
.overflow-hidden { overflow: hidden; }
.relative { position: relative; }
.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.w-full { width: 100%; }
.max-w-2xl { max-width: 42rem; }
.max-w-xl { max-width: 36rem; }
.max-w-3xl { max-width: 48rem; }
.border-t { border-top: 1px solid var(--border); }
.pt-8 { padding-top: 2rem; }
.inline-flex { display: inline-flex; }
.block { display: block; }

/* Nav fixed */
.nav-fixed {
  position: fixed;
  top: 0;
  z-index: 50;
  width: 100%;
}

/* Hidden on mobile, flex on md+ */
.nav-links {
  display: none;
}
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

/* Platform icon circle */
.platform-icon {
  display: flex;
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) + 4px);
  background: oklch(0.72 0.14 55 / 15%);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

/* Pricing highlight badge */
.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Footer bottom bar */
.footer-bottom {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; }
}

/* Check icon (SVG inline) */
.check-icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--primary);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='oklch(0.72 0.14 55)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* Arrow right icon */
.arrow-icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  transition: transform 0.2s;
}
.btn-primary:hover .arrow-icon { transform: translateX(2px); }

/* Shield icon (trust indicators) */
.shield-icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--primary);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='oklch(0.72 0.14 55)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* Homepage hero alignment fix */
body.home .elementor-5 .elementor-element.elementor-element-herow1 {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

body.home .elementor-5 .elementor-element.elementor-element-herow1 .badge-bot {
  margin-left: auto;
  margin-right: auto;
}

body.home .elementor-5 .elementor-element.elementor-element-herow1 .heading-hero,
body.home .elementor-5 .elementor-element.elementor-element-herow1 > p,
body.home .elementor-5 .elementor-element.elementor-element-herow1 > div {
  margin-left: auto;
  margin-right: auto;
}

body.home .elementor-5 .elementor-element.elementor-element-herow1 .heading-hero {
  max-width: 12ch;
}

/* Homepage hero alignment fix */
body.home .elementor-5 .elementor-element.elementor-element-herow1 {
  max-width: 64rem;
  margin: 0 auto;
  text-align: center;
}

body.home .elementor-5 .elementor-element.elementor-element-herow1 .badge-bot {
  margin-left: auto;
  margin-right: auto;
}

body.home .elementor-5 .elementor-element.elementor-element-herow1 .heading-hero,
body.home .elementor-5 .elementor-element.elementor-element-herow1 > p,
body.home .elementor-5 .elementor-element.elementor-element-herow1 > div {
  margin-left: auto;
  margin-right: auto;
}

body.home .elementor-5 .elementor-element.elementor-element-herow1 .heading-hero {
  max-width: 12ch;
}
