/* =========================================
   CSS Custom Properties
   ========================================= */
:root {
  --bg: #07070f;
  --bg-2: #0b0b16;
  --surface: #0f0f1c;
  --surface-2: #151524;
  --surface-3: #1c1c2e;
  --orange: #f55a00;
  --orange-bright: #ff7722;
  --orange-dark: #c44400;
  --orange-glow: rgba(245, 90, 0, 0.35);
  --orange-subtle: rgba(245, 90, 0, 0.08);
  --orange-border: rgba(245, 90, 0, 0.2);
  --text: #eeeef5;
  --text-muted: #6b6b82;
  --text-subtle: #2e2e42;
  --border: rgba(255, 255, 255, 0.055);
  --border-2: rgba(255, 255, 255, 0.1);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-w: 1200px;
  --sp: 140px;
}

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

html { scroll-behavior: auto; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

::selection { background: var(--orange); color: #fff; }

/* =========================================
   Grain Overlay
   ========================================= */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}

/* =========================================
   Custom Cursor
   ========================================= */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
  transform: translate(-50%, -50%);
  mix-blend-mode: normal;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 90, 0, 0.5);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.4s ease, height 0.4s ease, border-color 0.3s ease, opacity 0.3s ease;
  transform: translate(-50%, -50%);
}

body.cursor-hover .cursor { width: 14px; height: 14px; background: var(--orange-bright); }
body.cursor-hover .cursor-ring { width: 56px; height: 56px; border-color: rgba(245, 90, 0, 0.35); }
body.cursor-click .cursor { transform: translate(-50%, -50%) scale(0.7); }

@media (hover: none) {
  .cursor, .cursor-ring { display: none; }
}

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

.display-xl {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
}

.display-lg {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display-md {
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -0.025em;
}

.display-sm {
  font-size: clamp(22px, 2.5vw, 36px);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(120deg, var(--orange) 0%, var(--orange-bright) 50%, #ffaa44 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

/* =========================================
   Layout
   ========================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.section-pad { padding: var(--sp) 0; }

.reveal { opacity: 0; transform: translateY(40px); }

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-xl);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 0 40px rgba(245, 90, 0, 0.4);
}

.btn-primary:hover {
  background: var(--orange-bright);
  box-shadow: 0 0 60px rgba(245, 90, 0, 0.5);
  transform: translateY(-2px);
}

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

.btn-ghost:hover {
  border-color: var(--orange-border);
  color: var(--orange-bright);
  transform: translateY(-2px);
}

.btn-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform 0.3s ease;
  background: none;
  opacity: 1;
  position: static;
  inset: auto;
}

.btn-arrow:hover::after { transform: translateX(4px); background: none; }

/* =========================================
   Navigation
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
}

.nav.scrolled {
  background: rgba(7, 7, 15, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border);
  padding: 14px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(245, 90, 0, 0.45);
}

.logo-mark svg { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

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

.nav-cta {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  padding: 10px 22px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--orange) !important;
  color: #fff !important;
  border-color: var(--orange) !important;
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

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

.nav.menu-open .nav-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-menu-btn span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.open { opacity: 1; pointer-events: all; }

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(28px, 7vw, 42px);
  font-weight: 700;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.mobile-menu a:hover { color: var(--orange); }

.mobile-menu .mobile-email {
  font-size: 16px;
  color: var(--orange);
  margin-top: 16px;
}

/* =========================================
   Hero
   ========================================= */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Mesh blobs */
.hero-mesh {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.mesh-blob-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245, 90, 0, 0.38) 0%, transparent 70%);
  top: -200px;
  left: -150px;
  animation: blobFloat1 12s ease-in-out infinite;
}

.mesh-blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(196, 68, 0, 0.28) 0%, transparent 70%);
  top: 20%;
  right: -100px;
  animation: blobFloat2 14s ease-in-out infinite;
}

.mesh-blob-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 119, 34, 0.2) 0%, transparent 70%);
  bottom: 10%;
  left: 35%;
  animation: blobFloat3 10s ease-in-out infinite;
}

.mesh-blob-4 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(245, 90, 0, 0.15) 0%, transparent 70%);
  top: 60%;
  left: 10%;
  animation: blobFloat1 16s ease-in-out infinite reverse;
}

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -50px) scale(1.07); }
  66% { transform: translate(-30px, 30px) scale(0.94); }
}

