/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Custom animation for critical findings flash */
@keyframes pulse-once {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
    background-color: rgb(254 226 226); /* red-100 */
  }
}

.animate-pulse-once {
  animation: pulse-once 1s ease-in-out;
}

/* Compact markdown styling for activity feed */
.feed-markdown {
  font-size: 0.8125rem;
  line-height: 1.5;
}

.feed-markdown > *:first-child {
  margin-top: 0;
}

.feed-markdown > *:last-child {
  margin-bottom: 0;
}

.feed-markdown h1,
.feed-markdown h2,
.feed-markdown h3,
.feed-markdown h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 1em;
  margin-bottom: 0.5em;
  color: rgb(17 24 39); /* gray-900 */
}

.feed-markdown h2 {
  padding-bottom: 0.25em;
  border-bottom: 1px solid rgb(229 231 235); /* gray-200 */
}

.feed-markdown h3 {
  color: rgb(55 65 81); /* gray-700 */
}

.feed-markdown p {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.feed-markdown ul,
.feed-markdown ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 1.25em;
}

.feed-markdown li {
  margin-top: 0.125em;
  margin-bottom: 0.125em;
}

.feed-markdown strong {
  font-weight: 600;
  color: rgb(17 24 39); /* gray-900 */
}

.feed-markdown hr {
  margin: 0.75em 0;
  border: none;
  border-top: 1px solid rgb(209 213 219); /* gray-300 */
}

/* Table styling for feed */
.feed-markdown table {
  width: 100%;
  margin: 0.75em 0;
  font-size: 0.75rem;
  border-collapse: collapse;
  border: 1px solid rgb(229 231 235); /* gray-200 */
}

.feed-markdown thead {
  background-color: rgb(249 250 251); /* gray-50 */
}

.feed-markdown th {
  padding: 0.375rem 0.5rem;
  text-align: left;
  font-weight: 600;
  color: rgb(55 65 81); /* gray-700 */
  border-bottom: 1px solid rgb(209 213 219); /* gray-300 */
}

.feed-markdown td {
  padding: 0.375rem 0.5rem;
  border-bottom: 1px solid rgb(243 244 246); /* gray-100 */
  vertical-align: top;
}

.feed-markdown tbody tr:hover {
  background-color: rgb(249 250 251); /* gray-50 */
}

.feed-markdown code {
  font-size: 0.75rem;
  padding: 0.125rem 0.25rem;
  background-color: rgb(243 244 246); /* gray-100 */
  border-radius: 0.25rem;
}

.feed-markdown pre {
  margin: 0.5em 0;
  padding: 0.5rem;
  font-size: 0.75rem;
  background-color: rgb(249 250 251); /* gray-50 */
  border-radius: 0.375rem;
  overflow-x: auto;
}

.feed-markdown blockquote {
  margin: 0.5em 0;
  padding-left: 0.75em;
  border-left: 2px solid rgb(209 213 219); /* gray-300 */
  color: rgb(107 114 128); /* gray-500 */
}

/* Legal page typography */
.legal-prose {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgb(55 65 81); /* gray-700 */
}

.legal-prose h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: rgb(17 24 39); /* gray-900 */
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.legal-prose h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: rgb(17 24 39); /* gray-900 */
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid rgb(229 231 235); /* gray-200 */
}

