/* 
 * try3.ai - Main Stylesheet
 * A bold, editorial aesthetic with warm tones
 */

/* Custom Fonts - Untitled Sans by Klim */
@font-face {
  font-family: 'Untitled Sans';
  src: url('/fonts/Untitled Sans Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Untitled Sans';
  src: url('/fonts/Untitled Sans Regular Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Untitled Sans';
  src: url('/fonts/Untitled Sans Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Untitled Sans';
  src: url('/fonts/Untitled Sans Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core palette - warm ochre meets deep charcoal */
  --color-bg: #0d0d0d;
  --color-bg-elevated: #161616;
  --color-bg-card: #1a1a1a;
  --color-text: #f5f0e8;
  --color-text-muted: #a39e94;
  --color-accent: #e8a54b;
  --color-accent-hover: #f0b55d;
  --color-accent-subtle: rgba(232, 165, 75, 0.15);
  --color-border: rgba(245, 240, 232, 0.08);
  --color-border-accent: rgba(232, 165, 75, 0.3);
  
  /* Typography */
  --font-display: 'Archivo Black', Impact, sans-serif;
  --font-body: 'Untitled Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;
  
  /* Layout */
  --container-max: 1280px;
  --container-padding: 1.5rem;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

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

ul {
  list-style: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn--full {
  width: 100%;
}

/* Preview CTA Button - hover reveal effect */
.btn--preview {
  background: var(--color-accent);
  color: var(--color-bg);
  position: relative;
  padding: 1rem 2rem;
  text-align: center;
  overflow: hidden;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.preview-btn-text {
  font-weight: 600;
  display: block;
  transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
}

.preview-btn-detail {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  white-space: nowrap;
  color: rgba(0, 0, 0, 0.8);
  letter-spacing: 0.03em;
  transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
}

.btn--preview:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn--preview:hover .preview-btn-text {
  opacity: 0;
  transform: scale(0.95);
}

.btn--preview:hover .preview-btn-detail {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--container-padding);
  transition: background 0.3s ease, padding 0.3s ease;
}

.nav.scrolled {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem var(--container-padding);
}

.nav-logo {
  z-index: 1001;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  text-transform: lowercase;
}

.logo-accent {
  color: var(--color-accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-accent);
}

.nav-link--cta {
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-bg);
}

.nav-link--cta:hover {
  background: var(--color-accent-hover);
  color: var(--color-bg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

.nav-toggle.active span:first-child {
  transform: rotate(45deg) translate(3px, 5px);
}

.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translate(3px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 2rem;
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: var(--color-accent);
}

.mobile-cta {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.875rem 1.75rem;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  white-space: nowrap;
}

.mobile-cta:hover,
.mobile-cta:active,
.mobile-cta:focus {
  background: var(--color-accent-hover);
  transform: translateX(-50%) translateY(-2px);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  padding-top: 10rem;
  padding-bottom: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(232, 165, 75, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);
  overflow: hidden;
}

.hero-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.hero-content {
  max-width: 600px;
  margin-bottom: 0;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-lg);
  line-height: 1.15;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s var(--ease-out) forwards;
}

.title-accent {
  color: var(--color-accent);
}

/* Hero Subhead */
.hero-subhead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease-out) 0.15s forwards;
}

/* Hero URL Form */
.hero-url-form {
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-input-wrapper {
  display: flex;
  align-items: stretch;
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  max-width: 560px;
}

.hero-input-wrapper:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(232, 165, 75, 0.15);
}

.hero-input-prefix {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  border-right: 1px solid var(--color-border);
  white-space: nowrap;
}

.hero-input-wrapper input {
  flex: 1;
  padding: 1.1rem 1rem;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text);
  background: transparent;
  border: none;
  min-width: 0;
}

.hero-input-wrapper input:focus {
  outline: none;
}

.hero-input-wrapper input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.hero-submit-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 1.5rem;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero-submit-btn:hover {
  background: var(--color-accent-hover);
}

.hero-submit-btn:active {
  transform: scale(0.98);
}

.hero-submit-arrow {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.hero-submit-btn:hover .hero-submit-arrow {
  transform: translateX(3px);
}

/* Hero Trust Badges */
.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.trust-badge svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Hero Counter (social proof) */
.hero-counter {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.counter-number {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Old hero-cta - keep for fallback but likely unused */
.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

/* Portfolio Marquee Section (standalone) */
.portfolio-marquee-section {
  padding: var(--space-lg) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* ========================================
   HERO MOCKUP - Floating browser preview
   ======================================== */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(40px) rotate(1deg);
  animation: mockupReveal 1s var(--ease-out) 0.4s forwards;
}

@keyframes mockupReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotate(1deg);
  }
}

/* glow effect behind the mockup */
.mockup-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(232, 165, 75, 0.15) 0%, transparent 60%);
  filter: blur(40px);
  animation: glowPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* browser window frame */
.mockup-window {
  width: 420px;
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 50px 100px -20px rgba(0, 0, 0, 0.6),
    0 30px 60px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.hero-mockup:hover .mockup-window {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) translateY(-8px);
  box-shadow: 
    0 60px 120px -20px rgba(0, 0, 0, 0.7),
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(232, 165, 75, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* topbar with traffic lights and url */
.mockup-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #1f1f1f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-traffic-lights {
  display: flex;
  gap: 6px;
}

.traffic-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.traffic-light.red { background: #ff5f57; }
.traffic-light.yellow { background: #ffbd2e; }
.traffic-light.green { background: #28ca42; }

.hero-mockup:hover .traffic-light {
  transform: scale(1.1);
}

.mockup-url-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 6px 12px;
}

.lock-icon {
  width: 12px;
  height: 12px;
  color: #4ade80;
}

.mockup-url {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* the screen area showing the fake site */
.mockup-screen {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
}

/* fake website skeleton */
.fake-site {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: siteFloat 6s ease-in-out infinite;
}

@keyframes siteFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.fake-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fake-logo {
  width: 60px;
  height: 14px;
  background: linear-gradient(90deg, var(--color-accent), rgba(232, 165, 75, 0.5));
  border-radius: 3px;
}

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

.fake-nav-links span {
  width: 32px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.fake-hero {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0;
}

.fake-headline {
  width: 85%;
  height: 18px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 4px;
  animation: shimmerLine 2s ease-in-out infinite;
}

.fake-subhead {
  width: 65%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  animation: shimmerLine 2s ease-in-out 0.2s infinite;
}

@keyframes shimmerLine {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.fake-cta-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.fake-btn {
  height: 22px;
  border-radius: 4px;
}

.fake-btn.primary {
  width: 70px;
  background: var(--color-accent);
  animation: btnPulse 2.5s ease-in-out infinite;
}

.fake-btn.secondary {
  width: 55px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes btnPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(232, 165, 75, 0.4); }
  50% { opacity: 0.9; box-shadow: 0 0 20px 2px rgba(232, 165, 75, 0.2); }
}

.fake-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.fake-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
}

.fake-card-img {
  height: 40px;
  background: linear-gradient(135deg, rgba(232, 165, 75, 0.1) 0%, rgba(232, 165, 75, 0.02) 100%);
}

.fake-card-text {
  padding: 8px;
}

.fake-card-text::before {
  content: '';
  display: block;
  width: 80%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-bottom: 4px;
}

.fake-card-text::after {
  content: '';
  display: block;
  width: 50%;
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
}

.fake-footer {
  height: 20px;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: auto;
}

/* floating decorative accents */
.float-element {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.float-1 {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  top: 25%;
  right: 15%;
  animation: floatBubble 4s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(232, 165, 75, 0.5);
}

.float-2 {
  width: 5px;
  height: 5px;
  background: rgba(232, 165, 75, 0.6);
  bottom: 35%;
  left: 10%;
  animation: floatBubble 5s ease-in-out 1s infinite;
}

.float-3 {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  top: 60%;
  right: 25%;
  animation: floatBubble 3.5s ease-in-out 0.5s infinite;
}

@keyframes floatBubble {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-12px) scale(1.2); opacity: 1; }
}

/* AI-Designed badge floating near mockup */
.mockup-badge {
  position: absolute;
  bottom: -10px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-accent);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

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

.badge-text {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent);
}

/* Scrolling Work Marquee */
.hero-marquee-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.hero-marquee {
  width: 100%;
  overflow: hidden;
  padding: var(--space-md) 0;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
  position: relative;
}

/* "View All Work" overlay that appears on hover */
.marquee-view-all {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.25rem;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transition: 
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.marquee-view-all svg {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-marquee-link:hover .marquee-view-all {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.1s;
}

.hero-marquee-link:hover .marquee-view-all svg {
  transform: translateX(6px);
  transition-delay: 0.2s;
}

.hero-marquee-link:hover .marquee-track {
  animation-play-state: paused;
}

/* dark overlay on carousel */
.hero-marquee::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 13, 13, 0.3);
  z-index: 5;
  pointer-events: none;
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-marquee-link:hover .hero-marquee::before {
  background: rgba(13, 13, 13, 0.6);
  pointer-events: none;
}

.marquee-track {
  display: flex;
  gap: var(--space-md);
  animation: marqueeScroll 25s linear infinite;
  width: max-content;
}

.marquee-track:hover {
  animation-play-state: paused;
}

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

.marquee-item {
  flex-shrink: 0;
}

/* Mockup Browser Frame */
.mockup-frame {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 10px 40px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  width: 320px;
}

.mockup-frame:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 
    0 8px 12px -2px rgba(0, 0, 0, 0.4),
    0 20px 60px -15px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--color-border-accent);
}

.mockup-browser {
  background: var(--color-bg-elevated);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

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

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
}

.mockup-dots span:first-child {
  background: #ff5f57;
}

.mockup-dots span:nth-child(2) {
  background: #ffbd2e;
}

.mockup-dots span:nth-child(3) {
  background: #28ca42;
}

.mockup-frame img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: var(--container-padding);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: var(--color-border);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

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

/* Section Styling */
section {
  padding: var(--space-3xl) 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
}

.section-title--light {
  color: var(--color-text);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: var(--space-xl);
}

/* Section Header Alignment Variants
   - Default: left-aligned (for content-heavy sections like Services, FAQ)
   - Centered: for impact/CTA sections (Results, Contact) */
.section-header--center {
  text-align: center;
}

.section-header--center .section-label,
.section-header--center .section-title,
.section-header--center .section-subtitle {
  text-align: center;
}

.section-header--center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* Results Strip - Social Proof */
.results-strip {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-accent);
  border-bottom: 1px solid var(--color-border-accent);
  padding: var(--space-2xl) 0;
  position: relative;
  overflow: hidden;
}

/* subtle accent glow */
.results-strip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.6;
}

.results-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.results-statement {
  text-align: center;
}

.results-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  opacity: 0.8;
}

.results-manifesto {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.2;
  max-width: 600px;
  margin: 0 auto;
}

.results-manifesto em {
  font-style: normal;
  color: var(--color-accent);
  position: relative;
}

/* underline effect on the em */
.results-manifesto em::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-accent);
  opacity: 0.4;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineReveal 0.8s var(--ease-out) 0.5s forwards;
}

