/* ============================================
   CSS RESET & BASE STYLES
============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Core Colors */
  --background: hsl(270 50% 3%);
  --foreground: hsl(0 0% 98%);
  --card: hsl(240 10% 8%);
  --card-foreground: hsl(0 0% 98%);
  --primary: hsl(271 91% 65%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(240 10% 12%);
  --muted: hsl(240 10% 15%);
  --muted-foreground: hsl(240 5% 65%);
  --accent: hsl(280 80% 60%);
  --border: hsl(240 10% 20%);
  --radius: 1rem;

  /* Glassmorphism */
  --glass-bg: hsla(240, 10%, 10%, 0.6);
  --glass-border: hsla(0, 0%, 100%, 0.08);
  --glass-blur: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

input,
textarea {
  font-family: inherit;
}

/* ============================================
   UTILITY CLASSES
============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ============================================
   GLASS CARD COMPONENT
============================================ */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: hsla(271, 91%, 65%, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px hsla(271, 91%, 65%, 0.2);
}

/* ============================================
   BUTTONS
============================================ */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--primary-foreground);
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px var(--primary);
}

.btn-secondary {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: var(--foreground);
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: hsla(271, 91%, 65%, 0.1);
}

/* ============================================
   INPUT FIELDS
============================================ */
.input-glass {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  color: var(--foreground);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-glass:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(271, 91%, 65%, 0.1);
}

.input-glass::placeholder {
  color: var(--muted-foreground);
}

/* ============================================
   NAVIGATION
============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s ease;
  padding: 1rem 0;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: hsla(270, 50%, 3%, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid hsla(271, 91%, 65%, 0.2);
  box-shadow: 0 10px 30px -10px hsla(271, 91%, 65%, 0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: var(--primary);
  /* fallback color if no image */
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-foreground);
  overflow: hidden;
  /* ensure image is clipped to radius */
  transition: all 0.3s ease;
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.navbar.scrolled .logo-icon {
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.navbar.scrolled .logo-text {
  font-size: 1.125rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

/* Hamburger toggle (mobile only) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  align-items: center;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 60%;
  height: 2px;
  border-radius: 999px;
  background: var(--foreground);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Show links and hide hamburger on desktop */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }
}

.nav-link {
  padding: 0.5rem 1rem;
  color: var(--muted-foreground);
  font-weight: 500;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

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

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  transition: all 0.3s ease;
}

.navbar.scrolled .nav-cta {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}