.legal-prose p {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.legal-prose ol,
.legal-prose ul {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

.legal-prose ol {
  list-style-type: decimal;
}

.legal-prose ul {
  list-style-type: disc;
}

.legal-prose li {
  margin-top: 0.375rem;
  margin-bottom: 0.375rem;
}

.legal-prose li > p {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.legal-prose strong {
  font-weight: 600;
  color: rgb(17 24 39); /* gray-900 */
}

.legal-prose a {
  color: rgb(79 70 229); /* indigo-600 */
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose a:hover {
  color: rgb(67 56 202); /* indigo-700 */
}

.legal-prose table {
  width: 100%;
  margin: 1rem 0;
  font-size: 0.8125rem;
  border-collapse: collapse;
  border: 1px solid rgb(229 231 235); /* gray-200 */
}

.legal-prose thead {
  background-color: rgb(249 250 251); /* gray-50 */
}

.legal-prose th {
  padding: 0.625rem 0.75rem;
  text-align: left;
  font-weight: 600;
  color: rgb(55 65 81); /* gray-700 */
  border-bottom: 1px solid rgb(209 213 219); /* gray-300 */
}

.legal-prose td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid rgb(243 244 246); /* gray-100 */
  vertical-align: top;
}

.legal-prose tbody tr:hover {
  background-color: rgb(249 250 251); /* gray-50 */
}

.legal-prose em {
  font-style: italic;
}

/* Hide tool call events when "show tools" is unchecked.
   Uses CSS so newly streamed elements are hidden instantly. */
.hide-tool-events [data-activity-feed-target="toolEvent"] {
  display: none;
}

/* ==========================================================================
   LANDING PAGE — Refined Minimalist Design
   Inspired by isomeet.com, popcorn.space, shuttle.zip
   Brand: Geist font, #EF6438 primary, #1AB499 secondary
   ========================================================================== */

:root {
  --l-primary: #1AB499;
  --l-secondary: #EF6438;
  --l-text: #0A0A0A;
  --l-text-secondary: #4B5563;
  --l-text-muted: #9CA3AF;
  --l-bg: #ffffff;
  --l-bg-subtle: #FAFAFA;
  --l-border: #E5E7EB;
  --l-border-light: #F3F4F6;
  --l-max-width: 1120px;
  --l-transition: 0.2s ease;
}

/* ---------- Geometric Grid Background ---------- */

.landing-grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
}

.landing-grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 30%, transparent 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.85) 100%);
}

.landing-body > *:not(.landing-grid-bg) {
  position: relative;
  z-index: 1;
}

/* ---------- Scroll Animations ---------- */

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}
[data-animate][data-delay="1"] { transition-delay: 0.08s; }
[data-animate][data-delay="2"] { transition-delay: 0.16s; }
[data-animate][data-delay="3"] { transition-delay: 0.24s; }

[data-entrance] {
  opacity: 0;
  transform: translateY(16px);
  animation: landingFadeIn 0.6s ease forwards;
}
[data-entrance="1"] { animation-delay: 0.05s; }
[data-entrance="2"] { animation-delay: 0.15s; }
[data-entrance="3"] { animation-delay: 0.25s; }
[data-entrance="4"] { animation-delay: 0.35s; }
[data-entrance="5"] { animation-delay: 0.5s; }

@keyframes landingFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  [data-animate], [data-entrance] { opacity: 1; transform: none; transition: none; animation: none; }
}

/* ---------- Navigation ---------- */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.landing-nav.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--l-border-light);
}

.landing-nav-link {
  color: var(--l-text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color var(--l-transition);
  text-decoration: none;
}

.landing-nav-link:hover {
  color: var(--l-text);
}

.landing-locale-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 6px;
  background: var(--l-bg-subtle);
  border: 1px solid var(--l-border-light);
}

.landing-locale-switcher a,
.landing-locale-switcher span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  transition: all var(--l-transition);
}

.landing-locale-switcher a:hover {
  color: var(--l-secondary);
}

/* ---------- Buttons ---------- */

.landing-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  background: var(--l-text);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all var(--l-transition);
  text-decoration: none;
}

.landing-btn-primary:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.landing-btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: var(--l-text);
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  border: none;
  cursor: pointer;
  transition: all var(--l-transition);
  text-decoration: none;
}

.landing-btn-nav:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}

/* Welcome-back button for logged-in users */
.landing-btn-welcome {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--l-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all var(--l-transition);
  text-decoration: none;
}

