/* ═══════════════════════════════════════════════
   MAYKING SOFTWARE — Marketing Site Styles
   ═══════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ── Theme Custom Properties ───────────────── */
:root {
  /* Dark theme (default) */
  --bg-0: #050507;
  --bg-1: #0a0a0e;
  --bg-2: #111116;
  --bg-3: #18181e;
  --bg-card: #0d0d12;
  --bg-card-hover: #141419;
  --text-1: #ededf0;
  --text-2: #9d9db0;
  --text-3: #5e5e72;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --accent-1: #34d399;
  --accent-2: #60a5fa;
  --accent-grad: linear-gradient(135deg, #34d399, #60a5fa);
  --accent-grad-text: linear-gradient(135deg, #34d399 0%, #60a5fa 100%);
  --glass-bg: rgba(10, 10, 14, 0.82);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: 20px;
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 8px 48px rgba(0, 0, 0, 0.6);
  --noise-opacity: 0.025;
  --logo-invert: 0;

  /* Typography scale */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Sizing */
  --max-w: 1280px;
  --nav-h: 72px;
  --section-py: clamp(80px, 12vh, 160px);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-theme: background-color 0.5s var(--ease-out-expo), color 0.5s var(--ease-out-expo), border-color 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
}

[data-theme="light"] {
  --bg-0: #f8f8fa;
  --bg-1: #f0f0f3;
  --bg-2: #e6e6eb;
  --bg-3: #dcdce2;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f8;
  --text-1: #111116;
  --text-2: #55556a;
  --text-3: #88889a;
  --border: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.14);
  --accent-1: #0d9668;
  --accent-2: #2563eb;
  --accent-grad: linear-gradient(135deg, #0d9668, #2563eb);
  --accent-grad-text: linear-gradient(135deg, #0d9668 0%, #2563eb 100%);
  --glass-bg: rgba(248, 248, 250, 0.85);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-blur: 20px;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.1);
  --noise-opacity: 0.015;
  --logo-invert: 0;
}

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

/* ── Global Styles ─────────────────────────── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-0);
  color: var(--text-1);
  line-height: 1.65;
  transition: var(--transition-theme);
  overflow-x: hidden;
}

::selection {
  background: var(--accent-1);
  color: var(--bg-0);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ── Utility Classes ───────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.gradient-text {
  background: var(--accent-grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── Scroll Reveal ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  background-color: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--glass-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.nav__logo {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-1);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__logo img {
  height: 41px;
  width: auto;
  filter: brightness(1.8);
}

[data-theme="light"] .nav__logo img {
  filter: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.3s ease;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-grad);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out-expo);
}

.nav__links a:hover {
  color: var(--text-1);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__actions {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out-expo);
  font-size: 1.1rem;
}

.theme-toggle:hover {
  background: var(--bg-3);
  border-color: var(--border-hover);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun { display: none; }

/* Mobile nav toggle */
.nav__mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 80px;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__canvas canvas {
  width: 100%;
  height: 100%;
}

/* Hero device mockup image — sits between canvas and text */
.hero__image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.45;
  transition: opacity 0.5s var(--ease-out-expo);
}

[data-theme="light"] .hero__image img {
  opacity: 0.85;
}

/* Hard divider bar at bottom of hero */
.hero__divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-grad);
  z-index: 3;
}

/* Gradient overlays — behind the hero image, on top of canvas only */
.hero__gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to bottom, var(--bg-0) 0%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.hero__gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, var(--bg-0) 0%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.hero__gradient-radial {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, var(--bg-0) 70%);
  z-index: 0;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 40px clamp(20px, 4vw, 48px);
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(5, 5, 7, 0.9) 0%, transparent 70%);
}

[data-theme="light"] .hero__content {
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(248, 248, 250, 0.95) 0%, transparent 70%);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero__badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero__heading .line {
  display: block;
  overflow: visible;
  white-space: nowrap;
}

.hero__heading .line-inner {
  display: block;
  opacity: 0;
  transform: translateY(100%);
  animation: revealLine 0.9s var(--ease-out-expo) forwards;
}

.hero__heading .line:nth-child(1) .line-inner { animation-delay: 0.3s; }
.hero__heading .line:nth-child(2) .line-inner { animation-delay: 0.45s; }
.hero__heading .line:nth-child(3) .line-inner { animation-delay: 0.6s; }

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

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

.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #ffffff;
  max-width: 640px;
  margin: 0 auto 44px;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s var(--ease-out-expo) 0.8s forwards;
  background: radial-gradient(ellipse 80% 120% at 50% 50%, rgba(10, 10, 14, 0.95) 0%, transparent 70%);
  padding: 16px 24px;
  border-radius: 12px;
}

[data-theme="light"] .hero__sub {
  color: #111116;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.8s var(--ease-out-expo) 1s forwards;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeSlideUp 0.8s var(--ease-out-expo) 1.4s forwards;
}