@keyframes underlineReveal {
  to { transform: scaleX(1); }
}

.results-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.stat {
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
  position: relative;
}

/* subtle dividers between stats */
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 0;
  height: 60%;
  width: 1px;
  background: var(--color-border);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
  color: var(--color-text);
  display: inline;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--color-accent);
  margin-left: 0.1em;
  vertical-align: super;
}

.stat-label {
  display: block;
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* hover effect on stats */
.stat {
  transition: transform 0.3s var(--ease-out);
}

.stat:hover {
  transform: translateY(-4px);
}

.stat:hover .stat-number {
  color: var(--color-accent);
  transition: color 0.3s ease;
}

/* responsive */
@media (max-width: 900px) {
  .results-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat:nth-child(2)::after {
    display: none;
  }
  
  .stat:nth-child(1)::after,
  .stat:nth-child(3)::after {
    height: 60%;
  }
}

@media (max-width: 500px) {
  .results-stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }
  
  .stat {
    padding: var(--space-md) var(--space-xs);
  }
  
  .stat::after {
    display: none !important;
  }
  
  .results-strip {
    padding: var(--space-xl) 0;
  }
}

/* Why Us */
.why-us {
  background: var(--color-bg-elevated);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.feature {
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature:hover {
  border-color: var(--color-border-accent);
  transform: translateY(-4px);
}

.feature-number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-accent);
  opacity: 0.3;
  margin-bottom: var(--space-sm);
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.feature-text {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Quote */
.quote-section {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.quote {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: var(--space-md);
  position: relative;
}

.quote p::before {
  content: '"';
  position: absolute;
  left: -0.5em;
  top: -0.2em;
  font-size: 3em;
  color: var(--color-accent);
  opacity: 0.2;
}

.quote cite {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* Principles */
.principles {
  background: 
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(232, 165, 75, 0.05) 0%, transparent 50%),
    var(--color-bg);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.principle {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
}

.principle-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  color: var(--color-accent);
}

.principle-icon svg {
  width: 100%;
  height: 100%;
}

.principle-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.principle-text {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* Work Section */
.work {
  background: var(--color-bg-elevated);
}

.work-category {
  margin-bottom: var(--space-2xl);
}

.work-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.work-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
  position: relative;
}

.work-card-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  z-index: 10;
}

.work-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: var(--space-xs);
}

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

.work-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg);
}