.landing-btn-welcome:hover {
  background: color-mix(in srgb, var(--l-primary) 88%, black);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 180, 153, 0.25);
}

.landing-btn-welcome span {
  transition: transform var(--l-transition);
}

.landing-btn-welcome:hover span {
  transform: translateX(2px);
}

.landing-welcome-greeting {
  font-size: 0.8125rem;
  color: var(--l-text-muted);
  margin-bottom: 12px;
}

.landing-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--l-text-secondary);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color var(--l-transition);
  text-decoration: none;
}

.landing-btn-secondary:hover {
  color: var(--l-text);
}

/* ---------- Display Heading (Instrument Serif) ---------- */

.landing-display-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(3.25rem, 7vw, 5rem);
  font-weight: 800;
  font-optical-sizing: auto;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--l-text);
  margin-bottom: 24px;
}

.landing-display-heading em {
  font-style: normal;
  font-weight: 800;
  color: var(--l-primary);
}

/* ---------- Typography ---------- */

.landing-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--l-text-muted);
  margin-bottom: 12px;
}

.landing-section-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--l-text);
}

/* ---------- Hero ---------- */

.landing-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--l-text-secondary);
  background: var(--l-bg-subtle);
  border: 1px solid var(--l-border);
  margin-bottom: 28px;
}

.landing-hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--l-primary);
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.landing-video-wrap {
  position: relative;
  padding-bottom: 8px;
}

.landing-video-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 8px;
  right: -8px;
  top: 8px;
  background: var(--l-primary);
  z-index: 0;
  transition: all 0.3s ease;
}

.landing-video-wrap:hover::after {
  left: 10px;
  right: -10px;
  top: 10px;
  bottom: -2px;
}

.landing-video-placeholder {
  position: relative;
  z-index: 1;
  background: var(--l-text);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-video-wrap:hover .landing-video-placeholder {
  transform: translate(-2px, -2px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* ---------- Logo Bar ---------- */

.landing-logo-bar img {
  height: 28px;
  filter: grayscale(100%);
  opacity: 0.25;
  transition: all var(--l-transition);
}

.landing-logo-bar img:hover {
  filter: grayscale(0%);
  opacity: 0.6;
}

.landing-logo-bar img[alt="Balta"] {
  height: 36px;
}

/* ---------- Feature Cards ---------- */

.landing-feature-card-wrap {
  position: relative;
  padding-bottom: 6px;
}

.landing-feature-card-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 6px;
  right: -6px;
  top: 6px;
  background: var(--l-primary);
  z-index: 0;
  transition: all 0.25s ease;
}

.landing-feature-card-wrap:hover::after {
  left: 8px;
  right: -8px;
  top: 8px;
  bottom: -2px;
}

.landing-feature-card {
  position: relative;
  z-index: 1;
  padding: 40px 32px 32px;
  background: #ffffff;
  border: 1px solid var(--l-border);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.landing-feature-card-wrap:hover .landing-feature-card {
  transform: translate(-2px, -2px);
}

.landing-feature-card .feature-icon {
  display: block;
  color: var(--l-primary);
  margin-bottom: 28px;
  transition: transform 0.25s ease;
}

.landing-feature-card:hover .feature-icon {
  transform: scale(1.05);
}

.landing-feature-card .feature-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--l-text);
  margin-bottom: 12px;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.landing-feature-card .feature-desc {
  font-size: 0.9375rem;
  color: var(--l-text-secondary);
  line-height: 1.65;
  flex: 1;
}

.landing-feature-card .feature-explore {
  display: block;
  margin-top: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--l-primary);
  text-decoration: none;
  transition: opacity var(--l-transition);
}

.landing-feature-card .feature-explore:hover {
  opacity: 0.7;
}

/* ---------- New Feature Banner ---------- */

.new-feature-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--l-secondary) 0%, color-mix(in srgb, var(--l-secondary) 85%, black) 40%, color-mix(in srgb, var(--l-secondary) 70%, black) 100%);
}