.hero__scroll-indicator .scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-indicator .scroll-line::after {
  content: '';
  position: absolute;
  top: -48px;
  left: 0;
  width: 100%;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent-1));
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0% { top: -48px; }
  100% { top: 48px; }
}

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent-grad);
  color: #050507;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #60a5fa, #34d399);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--primary span {
  position: relative;
  z-index: 1;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(52, 211, 153, 0.25);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--bg-2);
  color: var(--text-1);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: var(--bg-3);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn--secondary:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--text-2);
  padding: 14px 20px;
}

.btn--ghost:hover {
  color: var(--text-1);
}

.btn .arrow {
  transition: transform 0.3s var(--ease-out-expo);
}

.btn:hover .arrow {
  transform: translateX(4px);
}

/* ═══════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════ */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-bottom: 20px;
}

.section-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-2);
  max-width: 600px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   PRODUCTS SECTION
   ═══════════════════════════════════════════════ */
.products {
  position: relative;
  padding: var(--section-py) 0;
  background: var(--bg-0);
}

.products__header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.products__header .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* Bento Grid */
.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ── Product Card ──────────────────────────── */
.product-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: clamp(28px, 3vw, 44px);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo), border-color 0.5s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-hover);
}

/* Accent glow on hover */
.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--card-accent, var(--accent-grad));
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-card:hover::before {
  opacity: 1;
}

/* Background mesh gradient */
.product-card__glow {
  position: absolute;
  top: -60%;
  right: -30%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--card-accent-color, var(--accent-1));
  opacity: 0;
  filter: blur(100px);
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.product-card:hover .product-card__glow {
  opacity: 0.06;
}

[data-theme="light"] .product-card:hover .product-card__glow {
  opacity: 0.08;
}

.product-card__top {
  flex: 1;
}

.product-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  background: rgba(52, 211, 153, 0.08);
  color: var(--accent-1);
  border: 1px solid rgba(52, 211, 153, 0.12);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

/* Corner logos (upper right of card) */
.product-card__corner-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  height: 54px;
  width: auto;
  object-fit: contain;
  z-index: 2;
}

.product-card__corner-logo--interrogo-white {
  display: none;
}

[data-theme="dark"] .product-card__corner-logo--interrogo {
  display: none;
}

[data-theme="dark"] .product-card__corner-logo--interrogo-white {
  display: block;
  color: var(--text-1);
}

.product-card__tagline {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 16px;
  font-style: italic;
  opacity: 0.8;
}

.product-card__desc {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-card__capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.product-card__capabilities span {
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color 0.3s ease, color 0.3s ease;
}

.product-card:hover .product-card__capabilities span {
  border-color: var(--border-hover);
}

.product-card__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.product-card__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-3);
}

.product-card__status .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.product-card__status .status-dot--live {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.product-card__status .status-dot--beta {
  background: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.product-card__status .status-dot--dev {
  background: #60a5fa;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

.product-card__status .status-dot--soon {
  background: var(--text-3);
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.3s ease, gap 0.3s var(--ease-out-expo);
}

.product-card__link:hover {
  color: var(--accent-1);
  gap: 10px;
}

/* Card accent color variants */
.product-card[data-accent="orange"] {
  --card-accent-color: #f59e0b;
  --card-accent: linear-gradient(90deg, transparent, #f59e0b, transparent);
}
.product-card[data-accent="orange"] .product-card__tag {
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.15);
}

.product-card[data-accent="cyan"] {
  --card-accent-color: #06b6d4;
  --card-accent: linear-gradient(90deg, transparent, #06b6d4, transparent);
}
.product-card[data-accent="cyan"] .product-card__tag {
  background: rgba(6, 182, 212, 0.08);
  color: #06b6d4;
  border-color: rgba(6, 182, 212, 0.15);
}

.product-card[data-accent="green"] {
  --card-accent-color: #22c55e;
  --card-accent: linear-gradient(90deg, transparent, #22c55e, transparent);
}
.product-card[data-accent="green"] .product-card__tag {
  background: rgba(34, 197, 94, 0.08);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.15);
}

.product-card[data-accent="rose"] {
  --card-accent-color: #f43f5e;
  --card-accent: linear-gradient(90deg, transparent, #f43f5e, transparent);
}
.product-card[data-accent="rose"] .product-card__tag {
  background: rgba(244, 63, 94, 0.08);
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.15);
}

.product-card[data-accent="blue"] {
  --card-accent-color: #3b82f6;
  --card-accent: linear-gradient(90deg, transparent, #3b82f6, transparent);
}
.product-card[data-accent="blue"] .product-card__tag {
  background: rgba(59, 130, 246, 0.08);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.15);
}

.product-card[data-accent="amber"] {
  --card-accent-color: #d4a017;
  --card-accent: linear-gradient(90deg, transparent, #d4a017, transparent);
}
.product-card[data-accent="amber"] .product-card__tag {
  background: rgba(212, 160, 23, 0.08);
  color: #d4a017;
  border-color: rgba(212, 160, 23, 0.15);
}

/* Featured (large) card */
.product-card--featured {
  grid-column: span 2;
  flex-direction: row;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  min-height: 340px;
}

.product-card--featured .product-card__top {
  flex: 1;
}

.product-card--featured .product-card__visual {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-card__image {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

/* Abstract visual elements for featured cards */
.product-visual {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.product-visual__inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated abstract shapes */
.product-visual .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.5;
  animation: float 6s ease-in-out infinite;
}

.product-visual .shape:nth-child(1) {
  width: 120px;
  height: 120px;
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.product-visual .shape:nth-child(2) {
  width: 80px;
  height: 80px;
  top: 50%;
  right: 25%;
  animation-delay: -2s;
}

.product-visual .shape:nth-child(3) {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 40%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(10px, -15px); }
  66% { transform: translate(-8px, 10px); }
}

/* Icon in visual */
.product-visual__icon {
  position: relative;
  z-index: 2;
  font-size: 3rem;
  opacity: 0.3;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.03em;
}

/* Coming soon overlay */
.product-card--coming-soon {
  opacity: 0.7;
}

.product-card--coming-soon .product-card__link {
  pointer-events: none;
}

.coming-soon-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ═══════════════════════════════════════════════
   PHILOSOPHY / APPROACH SECTION
   ═══════════════════════════════════════════════ */
.approach {
  position: relative;
  padding: var(--section-py) 0;
  background: var(--bg-1);
  overflow: hidden;
}

.approach__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.approach__bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: var(--accent-1);
  opacity: 0.015;
  filter: blur(120px);
}

.approach__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.approach__content .section-heading {
  margin-bottom: 28px;
}

.approach__text {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.approach__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pillar {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out-expo);
}

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

.pillar__icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
}

.pillar__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}

.pillar__desc {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════ */
.cta-section {
  position: relative;
  padding: var(--section-py) 0;
  text-align: center;
  overflow: hidden;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-section__bg::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: 0.02;
  filter: blur(100px);
}

.cta-section__bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 30%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--accent-1);
  opacity: 0.015;
  filter: blur(100px);
}

.cta-section .section-heading {
  margin-bottom: 20px;
}

.cta-section .section-sub {
  margin: 0 auto 40px;
}

.cta-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-email {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-2);
  margin-top: 24px;
  transition: color 0.3s ease;
}

.cta-email a {
  color: var(--accent-1);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.cta-email a:hover {
  border-bottom-color: var(--accent-1);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__brand img {
  height: 48px;
  width: auto;
  filter: invert(var(--logo-invert));
}

.footer__brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-2);
}

.footer__links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-3);
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--text-1);
}