/* Mobile dropdown menu */
.mobile-menu {
  position: fixed;
  top: 4.25rem;
  right: 1.5rem;
  width: 220px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.75rem 0.75rem 0.85rem;
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  z-index: 60;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu-link {
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  color: var(--foreground);
  font-size: 0.95rem;
  font-weight: 500;
  display: block;
  transition: background 0.2s ease, transform 0.2s ease;
}

.mobile-menu-link:hover {
  background: hsla(271, 91%, 65%, 0.16);
  transform: translateX(2px);
}

/* Hide mobile menu on desktop */
@media (min-width: 768px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ============================================
   ABSTRACT BACKGROUND
============================================ */
.bg-abstract {
  position: fixed;
  inset: 0;
  background: #050208;
  z-index: -1;
}

.bg-gradient-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -20%, hsla(270, 80%, 20%, 0.6) 0%, transparent 50%),
    radial-gradient(ellipse 60% 80% at 80% 50%, hsla(280, 90%, 15%, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 50% 120%, hsla(265, 70%, 25%, 0.4) 0%, transparent 40%),
    radial-gradient(ellipse 40% 40% at 70% 20%, hsla(290, 100%, 10%, 0.8) 0%, transparent 50%);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  animation: pulse-glow 8s ease-in-out infinite;
}

.glow-orb-1 {
  width: 700px;
  height: 700px;
  top: -15%;
  left: -10%;
  background: radial-gradient(circle, hsla(270, 80%, 40%, 0.4) 0%, transparent 70%);
}

.glow-orb-2 {
  width: 500px;
  height: 600px;
  top: 40%;
  right: -5%;
  background: radial-gradient(circle, hsla(285, 90%, 30%, 0.35) 0%, transparent 70%);
  animation-delay: 2s;
}

.glow-orb-3 {
  width: 800px;
  height: 600px;
  bottom: -20%;
  left: 20%;
  background: radial-gradient(circle, hsla(260, 70%, 25%, 0.4) 0%, transparent 60%);
  animation-delay: 1s;
}

@keyframes pulse-glow {

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

  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  opacity: 0;
  transform: translateY(30px);
  animation: fade-in-up 1s ease forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--muted-foreground);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator-inner {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid hsla(0, 0%, 100%, 0.3);
  border-radius: 1rem;
  display: flex;
  justify-content: center;
  padding-top: 0.5rem;
}

.scroll-indicator-dot {
  width: 0.25rem;
  height: 0.5rem;
  background: var(--primary);
  border-radius: 0.25rem;
}

@keyframes bounce {

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

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

@keyframes fade-in-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   STATS SECTION
============================================ */
.stats {
  padding: 5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  padding: 2.5rem;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 4rem;
  }
}

.stat-item {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

.stat-item.visible {
  animation: fade-in-up 0.7s ease forwards;
}

.stat-value {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

/* ============================================
   SECTION HEADERS
============================================ */
.section {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   SERVICES SECTION
============================================ */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

.service-card.visible {
  animation: fade-in-up 0.7s ease forwards;
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: hsla(271, 91%, 65%, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: hsla(271, 91%, 65%, 0.3);
}

.service-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke: var(--primary);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-desc {
  color: var(--muted-foreground);
}

/* ============================================
   PRICING SECTION
============================================ */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pricing-card {
  padding: 2.25rem 2rem;
  position: relative;
}

.pricing-card-featured {
  border-color: hsla(271, 91%, 65%, 0.5);
  box-shadow: 0 24px 60px -24px hsla(271, 91%, 65%, 0.4);
}

.pricing-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  background: hsla(271, 91%, 65%, 0.16);
  color: var(--primary-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-header {
  margin-bottom: 1rem;
}

.pricing-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pricing-subtitle {
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

.pricing-price {
  margin: 1.25rem 0 1.5rem;
}

.pricing-amount {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.pricing-features li::before {
  content: "•";
  margin-right: 0.5rem;
  color: var(--primary);
}

.pricing-note {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ============================================
   TESTIMONIALS SECTION
============================================ */
.testimonials-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
}

.testimonial-card.visible {
  animation: fade-in-up 0.7s ease forwards;
}

.testimonial-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: hsla(271, 91%, 65%, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.testimonial-content {
  color: var(--muted-foreground);
  font-style: italic;
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-top: 1rem;
}

.testimonial-stars svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--primary);
}

/* ============================================
   CATEGORIES SECTION
============================================ */
.categories-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-card {
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.category-card.visible {
  animation: fade-in-up 0.7s ease forwards;
}

.category-card:hover {
  transform: translateY(-4px) scale(1.02);
}

.category-image {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.category-image svg {
  width: 5rem;
  height: 5rem;
  stroke: hsla(271, 91%, 65%, 0.6);
  transition: all 0.3s ease;
}

.category-card:hover .category-image svg {
  stroke: var(--primary);
}

.category-content {
  padding: 1.5rem;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.category-desc {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.category-link {
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.category-card:hover .category-link {
  gap: 0.75rem;
}

.category-link svg {
  width: 1rem;
  height: 1rem;
}

/* ============================================
   CONTACT SECTION
============================================ */
.contact-form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
}

.contact-form-wrapper.visible {
  animation: fade-in-up 0.7s ease forwards;
}

.contact-form {
  padding: 2rem;
}

@media (min-width: 768px) {
  .contact-form {
    padding: 2.5rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

textarea.input-glass {
  resize: none;
  min-height: 150px;
}

.form-submit {
  width: 100%;
  font-size: 1.125rem;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--muted-foreground);
  max-width: 350px;
  margin-top: 1rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--muted-foreground);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: hsla(271, 91%, 65%, 0.2);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--muted-foreground);
}

/* ============================================
   SCROLL ANIMATIONS
============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.website-preview {
  width: 100%;
  height: 200px;
  /* Adjust height as needed */
  overflow: hidden;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px -10px hsla(271, 91%, 65%, 0.2);
}

.website-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Makes image fill container without distortion */
  transition: transform 0.3s ease;
}

.service-card:hover .website-preview img {
  transform: scale(1.05);
  /* Subtle zoom on hover */
}

/* Problem & Solution Section */
.problem-solution {
  padding: 6rem 0;
}

.problem-solution-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.ps-pair {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  position: relative;
}

/* Glass cards */
.ps-card {
  max-width: 700px;
  width: 100%;
  padding: 2rem;
  border-radius: var(--radius);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.problem-card {
  background: var(--muted);
}

.solution-card {
  background: hsla(271, 91%, 65%, 0.1);
  /* accent tint */
  border-color: hsla(271, 91%, 65%, 0.3);
}

.ps-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.ps-text {
  font-size: 1rem;
  color: var(--foreground);
}

/* Downward Arrow */
.ps-arrow {
  width: 2px;
  height: 50px;
  background: var(--primary);
  position: relative;
  margin: 1rem 0;
  animation: bounce 2s ease-in-out infinite;
}

.ps-arrow::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--primary);
}

/* Bounce animation for arrow */
@keyframes bounce {

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

  50% {
    transform: translateY(8px);
  }
}

/* Responsive Desktop Layout */
@media (min-width: 768px) {
  .ps-pair {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .ps-arrow {
    width: 2px;
    height: auto;
    flex-shrink: 0;
    margin: 0 2rem;
    align-self: center;
  }

  .ps-arrow::after {
    transform: rotate(90deg) translateX(-50%);
    bottom: auto;
    top: 50%;
  }
}

/* PROCESS SECTION */
.process-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
}

.process-step {
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -15px hsla(271, 91%, 65%, 0.2);
}

/* Step Badge */
.step-badge {
  width: 3rem;
  height: 3rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* Step Titles & Description */
.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-desc {
  color: var(--muted-foreground);
  font-size: 1rem;
}

/* Horizontal flow with arrows on desktop */
@media (min-width: 768px) {
  .process-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .process-step {
    text-align: left;
    max-width: 220px;
  }

  /* Arrows between steps */
  .process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50px;
    width: 40px;
    height: 2px;
    background: var(--primary);
  }

  .process-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -56px;
    border-left: 8px solid var(--primary);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transform: translateY(-50%);
  }
}

/* Modal styles - small iOS-style rounded rectangle (re-added with reduced height) */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  -webkit-overflow-scrolling: touch;
}

.modal.show {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 420px;
  /* decreased visible height */
  max-height: 64vh;
  overflow-y: auto;
  margin: 1rem;
  padding: 1rem;
  border-radius: 18px;
  z-index: 1001;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(12px);
  transform: translateY(12px) scale(0.98);
  transition: transform 260ms cubic-bezier(.2, .9, .2, 1), opacity 180ms ease;
  opacity: 0;
}

.modal.show .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--foreground);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(2, 6, 23, 0.4);
}

.modal-close:hover {
  transform: translateY(-2px);
}

/* Slightly smaller inputs in modal */
.modal .input-glass {
  font-size: 0.95rem;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

@media (max-width: 480px) {
  .modal-content {
    max-width: 92%;
    padding: 0.85rem;
    border-radius: 14px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
}

/* Form feedback (inline messages) */
.form-feedback {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  min-height: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  transform: translateY(-4px);
}

.form-feedback.show {
  opacity: 1;
  transform: translateY(0);
}

.form-feedback.success {
  color: #7ee787;
  /* soft green */
}

.form-feedback.error {
  color: #ff8b8b;
  /* soft red */
}