@media (max-width: 768px) {
  .new-feature-banner {
    grid-template-columns: 1fr;
  }
}

.new-feature-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 2px 2px, rgba(255,255,255,0.5) 1px, transparent 0);
  background-size: 24px 24px;
}

.new-feature-content {
  position: relative;
  z-index: 1;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.new-feature-label {
  display: inline-block;
  width: fit-content;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFF8F0;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  margin-bottom: 24px;
}

.new-feature-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #FFF8F0;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.new-feature-desc {
  font-size: 1rem;
  color: rgba(255, 248, 240, 0.9);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 440px;
}

.new-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #FFF8F0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.new-feature-cta:hover {
  opacity: 0.8;
}

.new-feature-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 32px 0 32px 0;
  overflow: hidden;
}

.new-feature-screenshot {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
}

/* ---------- How It Works Phases ---------- */

.hiw-phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto 1fr;
  gap: 2px;
  background: var(--l-border);
}

@media (max-width: 768px) {
  .hiw-phases {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

.hiw-phase {
  background: #ffffff;
  padding: 40px 36px 44px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  transition: all 0.3s ease;
}

.hiw-phase:hover {
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  z-index: 1;
}

.hiw-phase-body {
}

.hiw-phase-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.hiw-phase-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--l-border);
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.3s ease;
}

.hiw-phase:hover .hiw-phase-number {
  color: var(--l-primary);
}

.hiw-phase-line {
  flex: 1;
  height: 1px;
  background: var(--l-border);
}

