/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
  /* UI Engineer Premium Palette - Tailored for Dark Theme */
  --color-primary-50: hsl(222, 100%, 97%);
  --color-primary-100: hsl(222, 100%, 93%);
  --color-primary-200: hsl(222, 100%, 85%);
  --color-primary-300: hsl(222, 100%, 76%);
  --color-primary-400: hsl(222, 100%, 67%);
  --color-primary-500: hsl(222, 100%, 58%);
  --color-primary-600: hsl(222, 100%, 48%);
  
  --color-gray-50: hsl(220, 20%, 97%);
  --color-gray-300: hsl(220, 14%, 72%);
  --color-gray-500: hsl(220, 10%, 46%);
  --color-gray-700: hsl(220, 14%, 24%);
  --color-gray-800: hsl(220, 16%, 16%);
  --color-gray-900: hsl(220, 18%, 10%);

  /* Base mappings */
  --bg-base: var(--color-gray-900);
  --bg-surface: var(--color-gray-800);
  --bg-glass: rgba(255, 255, 255, 0.05); /* Enhanced visibility */
  --glass-border: rgba(255, 255, 255, 0.15);

  --text-main: var(--color-gray-50);
  --text-muted: var(--color-gray-300);

  --brand-indigo: var(--color-primary-500);
  --brand-indigo-glow: rgba(59, 130, 246, 0.4);
  --brand-amber: hsl(38, 92%, 50%);
  --brand-amber-glow: rgba(245, 158, 11, 0.4);
  --brand-teal: hsl(175, 84%, 40%);

  /* Typography */
  --font-heading: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Spacing & Layout */
  --container-width: 1200px;
  --section-spacing: clamp(5rem, 10vw, 8rem);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  /* Shadows */
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.3);

  /* Transitions */
  --trans-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --trans-smooth: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  /* Suppress blinking vertical line (caret) and selection on landing page */
  caret-color: transparent;
}

input,
textarea,
[contenteditable="true"] {
  caret-color: auto;
  /* Restore caret for user inputs */
  user-select: auto;
}

/* Accessibility: Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-indigo);
  color: white;
  padding: 10px 20px;
  z-index: 10000;
  transition: top 0.3s;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
}

.skip-link:focus {
  top: 0;
}

/* Typography Base */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--trans-fast);
}

/* ==========================================================================
   Abstract Background Glows
   ========================================================================== */
.glow-orb {
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
  animation: float 20s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
}

.orb-amber {
  background: radial-gradient(circle, var(--brand-amber-glow) 0%, transparent 70%);
  top: -20%;
  right: -10%;
}

.orb-indigo {
  background: radial-gradient(circle, var(--brand-indigo-glow) 0%, transparent 70%);
  bottom: -20%;
  left: -20%;
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-5%, 5%) scale(1.1);
  }

  100% {
    transform: translate(5%, -5%) scale(0.9);
  }
}

/* ==========================================================================
   Layout Containers 
   ========================================================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 5%;
}

.container-sm {
  max-width: 800px;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.w-full {
  width: 100%;
}

/* ==========================================================================
   Utility Classes (Glassmorphism, Gradients)
   ========================================================================== */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-capture-form {
  padding: 2.5rem;
  margin-top: 2.5rem;
  border-radius: var(--radius-xl);
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-indigo), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-amber {
  background: linear-gradient(135deg, var(--brand-amber), #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(99, 102, 241, 0.1);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: 2rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all var(--trans-smooth);
  border: border-box;
}

.btn-sm {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-base);
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: transparent;
  color: var(--text-main);
  border-color: var(--text-main);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
}

.btn-outline:hover {
  background: var(--bg-glass);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  position: relative;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--brand-amber);
  transition: width var(--trans-smooth);
}

