/* Linear Design System - Vanilla CSS */

:root {
  /* Colors */
  --bg-deep: #020203;
  --bg-base: #050506;
  --bg-elevated: #0a0a0c;

  --surface: rgba(255, 255, 255, 0.05);
  --surface-hover: rgba(255, 255, 255, 0.08);

  --foreground: #ededef;
  --foreground-muted: #8a8f98;
  --foreground-subtle: rgba(255, 255, 255, 0.6);

  --accent: #5e6ad2;
  --accent-bright: #6872d9;
  --accent-glow: rgba(94, 106, 210, 0.3);

  --border-default: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(94, 106, 210, 0.3);

  /* Typography */
  --font-family: "Inter", system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-4: 4px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-64: 64px;
  --space-128: 128px;

  /* Radius */
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  background-color: var(--bg-deep);
  color: var(--foreground);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

[v-cloak] {
  display: none;
}

/* Background System */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at top,
    #0a0a0f 0%,
    #050506 50%,
    #020203 100%
  );
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.glow-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.2;
  animation: float 10s ease-in-out infinite alternate;
}

.blob-1 {
  top: -10%;
  left: 30%;
  width: 800px;
  height: 800px;
  background: var(--accent);
  opacity: 0.15;
}
.blob-2 {
  top: 40%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: #4c1d95;
  opacity: 0.1;
  animation-delay: -2s;
}
.blob-3 {
  bottom: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: #3b82f6;
  opacity: 0.1;
  animation-delay: -5s;
}

.highlight-letter {
  color: var(--accent-bright);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(104, 114, 217, 0.4);
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(20px, 40px) rotate(5deg);
  }
}

/* Typography */
h1,
h2,
h3,
h4 {
  color: var(--foreground);
  letter-spacing: -0.02em;
  font-weight: 600;
}

.huge-title {
  font-size: clamp(3.5rem, 6vw, 6rem);
  line-height: 1.05;
  margin-bottom: var(--space-32);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-16);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--foreground-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--space-64);
}

.lead-text {
  font-size: 1.25rem;
  color: var(--foreground-muted);
  max-width: 640px;
  margin: 0 auto 40px auto;
}

.text-gradient {
  background: linear-gradient(to bottom, #ffffff, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accent-gradient {
  background: linear-gradient(to right, #818cf8, #5e6ad2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation Dock */
.nav-dock {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 90%;
  max-width: 850px;
}

.nav-content {
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand-logo {
  color: var(--foreground);
  font-size: 1.25rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.brand-logo:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  color: var(--foreground-muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--foreground);
  background: rgba(255, 255, 255, 0.05);
}
.nav-links a.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-dock {
    bottom: 20px;
    width: auto;
  }
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-24);
}

section {
  padding: 0 0 var(--space-64) 0;
  position: relative;
  scroll-margin-top: 120px; /* Offset for fixed nav/header */
}

@media (min-width: 768px) {
  section {
    padding: 0 0 var(--space-128) 0;
  }
}

/* Cards & Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-24);
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .col-span-2 {
    grid-column: span 2;
  }
  .col-span-3 {
    grid-column: span 3;
  }
  .col-span-4 {
    grid-column: span 4;
  }
  .row-span-2 {
    grid-row: span 2;
  }
}

.card {
  background: linear-gradient(
    180deg,
    var(--surface) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-32);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Spotlight Details */
.spotlight-overlay {
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: radial-gradient(
    600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(94, 106, 210, 0.1),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover .spotlight-overlay {
  opacity: 1;
}
.card-content {
  position: relative;
  z-index: 2;
}

/* Icon Boxes */
.icon-box {
  font-size: 1.5rem;
  color: var(--foreground);
}
.icon-box.accent-text {
  color: var(--accent-bright);
}

/* Buttons & Badges */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 1rem;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow:
    0 0 0 1px rgba(94, 106, 210, 0.5),
    0 4px 12px rgba(94, 106, 210, 0.3);
}
.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(94, 106, 210, 0.6),
    0 6px 16px rgba(94, 106, 210, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--foreground);
  border: 1px solid var(--border-default);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(94, 106, 210, 0.1);
  color: var(--accent-bright);
  border: 1px solid rgba(94, 106, 210, 0.2);
  margin-bottom: 24px;
  font-family: monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* App Logo & Brand Area */
.logo-container {
  position: fixed;
  top: 32px;
  left: 32px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
}

.app-logo {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  display: block;
}

.press-kit-link {
  margin-top: 12px;
  font-size: 0.85rem;
  color: #aebbf0; /* Brighter, high contrast */
  text-decoration: none;
  font-weight: 700;
  text-align: left;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: all 0.2s;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.press-kit-link:hover {
  color: white;
  background: rgba(94, 106, 210, 0.4);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Schema Preview */
.schema-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
}

.app-logo:hover {
  transform: scale(1.05);
}

.app-screen {
  position: fixed;
  top: 32px;
  right: 32px;
  height: 80px;
  width: auto;
  border-radius: 12px;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border-default);
}

.app-screen:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

/* 7 Reasons List */
.grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.list-item {
  padding: 24px;
}
.number-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

/* Tabs */
.tabs-container {
  max-width: 800px;
  margin: 0 auto;
}
.tabs-header {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
  border-radius: 999px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.tab-btn {
  background: transparent;
  border: none;
  color: var(--foreground-muted);
  padding: 8px 24px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  font-family: inherit;
  font-size: 0.95rem;
}
.tab-btn.active {
  background: var(--accent);
  color: white;
}
.tab-btn:hover:not(.active) {
  color: white;
}

.tab-pane {
  padding: 16px;
  min-height: 200px;
}
.quote-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 2px solid var(--accent);
  padding: 16px;
  border-radius: 0 8px 8px 0;
  margin-top: 16px;
}
.quote-icon {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--foreground-muted);
}
.comparison-table th {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--border-default);
  color: var(--foreground);
}
.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-default);
}
.feature-name {
  color: var(--foreground);
  font-weight: 500;
}
.highlight-cell {
  color: var(--accent-bright);
  font-weight: bold;
  background: rgba(94, 106, 210, 0.05);
}