@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40% { transform: translate(-50px, 30px) scale(1.05); }
  70% { transform: translate(20px, -20px) scale(0.97); }
}

@keyframes blobFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 120px 0 60px;
}

.hero-content .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  width: fit-content;
  opacity: 0;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(50px, 7.5vw, 92px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.hero-title .word { display: inline-block; overflow: hidden; }
.hero-title .char { display: inline-block; }

.hero-title .line {
  display: block;
}

.hero-subtitle {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 560px;
  opacity: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
}

/* Stats bar */
.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  background: rgba(7, 7, 15, 0.5);
  backdrop-filter: blur(10px);
  padding: 28px 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
  opacity: 0;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text) 0%, var(--orange-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 100px;
  right: 48px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
}

.scroll-indicator span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =========================================
   Ticker / Marquee
   ========================================= */
.ticker {
  overflow: hidden;
  background: var(--orange);
  padding: 14px 0;
  position: relative;
  z-index: 3;
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: tickerMove 28s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  padding: 0 28px;
}

.ticker-text {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
}

.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================
   About Section
   ========================================= */
#about {
  padding: var(--sp) 0;
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: block;
}

.about-number {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  color: var(--text-subtle);
  letter-spacing: -0.06em;
  user-select: none;
  flex-shrink: 0;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.label-line {
  display: none;
}

.about-body {
  max-width: 720px;
}

.about-body h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  margin-bottom: 28px;
  line-height: 1.15;
}

.about-body p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Decorative shape */
.about-deco {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid var(--orange-border);
  opacity: 0.3;
  pointer-events: none;
}

.about-deco::before {
  content: '';
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid var(--orange-border);
}

/* =========================================
   Services
   ========================================= */
.services-intro {
  padding-bottom: 0;
}

.service-section {
  padding: var(--sp) 0;
  position: relative;
}

.service-section + .service-section {
  border-top: 1px solid var(--border);
}

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

.service-grid.reverse .service-visual { order: -1; }

.service-content .label { margin-bottom: 20px; }

.service-content h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin-bottom: 12px;
}

.service-content .service-sub {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--orange-bright);
  font-weight: 600;
  margin-bottom: 24px;
}

.service-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-muted);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.feature-item:hover {
  border-color: var(--orange-border);
  background: var(--surface-2);
}

.feature-icon {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Service Illustrations */
.service-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  overflow: hidden;
}

.ai-illustration-wrap,
.web-illustration-wrap {
  width: 100%;
  max-width: 460px;
  position: relative;
}

.ai-illustration-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

/* AI agent network illustration */
.ai-viz {
  width: 100%;
  aspect-ratio: 1 / 0.85;
  position: relative;
}

.ai-node {
  position: absolute;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-node-core {
  width: 64px;
  height: 64px;
  background: var(--orange);
  box-shadow: 0 0 50px rgba(245, 90, 0, 0.6);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: nodeCore 3s ease-in-out infinite;
}

@keyframes nodeCore {
  0%, 100% { box-shadow: 0 0 50px rgba(245, 90, 0, 0.6); }
  50% { box-shadow: 0 0 80px rgba(245, 90, 0, 0.8); }
}

.ai-node-core svg { width: 28px; height: 28px; color: #fff; }

.ai-node-orbit {
  width: 36px;
  height: 36px;
  background: var(--surface-2);
  border: 1.5px solid var(--orange-border);
}

.ai-node-orbit svg { width: 16px; height: 16px; color: var(--orange); }

.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed var(--orange-border);
  pointer-events: none;
}

/* Browser mockup for web section */
.browser-mock {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s ease;
}

.browser-mock:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.browser-chrome {
  background: var(--surface-2);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.chrome-dots { display: flex; gap: 6px; }
.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-subtle);
}

