/* ============================================
   KB Web Solutions — Design System
   ============================================ */

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

:root {
  --bg: #0a0a0f;
  --bg-alt: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --surface: #1e1e2a;
  --border: #2a2a3a;
  --border-light: #353548;
  --text: #e8e8ed;
  --text-muted: #9898a8;
  --text-dim: #6a6a7a;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --accent-glow-strong: rgba(59, 130, 246, 0.3);
  --white: #ffffff;
  --green: #10b981;
  --purple: #8b5cf6;
  --amber: #f59e0b;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4);
}

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

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

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

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.nav--scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 1001;
}

.nav__logo-kb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav__logo-text {
  color: var(--text);
}

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

.nav__link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--text);
}

.nav__link--active {
  background: var(--surface);
}

.nav__cta-btn {
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  margin-left: 8px;
}

.nav__cta-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Mobile Nav Toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__toggle--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle--active span:nth-child(2) {
  opacity: 0;
}
.nav__toggle--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav__menu--open {
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    font-size: 1.25rem;
    padding: 12px 24px;
  }

  .nav__cta-btn {
    margin-left: 0;
    margin-top: 8px;
    padding: 12px 32px;
    font-size: 1rem;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--accent-light);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-1px);
}

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

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-glow);
}

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

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

.btn--large {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-light);
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero__stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.hero__stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Visual (Browser mockup) */
.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__visual-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: heroFloat 6s ease-in-out infinite;
}

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

.hero__visual-browser {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.hero__visual-browser span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-light);
}

.hero__visual-browser span:first-child { background: #ef4444; }
.hero__visual-browser span:nth-child(2) { background: #f59e0b; }
.hero__visual-browser span:nth-child(3) { background: #10b981; }

.hero__visual-content {
  padding: 28px 24px;
}

.hero__visual-line {
  height: 10px;
  border-radius: 5px;
  background: var(--surface);
  margin-bottom: 12px;
}

.hero__visual-line--wide { width: 80%; }
.hero__visual-line--medium { width: 60%; }
.hero__visual-line--short { width: 35%; margin-bottom: 24px; }

.hero__visual-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero__visual-block {
  height: 80px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Scroll Indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero__scroll-indicator span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
}

.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); }
}

@media (max-width: 968px) {
  .hero__container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .hero__visual-card {
    max-width: 400px;
  }

  .hero__scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero__stat-divider {
    width: 40px;
    height: 1px;
  }
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-light);
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   Services / What We Bring
   ============================================ */
.services {
  padding: 120px 0;
  background: var(--bg-alt);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
}

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

.service-card {
  display: block;
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

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

.service-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

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

.service-card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--accent-light);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.service-card__text {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 968px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; }
  .services { padding: 80px 0; }
}

/* ============================================
   Process Section
   ============================================ */
.process {
  padding: 120px 0;
  background: var(--bg);
  overflow: hidden;
}

.process__timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.process__connector {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  transform: translateX(-50%);
  z-index: 1;
  display: none; /* hidden on mobile */
}

.process__connector-line {
  stroke: var(--border);
}

@media (min-width: 769px) {
  .process__connector { display: block; }
}

.process__step {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
}

.process__step:last-child {
  margin-bottom: 0;
}

.process__step-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  grid-column: 2;
}

.process__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-light);
}

.process__step-content {
  padding: 0 40px;
  grid-column: 1;
  text-align: right;
}

.process__step-visual {
  padding: 0 40px;
  grid-column: 3;
}

.process__step--reverse .process__step-content {
  grid-column: 3;
  text-align: left;
  order: 3;
}

.process__step--reverse .process__step-visual {
  grid-column: 1;
  order: 1;
}

.process__step--reverse .process__step-marker {
  order: 2;
}

.process__step-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.process__step-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.process__svg {
  width: 100%;
  max-width: 400px;
  height: auto;
  opacity: 0;
}

/* SVG element initial states for animation */
.plan-grid, .plan-node, .plan-node-center, .plan-connection, .plan-box, .plan-text-line {
  opacity: 0;
}

.design-frame, .design-element, .design-detail, .design-btn, .design-img {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.build-block, .build-block-main, .build-detail, .build-connector, .build-arrow {
  opacity: 0;
}

.scale-line, .scale-curve, .scale-circle, .scale-arrow, .scale-dot {
  opacity: 0;
}

@media (max-width: 768px) {
  .process__step {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
  }

  .process__step-marker { order: 1; }
  .process__step-content {
    order: 2;
    text-align: center !important;
    padding: 0;
  }
  .process__step-visual {
    order: 3;
    padding: 0;
    display: flex;
    justify-content: center;
  }

  .process__step--reverse .process__step-content,
  .process__step--reverse .process__step-visual {
    order: unset;
  }

  .process__step--reverse .process__step-content { order: 2; }
  .process__step--reverse .process__step-visual { order: 3; }

  .process__svg {
    max-width: 300px;
  }
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
  padding: 100px 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-glow-strong) 0%, transparent 60%);
  opacity: 0.4;
  pointer-events: none;
}

