@font-face {
  font-family: 'Lilex';
  src: url("/fonts/Lilex-Bold.ttf") format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lilex';
  src: url("/fonts/Lilex-BoldItalic.ttf") format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --background: var(--color-primary-0);
  --foreground: var(--color-primary-2700);
  --card: var(--color-primary-0);
  --card-foreground: var(--color-primary-2700);
  --muted: var(--color-primary-100);
  --muted-foreground: var(--color-secondary-muted-1200);
  --border: var(--color-primary-200);
  --radius: 0.625rem;
  --tw-border-color: var(--color-primary-200);
  --landing-header-height: 5rem;
}

.border,
.border-b,
.border-t,
.border-l,
.border-r {
  border-color: var(--tw-border-color);
}

.border-primary-1100 {
  border-color: var(--color-primary-1100);
}

body {
  font-family: var(--font-body), sans-serif;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display), serif;
  color: var(--color-primary-1900);

  span {
    font-family: var(--font-display), serif;
  }
}

h1 {
  text-align: center;
  box-sizing: border-box;
  border: 0 solid;
  margin: 0;
  padding: 0;
  border-color: var(--border);
  outline-color: color-mix(in oklab, var(--ring) 50%, transparent);
  margin-bottom: calc(var(--spacing) * 8);
  --tw-leading: var(--leading-tight);
  line-height: 1.3;
  font-family: var(--font-display), serif;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-weight: 400;
}

p,
span,
li,
button,
summary {
  font-family: var(--font-body), sans-serif;
}

/* Custom classes for landing page */
.bg-background {
  background-color: var(--background);
}

.text-foreground {
  color: var(--foreground);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.bg-muted\/30 {
  background-color: color-mix(in srgb, var(--muted) 30%, transparent);
}

.landing-hero {
  min-height: calc(100vh - var(--landing-header-height, 5rem));
}

@media (max-width: 640px) {
  .sm\:mb-6 {
    margin-bottom: 1.5rem;
  }

  .sm\:mt-4 {
    margin-top: 1rem;
  }
}

/* Theme-based primary colors */
.text-primary-600 {
  color: var(--color-primary-1000);
}

.text-primary-700 {
  color: var(--color-primary-1100);
}

.text-primary-800 {
  color: var(--color-primary-1200);
}

.bg-primary-100 {
  background-color: var(--color-primary-100);
}

.hover\:text-primary-600:hover {
  color: var(--color-primary-1000);
}

.hover\:text-primary-700:hover {
  color: var(--color-primary-1100);
}

.hover\:text-primary-800:hover {
  color: var(--color-primary-1200);
}

.hover\:bg-primary-100:hover {
  background-color: var(--color-primary-100);
}

.hover\:text-foreground:hover {
  color: var(--foreground);
}

.landing-video {
  overflow: hidden;
}

.landing-video__frame {
  transform: scale(1.005);
}

/* Solid button backgrounds */
.bg-primary-1100 {
  background-color: var(--color-primary-1100);
}

.bg-primary-1200 {
  background-color: var(--color-primary-1200);
}

.hover\:bg-primary-1100:hover {
  background-color: var(--color-primary-1100);
}

.hover\:bg-primary-1200:hover {
  background-color: var(--color-primary-1200);
}

.hover\:border-primary-1100:hover {
  border-color: var(--color-primary-1100);
}

/* Header gradient background */
.header-gradient {
  background-color: transparent;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 30%, transparent);
}

.header-gradient-overlay {
  background: linear-gradient(to right,
      transparent,
      color-mix(in srgb, var(--background) 40%, transparent),
      transparent);
}

.lettercarta-logo {
  font-family: var(--font-display), serif;
  color: var(--color-primary-1900);
  font-weight: 700;
}

/* Hero title specifics */
.hero-title {
  font-family: var(--font-display), serif;
  font-weight: 400;
  font-feature-settings: normal;
  font-variation-settings: normal;
}

/* Utility classes that might be missing */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 1536px;
  }
}