.chrome-bar {
  flex: 1;
  background: var(--surface-3);
  border-radius: var(--radius-xs);
  padding: 6px 12px;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chrome-bar-lock {
  width: 10px;
  height: 10px;
  color: var(--orange);
}

.browser-content {
  padding: 0;
  background: var(--bg-2);
  min-height: 260px;
  overflow: hidden;
}

/* Palvoro mockup chat UI */
.palvoro-ui {
  display: flex;
  height: 260px;
}

.palvoro-sidebar {
  width: 180px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.palvoro-chat-item {
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.palvoro-chat-item.active {
  background: var(--surface-2);
  color: var(--text);
}

.palvoro-main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
}

.msg { display: flex; gap: 8px; align-items: flex-start; }
.msg.user { justify-content: flex-end; }

.msg-bubble {
  max-width: 70%;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  line-height: 1.5;
}

.msg-bubble.ai {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.msg-bubble.user-msg {
  background: var(--orange);
  color: #fff;
}

.msg-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}

/* =========================================
   Portfolio
   ========================================= */
#portfolio {
  padding: var(--sp) 0;
  position: relative;
  overflow: hidden;
}

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

.portfolio-content .label { margin-bottom: 20px; }
.portfolio-content h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 8px; }
.portfolio-content .portfolio-url {
  font-size: 14px;
  color: var(--orange);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.portfolio-content p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tag {
  padding: 5px 14px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.tag.tag-orange {
  background: var(--orange-subtle);
  border-color: var(--orange-border);
  color: var(--orange-bright);
}

/* Portfolio mockup — Palvoro */
.palvoro-mockup {
  position: relative;
}

.palvoro-mockup .browser-mock {
  transform: perspective(1200px) rotateY(4deg) rotateX(2deg);
}

.palvoro-mockup .browser-mock:hover {
  transform: perspective(1200px) rotateY(2deg) rotateX(1deg);
}

.portfolio-deco-ring {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid var(--orange-border);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.25;
}

/* =========================================
   Results Grid
   ========================================= */
#results {
  padding: var(--sp) 0;
  position: relative;
}

.results-header {
  text-align: center;
  margin-bottom: 72px;
}

.results-header h2 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 16px; }
.results-header p { color: var(--text-muted); font-size: 17px; max-width: 480px; margin: 0 auto; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s cubic-bezier(0.16,1,0.3,1);
  cursor: default;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.result-card:hover {
  border-color: var(--orange-border);
  background: var(--surface-2);
  transform: translateY(-4px);
}

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

.result-icon {
  width: 44px;
  height: 44px;
  background: var(--orange-subtle);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 20px;
}

.result-icon svg { width: 20px; height: 20px; }

.result-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.result-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

.result-card.wide {
  grid-column: span 2;
}

/* =========================================
   Why Section
   ========================================= */
#why {
  padding: var(--sp) 0;
  position: relative;
  overflow: hidden;
}

.why-bg {
  position: absolute;
  inset: 0;
  background: var(--surface);
  z-index: -1;
}

.why-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(245,90,0,0.07) 0%, transparent 70%);
}

.why-inner {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.why-inner .label { justify-content: center; margin-bottom: 28px; }
.why-inner .label-line { width: 24px; }

.why-inner h2 {
  font-size: clamp(32px, 4.5vw, 58px);
  margin-bottom: 28px;
  line-height: 1.1;
}

.why-inner p {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 48px;
}

.why-quote {
  position: relative;
  padding: 40px 48px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: left;
}

.why-quote-mark {
  position: absolute;
  top: -1px;
  left: 40px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: var(--orange);
  line-height: 1;
  opacity: 0.5;
}

.why-quote p {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
  margin: 0;
}

/* =========================================
   Process Section (Horizontal Scroll)
   ========================================= */
#process-wrapper {
  position: relative;
  overflow: hidden;
}

.process-header {
  padding: var(--sp) 0 80px;
}

.process-header h2 {
  font-size: clamp(32px, 4vw, 56px);
  margin-bottom: 16px;
}

.process-header p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 460px;
}

#process-track {
  display: flex;
  gap: 0;
  width: max-content;
  padding-bottom: var(--sp);
}

.process-item {
  width: clamp(480px, 62vw, 860px);
  padding: 0 48px 0 0;
  flex-shrink: 0;
}

.process-item:first-child { padding-left: 32px; }

.process-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  height: 340px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.process-card:hover { border-color: var(--orange-border); }

.process-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--surface), transparent);
  pointer-events: none;
}

.process-step-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--text-subtle);
}

.process-step-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.process-step-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

/* Progress bar */
.process-progress {
  position: sticky;
  bottom: 0;
  height: 3px;
  background: var(--border);
  z-index: 10;
}

.process-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-bright));
  width: 0%;
  transition: width 0.1s linear;
}

/* =========================================
   Contact CTA
   ========================================= */
#contact {
  padding: var(--sp) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.contact-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,90,0,0.12) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.contact-inner {
  position: relative;
  z-index: 1;
  max-width: 740px;
  margin: 0 auto;
}