/* Animation Utils */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}

/* Transition Fade */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.2s ease;
}
.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* Utilities */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.gap-4 {
  gap: 16px;
}
.text-center {
  text-align: center;
}
.mb-2 {
  margin-bottom: 8px;
}
.mb-4 {
  margin-bottom: 16px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border-default);
  padding: 24px 0;
}
.faq-question {
  color: var(--foreground);
  font-weight: 500;
  margin-bottom: 8px;
}
.footer-link {
  color: var(--foreground-muted);
  text-decoration: none;
  margin-right: 24px;
}
.footer-link:hover {
  color: white;
}

/* Gallery System */
.gallery-trigger-card {
  text-align: center;
  cursor: pointer;
  border: 1px dashed var(--border-accent);
  background: rgba(94, 106, 210, 0.03);
  width: 100%;
  aspect-ratio: 1 / 1; /* Square */
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}
.gallery-trigger-card:hover {
  border-color: var(--accent);
}
.gallery-trigger-card .card-content {
  position: relative;
  z-index: 10;
  background: rgba(2, 2, 3, 0.6); /* Backdrop for text readability */
  padding: 24px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  width: 50%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}
.gallery-trigger-card:hover .card-content {
  background: rgba(2, 2, 3, 0.4);
}

/* Slideshow */
.slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: kenBurns 18s infinite;
}

.slide-1 {
  animation-delay: 0s;
}
.slide-2 {
  animation-delay: 6s;
}
.slide-3 {
  animation-delay: 12s;
}

@keyframes kenBurns {
  0% {
    opacity: 0;
    transform: scale(1) translate(0, 0);
  }
  5% {
    opacity: 1;
  }
  33.33% {
    opacity: 1;
    transform: scale(1.2) translate(-2%, -2%);
  }
  38.33% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: scale(1.2) translate(-2%, -2%);
  }
}

.gallery-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 2, 3, 0.95);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--foreground);
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}
.close-btn:hover {
  color: var(--accent);
}

.gallery-carousel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.carousel-slide {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.carousel-control:hover {
  background: var(--accent);
}
.prev-btn {
  left: 16px;
}
.next-btn {
  right: 16px;
}

@media (max-width: 768px) {
  .carousel-control {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }
  .carousel-slide {
    max-width: 100%;
  }
}

/* Philosophy Video */
.philosophy-video {
  width: 100%;
  height: 100%; /* Fill container */
  border-radius: var(--radius-xl);
  display: block;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-default);
  background: black;
  margin: 0; /* Reset margins */
  aspect-ratio: 1 / 1; /* Square */
  object-fit: cover;
}

/* Gallery Grid Layout */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-32);
  align-items: center; /* Vertical center alignment */
}

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

/* Video Overlay */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 2, 3, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px;
}

.video-wrapper {
  width: 100%;
  max-width: 1200px;
  max-height: 80vh; /* Allow height to shrink for fit */
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-default);
  background: black;
}

.overlay-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensure full visibility */
  display: block;
}

.video-close-btn {
  position: absolute;
  top: 32px;
  right: 32px;
  font-size: 3rem;
  z-index: 1001;
}
