/* =============================================
   Flow Studio Web — Static Styles
   ============================================= */

:root {
  --bg: #050816;
  --surface: #0a0f1e;
  --surface-elevated: #0f1629;
  --cyan: #22d3ee;
  --cyan-bright: #38bdf8;
  --blue: #3b82f6;
  --purple: #a855f7;
  --magenta: #ec4899;
  --pink: #f472b6;
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);
  --border: rgba(255, 255, 255, 0.08);
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-heading: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font: var(--font-body);
  --font-display: var(--font-heading);
  --ease: cubic-bezier(0.21, 0.47, 0.32, 0.98);
  --container: 80rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

p, li, label, button, input, textarea, select {
  font-family: var(--font-body);
}

::selection {
  background: rgba(56, 189, 248, 0.3);
  color: #fff;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section-padding {
  padding-block: clamp(4rem, 8vw, 6rem);
}

.section { position: relative; overflow: hidden; }

/* ---- Typography ---- */

.text-gradient-cyan {
  background: linear-gradient(135deg, #22d3ee, #38bdf8, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-magenta {
  background: linear-gradient(135deg, #a855f7, #ec4899, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-desc {
  font-family: var(--font-body);
  margin-top: 1.25rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.75rem; }
.btn-lg { padding: 1rem 2rem; font-size: 0.875rem; }

.btn-primary {
  background: linear-gradient(90deg, #22d3ee, #3b82f6, #a855f7, #ec4899);
  color: #fff;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.2), 0 0 60px rgba(168, 85, 247, 0.1);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.35), 0 0 80px rgba(168, 85, 247, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 0.875rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.btn-outline:hover {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.15);
}

/* ---- Grid ---- */

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Glass Card ---- */

.glass-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
}

.glass-card:hover::before {
  opacity: 1;
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.glow-purple-card:hover {
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.15);
}

.glass-card:not(.glow-purple-card):hover {
  border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.15);
}

/* ---- Effects ---- */

.mouse-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.15s ease-out, top 0.15s ease-out;
  will-change: left, top;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: pulse-glow 8s ease-in-out infinite;
}

.glow-lg { width: 24rem; height: 24rem; }
.glow-md { width: 18rem; height: 18rem; }
.glow-sm { width: 12rem; height: 12rem; }

.glow-orb-cyan { background: rgba(34, 211, 238, 0.25); }
.glow-orb-purple { background: rgba(168, 85, 247, 0.25); animation-delay: 2s; }
.glow-orb-magenta { background: rgba(236, 72, 153, 0.2); animation-delay: 4s; }

.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
  pointer-events: none;
}

.flow-path {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-line 3s ease forwards;
}

.flow-path-delay { animation-delay: 0.5s; }

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float { animation: float 6s ease-in-out infinite; }
.float-delay-1 { animation-delay: 0.5s; }
.float-delay-2 { animation-delay: 1s; }
.float-delay-3 { animation-delay: 1.5s; }

/* ---- Reveal Animations ---- */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay { transition-delay: 0.15s; }

/* ---- Navbar ---- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}

.navbar.scrolled {
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.75rem;
}

.logo {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}

.logo-img {
  display: block;
  height: 3.75rem;
  width: auto;
  flex-shrink: 0;
  background: transparent;
}

@media (min-width: 768px) {
  .logo-img {
    height: 4.5rem;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s;
}

.nav-links a:hover { color: #fff; }

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #22d3ee, #a855f7, #ec4899);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover::after { width: 100%; }

.nav-cta { display: none; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
  background: rgba(5, 8, 22, 0.95);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-family: var(--font-body);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.mobile-menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.mobile-menu .btn { margin-top: 0.75rem; width: 100%; }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 5.75rem;
}

.hero-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

.badge {
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-family: var(--font-body);
  margin-top: 1.5rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.hero-trust {
  font-family: var(--font-body);
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8rem;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

/* ---- Device Showcase ---- */