.btn-ghost:hover::after {
  width: 50%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 100;
  transition: all var(--trans-smooth);
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.dot {
  color: var(--brand-amber);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
}

.nav-link:hover {
  color: var(--text-main);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  transition: var(--trans-fast);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.125rem;
  max-width: 500px;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Glass Orb Visual Simulation */
.glass-orb-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  perspective: 1000px;
}

.glass-orb {
  width: 100%;
  height: 100%;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(99, 102, 241, 0.5);
  animation: morph 8s ease-in-out infinite both alternate, float-slow 6s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}

.inner-orb {
  position: absolute;
  top: 20%;
  left: 20%;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--brand-indigo) 0%, transparent 60%);
  filter: blur(20px);
  opacity: 0.6;
}

@keyframes morph {
  0% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  34% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }

  67% {
    border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
  }

  100% {
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }
}

@keyframes float-slow {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-20px);
  }
}

/* ==========================================================================
   Sections General
   ========================================================================== */
section {
  padding: var(--section-spacing) 0;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 4rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  text-align: left;
  transition: transform var(--trans-smooth), box-shadow var(--trans-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
}

.icon-indigo {
  color: var(--brand-indigo);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.2) inset;
}

.icon-amber {
  color: var(--brand-amber);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.2) inset;
}

.icon-teal {
  color: var(--brand-teal);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.2) inset;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 1rem;
  margin: 0;
}

/* ==========================================================================
   Products / Digital Storefront Section
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  overflow: hidden;
  transition: transform var(--trans-smooth), box-shadow var(--trans-smooth);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-image .badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(9, 9, 11, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-meta {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-meta h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.product-meta p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}

/* ==========================================================================
   Studio Vision Section
   ========================================================================== */
.vision-content .large-text {
  font-size: 1.25rem;
  color: var(--text-main);
  font-weight: 300;
}

.feature-list {
  list-style: none;
  margin-top: 2rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--brand-amber);
}

.banner-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.vision-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
  border-radius: var(--radius-lg);
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #18181b, #27272a);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.image-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(9, 9, 11, 0.8) 100%);
}

.placeholder-text {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.05);
  text-align: center;
  line-height: 0.9;
  z-index: 10;
}

.store-preview {
  text-align: left;
}
.store-preview:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Contact Forms
   ========================================================================== */
.contact-form {
  padding: 3rem;
  max-width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

input,
select,
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-indigo);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

textarea {
  resize: vertical;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.border-top {
  border-top: 1px solid var(--glass-border);
}

.footer {
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links p {
  margin: 0;
  font-size: 0.875rem;
  color: #71717a;
  /* WCAG AA contrast */
}

.privacy-footer {
  margin-top: 10px;
  font-size: 0.75rem;
}

.privacy-footer a {
  color: #52525b;
  text-decoration: none;
  transition: color var(--trans-fast);
}

.privacy-footer a:hover {
  color: var(--brand-amber);
}

.privacy-footer span {
  color: #3f3f46;
  margin: 0 8px;
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

@media (max-width: 992px) {

  .hero-content,
  .banner-container {
    grid-template-columns: 1fr;
    text-align: left; /* Overriding mobile center to match left-align design choice */
  }

  .hero-subtitle {
    margin: 0 auto 2.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .glass-orb-container {
    width: 70%;
    margin: 0 auto;
  }

  .feature-list li {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--trans-smooth);
    border-bottom: 1px solid var(--glass-border);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .contact-form {
    padding: 2rem 1.5rem;
  }
}

/* ==========================================================================
   Page Transitions (SPA Simulation)
   ========================================================================== */
body {
  opacity: 1;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

body.page-transitioning {
  opacity: 0;
  filter: blur(4px);
}

/* ==========================================================================
   Category Filters (E-Shop UX)
   ========================================================================== */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.6rem 1.5rem;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--trans-fast);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--text-main);
  border-color: var(--brand-indigo);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

/* Smooth filtering transitions */
.product-card {
  opacity: 1;
  transition: transform var(--trans-smooth), box-shadow var(--trans-smooth), opacity 0.4s ease;
}

.product-card.filtering-out {
  opacity: 0;
  transform: scale(0.95) !important;
  pointer-events: none;
}

.product-card.hidden {
  display: none !important;
}