.hiw-phase-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--l-text);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hiw-phase-subtitle {
  font-size: 0.9375rem;
  color: var(--l-text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

.hiw-phase-items {
  list-style: none;
  padding: 32px 0 0;
  margin: 0;
  border-top: 1px solid var(--l-border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hiw-phase-items li {
  font-size: 0.8125rem;
  color: var(--l-text-secondary);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.hiw-phase-items li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 2px;
  background: var(--l-primary);
}

/* Featured phase — middle column emphasis */
.hiw-phase--featured {
  background: var(--l-text);
}

.hiw-phase--featured .hiw-phase-number {
  color: rgba(255, 255, 255, 0.2);
}

.hiw-phase--featured:hover .hiw-phase-number {
  color: var(--l-primary);
}

.hiw-phase--featured .hiw-phase-line {
  background: rgba(255, 255, 255, 0.15);
}

.hiw-phase--featured .hiw-phase-title {
  color: #ffffff;
}

.hiw-phase--featured .hiw-phase-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.hiw-phase--featured .hiw-phase-items {
  border-top-color: rgba(255, 255, 255, 0.15);
  padding: 32px 0 0;
}

.hiw-phase--featured .hiw-phase-items li {
  color: rgba(255, 255, 255, 0.85);
}

.hiw-phase--featured:hover {
  background: var(--l-text);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
}

/* ---------- Value Props ---------- */

.landing-value-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--l-primary);
  margin-bottom: 14px;
}

/* ---------- Value Props Visual ---------- */

.landing-value-visual {
  position: relative;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.landing-value-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}

.landing-value-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255,255,255,0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.4) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Speed — warm orange gradient */
.landing-value-visual--speed::before {
  background: linear-gradient(135deg, #EF6438 0%, #F59E6C 50%, #FBBF8A 100%);
}

.landing-value-visual--speed {
  box-shadow: 0 12px 40px rgba(239, 100, 56, 0.15);
}

/* Evidence — deep teal gradient */
.landing-value-visual--evidence::before {
  background: linear-gradient(135deg, #0D8B73 0%, #1AB499 50%, #5DD4B8 100%);
}

.landing-value-visual--evidence {
  box-shadow: 0 12px 40px rgba(26, 180, 153, 0.15);
}

/* Thoroughness — dark slate gradient */
.landing-value-visual--thoroughness::before {
  background: linear-gradient(135deg, #1E293B 0%, #334155 50%, #475569 100%);
}

.landing-value-visual--thoroughness {
  box-shadow: 0 12px 40px rgba(30, 41, 59, 0.15);
}

/* Language — muted indigo gradient */
.landing-value-visual--language::before {
  background: linear-gradient(135deg, #4338CA 0%, #6366F1 50%, #818CF8 100%);
}

.landing-value-visual--language {
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
  aspect-ratio: 4 / 3;
}

/* Geometric accent shapes */
.landing-value-visual .vv-shape {
  position: absolute;
  z-index: 0;
}

.landing-value-visual .vv-shape--circle {
  width: 140px;
  height: 140px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  top: -30px;
  right: -30px;
}

.landing-value-visual .vv-shape--square {
  width: 80px;
  height: 80px;
  border: 1.5px solid rgba(255,255,255,0.2);
  bottom: 20px;
  left: -20px;
  transform: rotate(15deg);
}

.landing-value-visual .vv-shape--diamond {
  width: 60px;
  height: 60px;
  border: 1.5px solid rgba(255,255,255,0.2);
  bottom: -10px;
  right: 40px;
  transform: rotate(45deg);
}

/* Screenshot on top */
.landing-value-visual .vv-screenshot {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  overflow: hidden;
}

.landing-value-visual .vv-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.landing-value-visual .vv-screenshot span {
  font-size: 0.8125rem;
  color: var(--l-text-muted);
}

/* Flags layout for language section */
.vv-flags {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  max-width: 320px;
}

.vv-flag {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.vv-flag:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.vv-flag-emoji {
  font-size: 3rem;
  line-height: 1;
}

.vv-flag-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

/* ---------- Security ---------- */

.landing-security-section {
  background: var(--l-text);
  position: relative;
  overflow: hidden;
}

.landing-security-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image:
    linear-gradient(rgba(255,255,255,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 72px 72px;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .security-grid {
    grid-template-columns: 1fr;
  }
}

.security-card {
  padding: 36px 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
}

.security-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

.security-card-icon {
  color: var(--l-primary);
  margin-bottom: 20px;
}

.security-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.security-card-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.65;
}

/* ---------- Subpages: About ---------- */

.subpage-story-layout {
  max-width: 720px;
}

.subpage-stats-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 0;
  border-top: 1px solid var(--l-border-light);
  border-bottom: 1px solid var(--l-border-light);
}

.subpage-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  text-align: center;
}

.subpage-stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--l-primary);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.subpage-stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--l-text-muted);
}

.subpage-team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--l-border);
}

.subpage-team-card {
  background: #ffffff;
  padding: 40px 32px;
  transition: all 0.3s ease;
}

.subpage-team-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  z-index: 1;
}

.subpage-team-photo {
  width: 80px;
  height: 80px;
  overflow: hidden;
  margin-bottom: 20px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.subpage-team-card:hover .subpage-team-photo {
  filter: grayscale(0%);
}

.subpage-team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.subpage-team-role {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--l-primary);
  margin-bottom: 10px;
}

.subpage-team-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--l-text);
  margin-bottom: 10px;
}

.subpage-team-bio {
  font-size: 0.9375rem;
  color: var(--l-text-secondary);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .subpage-stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .subpage-team-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Subpages: Contacts ---------- */

.contacts-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Left column: contact list */
.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contacts-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--l-border-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

.contacts-item:first-child {
  padding-top: 0;
}

.contacts-item:last-child {
  border-bottom: none;
}

.contacts-item--link:hover {
  padding-left: 8px;
}

.contacts-item--link:hover .contacts-item-value {
  color: var(--l-primary);
}

.contacts-item-icon {
  color: var(--l-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.contacts-item-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--l-text-muted);
  margin-bottom: 4px;
}

.contacts-item-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--l-text);
  line-height: 1.5;
  transition: color 0.2s ease;
}

