/* ═══════════════════════════════════════════════════════════
   FORM.LINK — Design System v3
   Apple-Inspired · Heavy Animations · Icon Logo
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── Theme Tokens ─── */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --accent: #2997ff;
  --accent-hover: #0077ed;
  --accent-soft: rgba(41, 151, 255, 0.1);
  --surface-glass: rgba(0, 0, 0, 0.72);
  --surface-glass-border: rgba(255, 255, 255, 0.06);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.6);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #e8e8ed;
  --bg-card: rgba(0, 0, 0, 0.02);
  --bg-card-hover: rgba(0, 0, 0, 0.05);
  --border-color: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #a1a1a6;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.06);
  --surface-glass: rgba(255, 255, 255, 0.72);
  --surface-glass-border: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.1);
}

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

/* ─── Premium Animations & Transitions ─── */
:root {
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --magnetic: cubic-bezier(0.16, 1, 0.3, 1);
}

.magnetic-hover {
  transition: transform 0.6s var(--magnetic), box-shadow 0.6s var(--magnetic), border-color 0.4s ease;
}

.magnetic-hover:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.spring {
  transition: all 0.6s var(--spring);
}

button,
.cta-card,
.bento-item,
.hero-cta {
  transition: transform 0.5s var(--magnetic), opacity 0.3s ease, filter 0.3s ease, background 0.3s ease;
}

button:active {
  transform: scale(0.96);
}

.glass-morphism {
  background: var(--surface-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-glass-border);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  transition: background 0.6s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s ease;
}

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

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

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