.contact-inner .label { justify-content: center; margin-bottom: 24px; }
.contact-inner h2 {
  font-size: clamp(38px, 5.5vw, 78px);
  margin-bottom: 24px;
  line-height: 1.0;
}

.contact-inner p {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 40px;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 700;
  color: var(--orange);
  letter-spacing: -0.02em;
  position: relative;
  transition: color 0.2s ease;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.contact-email:hover { color: var(--orange-bright); }
.contact-email:hover::after { transform: scaleX(1); }

.contact-note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Decorative rings */
.contact-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.contact-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
}

/* =========================================
   Footer
   ========================================= */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

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

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

.footer-tagline {
  font-size: 13px;
  color: var(--text-subtle);
  font-style: italic;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* =========================================
   Inner Pages (Privacy / Terms)
   ========================================= */
.inner-nav { background: rgba(7, 7, 15, 0.95); backdrop-filter: blur(20px); }

.page-hero {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 16px;
}

.doc-content {
  padding: var(--sp) 0;
  max-width: 760px;
}

.doc-content h2 {
  font-size: 26px;
  margin-top: 56px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.doc-content h2:first-child { margin-top: 0; }

.doc-content h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text);
}

.doc-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.doc-content ul {
  list-style: disc;
  margin: 0 0 16px 24px;
}

.doc-content li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 6px;
}

.doc-content a { color: var(--orange); text-decoration: underline; }
.doc-content strong { color: var(--text); font-weight: 600; }

.doc-date {
  display: inline-block;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* =========================================
   Animations / Reveal Defaults
   ========================================= */
.fade-up { opacity: 0; transform: translateY(50px); }
.fade-in { opacity: 0; }
.slide-left { opacity: 0; transform: translateX(-50px); }
.slide-right { opacity: 0; transform: translateX(50px); }
.scale-in { opacity: 0; transform: scale(0.9); }

/* =========================================
   Magnetic Button Wrapper
   ========================================= */
.magnetic-wrap {
  display: inline-block;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
  :root { --sp: 100px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-number { font-size: 80px; display: none; }
  .about-deco { display: none; }

  .service-grid { grid-template-columns: 1fr; gap: 56px; }
  .service-grid.reverse .service-visual { order: 0; }
  .service-visual { min-height: 300px; }

  .portfolio-inner { grid-template-columns: 1fr; gap: 56px; }

  .results-grid { grid-template-columns: repeat(2, 1fr); }
  .result-card.wide { grid-column: span 1; }
}

@media (max-width: 768px) {
  :root { --sp: 80px; }

  .nav-links { display: none; }
  .nav-menu-btn { display: flex; }

  .hero-title { font-size: clamp(38px, 10vw, 68px); }
  .hero-content { padding: 72px 0 36px; }

  .stats-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
    justify-items: center;
  }
  .stat { min-width: unset; padding: 0; }
  .stat-divider { display: none; }

  .results-grid { grid-template-columns: 1fr; }
  /* Ensure result cards are never clipped on mobile */
  .result-card { overflow: visible; }
  .result-card.wide { grid-column: span 1; }

  /* Process: vertical stack on mobile — horizontal pin disabled in JS */
  .process-vertical #process-track {
    flex-direction: column;
    width: 100%;
    padding: 0 20px var(--sp);
  }
  .process-vertical .process-item {
    width: 100%;
    padding: 0 0 20px 0;
  }
  .process-vertical .process-item:first-child { padding-left: 0; }
  .process-vertical .process-card { height: auto; min-height: 220px; }
  .process-vertical .process-card::after { display: none; }
  .process-vertical .process-progress { display: none; }

  /* Palvoro mockup: hide sidebar on mobile, simplify */
  .palvoro-sidebar { display: none; }
  .palvoro-ui { height: auto; min-height: 200px; }
  .palvoro-main { padding: 16px; min-height: 200px; }
  .browser-mock { transform: none !important; }
  .palvoro-mockup .browser-mock { transform: none !important; }

  .why-quote { padding: 28px 24px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 20px; }

  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .portfolio-tags { gap: 6px; }
}

/* =========================================
   Image Backgrounds & Photo Layers
   ========================================= */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 55%;
  opacity: 0.1;
  mix-blend-mode: screen;
  pointer-events: none;
}