/* Right column: form card */
.contacts-form-card {
  background: var(--l-bg-subtle);
  border: 1px solid var(--l-border-light);
  border-radius: 16px;
  padding: 36px;
}

/* CTA link (kept from before) */
.subpage-contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--l-text);
  text-decoration: none;
  padding: 14px 0;
  transition: color 0.2s ease;
}

.subpage-contact-cta:hover {
  color: var(--l-secondary);
}

.subpage-contact-cta svg {
  color: var(--l-primary);
}

@media (max-width: 768px) {
  .contacts-two-col {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ---------- Subpages: Features ---------- */

.subpage-feature-header {
  margin-bottom: 48px;
}

.subpage-feature-screenshot {
  margin-bottom: 32px;
}

.subpage-feature-screenshot-placeholder {
  aspect-ratio: 16 / 9;
  background: var(--l-bg-subtle);
  border: 2px dashed var(--l-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.subpage-feature-screenshot-placeholder span {
  font-size: 0.8125rem;
  color: var(--l-text-muted);
}

.subpage-feature-capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--l-border);
}

.subpage-capability-card {
  background: #ffffff;
  padding: 36px 32px;
  transition: all 0.3s ease;
}

.subpage-capability-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  z-index: 1;
}

.subpage-capability-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--l-text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.subpage-capability-desc {
  font-size: 0.9375rem;
  color: var(--l-text-secondary);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .subpage-feature-capabilities {
    grid-template-columns: 1fr;
  }
}

/* ---------- Subpages: Pricing ---------- */

.subpage-price-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.subpage-price-hero-text {
  max-width: 520px;
}

.subpage-price-hero-text .subpage-price-aside {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.subpage-price-card {
  width: 320px;
  overflow: hidden;
  border: 1px solid var(--l-border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.subpage-price-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}

.subpage-price-card-top {
  background:
    radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px),
    var(--l-primary);
  background-size: 16px 16px;
  padding: 36px 40px 40px;
  text-align: center;
}

.subpage-price-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 8px;
}

.subpage-price-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
}

.subpage-price-amount {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1;
}

.subpage-price-currency {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: -0.02em;
  line-height: 1;
}

.subpage-price-card-bottom {
  background: #ffffff;
  padding: 28px 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.subpage-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--l-text-secondary);
  line-height: 1.4;
}

.subpage-price-row svg {
  flex-shrink: 0;
}

.subpage-price-aside {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--l-text-muted);
  line-height: 1.7;
}

.subpage-costs-table {
  max-width: 720px;
}

.subpage-costs-header {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 2px solid var(--l-text);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--l-text-muted);
}

.subpage-costs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--l-border-light);
  font-size: 0.9375rem;
  color: var(--l-text-secondary);
}

.subpage-costs-value {
  font-weight: 800;
  color: var(--l-text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
}

.subpage-pricing-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--l-border);
  max-width: 720px;
}

.subpage-pricing-col {
  background: #ffffff;
}

.subpage-pricing-col-header {
  padding: 28px 32px;
  border-bottom: 1px solid var(--l-border-light);
}

.subpage-pricing-col-header h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--l-text);
}

.subpage-pricing-col-header--free {
  border-bottom-color: var(--l-primary);
  border-bottom-width: 2px;
}

.subpage-pricing-col-header--credits {
  border-bottom-color: var(--l-secondary);
  border-bottom-width: 2px;
}

.subpage-pricing-list {
  list-style: none;
  padding: 24px 32px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.subpage-pricing-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--l-text-secondary);
  line-height: 1.5;
}

.subpage-pricing-list li svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .subpage-price-hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .subpage-price-hero-text {
    max-width: none;
  }

  .subpage-price-card {
    width: 100%;
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .subpage-price-card {
    padding: 36px 28px;
  }

  .subpage-pricing-columns {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.landing-footer {
  border-top: 1px solid var(--l-border-light);
}