/* Gradient utilities */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-tr {
  background-image: linear-gradient(to top right, var(--tw-gradient-stops));
}

/* Blue gradient stops */
.from-blue-50\/90 {
  --tw-gradient-from: rgb(239 246 255 / 0.9);
  --tw-gradient-to: rgb(239 246 255 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-indigo-50\/90 {
  --tw-gradient-to: rgb(238 242 255 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), rgb(238 242 255 / 0.9),
    var(--tw-gradient-to);
}

.to-slate-50\/90 {
  --tw-gradient-to: rgb(248 250 252 / 0.9);
}

.from-blue-50 {
  --tw-gradient-from: #eff6ff;
  --tw-gradient-to: rgb(239 246 255 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-indigo-50 {
  --tw-gradient-to: rgb(238 242 255 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), #eef2ff, var(--tw-gradient-to);
}

.to-slate-50 {
  --tw-gradient-to: #f8fafc;
}

.from-transparent {
  --tw-gradient-from: transparent;
  --tw-gradient-to: rgb(0 0 0 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-white\/40 {
  --tw-gradient-to: rgb(255 255 255 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), rgb(255 255 255 / 0.4),
    var(--tw-gradient-to);
}

.via-white\/80 {
  --tw-gradient-to: rgb(255 255 255 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), rgb(255 255 255 / 0.8),
    var(--tw-gradient-to);
}

.to-transparent {
  --tw-gradient-to: transparent;
}

.from-blue-400\/20 {
  --tw-gradient-from: rgb(96 165 250 / 0.2);
  --tw-gradient-to: rgb(96 165 250 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-indigo-400\/20 {
  --tw-gradient-to: rgb(129 140 248 / 0.2);
}

.from-purple-400\/20 {
  --tw-gradient-from: rgb(196 181 253 / 0.2);
  --tw-gradient-to: rgb(196 181 253 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-violet-400\/20 {
  --tw-gradient-to: rgb(167 139 250 / 0.2);
}

.from-blue-600 {
  --tw-gradient-from: #2563eb;
  --tw-gradient-to: rgb(37 99 235 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-indigo-600 {
  --tw-gradient-to: #4f46e5;
}

.from-blue-700 {
  --tw-gradient-from: #1d4ed8;
  --tw-gradient-to: rgb(29 78 216 / 0);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-indigo-700 {
  --tw-gradient-to: #4338ca;
}

/* Backdrop filter support */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.backdrop-blur {
  backdrop-filter: blur(8px);
}

/* Shadow utilities */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.hover\:shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Transition utilities */
.transition-colors {
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-300 {
  transition-duration: 300ms;
}

/* Blur utilities */
.blur-xl {
  filter: blur(24px);
}

/* Home page specific theme colors */
.hero-gradient-bg {
  background: linear-gradient(to bottom right,
      var(--color-primary-200),
      var(--color-primary-300),
      var(--color-primary-200));
}

.hero-gradient-overlay-bg {
  background: linear-gradient(to top right,
      transparent,
      color-mix(in srgb, var(--background) 80%, transparent),
      transparent);
}

.hero-badge-bg {
  color: var(--color-primary-1100);
  background-color: color-mix(in oklab,
      var(--color-primary-1100) 10%,
      transparent);
  border-color: color-mix(in oklab, var(--color-primary-1100) 20%, transparent);
  border-width: 2px;
}

.text-primary-accent-1 {
  color: var(--color-primary-1100);
}

.text-primary-accent-2 {
  color: var(--color-primary-1200);
}

.text-primary-accent-3 {
  color: var(--color-primary-1300);
}

.bg-primary-200 {
  background-color: var(--color-primary-200);
}

.bg-primary-300 {
  background-color: var(--color-primary-300);
}

.bg-primary-muted-100 {
  background-color: var(--color-primary-muted-100);
}

.bg-primary-muted-200 {
  background-color: var(--color-primary-muted-200);
}

.bg-secondary-muted-100 {
  background-color: var(--color-secondary-muted-100);
}

.text-primary-500 {
  color: var(--color-primary-900);
}

.border-primary-200 {
  border-color: var(--color-primary-200);
}

.hover\:bg-primary-200:hover {
  background-color: var(--color-primary-200);
}

.hover\:bg-muted:hover {
  background-color: var(--muted);
}

/* Demo request modal */
.demo-modal {
  background: color-mix(in oklab,
      var(--color-primary-muted-0) 92%,
      transparent);
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  border-radius: 1.75rem;
  box-shadow: 0 40px 60px -28px color-mix(in srgb, var(--color-primary-1900) 35%, transparent);
  color: var(--foreground);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.demo-modal__header {
  background: color-mix(in oklab, var(--color-primary-0) 85%, transparent);
}

.demo-modal__body {
  background: linear-gradient(180deg,
      color-mix(in oklab, var(--color-primary-muted-200) 55%, transparent),
      color-mix(in oklab, var(--color-primary-muted-0) 94%, transparent));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}

.demo-modal__subtitle {
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.demo-modal__close {
  border: 1px solid color-mix(in oklab, var(--border) 45%, transparent);
  background: color-mix(in oklab,
      var(--color-primary-muted-0) 88%,
      transparent);
  border-radius: 9999px;
  padding: 0.5rem;
  color: var(--muted-foreground);
  transition: all 150ms ease;
}

.demo-modal__close:hover {
  color: var(--color-primary-1100);
  border-color: color-mix(in oklab, var(--color-primary-1100) 40%, transparent);
  box-shadow: 0 15px 30px -24px color-mix(in srgb, var(--color-primary-1900) 30%, transparent);
  background: color-mix(in oklab, var(--color-primary-100) 45%, transparent);
}

.demo-modal__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--foreground) 85%, transparent);
}

.demo-modal__field {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: color-mix(in oklab,
      var(--color-primary-muted-0) 94%,
      transparent);
  padding: 0.85rem 1rem;
  color: var(--foreground);
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.demo-modal__field:focus {
  outline: none;
  border-color: color-mix(in oklab, var(--color-primary-1100) 55%, transparent);
  background: color-mix(in oklab,
      var(--color-primary-muted-0) 100%,
      transparent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-primary-1100) 18%, transparent);
}

.demo-modal__field::placeholder {
  color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
}

textarea.demo-modal__field {
  min-height: 140px;
  resize: vertical;
}

/* Sophisticated animated gradient orbs */
@keyframes float-slow {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -30px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes float-medium {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(20px, -40px) rotate(180deg);
  }
}

@keyframes float-fast {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(-30px, 30px) scale(1.05);
  }

  75% {
    transform: translate(30px, -20px) scale(0.95);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.5;
  }
}

.gradient-orb-1 {
  background: radial-gradient(ellipse at 30% 30%,
      color-mix(in srgb, var(--color-primary-600) 60%, transparent),
      color-mix(in srgb, var(--color-primary-900) 40%, transparent),
      transparent 70%);
  animation: float-slow 20s ease-in-out infinite;
}

.gradient-orb-2 {
  background: radial-gradient(ellipse at 70% 60%,
      color-mix(in srgb, var(--color-primary-1100) 50%, transparent),
      color-mix(in srgb, var(--color-primary-1300) 35%, transparent),
      transparent 70%);
  animation: float-medium 25s ease-in-out infinite;
}

.gradient-orb-3 {
  background: radial-gradient(circle at 50% 50%,
      color-mix(in srgb, var(--color-primary-800) 45%, transparent),
      color-mix(in srgb, var(--color-primary-1000) 30%, transparent),
      transparent 65%);
  animation: float-fast 18s ease-in-out infinite,
    pulse-glow 8s ease-in-out infinite;
}

.gradient-orb-4 {
  background: radial-gradient(ellipse at 40% 70%,
      color-mix(in srgb, var(--color-primary-700) 40%, transparent),
      color-mix(in srgb, var(--color-primary-1200) 25%, transparent),
      transparent 75%);
  animation: float-slow 22s ease-in-out infinite reverse;
}

.text-box-trim-end {
  text-box: trim-end text;
}

.gradient-orb-5 {
  background: radial-gradient(circle at 60% 40%,
      color-mix(in srgb, var(--color-primary-900) 55%, transparent),
      color-mix(in srgb, var(--color-primary-600) 30%, transparent),
      transparent 70%);
  animation: float-medium 28s ease-in-out infinite reverse,
    pulse-glow 10s ease-in-out infinite;
}

/* Legacy support for old classes */
.gradient-orb-primary {
  background: linear-gradient(to right,
      color-mix(in srgb, var(--color-primary-700) 20%, transparent),
      color-mix(in srgb, var(--color-primary-900) 20%, transparent));
}

.gradient-orb-secondary {
  background: linear-gradient(to right,
      color-mix(in srgb, var(--color-primary-1200) 20%, transparent),
      color-mix(in srgb, var(--color-primary-1300) 20%, transparent));
}

/* Section backgrounds */
.section-gradient-bg {
  background: linear-gradient(to right,
      var(--color-primary-200),
      var(--color-primary-300),
      var(--color-primary-muted-300));
}

.section-bg-muted {
  background-color: var(--muted);
}

/* Unified page backgrounds */
.section-overlay-light {
  background-color: color-mix(in oklab, var(--background) 40%, transparent);
  backdrop-filter: blur(40px);
}

.section-overlay-medium {
  background-color: color-mix(in oklab, var(--background) 60%, transparent);
  backdrop-filter: blur(40px);
}

/* Card/content backgrounds */
.bg-card-subtle {
  background-color: var(--color-primary-300);
}

/* Enhanced card border for better visibility */
.bg-card-subtle.border {
  border-color: var(--color-primary-500);
  border-width: 1px;
}

:root {
  --color-primary-0: #fff;
  --color-primary-100: #f8f8f8;
  --color-primary-200: #f9f4ee;
  --color-primary-300: #f9eee1;
  --color-primary-400: #f9e7d2;
  --color-primary-500: #f9dec0;
  --color-primary-600: #f9d4a9;
  --color-primary-700: #f8c88e;
  --color-primary-800: #f7ba6d;
  --color-primary-900: #f5a93e;
  --color-primary-1000: #f29400;
  --color-primary-1100: #ef7d00;
  --color-primary-1200: #e95f00;
  --color-primary-1300: #e23700;
  --color-primary-1400: #d90000;
  --color-primary-1500: #b80000;
  --color-primary-1600: #990000;
  --color-primary-1700: #7d0000;
  --color-primary-1800: #640400;
  --color-primary-1900: #4e0800;
  --color-primary-2000: #3c0800;
  --color-primary-2100: #2d0800;
  --color-primary-2200: #210700;
  --color-primary-2300: #160500;
  --color-primary-2400: #0e0400;
  --color-primary-2500: #070300;
  --color-primary-2600: #040201;
  --color-primary-2700: #020202;
  --color-secondary-0: #fff;
  --color-secondary-100: #f8f8f8;
  --color-secondary-200: #edede9;
  --color-secondary-300: #e1e2da;
  --color-secondary-400: #d6d8cc;
  --color-secondary-500: #cacdbd;
  --color-secondary-600: #bfc2af;
  --color-secondary-700: #b4b8a1;
  --color-secondary-800: #a9ad93;
  --color-secondary-900: #9ea385;
  --color-secondary-1000: #939977;
  --color-secondary-1100: #898f69;
  --color-secondary-1200: #7e855b;
  --color-secondary-1300: #747b4e;
  --color-secondary-1400: #6a7140;
  --color-secondary-1500: #61663a;
  --color-secondary-1600: #575c35;
  --color-secondary-1700: #4e522f;
  --color-secondary-1800: #44492a;
  --color-secondary-1900: #3b3f24;
  --color-secondary-2000: #33361f;
  --color-secondary-2100: #2a2d1a;
  --color-secondary-2200: #222415;
  --color-secondary-2300: #1a1b10;
  --color-secondary-2400: #12130b;
  --color-secondary-2500: #0b0c07;
  --color-secondary-2600: #050504;
  --color-secondary-2700: #020202;
  --color-primary-muted-0: #fff;
  --color-primary-muted-100: #f8f8f8;
  --color-primary-muted-200: #f6f4f2;
  --color-primary-muted-300: #f2efeb;
  --color-primary-muted-400: #eee8e2;
  --color-primary-muted-500: #e9e1d7;
  --color-primary-muted-600: #e2d7cb;
  --color-primary-muted-700: #dbccbb;
  --color-primary-muted-800: #d1bfa8;
  --color-primary-muted-900: #c6af8e;
  --color-primary-muted-1000: #b4985c;
  --color-primary-muted-1100: #a58344;
  --color-primary-muted-1200: #936a31;
  --color-primary-muted-1300: #7c491c;
  --color-primary-muted-1400: #480000;
  --color-primary-muted-1500: #400000;
  --color-primary-muted-1600: #3a0700;
  --color-primary-muted-1700: #340e01;
  --color-primary-muted-1800: #2d1105;
  --color-primary-muted-1900: #261006;
  --color-primary-muted-2000: #1e0f06;
  --color-primary-muted-2100: #180c06;
  --color-primary-muted-2200: #120a06;
  --color-primary-muted-2300: #0d0705;
  --color-primary-muted-2400: #080504;
  --color-primary-muted-2500: #050403;
  --color-primary-muted-2600: #030202;
  --color-primary-muted-2700: #020202;
  --color-secondary-muted-0: #fff;
  --color-secondary-muted-100: #f8f8f8;
  --color-secondary-muted-200: #ededec;
  --color-secondary-muted-300: #e1e2df;
  --color-secondary-muted-400: #d6d7d3;
  --color-secondary-muted-500: #cbccc7;
  --color-secondary-muted-600: #c0c1bb;
  --color-secondary-muted-700: #b5b6af;
  --color-secondary-muted-800: #aaaba3;
  --color-secondary-muted-900: #9fa198;
  --color-secondary-muted-1000: #95968c;
  --color-secondary-muted-1100: #8a8c81;
  --color-secondary-muted-1200: #808275;
  --color-secondary-muted-1300: #75776a;
  --color-secondary-muted-1400: #6b6d5f;
  --color-secondary-muted-1500: #626356;
  --color-secondary-muted-1600: #585a4e;
  --color-secondary-muted-1700: #4e5045;
  --color-secondary-muted-1800: #45463d;
  --color-secondary-muted-1900: #3c3d35;
  --color-secondary-muted-2000: #33342d;
  --color-secondary-muted-2100: #2b2b26;
  --color-secondary-muted-2200: #22231e;
  --color-secondary-muted-2300: #1a1b17;
  --color-secondary-muted-2400: #121310;
  --color-secondary-muted-2500: #0b0b0a;
  --color-secondary-muted-2600: #050505;
  --color-secondary-muted-2700: #020202;
  --font-display: 'Nanum Myeongjo';
  --font-body: 'Inter';
  --animate-hero-vert-scroll-infinite: animate-hero-vert-scroll-infinite 30s linear infinite;
  --animate-hero-vert-scroll-infinite-reverse: animate-hero-vert-scroll-infinite-reverse 30s linear infinite;
  --animate-hero-vert-scroll-infinite-x: animate-hero-vert-scroll-infinite-x 30s linear infinite;
  --animate-hero-vert-scroll-infinite-x-reverse: animate-hero-vert-scroll-infinite-x-reverse 30s linear infinite;

  @keyframes animate-hero-vert-scroll-infinite {
    0% {
      transform: translateY(0);
    }

    100% {
      transform: translateY(-100%);
    }
  }

  @keyframes animate-hero-vert-scroll-infinite-reverse {
    0% {
      transform: translateY(0);
    }

    100% {
      transform: translateY(100%);
    }
  }

  @keyframes animate-hero-vert-scroll-infinite-x {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(-100%);
    }
  }

  @keyframes animate-hero-vert-scroll-infinite-x-reverse {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(100%);
    }
  }
}