.cta__content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta__title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta__text {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Page Hero (Portfolio / Contact)
   ============================================ */
.page-hero {
  padding: 160px 0 80px;
  background: var(--bg);
  text-align: center;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.page-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================
   Portfolio Showcase
   ============================================ */
.portfolio-showcase {
  padding: 80px 0 120px;
  background: var(--bg);
}

.showcase__header {
  text-align: center;
  margin-bottom: 48px;
}

.showcase__title {
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 8px;
}

.showcase__text {
  color: var(--text-muted);
  font-size: 1rem;
}

.showcase__embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
  margin-bottom: 32px;
}

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

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

.showcase__browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.showcase__browser-dots span:nth-child(1) { background: #ef4444; }
.showcase__browser-dots span:nth-child(2) { background: #f59e0b; }
.showcase__browser-dots span:nth-child(3) { background: #10b981; }

.showcase__browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-card);
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.showcase__browser-url svg {
  flex-shrink: 0;
}

.showcase__iframe-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}

.showcase__iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.showcase__details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.showcase__detail h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 6px;
  font-weight: 600;
}

.showcase__detail p {
  color: var(--text);
  font-weight: 500;
}

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

@media (max-width: 480px) {
  .showcase__details {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
  padding: 48px 0 120px;
  background: var(--bg);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

/* Form */
.contact__form-wrapper {
  position: relative;
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-optional {
  font-weight: 400;
  color: var(--text-dim);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input:user-invalid {
  border-color: #ef4444;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236a6a7a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

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

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

.form-error {
  display: none;
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 4px;
}

.form-group--error .form-input {
  border-color: #ef4444;
}

.form-group--error .form-error {
  display: block;
}

.form-submit-error {
  font-size: 0.85rem;
  color: #ef4444;
  margin-top: 12px;
  text-align: center;
}

/* Success state */
.contact__success {
  display: none;
  text-align: center;
  padding: 60px 24px;
  color: var(--green);
}

.contact__success h3 {
  font-size: 1.5rem;
  color: var(--white);
  margin: 20px 0 8px;
}

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

.contact__form-wrapper--success .contact__form { display: none; }
.contact__form-wrapper--success .contact__success { display: block; }

/* Contact Info */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__info-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.contact__info-card:hover {
  border-color: var(--border-light);
}

.contact__info-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  flex-shrink: 0;
}

.contact__info-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 2px;
}

.contact__info-card p,
.contact__info-card a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.contact__info-card a:hover {
  color: var(--accent-light);
}

.contact__faq {
  margin-top: 16px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.contact__faq-title {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.contact__faq-item {
  margin-bottom: 16px;
}

.contact__faq-item:last-child {
  margin-bottom: 0;
}

.contact__faq-item h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.contact__faq-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact__form {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 64px 0 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer .container {
  max-width: 1600px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer__heading {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.footer__links ul li {
  margin-bottom: 10px;
}

.footer__links ul li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer__links ul li a:hover {
  color: var(--accent-light);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer__bottom-links {
  display: flex;
  gap: 24px;
}

.footer__bottom-links a {
  color: var(--text-dim);
  transition: var(--transition);
}

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

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

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

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

/* ============================================
   Services Page
   ============================================ */
.services-page {
  padding: 80px 0 40px;
  background: var(--bg);
}

.sp-service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 100px;
}

.sp-service:last-child {
  border-bottom: none;
}

.sp-service--alt {
  background: transparent;
}

.sp-service__content {
  max-width: none;
}

.sp-service__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-service__visual svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}


.sp-service__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  color: var(--accent-light);
}

.sp-service__icon svg {
  width: 30px;
  height: 30px;
}

.sp-service__icon--purple {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.2);
  color: #a78bfa;
}

.sp-service__icon--green {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.sp-service__icon--amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.sp-service__title {
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 16px;
}

.sp-service__text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}

.sp-service__list {
  list-style: none;
  margin-bottom: 32px;
  padding: 0;
}

.sp-service__list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.sp-service__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.sp-service--alt .sp-service__list li::before {
  background: var(--accent-light);
}

/* Remove old margin logic */

@media (max-width: 968px) {
  .sp-service {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 56px 0;
  }

  .sp-service__visual {
    order: -1;
  }

  .sp-service__visual svg {
    max-width: 340px;
  }
}

/* ============================================
   Legal Pages (Privacy / Terms)
   ============================================ */
.legal {
  padding: 48px 0 120px;
  background: var(--bg);
}

.legal__content {
  max-width: 720px;
  margin: 0 auto;
}

.legal__content h2 {
  font-size: 1.35rem;
  color: var(--white);
  margin: 40px 0 12px;
}

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

.legal__content h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin: 24px 0 8px;
}

.legal__content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal__content ul {
  padding-left: 24px;
  margin-bottom: 12px;
  list-style: disc;
}

.legal__content ul li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 4px;
}

.legal__content a {
  color: var(--accent-light);
  transition: var(--transition);
}

.legal__content a:hover {
  text-decoration: underline;
}

/* ============================================
   Scroll Reveal Animations (CSS fallback)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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