.work-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.work-card:hover .work-card-image img {
  transform: scale(1.05);
}

.work-card-content {
  padding: var(--space-md);
}

.work-card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.work-card-tags {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.work-card-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: gap 0.2s ease;
}

.work-card-link:hover {
  text-decoration: underline;
}

/* Services */
.services {
  background: var(--color-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.service-card {
  padding: var(--space-lg);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

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

.service-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.service-icon {
  font-size: 1.5rem;
}

.service-title {
  font-size: 1.125rem;
}

.service-description {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.service-note {
  display: block;
  font-size: 0.75rem;
  color: var(--color-accent);
  font-style: italic;
}

.service-list {
  color: var(--color-text-muted);
}

.service-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  opacity: 0.6;
}

.service-link {
  display: inline-block;
  margin-top: var(--space-sm);
  font-weight: 600;
  color: var(--color-accent);
}

.service-link:hover {
  text-decoration: underline;
}

/* ========================================
   DEMO VIDEO - Looping GIF style
   ======================================== */
.demo-video {
  background: 
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(232, 165, 75, 0.06) 0%, transparent 50%),
    var(--color-bg);
  overflow: hidden;
}

.video-player {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  margin-top: var(--space-xl);
}

.video-frame {
  background: #0a0a0a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 60px 120px -30px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 80px -20px rgba(232, 165, 75, 0.15);
}

.video-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #1f1f1f 0%, #181818 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.video-dot.red { background: #ff5f57; }
.video-dot.yellow { background: #ffbd2e; }
.video-dot.green { background: #28ca42; }

.video-url {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 16px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.video-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #0d0d0d;
  overflow: hidden;
}

/* Individual frames */
.video-frame-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.video-frame-slide.active {
  opacity: 1;
  visibility: visible;
}

.video-frame-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Text overlay on each frame */
.frame-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.8) 40%,
    rgba(0, 0, 0, 0) 100%
  );
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.5s ease 0.2s, opacity 0.5s ease 0.2s;
}

.video-frame-slide.active .frame-overlay {
  transform: translateY(0);
  opacity: 1;
}

.frame-number {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.video-frame-slide.active .frame-number {
  opacity: 1;
  transform: translateX(0);
}

.frame-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--color-text);
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

.video-frame-slide.active .frame-title {
  opacity: 1;
  transform: translateY(0);
}

.frame-caption {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 400px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s;
}

.video-frame-slide.active .frame-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Progress bar at bottom of video */
.video-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.video-progress-fill {
  height: 100%;
  background: var(--color-accent);
  width: 0%;
  transition: width 0.1s linear;
}

/* Side indicators */
.video-indicators {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.video-indicator::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.video-indicator:hover {
  background: var(--color-text-muted);
}

.video-indicator.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

.video-indicator.active::before {
  border-color: rgba(232, 165, 75, 0.3);
}

/* play/pause button */
.video-play-toggle {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-elevated);
  border: 2px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.video-play-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateX(-50%) scale(1.1);
}

.video-play-toggle svg {
  width: 20px;
  height: 20px;
}

.video-play-toggle .play-icon {
  display: none;
}

.video-play-toggle .pause-icon {
  display: block;
}

.video-play-toggle.paused .play-icon {
  display: block;
}

.video-play-toggle.paused .pause-icon {
  display: none;
}

/* CTA below video */
.video-cta {
  text-align: center;
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.video-cta-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* Mobile layout for video player controls */
@media (max-width: 1100px) {
  .video-indicators {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin-top: var(--space-md);
  }
  
  .video-play-toggle {
    display: none;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .video-frame {
    border-radius: 12px;
  }
  
  .frame-overlay {
    padding: var(--space-md);
  }
  
  .frame-title {
    font-size: 1.25rem;
  }
  
  .frame-caption {
    font-size: 0.875rem;
  }
  
  .video-play-toggle {
    width: 40px;
    height: 40px;
  }
  
  .video-play-toggle svg {
    width: 16px;
    height: 16px;
  }
}

/* ========================================
   FAQ Section
   ======================================== */
.faq {
  background: var(--color-bg);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

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

.faq-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: var(--color-border-accent);
}

.faq-item.open {
  border-color: var(--color-accent);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 var(--space-md) var(--space-md) var(--space-md);
  color: var(--color-text-muted);
  line-height: 1.7;
  font-size: 0.925rem;
}

/* Team */
.team {
  background: var(--color-bg-elevated);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.team-member {
  text-align: center;
}

.member-image {
  width: 180px;
  height: 180px;
  margin: 0 auto var(--space-md);
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-bg-card);
  border: 3px solid var(--color-border);
  transition: border-color 0.3s ease;
}

.team-member:hover .member-image {
  border-color: var(--color-accent);
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-accent);
  background: var(--color-accent-subtle);
}

.member-name {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.member-role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Contact */
.contact {
  background: 
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(232, 165, 75, 0.1) 0%, transparent 50%),
    var(--color-bg);
}

.contact-header {
  margin-bottom: var(--space-xl);
  /* centering now handled by .section-header--center utility */
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-form-wrapper {
  display: flex;
  flex-direction: column;
}

.contact-email {
  margin-top: var(--space-lg);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.contact-email a {
  color: var(--color-accent);
  font-weight: 600;
}

.contact-email a:hover {
  text-decoration: underline;
}

.contact-calendly {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  border-radius: 0;
}

.calendly-title {
  text-align: center;
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.calendly-inline-widget {
  border-radius: 0;
  overflow: hidden;
  min-height: 750px;
  height: 750px;
}

/* Form select dropdown */
.form-group select {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a39e94' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group select option {
  background: var(--color-bg-card);
  color: var(--color-text);
}

.form-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-accent);
  font-style: italic;
}

/* Form */
.contact-form {
  background: var(--color-bg-elevated);
  padding: var(--space-xl);
  border: 1px solid var(--color-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

/* Footer */
.footer {
  background: var(--color-bg);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .contact-calendly {
    order: -1; /* move calendly above form on mobile since it's more visual */
  }
  
  .calendly-inline-widget {
    min-height: 800px !important;
    height: 800px !important;
  }
}

@media (max-width: 1100px) {
  .hero-main {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .hero-mockup {
    order: -1;
    animation-delay: 0.1s;
  }
  
  .mockup-window {
    width: 380px;
    transform: perspective(1000px) rotateY(0deg) rotateX(2deg);
  }
  
  .hero-mockup:hover .mockup-window {
    transform: perspective(1000px) rotateY(0deg) rotateX(1deg) translateY(-8px);
  }
  
  /* Hero URL form centered on tablet */
  .hero-subhead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-url-form {
    display: flex;
    justify-content: center;
  }
  
  .hero-trust-badges {
    justify-content: center;
  }
  
  .hero-counter {
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  /* position badge to overlap mockup on tablet */
  .mockup-badge {
    bottom: 60px;
    left: calc(50% - 230px);
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding-top: 7rem;
    min-height: auto;
  }
  
  .hero-main {
    gap: var(--space-md);
  }

  .hero-content {
    margin-bottom: 0;
  }
  
  /* Hero URL form responsive */
  .hero-subhead {
    font-size: 1rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-input-wrapper {
    flex-direction: column;
    border-radius: 8px;
  }
  
  .hero-input-prefix {
    display: none;
  }
  
  .hero-input-wrapper input {
    padding: 1rem;
    font-size: 1rem;
    text-align: center;
    border-radius: 8px 8px 0 0;
  }
  
  .hero-submit-btn {
    justify-content: center;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
  }
  
  .hero-trust-badges {
    justify-content: center;
    gap: 0.75rem 1rem;
  }
  
  .trust-badge {
    font-size: 0.75rem;
  }
  
  .hero-counter {
    text-align: center;
  }
  
  /* mockup scales down on mobile */
  .hero-mockup {
    transform: scale(0.9);
  }
  
  .mockup-window {
    width: 340px;
  }
  
  .mockup-screen {
    height: 240px;
  }
  
  .mockup-badge {
    bottom: 0;
    left: 10px;
    padding: 6px 10px;
  }
  
  .badge-text {
    font-size: 0.6rem;
  }
  
  .hero-marquee-link {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xl);
  }

  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

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

  .hero-cta .btn {
    width: 100%;
  }

  /* On mobile, disable the text-swap hover effect */
  .hero-cta .btn--preview .preview-btn-detail {
    display: none;
  }
  
  .hero-cta .btn--preview:hover .preview-btn-text,
  .hero-cta .btn--preview:active .preview-btn-text {
    opacity: 1;
    transform: none;
  }

  .hero-scroll {
    display: none;
  }

  /* Marquee mobile adjustments */
  .hero-marquee {
    padding: var(--space-sm) 0;
  }

  .mockup-frame {
    width: 260px;
  }

  .mockup-frame img {
    height: 140px;
  }

  .marquee-track {
    animation-duration: 20s;
  }

  section {
    padding: var(--space-2xl) 0;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-lg);
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* Contact section mobile improvements */
  .contact-form {
    padding: var(--space-md);
  }
  
  .contact-calendly {
    padding: var(--space-sm);
  }
  
  .calendly-inline-widget {
    min-height: 750px !important;
    height: 750px !important;
  }
  
  .calendly-title {
    font-size: 0.875rem;
  }
  
  .contact-header {
    margin-bottom: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .features-grid,
  .principles-grid,
  .services-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }
  
  /* hide mockup on very small screens for cleaner layout */
  .hero-mockup {
    display: none;
  }
}

/* ========================================
   Preview Generator Modal
   ======================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-xl);
  position: relative;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s var(--ease-out);
}

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

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-state {
  /* default visible */
}

.modal-state--hidden {
  display: none;
}

.modal-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.modal-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: var(--space-sm);
}

.modal-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 450px;
  margin: 0 auto;
}

/* Domain Input Form */
.domain-form {
  max-width: 400px;
  margin: 0 auto;
}

.domain-input-wrapper {
  display: flex;
  align-items: stretch;
  margin-bottom: var(--space-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: border-color 0.2s ease;
}

.domain-input-wrapper:focus-within {
  border-color: var(--color-accent);
}

.domain-prefix {
  display: flex;
  align-items: center;
  padding: 0 var(--space-sm);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  border-right: 1px solid var(--color-border);
}

.domain-input-wrapper input {
  flex: 1;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: transparent;
  border: none;
}

.domain-input-wrapper input:focus {
  outline: none;
}

.domain-input-wrapper input::placeholder {
  color: var(--color-text-muted);
}

.modal-disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: var(--space-md);
}

/* Alt CTA for users without a site */
.modal-alt-cta {
  margin-top: var(--space-lg);
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.modal-alt-divider {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  opacity: 0.6;
}

.modal-alt-link {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.modal-alt-link:hover {
  color: var(--color-accent);
}

/* Loading State */
.modal-loader {
  text-align: center;
  padding: var(--space-xl) 0;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.loader-text {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

/* ==========================================
   GENERATING PREVIEW LOADER
   engaging animation while waiting
   ========================================== */

.generating-loader {
  text-align: center;
  padding: var(--space-lg) 0;
}

.generating-title {
  font-size: 1.35rem;
  margin-bottom: var(--space-lg);
  background: linear-gradient(90deg, var(--color-text), var(--color-accent), var(--color-text));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 3s ease-in-out infinite;
}

@keyframes shimmerText {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

/* Preview build animation - mockup being constructed */
.preview-build-animation {
  margin-bottom: var(--space-xl);
  display: flex;
  justify-content: center;
}

.build-mockup {
  width: 200px;
  height: 140px;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 20px 40px -15px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.build-browser-bar {
  height: 20px;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}

.build-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a3a3a;
}

.build-dot:nth-child(1) { background: #ff5f57; }
.build-dot:nth-child(2) { background: #ffbd2e; }
.build-dot:nth-child(3) { background: #28ca42; }

.build-content {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: calc(100% - 20px);
}

.build-block {
  background: linear-gradient(90deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%);
  background-size: 200% 100%;
  border-radius: 3px;
  animation: blockShimmer 1.5s ease-in-out infinite;
}

.build-hero {
  height: 45%;
  animation-delay: 0s;
}

.build-nav {
  height: 8px;
  width: 60%;
  animation-delay: 0.1s;
}

.build-section {
  height: 20%;
  animation-delay: 0.2s;
}

.build-section-sm {
  height: 12%;
  width: 80%;
  animation-delay: 0.3s;
}

.build-footer {
  height: 8px;
  width: 40%;
  margin-top: auto;
  animation-delay: 0.4s;
}

@keyframes blockShimmer {
  0%, 100% { 
    background-position: -200% 0;
    opacity: 0.5;
  }
  50% { 
    background-position: 200% 0;
    opacity: 1;
  }
}

/* shimmer overlay on the whole mockup */
.build-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(232, 165, 75, 0.08) 50%,
    transparent 100%
  );
  animation: shimmerSlide 2s ease-in-out infinite;
}

@keyframes shimmerSlide {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* progress steps */
.generating-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

.gen-step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem 1rem;
  background: var(--color-bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  opacity: 0.4;
  transform: translateX(-10px);
  transition: all 0.4s var(--ease-out);
}

.gen-step.active {
  opacity: 1;
  transform: translateX(0);
  border-color: var(--color-accent);
  background: var(--color-accent-subtle);
}

.gen-step.done {
  opacity: 0.7;
  transform: translateX(0);
}

.gen-step.done .gen-step-icon {
  color: #4ade80;
}

.gen-step-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.gen-step-icon svg {
  width: 100%;
  height: 100%;
}

.gen-step-text {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: left;
}

.gen-step.active .gen-step-text {
  color: var(--color-text);
}

.generating-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* pulse animation for active step */
.gen-step.active .gen-step-icon {
  animation: iconPulse 1.5s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.95); }
}

/* Concepts Grid */
.concepts-grid {
  display: grid;
  gap: var(--space-md);
}

.concept-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: var(--space-md);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.concept-card.selected {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.concept-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.concept-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--color-accent);
  opacity: 0.6;
}

.concept-name {
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.concept-positioning {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

.concept-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.concept-trait {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}

.concept-select-btn {
  width: 100%;
  margin-top: var(--space-sm);
  padding: 0.75rem;
  font-size: 0.875rem;
}

/* Preview Result */
.preview-result {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.preview-link {
  margin-bottom: var(--space-sm);
}

.preview-url {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  word-break: break-all;
}

/* Email Gate */
.email-gate {
  text-align: center;
  padding-top: var(--space-md);
}

.email-gate-title {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-weight: 500;
}

.email-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
}

.email-form input {
  flex: 1.5;
  min-width: 0; /* allows flex shrinking */
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
}

.email-form input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.email-form button {
  flex-shrink: 0;
  white-space: nowrap;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Error State */
.error-content {
  text-align: center;
  padding: var(--space-md) 0;
}

.error-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  color: var(--color-accent);
}

.error-icon svg {
  width: 100%;
  height: 100%;
}

#stateError .modal-title {
  margin-bottom: var(--space-sm);
}

#stateError .modal-subtitle {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.error-suggestions {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  text-align: left;
}

.error-suggestions-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.error-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.error-suggestions li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.error-suggestions li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-accent);
}

.error-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

#stateError .btn {
  min-width: 160px;
}

.error-help-link {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.error-help-link:hover {
  color: var(--color-accent);
}

/* Modal Responsive */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 0.5rem;
  }
  
  .modal-container {
    padding: var(--space-md);
    max-height: 95vh;
  }
  
  .modal-title {
    font-size: 1.5rem;
  }
  
  .modal-subtitle {
    font-size: 0.9rem;
  }
  
  .domain-form {
    max-width: 100%;
  }
  
  .domain-form .btn {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.9rem 1.25rem;
  }
  
  .domain-prefix {
    display: none;
  }
  
  .domain-input-wrapper input {
    border-radius: 8px;
  }
  
  .email-form {
    flex-direction: column;
  }
  
  .email-form button {
    width: 100%;
  }
  
  .concepts-grid {
    gap: var(--space-sm);
  }
}