.footer__copy {
  font-size: 0.78rem;
  color: var(--text-3);
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* ═══════════════════════════════════════════════
   PARALLAX ELEMENTS
   ═══════════════════════════════════════════════ */
.parallax-element {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ═══════════════════════════════════════════════
   DIVIDER
   ═══════════════════════════════════════════════ */
.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: var(--accent-grad);
}

/* ═══════════════════════════════════════════════
   LEGAL / PRIVACY / TERMS PAGES
   ═══════════════════════════════════════════════ */
.legal-page {
  padding: calc(var(--nav-h) + 60px) 0 80px;
  min-height: 100vh;
}

.legal-page__content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-page__content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal-page__content .last-updated {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 48px;
}

.legal-page__content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-1);
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-page__content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-1);
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-page__content p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-page__content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}

.legal-page__content ul li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 4px;
}

.legal-page__content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-1);
}

.legal-page__content a {
  color: var(--accent-1);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.legal-page__content a:hover {
  border-bottom-color: var(--accent-1);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .products__grid {
    grid-template-columns: 1fr;
  }

  .product-card--featured {
    grid-column: span 1;
    flex-direction: column;
  }

  .product-card--featured .product-card__visual {
    flex: none;
    width: 100%;
  }

  .approach__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  .nav__links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .nav__links.active {
    display: flex;
  }

  .nav__links a {
    font-size: 1.2rem;
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .hero__heading {
    font-size: clamp(2.2rem, 9vw, 3.5rem);
  }

  .hero__cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .hero__cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .product-card {
    min-height: auto;
    padding: 24px;
  }

  .approach__pillars {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-section__actions {
    flex-direction: column;
  }

  .cta-section__actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__heading {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .product-card__capabilities {
    display: none;
  }
}

/* ═══════════════════════════════════════════════
   CUSTOM CURSOR (desktop only)
   ═══════════════════════════════════════════════ */
@media (hover: hover) {
  .cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-1);
    pointer-events: none;
    z-index: 10001;
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), opacity 0.3s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    opacity: 0;
  }

  .cursor-dot.active {
    opacity: 1;
  }

  .cursor-dot.hovering {
    width: 40px;
    height: 40px;
    opacity: 0.3;
  }
}

/* ═══════════════════════════════════════════════
   MARQUEE / TICKER (optional accent element)
   ═══════════════════════════════════════════════ */
.ticker {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
}

.ticker__inner {
  display: flex;
  gap: 60px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.ticker__item {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 60px;
}

.ticker__item .sep {
  color: var(--accent-1);
  opacity: 0.4;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════
   SMOOTH TRANSITIONS FOR THEME SWITCH
   ═══════════════════════════════════════════════ */
body,
.nav,
.product-card,
.pillar,
.footer,
.hero,
.approach,
.cta-section,
.legal-page {
  transition: var(--transition-theme);
}