.devices {
  position: relative;
  height: 420px;
  max-width: 36rem;
  margin-inline: auto;
}

@media (min-width: 768px) { .devices { height: 480px; } }

.device { position: absolute; }

.device-frame {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(to bottom, #1a1f35, #0f1424);
  padding: 0.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.device-frame-lg { width: 280px; }
.device-frame-md { width: 180px; padding: 0.375rem; }
.device-frame-sm { width: 120px; border-width: 2px; }
.device-frame-xs { width: 70px; border-radius: 1rem; border-width: 2px; padding: 0.375rem; }

@media (min-width: 768px) {
  .device-frame-lg { width: 340px; }
  .device-frame-md { width: 220px; }
  .device-frame-sm { width: 140px; }
  .device-frame-xs { width: 80px; }
}

.glow-purple { box-shadow: 0 0 40px rgba(168, 85, 247, 0.15); }

.device-desktop {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 20;
}

.device-stand {
  width: 4rem;
  height: 2rem;
  margin: 0.25rem auto 0;
  border-radius: 0 0 0.5rem 0.5rem;
  background: linear-gradient(to bottom, #1a1f35, var(--bg));
}

.device-stand::after {
  content: "";
  display: block;
  width: 6rem;
  height: 6px;
  margin: 0 auto;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
}

.device-laptop { bottom: 2rem; left: 0; z-index: 10; }
.device-tablet { bottom: 3rem; right: 1rem; z-index: 10; }
.device-phone { bottom: 0; right: 0; z-index: 30; }

.device-notch {
  width: 2rem;
  height: 4px;
  margin: 0 auto 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
}

.device-home {
  width: 1.5rem;
  height: 4px;
  margin: 4px auto 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
}

.devices-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34,211,238,0.2), rgba(168,85,247,0.1), rgba(236,72,153,0.1));
  filter: blur(80px);
}

.device-screen {
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--surface);
}

.screen-chrome {
  display: flex;
  gap: 6px;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.screen-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.screen-chrome span:nth-child(1) { background: rgba(239, 68, 68, 0.6); }
.screen-chrome span:nth-child(2) { background: rgba(234, 179, 8, 0.6); }
.screen-chrome span:nth-child(3) { background: rgba(34, 197, 94, 0.6); }

.mock-content { padding: 0.75rem; }

.mock-bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 6px;
}

.mock-bar-lg {
  height: 12px;
  width: 66%;
  background: linear-gradient(90deg, rgba(34,211,238,0.5), rgba(168,85,247,0.5));
}

.mock-bar-sm { width: 80%; background: rgba(255, 255, 255, 0.05); }

.mock-buttons {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
}

.mock-btn-primary {
  display: block;
  height: 24px;
  width: 64px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #22d3ee, #a855f7, #ec4899);
  opacity: 0.7;
}

.mock-btn-outline {
  display: block;
  height: 24px;
  width: 64px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mock-btn-block { width: 100%; margin-top: 0.75rem; }

.mock-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 1rem;
}

.mock-grid-2 span,
.mock-grid-3 span {
  height: 48px;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 1rem;
}

.mock-grid-3 span { height: 40px; }

.mock-header {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 0.75rem;
}

.mock-avatar {
  width: 32px;
  height: 32px;
  border-radius: 0.5rem;
  background: rgba(34, 211, 238, 0.2);
  flex-shrink: 0;
}

.mock-lines { flex: 1; }

.mock-lines::before,
.mock-lines::after {
  content: "";
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 4px;
}

.mock-lines::after { width: 66%; background: rgba(255, 255, 255, 0.08); }

.mock-panel {
  height: 64px;
  border-radius: 0.375rem;
  background: linear-gradient(135deg, rgba(34,211,238,0.1), rgba(168,85,247,0.1));
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0.75rem;
}

/* ---- Services ---- */

.card-icon {
  display: inline-flex;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 1.25rem;
}

.icon-cyan { color: var(--cyan); }
.icon-purple { color: var(--purple); }
.icon-magenta { color: var(--magenta); }