/* ─── Typography ─── */
.headline-xl {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.headline-lg {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.headline-md {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.body-lg {
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-secondary);
}

.body-md {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
}

.label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── Layout ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header .label {
  display: block;
  margin-bottom: 16px;
}

.section-header p {
  margin-top: 20px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  background: transparent;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--magnetic);
}

.nav.scrolled {
  height: 64px;
  background: var(--surface-glass);
  border-bottom-color: var(--surface-glass-border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand-logo-nav {
  width: 32px;
  height: 32px;
  background: var(--text-primary);
  -webkit-mask: url('logo-icon.png') no-repeat center;
  mask: url('logo-icon.png') no-repeat center;
  mask-size: contain;
  -webkit-mask-size: contain;
  transition: transform 0.4s var(--magnetic);
}

.nav-logo:hover .brand-logo-nav {
  transform: scale(1.1);
  background: var(--accent);
}

.nav-logo:hover {
  transform: scale(1.12);
}

.nav-logo img {
  height: 28px;
  width: auto;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.nav-logo:hover img {
  transform: rotateY(12deg) rotateX(-5deg);
  filter: drop-shadow(0 4px 12px rgba(41, 151, 255, 0.25));
}

/* Logo images are now swapped via JavaScript based on theme */

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

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

.btn-theme-toggle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 13px;
}

.btn-theme-toggle:hover {
  background: var(--bg-card-hover);
  transform: rotate(180deg) scale(1.1);
}

.btn-lang {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.3s var(--magnetic);
}

.btn-lang:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.btn-login {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.btn-login:hover {
  color: var(--text-primary);
}

.btn-primary {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.06);
}

.btn-primary:active {
  transform: scale(0.95);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-hamburger span {
  width: 18px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 48px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 24px;
}

/* Floating background orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0;
  animation: orbAppear 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(41, 151, 255, 0.07);
  top: 10%;
  left: 15%;
  animation-delay: 0.5s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(94, 92, 230, 0.05);
  bottom: 15%;
  right: 10%;
  animation-delay: 0.8s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(48, 209, 88, 0.04);
  top: 50%;
  left: 60%;
  animation-delay: 1.1s;
}

[data-theme="light"] .hero-orb-1 {
  background: rgba(0, 113, 227, 0.04);
}

[data-theme="light"] .hero-orb-2 {
  background: rgba(94, 92, 230, 0.03);
}

[data-theme="light"] .hero-orb-3 {
  background: rgba(48, 209, 88, 0.03);
}

@keyframes orbAppear {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 980px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 36px;
  opacity: 0;
  animation: springUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30d158;
  animation: pulse 2s infinite;
}

.hero h1 {
  margin-bottom: 28px;
  opacity: 0;
  animation: heroTitleIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero p {
  max-width: 520px;
  margin: 0 auto 44px;
  opacity: 0;
  animation: springUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s forwards;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: springUp 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.9s forwards;
}

@keyframes heroTitleIn {
  0% {
    opacity: 0;
    transform: translateY(80px) scale(0.92);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes springUp {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }

  60% {
    transform: translateY(-6px) scale(1.02);
  }

  80% {
    transform: translateY(2px) scale(0.99);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* CTA Buttons */
.btn-cta {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px rgba(41, 151, 255, 0.3);
}

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

.btn-cta:active {
  transform: scale(0.96);
}

.btn-outline {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 980px;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: var(--bg-card);
  transform: translateY(-2px) scale(1.04);
}

.btn-outline:active {
  transform: scale(0.96);
}

/* ─── Scroll-based Hero Parallax ─── */
.hero-content {
  transition: transform 0.1s linear;
}

/* ─── Trust Marquee ─── */
.trust-section {
  padding: 60px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.marquee {
  overflow: hidden;
  user-select: none;
  display: flex;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: scroll-marquee 30s linear infinite;
  padding: 20px 0;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.3s var(--magnetic);
  white-space: nowrap;
}

.marquee-item svg {
  width: 24px;
  height: 24px;
  color: var(--text-primary);
  opacity: 0.7;
}

@keyframes scroll-marquee {
  0% {
    transform: translateX(0);
  }

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

.marquee-item svg {
  color: var(--text-primary);
  opacity: 0.6;
}

.marquee-item:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.marquee-item:hover svg {
  opacity: 1;
}

.marquee-track span:hover {
  opacity: 1;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

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

/* ─── App Showcase / Dashboard ─── */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  will-change: transform;
}

.showcase-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(41, 151, 255, 0.06), transparent 40%);
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

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

.showcase-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.showcase-card-preview {
  width: 100%;
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-card-preview svg {
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.showcase-card:hover .showcase-card-preview svg {
  transform: scale(1.15) rotate(3deg);
}

.showcase-card-info {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.showcase-card-info h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.showcase-card-info p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.showcase-card-tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.showcase-tag {
  font-size: 0.625rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 980px;
  background: var(--accent-soft);
  color: var(--accent);
  letter-spacing: 0.02em;
}

.showcase-card.featured {
  grid-column: span 2;
}

/* ─── Big Statement Section ─── */
.statement {
  padding: 180px 0 160px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Gradient accent line */
.statement-line {
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #a855f7, #ec4899);
  border-radius: 4px;
  margin: 0 auto 48px;
  position: relative;
}

.statement-line::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shimmer 2.5s ease-in-out infinite;
}

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

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

/* Floating metric pills */
.statement-pills {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.statement-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.statement-pill:hover {
  transform: translateY(-4px) scale(1.06);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(41, 151, 255, 0.15);
}

.pill-icon {
  font-size: 1rem;
}

.pill-text {
  letter-spacing: -0.01em;
}

.statement-text {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-primary);
}

.statement-text .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.statement-text.visible .word {
  opacity: 1;
  transform: translateY(0);
}

/* Secondary tagline */
.statement-sub {
  font-size: 1.125rem;
  color: var(--text-tertiary);
  max-width: 500px;
  margin: 28px auto 0;
  letter-spacing: -0.01em;
  font-weight: 400;
}

/* Animated decorative orbs */
.statement-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  animation: orbDrift 12s ease-in-out infinite;
}

.statement-orb-1 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.statement-orb-2 {
  width: 200px;
  height: 200px;
  background: #a855f7;
  bottom: 5%;
  right: -3%;
  animation-delay: -4s;
}

.statement-orb-3 {
  width: 150px;
  height: 150px;
  background: #ec4899;
  top: 50%;
  left: 60%;
  animation-delay: -8s;
}

@keyframes orbDrift {

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

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

  50% {
    transform: translate(-15px, 15px) scale(0.95);
  }

  75% {
    transform: translate(20px, 25px) scale(1.05);
  }
}

/* ─── Services ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.service-card {
  background: var(--bg-primary);
  padding: 52px 36px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateX(-50%);
}

.service-card:hover {
  background: var(--bg-card-hover);
}

.service-card:hover::after {
  width: 60%;
}

.service-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 28px;
  color: var(--accent);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-icon {
  transform: translateY(-4px) scale(1.15);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── Numbers Section ─── */
.numbers {
  padding: 120px 0;
  border-top: 0.5px solid var(--border-color);
  border-bottom: 0.5px solid var(--border-color);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.number-item {
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.number-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  bottom: 20%;
  width: 0.5px;
  background: var(--border-color);
}

.number-value {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.number-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ─── Pricing ─── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 44px 32px;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.highlighted {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.pricing-tier {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  line-height: 1;
}

.pricing-price span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.5;
}

.pricing-features {
  list-style: none;
  margin-bottom: 36px;
}

.pricing-features li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 9px 0;
  border-bottom: 0.5px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.pricing-card .btn-cta,
.pricing-card .btn-outline {
  width: 100%;
  text-align: center;
  display: block;
}

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.about-logo-float {
  width: 120px;
  height: auto;
  animation: floatSlow 8s ease-in-out infinite;
}

/* About logo image is swapped via JavaScript */

/* Orbiting dots around logo */
.orbit-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 0.5px solid var(--border-color);
  border-radius: 50%;
  animation: spinSlow 20s linear infinite;
}

.orbit-ring-2 {
  width: 380px;
  height: 380px;
  animation-duration: 30s;
  animation-direction: reverse;
}

.orbit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.orbit-ring .orbit-dot {
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
}

.orbit-ring-2 .orbit-dot {
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
}

@keyframes spinSlow {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes floatSlow {

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

  33% {
    transform: translateY(-15px) rotate(2deg);
  }

  66% {
    transform: translateY(8px) rotate(-1deg);
  }
}

/* ─── Contact ─── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  transform: scale(1.01);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 32px;
}

.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-item .icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-info-item:hover .icon-circle {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--accent);
}

.contact-info-item .icon-circle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.contact-info-item h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info-item p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ═══ Apple-Style Mega Footer ═══ */
.footer-mega {
  padding: 0 0 40px;
  border-top: 1px solid var(--border);
}

/* Large 3D Logo Showcase */
.footer-logo-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 60px;
  gap: 20px;
}

.footer-logo-3d {
  perspective: 800px;
  display: inline-block;
}

.footer-hero-logo {
  width: 100px;
  height: auto;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
  cursor: pointer;
  animation: logoFloat 6s ease-in-out infinite;
}

.footer-hero-logo:hover {
  transform: rotateY(15deg) rotateX(-10deg) scale(1.15);
  filter: drop-shadow(0 20px 40px rgba(41, 151, 255, 0.3));
}

@keyframes logoFloat {

  0%,
  100% {
    transform: translateY(0px) rotateY(0deg);
  }

  25% {
    transform: translateY(-8px) rotateY(3deg);
  }

  50% {
    transform: translateY(-4px) rotateY(0deg);
  }

  75% {
    transform: translateY(-10px) rotateY(-3deg);
  }
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  font-weight: 500;
}

/* Dividers */
.footer-divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* 5-Column Navigation */
.footer-columns {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  padding: 32px 0;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.6;
}

.footer-col a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Contact / Shop line */
.footer-shop-line {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  padding: 16px 0;
}

.footer-shop-line a {
  color: var(--accent);
  text-decoration: none;
}

.footer-shop-line a:hover {
  text-decoration: underline;
}

.footer-shop-line strong {
  color: var(--text-primary);
}

/* Bottom Bar */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer-sep {
  font-size: 0.625rem;
  color: var(--text-tertiary);
  opacity: 0.4;
  user-select: none;
}

.footer-region {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin: 0;
}

/* ─── Login Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  width: 100%;
  max-width: 380px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 44px 32px;
  transform: translateY(30px) scale(0.94);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
  opacity: 0;
  position: relative;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-tertiary);
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-close:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  transform: rotate(90deg) scale(1.1);
}

.modal h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
  text-align: center;
}

.modal .modal-subtitle {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
}

.modal .form-group {
  margin-bottom: 14px;
}

.modal .btn-cta {
  width: 100%;
  text-align: center;
  display: block;
  padding: 13px;
  margin-top: 6px;
}

.modal-footer {
  text-align: center;
  margin-top: 18px;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.modal-footer a {
  color: var(--accent);
  font-weight: 500;
}

.modal-tabs {
  display: flex;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.modal-tab {
  flex: 1;
  padding: 9px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
  background: transparent;
  transition: all 0.3s ease;
}

.modal-tab.active {
  background: var(--accent);
  color: #fff;
}

/* ─── ANIMATION SYSTEM ─── */

/* Reveal from below */
.reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Spring bounce in */
.bounce-in {
  opacity: 0;
  transform: translateY(100px) scale(0.85);
  transition: opacity 0.5s ease,
    transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bounce-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Slide from left */
.slide-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.slide-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Scale-up reveal */
.scale-up {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.7s ease,
    transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-up.visible {
  opacity: 1;
  transform: scale(1);
}

/* Blur in */
.blur-in {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(30px);
  transition: opacity 0.8s ease,
    filter 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.blur-in.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Staggered children */
.stagger-children>* {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stagger-children.visible>*:nth-child(1) {
  transition-delay: 0.0s;
}

.stagger-children.visible>*:nth-child(2) {
  transition-delay: 0.06s;
}

.stagger-children.visible>*:nth-child(3) {
  transition-delay: 0.12s;
}

.stagger-children.visible>*:nth-child(4) {
  transition-delay: 0.18s;
}

.stagger-children.visible>*:nth-child(5) {
  transition-delay: 0.24s;
}

.stagger-children.visible>*:nth-child(6) {
  transition-delay: 0.30s;
}

.stagger-children.visible>*:nth-child(7) {
  transition-delay: 0.36s;
}

.stagger-children.visible>*:nth-child(8) {
  transition-delay: 0.42s;
}

.stagger-children.visible>* {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ─── Keyframes ─── */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes float {

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

  50% {
    transform: translateY(-14px);
  }
}

/* ─── Mobile Menu ─── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-primary);
  padding: 100px 32px 32px;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-size: 2rem;
  font-weight: 700;
  padding: 12px 0;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  border-bottom: 0.5px solid var(--border-color);
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  padding-left: 16px;
  color: var(--accent);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-card.featured {
    grid-column: span 2;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .number-item:nth-child(2)::after {
    display: none;
  }

  .number-item:nth-child(3) {
    border-top: 0.5px solid var(--border-color);
  }

  .number-item:nth-child(4) {
    border-top: 0.5px solid var(--border-color);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 100px 0;
  }

  .statement {
    padding: 120px 0;
  }

  .nav-links,
  .nav-actions .btn-login {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .services-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card.featured {
    grid-column: span 1;
  }

  .about-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    order: -1;
    min-height: 280px;
  }

  .numbers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-hero-logo {
    width: 72px;
  }

  .terminal-wrapper {
    perspective: none;
  }

  .terminal {
    transform: none !important;
  }
}

/* ═══ Interactive Terminal ═══ */
.terminal-section {
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.terminal-section .section-header {
  margin-bottom: 60px;
}

.terminal-wrapper {
  max-width: 720px;
  margin: 0 auto;
  perspective: 1200px;
}

.terminal {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 80px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(41, 151, 255, 0.05);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.6s ease;
  transform-style: preserve-3d;
}

.terminal:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 100px rgba(0, 0, 0, 0.6),
    0 0 160px rgba(41, 151, 255, 0.08);
}

[data-theme="light"] .terminal {
  background: #1e1e2e;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow:
    0 20px 80px rgba(0, 0, 0, 0.15),
    0 0 120px rgba(41, 151, 255, 0.03);
}

.terminal-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 8px;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  height: 500px;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  height: 36px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--surface-glass-border);
  position: relative;
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.terminal-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #ffbd2e;
}

.dot.green {
  background: #28c840;
}

.terminal-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-tertiary);
}

.terminal-body {
  padding: 24px;
  flex: 1;
  overflow-y: auto;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.terminal-line {
  opacity: 0;
  transform: translateY(8px);
  animation: termLineIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  white-space: pre-wrap;
  word-break: break-all;
}

.terminal-line .prompt {
  color: #58a6ff;
}

.terminal-line .command {
  color: #f0f6fc;
}

.terminal-line .comment {
  color: #484f58;
}

.terminal-line .success {
  color: #3fb950;
}

.terminal-line .info {
  color: #58a6ff;
}

.terminal-line .accent {
  color: #d2a8ff;
}

.terminal-line .warning {
  color: #d29922;
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: #58a6ff;
  vertical-align: text-bottom;
  animation: cursorBlink 1s step-end infinite;
  margin-left: 2px;
}

@keyframes cursorBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes termLineIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Terminal input */
.terminal-input-line {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.terminal-input-line .prompt {
  color: #58a6ff;
  margin-right: 4px;
  font-family: inherit;
}

.terminal-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #f0f6fc;
  font-family: inherit;
  font-size: inherit;
  caret-color: #58a6ff;
}

/* ═══ 3D Perspective Cards ═══ */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-3d-inner {
  transform: translateZ(20px);
}

/* ═══ Parallax Scroll Layer ═══ */
.parallax-layer {
  transition: transform 0.1s linear;
  will-change: transform;
}

/* ═══ Floating Particles ═══ */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.15;
  pointer-events: none;
  animation: particleDrift linear infinite;
}

@keyframes particleDrift {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 0.15;
  }

  90% {
    opacity: 0.15;
  }

  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════════
   CYBERPUNK EFFECTS
   ═══════════════════════════════════════════════════════════ */

/* ─── Spotlight Custom Cursor ─── */
/* Keep default cursor visible — spotlight is just an accent overlay */

.spotlight-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(41, 151, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.2s ease,
    opacity 0.2s ease;
  opacity: 0.7;
}

.spotlight-cursor.cursor-hover {
  width: 48px;
  height: 48px;
  border-color: rgba(41, 151, 255, 0.8);
  opacity: 1;
}

.spotlight-glow {
  position: fixed;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(41, 151, 255, 0.04) 0%, transparent 70%);
  transition: width 0.4s ease, height 0.4s ease, opacity 0.3s ease;
}

.spotlight-glow.glow-hover {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(41, 151, 255, 0.07) 0%, transparent 70%);
}

/* Hide spotlight on mobile */
@media (max-width: 768px) {

  .spotlight-cursor,
  .spotlight-glow {
    display: none !important;
  }
}

/* ─── Matrix Rain Canvas ─── */
.matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99990;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.matrix-canvas.active {
  opacity: 0.6;
}

/* ─── Crash Overlay (BSOD) ─── */
.crash-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.crash-overlay.active {
  opacity: 1;
}

.crash-content {
  font-family: 'Courier New', monospace;
  color: #ccc;
  font-size: 0.8125rem;
  line-height: 1.8;
  text-align: left;
  max-width: 600px;
  padding: 40px;
  position: relative;
}

.crash-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 3px);
  pointer-events: none;
  animation: scanlines 0.1s steps(2) infinite;
}

@keyframes scanlines {
  0% {
    transform: translateY(0);
  }

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

.crash-content pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ─── Glitch Text ─── */
.glitch-target {
  font-variant-numeric: tabular-nums;
}

/* ─── Terminal danger text color ─── */
.terminal-line .danger {
  color: #ff4444;
}

.terminal-line .warning {
  color: #ffaa00;
}

/* ═══════════════════════════════════════════════════════════
   PHASE 2 — PREMIUM INTERACTIONS CSS
   ═══════════════════════════════════════════════════════════ */

/* ─── BIOS Boot Screen ─── */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: #000;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.boot-screen.active {
  opacity: 1;
  pointer-events: all;
}

.boot-screen.flash {
  background: #fff;
  transition: background 0.15s ease;
}

.boot-screen.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.boot-content {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 2;
}

.boot-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f0;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.boot-line {
  color: #888;
  animation: bootFadeIn 0.15s ease forwards;
  opacity: 0;
}

.boot-line.boot-accent {
  color: #0f0;
  font-weight: 700;
}

@keyframes bootFadeIn {
  to {
    opacity: 1;
  }
}

/* ─── Live System Dashboard ─── */
.system-dashboard {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow-x: auto;
}

[data-theme="light"] .system-dashboard {
  background: rgba(0, 0, 0, 0.04);
}

.dash-bar {
  display: flex;
  gap: 32px;
  align-items: center;
  font-family: 'Courier New', monospace;
  font-size: 0.6875rem;
  white-space: nowrap;
  min-width: max-content;
}

.dash-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.led-green {
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: ledBlink 2s ease-in-out infinite;
}

.led-yellow {
  background: #eab308;
  box-shadow: 0 0 6px #eab308;
  animation: ledBlink 1.5s ease-in-out infinite;
}

.led-blue {
  background: #3b82f6;
  box-shadow: 0 0 6px #3b82f6;
  animation: ledBlink 2.5s ease-in-out infinite;
}

@keyframes ledBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.dash-label {
  color: var(--text-tertiary);
  font-weight: 600;
}

.dash-value {
  color: var(--text-secondary);
}

.dash-value strong {
  color: #22c55e;
}

.dash-stat {
  color: var(--accent);
  font-weight: 600;
}

/* ─── Konami Secret Panel ─── */
.secret-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.secret-panel-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.secret-panel {
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 50, 50, 0.3);
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 0 60px rgba(255, 50, 50, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: secretReveal 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes secretReveal {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.secret-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.secret-close:hover {
  color: #ff4444;
}

.secret-header {
  margin-bottom: 24px;
}

.secret-badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid #ff4444;
  border-radius: 4px;
  color: #ff4444;
  font-family: 'Courier New', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 68, 68, 0);
  }

  50% {
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
  }
}

.secret-header h2 {
  font-family: 'Courier New', monospace;
  font-size: 1.25rem;
  color: #f0f6fc;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.secret-log {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 24px;
  font-family: 'Courier New', monospace;
  font-size: 0.6875rem;
  line-height: 1.6;
  color: #58a6ff;
  overflow-x: auto;
  white-space: pre;
}

/* ─── Screen Shake ─── */
@keyframes screenShake {

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

  10% {
    transform: translate(-4px, 2px);
  }

  20% {
    transform: translate(4px, -2px);
  }

  30% {
    transform: translate(-3px, 3px);
  }

  40% {
    transform: translate(3px, -3px);
  }

  50% {
    transform: translate(-2px, 1px);
  }

  60% {
    transform: translate(2px, -1px);
  }

  70% {
    transform: translate(-1px, 2px);
  }

  80% {
    transform: translate(1px, -1px);
  }

  90% {
    transform: translate(-1px, 1px);
  }
}

.screen-shake {
  animation: screenShake 0.5s ease-in-out;
}

/* ─── AI Simulation Styling ─── */
.terminal-line .info {
  color: var(--text-tertiary);
  font-style: italic;
}

.terminal-line .success {
  color: #0f0;
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
}

.terminal-ai-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: #0f0;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 4px;
}

.terminal-line:last-child .terminal-ai-cursor {
  display: inline-block;
}

/* ─── Konami Flash ─── */
.konami-flash {
  position: fixed;
  inset: 0;
  z-index: 999997;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.konami-flash.active {
  opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════════
   PHASE 3 — FORM_OS & X-RAY & LEGAL
   ═══════════════════════════════════════════════════════════ */

/* ─── Login Modal: FORM ID Branding ─── */
.formid-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.formid-logo {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.4));
}

.formid-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

/* ─── FORM_OS Dashboard (Launchpad) ─── */
.formos-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10, 15, 22, 0.85);
  /* Deep dark blue */
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.formos-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.formos-container {
  width: 100%;
  height: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  padding: 40px;
  transform: scale(1.05);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.formos-overlay.active .formos-container {
  transform: scale(1);
}

.formos-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  margin-bottom: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.formos-logo {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.formos-user {
  font-weight: 500;
  color: var(--text-primary);
}

.formos-logout {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.formos-logout:hover {
  color: #ff4444;
}

.formos-layout {
  display: flex;
  gap: 60px;
  flex: 1;
}

.formos-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 40px;
  align-content: start;
}

.formos-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.formos-icon {
  width: 96px;
  height: 96px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.formos-app:hover {
  transform: scale(1.1) translateY(-10px);
}

.formos-app:hover .formos-icon {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.formos-app-name {
  font-weight: 600;
  font-size: 0.875rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.formos-app-desc {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.formos-app:hover .formos-app-desc {
  opacity: 1;
  transform: translateY(0);
}

.formos-sidebar {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.formos-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
}

.formos-widget h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.widget-stat:last-child {
  margin-bottom: 0;
}

.widget-stat strong {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  color: var(--text-primary);
}

/* Light mode overrides for FORM_OS */
[data-theme="light"] .formos-overlay {
  background: rgba(240, 245, 250, 0.85);
}

[data-theme="light"] .formos-icon {
  background: linear-gradient(145deg, #ffffff, #e6e6e6);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .formos-app-name {
  color: #1a1a1a;
  text-shadow: none;
}

[data-theme="light"] .formos-topbar,
[data-theme="light"] .formos-widget {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(0, 0, 0, 0.05);
}

/* ─── Professional Legal Modals ─── */
.legal-modal {
  max-width: 800px;
  padding: 40px;
  max-height: 85vh;
  overflow-y: auto;
}

.legal-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--surface-hover);
  border-radius: 99px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.legal-header h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.legal-header small {
  display: block;
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.legal-updated {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.legal-section {
  margin-bottom: 40px;
}

.legal-section h3 {
  font-size: 1.125rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.legal-en,
.legal-zh {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-zh {
  color: var(--text-tertiary);
}

/* ─── X-Ray Hover Mode (Portfolio) ─── */
.showcase-card {
  position: relative;
  /* Ensure variables exist so the mask works correctly */
  --raw-x: 50%;
  --raw-y: 50%;
}

.showcase-card-preview {
  position: relative;
  overflow: hidden;
}

.xray-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: #0d1117;
  /* GitHub Dark style dark bg */
  pointer-events: none;
  /* Radial gradient mask: opaque circle at mouse coord, transparent elsewhere */
  mask-image: radial-gradient(circle 120px at var(--raw-x) var(--raw-y), black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle 120px at var(--raw-x) var(--raw-y), black 20%, transparent 80%);
  /* Start fully hidden until CSS vars are updated by JS */
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-card:hover .xray-layer {
  opacity: 1;
  /* Shows only when hovering the card */
}

/* Fake Blueprint Grid */
.xray-grid {
  position: absolute;
  inset: 0;
  background-size: 20px 20px;
  background-image:
    linear-gradient(to right, rgba(88, 166, 255, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(88, 166, 255, 0.1) 1px, transparent 1px);
  z-index: 1;
}

/* Fake Code Snippet inside X-Ray */
.xray-code {
  position: relative;
  z-index: 2;
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #58a6ff;
  white-space: pre-wrap;
  padding: 24px;
  text-align: left;
  width: 100%;
}

/* ─── Haptic Context Menu (Apple Style) ─── */
.formos-context-menu {
  position: fixed;
  z-index: 9999999;
  background: rgba(30, 30, 35, 0.65);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 6px;
  min-width: 200px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: top left;
}

.formos-context-menu.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

.context-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.1s ease;
}

.context-menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.context-menu-item.danger {
  color: #ff4444;
}

.context-menu-item.danger:hover {
  background: #ff4444;
  color: #fff;
}

.context-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px;
}

/* ═══════════════════════════════════════════════════════════
   PHASE 4 — SECURITY BADGES, BIOMETRIC SCANNER, AUDIO TOGGLE
   ═══════════════════════════════════════════════════════════ */

/* ─── Node Map Canvas Background ─── */
.node-map-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

/* ─── Footer Security Badges ─── */
.footer-security-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 40px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.security-badge {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 250px;
}

.security-text {
  display: flex;
  flex-direction: column;
}

.security-text span {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 2px;
}

.security-text strong {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.security-icon3d {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(88, 166, 255, 0.2), rgba(0, 0, 0, 0.5));
  border: 1px solid rgba(88, 166, 255, 0.4);
  box-shadow: 0 0 15px rgba(88, 166, 255, 0.2), inset 0 0 10px rgba(88, 166, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin3d 6s linear infinite;
  transform-style: preserve-3d;
}

.shield-icon::after {
  content: "🛡️";
  font-size: 16px;
  transform: translateZ(5px);
}

.cpu-icon::after {
  content: "⚙️";
  font-size: 16px;
  transform: translateZ(5px);
}

@keyframes spin3d {
  0% {
    transform: perspective(400px) rotateY(0deg);
  }

  100% {
    transform: perspective(400px) rotateY(360deg);
  }
}

/* ─── Biometric Auth Scanner ─── */
.biometric-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999998;
  /* Just below FORM_OS */
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.biometric-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.biometric-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.radar-scan {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(88, 166, 255, 0.2);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(88, 166, 255, 0.1), inset 0 0 40px rgba(88, 166, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Base icon behind radar */
.radar-scan::before {
  content: "👤";
  font-size: 64px;
  opacity: 0.5;
  filter: blur(2px) grayscale(100%);
  transition: all 0.3s ease;
}

.biometric-overlay.success .radar-scan::before {
  content: "✓";
  color: #0f0;
  font-family: monospace;
  filter: none;
  opacity: 1;
  text-shadow: 0 0 20px #0f0;
}

.radar-beam {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 70%, rgba(88, 166, 255, 0.8) 100%);
  animation: radarSpin 1.5s linear infinite;
}

.biometric-overlay.success .radar-beam {
  display: none;
}

@keyframes radarSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.biometric-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: center;
  height: 24px;
}

.scan-status {
  color: var(--text-secondary);
  animation: pulseOpacity 1s infinite alternate;
}

.scan-verified {
  color: #0f0;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

@keyframes pulseOpacity {
  from {
    opacity: 0.4;
  }

  to {
    opacity: 1;
  }
}

/* ══════════════════════════════════════════
   FLAGSHIP SAAS SHOWCASE — formstudio
   ══════════════════════════════════════════ */
.flagship-section {
  position: relative;
  padding: 120px 0 140px;
  background: var(--bg);
  overflow: hidden;
}

.flagship-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.18;
}

.flagship-glow-l {
  background: radial-gradient(circle, rgba(180, 180, 180, 0.6), transparent 70%);
  top: -100px;
  left: -200px;
}

.flagship-glow-r {
  background: radial-gradient(circle, rgba(100, 100, 150, 0.5), transparent 70%);
  bottom: -100px;
  right: -200px;
}

.flagship-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ─── Left copy ─── */
.flagship-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 28px;
}

.flagship-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: fs-pulse 2s ease-in-out infinite;
}

@keyframes fs-pulse {

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

  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}

.flagship-headline {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.flagship-headline-dim {
  color: rgba(255, 255, 255, 0.35);
}

.flagship-subtext {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 460px;
}

.flagship-subtext strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}

.flagship-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.flagship-pill {
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s;
}

.flagship-pill:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.8);
}

/* Magnetic CTA */
.flagship-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.flagship-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.flagship-cta-glow {
  position: absolute;
  inset: -2px;
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent, rgba(255, 255, 255, 0.1));
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.flagship-cta:hover {
  transform: scale(1.04);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.08), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.flagship-cta:hover::before {
  opacity: 1;
}

.flagship-cta:hover .flagship-cta-glow {
  opacity: 1;
}

.flagship-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.03em;
}

/* ─── Phone scene ─── */
.flagship-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.flagship-phone-scene {
  position: relative;
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.9));
}

.flagship-phone-scene::before {
  content: '';
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 24px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  filter: blur(16px);
}

/* Main phone wrapper — animates */
.flagship-phone {
  position: relative;
  animation: fp-float 6s ease-in-out infinite;
}

@keyframes fp-float {

  0%,
  100% {
    transform: translateY(0) rotateY(-8deg) rotateX(2deg);
  }

  50% {
    transform: translateY(-16px) rotateY(-8deg) rotateX(2deg);
  }
}

/* Phone outer frame — mimics iPhone 15 Pro proportions */
.fp-frame {
  position: relative;
  width: 200px;
  height: 420px;
  background: linear-gradient(145deg,
      #3a3a3c 0%,
      #1c1c1e 30%,
      #2a2a2c 50%,
      #1c1c1e 70%,
      #3a3a3c 100%);
  border-radius: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.5),
    inset 1px 1px 0 rgba(255, 255, 255, 0.06);
  overflow: visible;
}

/* Screen area */
.fp-screen {
  position: absolute;
  inset: 8px;
  background: #000;
  border-radius: 36px;
  overflow: hidden;
}

/* Simple punch-hole camera */
.fp-notch-bar {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #0a0a0a;
  border-radius: 50%;
  z-index: 10;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.06);
}

/* App inside phone */
.fp-app {
  position: absolute;
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  overflow: hidden;
}

.fp-avatar-wrap {
  position: relative;
  margin-bottom: 6px;
}

.fp-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #222, #3a3a3a);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.02em;
}

.fp-avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: fp-ring-pulse 3s ease-in-out infinite;
}

@keyframes fp-ring-pulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.9;
  }
}