.section-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: -2;
  filter: brightness(0.15) saturate(1.5);
}

/* =========================================
   Photo Strip (Full-Bleed)
   ========================================= */
.photo-strip {
  position: relative;
  height: 440px;
  overflow: hidden;
}

.photo-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  filter: brightness(0.22) saturate(1.6);
  transform: scale(1.06);
  transition: transform 12s ease;
}

.photo-strip:hover img { transform: scale(1.0); }

.photo-strip-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    transparent 18%,
    transparent 82%,
    var(--bg) 100%
  );
  z-index: 1;
}

.photo-strip-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  text-align: center;
  padding: 0 32px;
}

.strip-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
}

.strip-sub {
  font-size: clamp(15px, 1.4vw, 20px);
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  line-height: 1.75;
  font-weight: 400;
}

/* =========================================
   Why Section — Redesign
   ========================================= */
#why {
  padding: var(--sp) 0;
  position: relative;
  overflow: hidden;
}

.why-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  filter: brightness(0.14) saturate(1.4);
}

.why-color-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, var(--bg) 0%, rgba(7,7,15,0.65) 55%, var(--bg) 100%),
    radial-gradient(ellipse at 20% 50%, rgba(245,90,0,0.06) 0%, transparent 55%);
}

.why-grid-new {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.why-left-col .section-label { margin-bottom: 28px; }

.why-left-col .why-big-text {
  font-family: var(--font-display);
  font-size: clamp(52px, 7.5vw, 100px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.9;
  margin-bottom: 24px;
}

.why-left-col .why-eyebrow {
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: 360px;
}

.why-right-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-right-col p {
  font-size: clamp(15px, 1.25vw, 17px);
  color: var(--text-muted);
  line-height: 1.85;
}

.why-right-col p strong {
  color: var(--text);
  font-weight: 600;
}

.why-callout-block {
  margin-top: 8px;
  padding: 24px 28px;
  background: var(--orange-subtle);
  border: 1px solid var(--orange-border);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.why-callout-block p {
  color: var(--text) !important;
  font-size: clamp(14px, 1.2vw, 16px) !important;
  line-height: 1.7;
  margin: 0;
}

/* =========================================
   About Section — Image Enhancement
   ========================================= */
#about { position: relative; overflow: hidden; }

.about-image-accent {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 42%;
  z-index: 0;
  overflow: hidden;
}

.about-image-accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.12) saturate(1.5);
}

.about-image-accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 60%);
  z-index: 1;
}

#about .container { position: relative; z-index: 1; }
#about .about-deco { z-index: 1; }

/* =========================================
   Services AI — subtle image treatment
   ========================================= */
#services { position: relative; overflow: hidden; }

.services-section-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.services-section-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, rgba(7,7,15,0.88) 100%);
  z-index: 1;
}

.services-section-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.2) saturate(1.6) hue-rotate(-10deg);
}

#services .container { position: relative; z-index: 1; }

/* =========================================
   Contact Section — Image Background
   ========================================= */
#contact { overflow: hidden; }

.contact-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.12) saturate(1.4);
}

.contact-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, rgba(7,7,15,0.4) 0%, var(--bg) 75%);
}

.contact-bg { z-index: 2; }
.contact-rings { z-index: 3; }
#contact .container { position: relative; z-index: 4; }

/* =========================================
   Additional Global Improvements
   ========================================= */

/* Orange glow on primary CTA hover */
.btn-primary {
  position: relative;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--orange), var(--orange-bright));
  z-index: -1;
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.4s ease;
}

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

/* Enhanced feature item hover */
.feature-item svg { flex-shrink: 0; }

/* Add subtle orange left border on result cards on hover */
.result-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: var(--orange);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.result-card:hover::after { opacity: 1; }

/* =========================================
   Responsive Additions
   ========================================= */
@media (max-width: 900px) {
  .why-grid-new { grid-template-columns: 1fr; gap: 48px; }
  .why-left-col .why-big-text { font-size: clamp(48px, 12vw, 72px); }
  .about-image-accent { display: none; }
  .services-section-photo { display: none; }
}

@media (max-width: 768px) {
  .photo-strip { height: 280px; }
  .strip-headline { font-size: clamp(28px, 8vw, 52px); }
}

/* =========================================
   Reduced Motion
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .grain, .ticker-track { animation: none; }
  .mesh-blob { animation: none; }
  .scroll-line { animation: none; }
}