.glass-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.glass-card > p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- Portfolio ---- */

.portfolio-card {
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(10, 15, 30, 0.5);
  transition: transform 0.3s var(--ease);
}

.portfolio-card:hover { transform: translateY(-4px); }

.portfolio-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.portfolio-preview > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.portfolio-card:hover .portfolio-preview > img {
  transform: scale(1.04);
}

.gradient-cyan { background: linear-gradient(135deg, rgba(34,211,238,0.2), rgba(59,130,246,0.1), transparent); }
.gradient-purple { background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(236,72,153,0.1), transparent); }
.gradient-magenta { background: linear-gradient(135deg, rgba(236,72,153,0.2), rgba(168,85,247,0.1), transparent); }
.gradient-blue { background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(34,211,238,0.1), transparent); }

.portfolio-mock {
  position: absolute;
  inset: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(5, 8, 22, 0.6);
  backdrop-filter: blur(8px);
}

.portfolio-preview.has-image .portfolio-mock {
  display: none;
}

.portfolio-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 22, 0.6);
  backdrop-filter: blur(8px);
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-card:hover .portfolio-hover { opacity: 1; }

.portfolio-info { padding: 1.5rem; }

.portfolio-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0.5rem 0;
  transition: color 0.3s;
}

.portfolio-card:hover .portfolio-info h3 {
  background: linear-gradient(135deg, #22d3ee, #a855f7, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio-info > p:last-child {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ---- Process ---- */

.process-line {
  display: none;
}

@media (min-width: 1024px) {
  .process-line {
    display: block;
    position: relative;
    height: 1px;
    max-width: 64rem;
    margin: -3rem auto 0;
    background: linear-gradient(90deg, rgba(34,211,238,0.4), rgba(168,85,247,0.4), rgba(236,72,153,0.4));
  }
}

.process-step { text-align: center; }

@media (min-width: 1024px) { .process-step { text-align: left; } }

.process-icon {
  position: relative;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-elevated);
  color: #fff;
}

@media (min-width: 1024px) { .process-icon { margin-inline: 0; } }

.step-cyan::before { content: ""; position: absolute; inset: -1rem; border-radius: 50%; background: linear-gradient(135deg, #22d3ee, #3b82f6); opacity: 0.1; filter: blur(16px); }
.step-blue::before { content: ""; position: absolute; inset: -1rem; border-radius: 50%; background: linear-gradient(135deg, #3b82f6, #a855f7); opacity: 0.1; filter: blur(16px); }
.step-purple::before { content: ""; position: absolute; inset: -1rem; border-radius: 50%; background: linear-gradient(135deg, #a855f7, #ec4899); opacity: 0.1; filter: blur(16px); }
.step-magenta::before { content: ""; position: absolute; inset: -1rem; border-radius: 50%; background: linear-gradient(135deg, #ec4899, #f472b6); opacity: 0.1; filter: blur(16px); }

.step-num {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.process-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.process-step p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- Testimonials ---- */

.testimonial {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.quote-icon { color: var(--purple); margin-bottom: 1rem; flex-shrink: 0; }

.testimonial > p {
  font-family: var(--font-body);
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.testimonial footer {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stars { color: var(--magenta); font-size: 0.875rem; letter-spacing: 2px; margin-bottom: 0.5rem; }

.testimonial cite {
  font-family: var(--font-body);
  display: block;
  font-style: normal;
  font-size: 0.875rem;
  font-weight: 600;
}

.testimonial footer span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Pricing ---- */

.pricing-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
  justify-content: center;
  max-width: 72rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 22rem));
    gap: 1.25rem;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .pricing-grid { gap: 1.5rem; }
}

@media (max-width: 767px) {
  .pricing-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 1rem;
    padding-bottom: 0.5rem;
  }

  .pricing-grid .pricing-card {
    flex: 1 1 min(100%, 320px);
    max-width: 22rem;
  }
}

.pricing-card { display: flex; flex-direction: column; height: 100%; min-width: 0; }

.pricing-addon {
  width: 100%;
  max-width: 72rem;
  margin: 2.5rem auto 0;
  padding: clamp(1.5rem, 3vw, 2rem);
}

.pricing-addon-features {
  display: grid;
  gap: 0.5rem 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .pricing-addon-features {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.pricing-addon-features .pricing-features {
  margin: 0;
}

.pricing-addon-features .pricing-features li:last-child {
  margin-bottom: 0;
}

.pricing-addon-footer {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .pricing-addon-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

.pricing-addon-info {
  flex: 1;
  min-width: 0;
}

.pricing-addon-info .section-label {
  margin-bottom: 0.4rem;
}

.pricing-addon h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.pricing-addon-info .pricing-desc {
  margin-top: 0;
  max-width: 36rem;
}

.pricing-addon-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  flex-shrink: 0;
}

.pricing-addon-price .pricing-price {
  margin: 0;
  font-size: 2rem;
  line-height: 1;
}

.pricing-addon-price .pricing-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
}

.pricing-addon-price .pricing-price-note {
  margin: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .pricing-addon-price {
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0.35rem;
  }

  .pricing-addon-price .pricing-price-note {
    width: auto;
    margin-bottom: 0.5rem;
  }
}

.pricing-popular {
  border-color: rgba(34, 211, 238, 0.2);
  position: relative;
}

.pricing-promo {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(10, 15, 30, 0.85), rgba(10, 15, 30, 0.85)) padding-box,
    linear-gradient(135deg, #22d3ee, #3b82f6, #a855f7, #ec4899) border-box;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.12), 0 0 60px rgba(168, 85, 247, 0.08);
}

@media (min-width: 768px) and (max-width: 1199px) {
  .pricing-card.glass-card { padding: 1.25rem; }
  .pricing-card h3 { font-size: 0.9375rem; }
  .pricing-promo h3 { font-size: 0.8125rem; }
  .pricing-price { font-size: 2rem; }
  .pricing-features li { font-size: 0.8125rem; }
  .popular-badge,
  .promo-badge { font-size: 0.5625rem; padding: 0.2rem 0.75rem; }
}

.popular-badge,
.promo-badge {
  font-family: var(--font-body);
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, #22d3ee, #3b82f6, #a855f7, #ec4899);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
}

.pricing-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.pricing-promo h3 {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-desc {
  font-family: var(--font-body);
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-service {
  font-family: var(--font-body);
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  margin: 1.5rem 0 0;
}

.pricing-price-gradient {
  background: linear-gradient(135deg, #22d3ee, #3b82f6, #a855f7, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pricing-price-note {
  font-family: var(--font-body);
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pricing-card .pricing-price:not(.pricing-price-gradient) {
  margin-bottom: 2rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-features {
  flex: 1;
  margin-bottom: 1.5rem;
}

.pricing-note {
  font-family: var(--font-body);
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-style: italic;
}

.pricing-features li {
  font-family: var(--font-body);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.pricing-features li::before {
  content: "✓";
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- FAQ ---- */

.faq-list { max-width: 48rem; margin-inline: auto; }

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-item summary {
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover { color: #fff; }

.faq-item p {
  font-family: var(--font-body);
  padding-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .faq-item p { font-size: 1rem; }
}

/* ---- CTA Banner ---- */

.cta-banner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 15, 30, 0.5);
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(34,211,238,0.1), rgba(168,85,247,0.1), rgba(236,72,153,0.1));
  pointer-events: none;
}

.cta-banner::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(34,211,238,0.3), rgba(168,85,247,0.2), rgba(236,72,153,0.3));
  z-index: -1;
  filter: blur(4px);
  opacity: 0.5;
}

@media (min-width: 1024px) {
  .cta-banner {
    flex-direction: row;
    text-align: left;
  }
}

.cta-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple);
  flex-shrink: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.cta-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cta-content p {
  font-family: var(--font-body);
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  max-width: 36rem;
}

.cta-banner .btn { position: relative; z-index: 1; flex-shrink: 0; }

/* ---- Contact Form ---- */

.contact-section {
  background: #050816;
}

.contact-wrap {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .contact-wrap {
    grid-template-columns: 1fr minmax(18rem, 28rem);
    gap: 3.5rem;
    align-items: start;
  }
}

.contact-info {
  text-align: left;
}

.contact-info h3 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.5rem;
  max-width: 14ch;
}

.contact-info > p {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.125rem);
  font-weight: 400;
  color: #b6c2d1;
  line-height: 1.7;
  max-width: 32rem;
  margin-bottom: 0.85rem;
}

.contact-info-direct {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 22rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(196, 164, 132, 0.35);
  background: rgba(8, 14, 28, 0.65);
}

.contact-info-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c4a484;
  margin-bottom: 0.65rem;
}

.contact-info-phone {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  transition: color 0.2s;
}

.contact-info-email {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 600;
  color: #ffffff;
  margin-top: 0.25rem;
  transition: color 0.2s;
}

.contact-info-direct a:hover {
  color: #c4a484;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(196, 164, 132, 0.25);
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: #d6dee8;
  transition: color 0.2s;
}

.contact-social a:hover {
  color: #c4a484;
}

.contact-social svg {
  flex-shrink: 0;
}

.contact-form {
  width: 100%;
  max-width: 28rem;
  margin: 0;
  justify-self: center;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.5rem;
  background: #ffffff !important;
  color: #1e293b;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .contact-form {
    padding: 2.25rem 2.25rem 1.75rem;
    border-radius: 1.75rem;
  }
}

@media (min-width: 900px) {
  .contact-form {
    justify-self: end;
  }
}

.contact-step[hidden],
.contact-time-block[hidden] {
  display: none !important;
}

.contact-calendar-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.85rem;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
}

.contact-calendar-back:hover {
  color: #1e293b;
}

.contact-calendar-heading {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1e293b;
  margin-bottom: 1rem;
}

.contact-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.contact-calendar-month {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
}

.contact-cal-nav-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #1e293b;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.contact-cal-nav-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.contact-cal-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.contact-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-bottom: 0.35rem;
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.contact-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.3rem;
  margin-bottom: 1.25rem;
}

.contact-cal-day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: #f8fafc;
  color: #1e293b;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.contact-cal-day:hover:not(:disabled) {
  border-color: #c4a484;
  background: #fff7ed;
}

.contact-cal-day.is-selected {
  background: #c4a484;
  color: #0f172a;
  border-color: #c4a484;
  font-weight: 700;
}

.contact-cal-day.is-today:not(.is-selected) {
  border-color: #cbd5e1;
}

.contact-cal-day:disabled,
.contact-cal-day.is-muted {
  background: transparent;
  color: #cbd5e1;
  cursor: default;
}

.contact-time-label {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1e293b;
  margin-bottom: 0.65rem;
}

.contact-time-slots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  max-height: 11rem;
  overflow-y: auto;
}

.contact-time-slot {
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  background: #fff;
  color: #1e293b;
  padding: 0.65rem 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.contact-time-slot:hover {
  border-color: #c4a484;
  background: #fff7ed;
}

.contact-time-slot.is-selected {
  background: #c4a484;
  border-color: #c4a484;
  color: #0f172a;
  font-weight: 700;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.contact-form-field:last-of-type {
  margin-bottom: 0;
}

.contact-form-field label {
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1e293b;
}

.contact-form-field input,
.contact-form-field textarea {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.4;
  color: #1e293b !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.85rem 1rem;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  box-sizing: border-box;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(226, 232, 240, 0.9);
}

.contact-form-field textarea {
  min-height: 7.5rem;
}

.contact-form-submit {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 9999px;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0f172a !important;
  cursor: pointer;
  background: #c4a484 !important;
  box-shadow: 0 8px 18px rgba(196, 164, 132, 0.4);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, opacity 0.2s, background 0.2s;
}

.contact-form-submit:hover {
  transform: translateY(-1px);
  background: #b8956f !important;
  box-shadow: 0 10px 22px rgba(184, 149, 111, 0.45);
}

.contact-form-submit:focus-visible {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

.contact-form-submit:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.contact-form-note {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
}

.contact-form-status {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
}

.contact-form-status.is-success {
  color: #065f46;
  background: #ecfdf5;
}

.contact-form-status.is-error {
  color: #9f1239;
  background: #fff1f2;
}

/* ---- Footer ---- */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 15, 30, 0.5);
}

.footer-inner { padding-bottom: 3rem; }

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.logo-footer {
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 20rem;
}

.footer-email {
  font-family: var(--font-body);
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--cyan);
  transition: color 0.2s;
}

.footer-email:hover { color: var(--cyan-bright); }

.footer-grid h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.footer-grid ul li { margin-bottom: 0.75rem; }

.footer-grid ul a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-grid ul a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }

.social-links { display: flex; gap: 1rem; }

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}

.social-links a:hover {
  border-color: rgba(34, 211, 238, 0.3);
  color: var(--cyan);
}

/* ---- Portfolio Project Pages ---- */

.project-hero {
  padding-top: clamp(7rem, 14vw, 9rem);
  padding-bottom: clamp(3rem, 6vw, 4rem);
}

.project-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.project-back:hover { color: var(--cyan); }

.project-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.project-hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 40rem;
  line-height: 1.65;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(10, 15, 30, 0.55);
}

@media (min-width: 768px) {
  .project-meta { grid-template-columns: repeat(4, 1fr); }
}

.project-meta dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.project-meta dd {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

.project-showcase {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.project-showcase > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-showcase-inner {
  position: absolute;
  inset: clamp(1rem, 3vw, 2rem);
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 8, 22, 0.65);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.project-showcase.has-image .project-showcase-inner {
  display: none;
}

.project-showcase .mock-hero-block {
  flex: 1;
  min-height: 0;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.project-showcase .mock-brand {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}

.hero-screen-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.hero-screen-image-sm {
  aspect-ratio: 16 / 11;
}

.project-grid-2 {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .project-grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }
}

.project-block h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.project-block p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.project-block p:last-child { margin-bottom: 0; }

.project-features {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .project-features { grid-template-columns: repeat(3, 1fr); }
}

.project-feature {
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(10, 15, 30, 0.45);
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.project-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
}

.project-feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-feature p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.project-feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.project-results {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .project-results { grid-template-columns: repeat(3, 1fr); }
}

.project-stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(10, 15, 30, 0.45);
}

.project-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.project-stat span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.project-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.project-nav a {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(10, 15, 30, 0.45);
  min-width: min(100%, 14rem);
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.project-nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.35);
}

.project-nav a span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-nav a strong {
  font-family: var(--font-heading);
  font-size: 1rem;
}

.project-nav a.next { margin-left: auto; text-align: right; }

.theme-cyan .section-label,
.theme-cyan .project-stat strong { color: var(--cyan); }
.theme-purple .section-label,
.theme-purple .project-stat strong { color: var(--purple); }
.theme-magenta .section-label,
.theme-magenta .project-stat strong { color: var(--magenta); }
.theme-blue .section-label,
.theme-blue .project-stat strong { color: var(--blue); }

.theme-cyan .project-feature-icon { background: rgba(34, 211, 238, 0.12); color: var(--cyan); }
.theme-purple .project-feature-icon { background: rgba(168, 85, 247, 0.12); color: var(--purple); }
.theme-magenta .project-feature-icon { background: rgba(236, 72, 153, 0.12); color: var(--magenta); }
.theme-blue .project-feature-icon { background: rgba(59, 130, 246, 0.12); color: var(--blue); }

/* ---- Reduced Motion ---- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .reveal { opacity: 1; transform: none; }

  .mouse-glow { display: none; }
}