.fp-username {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.fp-bio {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 10px;
}

.fp-links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fp-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.fp-link svg {
  width: 10px;
  height: 10px;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.fp-link-icon {
  font-size: 12px;
  flex-shrink: 0;
}

.fp-link-1 {
  animation: fp-link-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

.fp-link-2 {
  animation: fp-link-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.fp-link-3 {
  animation: fp-link-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.fp-link-4 {
  animation: fp-link-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

@keyframes fp-link-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

.fp-powered {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.1);
  margin-top: auto;
  padding-top: 4px;
}

/* Home indicator */
.fp-home-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  pointer-events: none;
}

/* Side volume buttons (left) */
.fp-side-l {
  position: absolute;
  left: -2px;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fp-btn {
  width: 2px;
  height: 28px;
  background: linear-gradient(180deg, #444, #2a2a2a);
  border-radius: 2px 0 0 2px;
  pointer-events: none;
}

.fp-btn-tall {
  height: 40px;
}

/* Power button (right) */
.fp-side-r {
  position: absolute;
  right: -2px;
  top: 120px;
}

.fp-btn-power {
  width: 2px;
  height: 44px;
  background: linear-gradient(180deg, #444, #2a2a2a);
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}

/* Floating accent dots */
.fp-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.fp-dot-1 {
  width: 6px;
  height: 6px;
  top: 30px;
  right: -16px;
  background: rgba(255, 255, 255, 0.12);
  animation: fp-dot-f 4s ease-in-out infinite;
}

.fp-dot-2 {
  width: 4px;
  height: 4px;
  bottom: 80px;
  left: -22px;
  background: rgba(255, 255, 255, 0.08);
  animation: fp-dot-f 5s ease-in-out infinite 1s;
}

.fp-dot-3 {
  width: 10px;
  height: 10px;
  top: 45%;
  right: -34px;
  background: rgba(255, 255, 255, 0.04);
  animation: fp-dot-f 3.5s ease-in-out infinite 0.5s;
}

@keyframes fp-dot-f {

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

  50% {
    transform: translateY(-10px);
  }
}

/* Remove old shadow div */
.fp-shadow,
.fp-bottom,
.fp-reflection,
.fp-port {
  display: none;
}

/* ─── */

/* Responsive */
@media (max-width: 900px) {
  .flagship-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

  .flagship-badge {
    margin: 0 auto 28px;
  }

  .flagship-pills {
    justify-content: center;
  }

  .flagship-phone-wrap {
    order: -1;
  }
}

/* ── formstudio Hero Strip ── */
.hero-saas-strip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding: 11px 16px 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  color: var(--text-secondary, rgba(255, 255, 255, 0.6));
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 540px;
}

.hero-saas-strip:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.hss-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hss-left strong {
  color: #fff;
  font-weight: 700;
}

.hss-cta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-saas-strip:hover .hss-cta {
  background: rgba(255, 255, 255, 0.18);
}

/* fp-link-icon SVG sizing */
.fp-link-icon svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 600px) {
  .hero-saas-strip {
    font-size: 12px;
    padding: 10px 12px;
  }

  .hss-left span {
    display: none;
  }

  .hss-left strong::after {
    content: ' — try free';
  }
}

/* Agency Site Custom PNG */
:root {
  --logo-url: url('../FORM-Logo/FORM-Logo/white\ logo.png');
}

[data-theme="light"] {
  --logo-url: url('../FORM-Logo/FORM-Logo/black\ logo.png');
}

.brand-logo-nav {
  width: 32px;
  /* slightly larger than before */
  height: 32px;
  background-image: var(--logo-url);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

.nav-logo:hover .brand-logo-nav {
  transform: rotateY(12deg) rotateX(-5deg) scale(1.1);
  filter: drop-shadow(0 4px 12px rgba(41, 151, 255, 0.25));
}

/* ═══════════════════════════════════════════════════════════
   BENTO BOX PORTALS
   ═══════════════════════════════════════════════════════════ */
#portals {
  padding: 120px 0;
  position: relative;
  z-index: 10;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.bento-preview-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 80%);
}

.bento-mockup {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--magnetic), opacity 0.5s ease;
  filter: grayscale(1) brightness(0.8);
}

.bento-card:hover .bento-mockup {
  transform: scale(1.1) translateY(-10px);
  filter: grayscale(0) brightness(1.1);
  opacity: 0.8;
}

.bento-card {
  position: relative;
  border-radius: 24px;
  padding: 48px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.6s ease, border-color 0.4s ease;
  text-decoration: none;
  color: inherit;
  will-change: transform;
}

.bento-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.8;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.bento-glow-studio {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
}

.bento-glow-pyform {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
}

.bento-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(12px);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-logo {
  margin-bottom: 24px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-icon {
  stroke: var(--text-primary);
  width: 28px;
  height: 28px;
}

.bento-card h3 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.bento-card h3 span {
  color: var(--text-tertiary);
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 90%;
}

.bento-action {
  margin-top: 16px;
  opacity: 0.6;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: translateX(-10px);
}

.bento-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-hover);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.bento-card:hover .bento-bg {
  transform: scale(1.05);
}

.bento-card:hover .bento-glow {
  opacity: 1;
}

.bento-card:hover .bento-content {
  transform: translateY(0);
}

.bento-card:hover .bento-logo {
  transform: scale(1.1) rotate(5deg);
}

.bento-card:hover .bento-action {
  opacity: 1;
  transform: translateX(0);
}