/* ============================================================
   PurpleWing — Computer Systems Design
   Design #5: Purple/Violet Creative-Tech
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Primary palette */
  --purple-deep: #5B1A7A;
  --purple-primary: #7B2D8E;
  --purple-mid: #9B59B6;
  --purple-light: #C39BD3;
  --purple-pale: #E8DAEF;

  /* Electric / accent */
  --violet-electric: #6C3CE1;
  --violet-glow: #8B5CF6;
  --pink-accent: #E83E8C;
  --pink-bright: #F062A6;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #F8F6FC;
  --gray-50: #F5F3F9;
  --gray-100: #EDE9F2;
  --gray-200: #D5CFE0;
  --gray-300: #B0A5C0;
  --gray-500: #6B5E7B;
  --gray-700: #3D2F4F;
  --gray-900: #1A0A2E;

  /* Typography */
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --section-pad: 6rem 2rem;
  --container-max: 1200px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(91, 26, 122, 0.08);
  --shadow-md: 0 4px 20px rgba(91, 26, 122, 0.12);
  --shadow-lg: 0 8px 40px rgba(91, 26, 122, 0.16);
  --shadow-glow: 0 0 30px rgba(108, 60, 225, 0.3);

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.3s var(--ease-out);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--purple-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--violet-electric);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--gray-900);
  line-height: 1.2;
  font-weight: 700;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--violet-electric);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(108, 60, 225, 0.35);
}

.btn-primary:hover {
  background: var(--purple-deep);
  color: var(--white);
  box-shadow: 0 6px 25px rgba(91, 26, 122, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--violet-electric);
  border: 2px solid var(--violet-electric);
}

.btn-outline:hover {
  background: var(--violet-electric);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background: var(--purple-pale);
  color: var(--purple-deep);
  transform: translateY(-2px);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--purple-deep);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--violet-electric);
  transition: width var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--violet-electric);
  color: var(--white) !important;
  padding: 0.625rem 1.5rem !important;
  border-radius: var(--radius-sm);
}

.nav-cta:hover {
  background: var(--purple-deep);
  color: var(--white) !important;
}

.nav-cta::after {
  display: none !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--purple-deep);
  border-radius: 3px;
  transition: all var(--transition);
}

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

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

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

/* ============================================================
   HERO SECTION — Oversized typography + diagonal accent
   ============================================================ */
.hero {
  position: relative;
  padding: 10rem 2rem 6rem;
  background: var(--off-white);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* Hexagonal decorative elements */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--violet-glow) 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.15;
  animation: floatHex 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 5%;
  width: 200px;
  height: 200px;
  background: var(--purple-mid);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.1;
  animation: floatHex 6s ease-in-out 2s infinite;
}

@keyframes floatHex {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Diagonal bands */
.hero .diagonal-band {
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(180deg, var(--purple-pale) 0%, var(--off-white) 100%);
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--purple-primary);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  color: var(--violet-electric);
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--purple-pale);
  opacity: 0.5;
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-500);
  max-width: 480px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero visual — overlapping hexagons */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hex-stack {
  position: relative;
  width: 380px;
  height: 380px;
}

.hex-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.hex-layer:nth-child(1) {
  background: linear-gradient(135deg, var(--purple-deep), var(--violet-electric));
  opacity: 0.9;
  transform: scale(1) rotate(0deg);
}

.hex-layer:nth-child(2) {
  background: linear-gradient(135deg, var(--violet-glow), var(--purple-mid));
  opacity: 0.7;
  transform: scale(0.75) rotate(30deg);
}

.hex-layer:nth-child(3) {
  background: linear-gradient(135deg, var(--pink-accent), var(--purple-light));
  opacity: 0.5;
  transform: scale(0.5) rotate(15deg);
}

.hex-layer:nth-child(4) {
  background: var(--purple-pale);
  opacity: 0.35;
  transform: scale(0.3) rotate(45deg);
}

.hex-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
}

.hex-center-text .icon-big {
  font-size: 3.5rem;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(91, 26, 122, 0.3));
}

/* Diagonal accent stripe at bottom of hero */
.hero-stripe {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--violet-electric), var(--pink-accent), var(--purple-mid));
  z-index: 2;
}

/* ============================================================
   ABOUT SECTION — Asymmetric layout
   ============================================================ */
.about {
  padding: var(--section-pad);
  background: var(--white);
  position: relative;
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
  position: relative;
}

/* Asymmetric accent strip */
.about-accent {
  position: relative;
}

.about-accent-inner {
  position: sticky;
  top: 100px;
}

.about-shape {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--purple-pale) 0%, var(--off-white) 60%);
  clip-path: polygon(30% 0%, 100% 0%, 100% 70%, 70% 100%, 0% 100%, 0% 30%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-shape .shape-hex {
  width: 120px;
  height: 120px;
  background: var(--violet-electric);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.8;
  animation: floatHex 7s ease-in-out infinite;
}

.about-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--violet-electric);
  margin-bottom: 1rem;
}

.about h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.about-text {
  font-size: 1.0625rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

/* Hex bullet points */
.about-features {
  list-style: none;
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.about-features li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.5;
}

.about-features .feat-hex {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--purple-pale);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.about-features .feat-hex::after {
  content: '\2713';
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--purple-deep);
}

.about-features strong {
  color: var(--gray-900);
}

/* ============================================================
   SERVICES — Dashboard-style overlapping cards
   ============================================================ */
.services {
  padding: var(--section-pad);
  background: var(--off-white);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(180deg, var(--purple-pale) 0%, transparent 100%);
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.5;
}

.services .section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--violet-electric);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* Dashboard cards — overlapping at different heights */
.services-dashboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: var(--shadow-md);
  transition: all 0.4s var(--ease-out);
  border: 1px solid var(--gray-100);
}

.service-card:nth-child(1) {
  transform: translateY(-20px) translateX(10px);
  z-index: 3;
}

.service-card:nth-child(2) {
  transform: translateY(10px);
  z-index: 2;
  margin-left: -20px;
  margin-right: -20px;
}

.service-card:nth-child(3) {
  transform: translateY(-20px) translateX(-10px);
  z-index: 3;
}

.service-card:nth-child(4) {
  transform: translateY(-30px) translateX(10px);
  z-index: 2;
  margin-top: -20px;
}

.service-card:nth-child(5) {
  transform: translateY(0px);
  z-index: 4;
  margin-top: -20px;
  margin-left: -20px;
  margin-right: -20px;
  box-shadow: var(--shadow-lg);
}

.service-card:nth-child(6) {
  transform: translateY(-30px) translateX(-10px);
  z-index: 2;
  margin-top: -20px;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: var(--shadow-lg);
  z-index: 10 !important;
  border-color: var(--purple-light);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--purple-pale), var(--purple-light));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--purple-deep);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.service-card .card-accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, transparent 50%, var(--purple-pale) 50%);
  border-radius: 0 var(--radius-lg) 0 0;
  opacity: 0.6;
}

/* ============================================================
   INDUSTRIES — Alternating full-width backgrounds + hex icons
   ============================================================ */
.industries {
  padding: var(--section-pad);
  background: var(--white);
  position: relative;
}

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

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.industry-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--off-white);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.industry-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--violet-electric), var(--pink-accent));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.industry-card:hover::before {
  transform: scaleX(1);
}

.industry-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.industry-hex {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--purple-pale), var(--purple-light));
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  transition: all var(--transition);
}

.industry-card:hover .industry-hex {
  background: linear-gradient(135deg, var(--violet-electric), var(--purple-mid));
  color: var(--white);
}

.industry-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.industry-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ============================================================
   PROCESS — Hexagonal timeline nodes
   ============================================================ */
.process {
  padding: var(--section-pad);
  background: var(--purple-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.process::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: var(--purple-primary);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  opacity: 0.2;
}

.process .section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.process .section-label {
  color: var(--purple-light);
}

.process .section-header h2 {
  color: var(--white);
}

.process .section-header p {
  color: var(--purple-light);
}

/* Timeline with hex nodes */
.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: calc(50% - 1px);
  width: 2px;
  height: calc(100% - 60px);
  background: linear-gradient(180deg, var(--purple-light) 0%, var(--purple-mid) 50%, var(--purple-light) 100%);
  opacity: 0.5;
}

.process-step {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 3rem;
  position: relative;
}

.process-step:last-child {
  margin-bottom: 0;
}

.process-step .step-content {
  padding-top: 5px;
}

.process-step:nth-child(odd) .step-content {
  text-align: right;
  grid-column: 1;
  grid-row: 1;
}

.process-step:nth-child(even) .step-content {
  text-align: left;
  grid-column: 3;
  grid-row: 1;
}

.process-step .step-hex {
  grid-column: 2;
  grid-row: 1;
  width: 56px;
  height: 56px;
  background: var(--violet-electric);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 0 20px rgba(108, 60, 225, 0.5);
}

.process-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9375rem;
  color: var(--purple-light);
  line-height: 1.6;
}

/* ============================================================
   CONTACT — Clean form with asymmetric layout
   ============================================================ */
.contact {
  padding: var(--section-pad);
  background: var(--white);
  position: relative;
}

.contact .container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  position: sticky;
  top: 100px;
}

.contact-info .section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--violet-electric);
  margin-bottom: 1rem;
}

.contact-info h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.contact-info > p {
  font-size: 1.0625rem;
  color: var(--gray-500);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail .detail-hex {
  width: 44px;
  height: 44px;
  background: var(--purple-pale);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-detail .detail-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-detail .detail-value {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--gray-900);
}

/* Form */
.contact-form-wrapper {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  border: 1px solid var(--gray-100);
  position: relative;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background: linear-gradient(90deg, var(--violet-electric), var(--pink-accent));
  border-radius: 3px 3px 0 0;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--violet-electric);
  box-shadow: 0 0 0 3px rgba(108, 60, 225, 0.1);
}

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

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: #2D6A4F;
  font-weight: 600;
  font-size: 1.125rem;
}

.form-success.visible {
  display: block;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--violet-electric) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 10%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.cta::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: 15%;
  width: 150px;
  height: 150px;
  background: rgba(255, 255, 255, 0.05);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cta p {
  font-size: 1.125rem;
  color: var(--purple-light);
  max-width: 550px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

.cta .btn-white {
  position: relative;
  z-index: 1;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9375rem;
  color: var(--gray-300);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--violet-electric);
  color: var(--white);
}

.footer-col h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.625rem;
}

.footer-col ul li a {
  font-size: 0.9375rem;
  color: var(--gray-300);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--purple-light);
}

.footer-bottom {
  max-width: var(--container-max);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--gray-300);
}

.footer-bottom a {
  color: var(--purple-light);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ============================================================
   LEGAL PAGES (Privacy & Terms)
   ============================================================ */
.legal-page {
  padding: 8rem 2rem 4rem;
  background: var(--off-white);
}

.legal-page .container {
  max-width: 800px;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.legal-page .legal-meta {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.legal-page .legal-body {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.8;
}

.legal-page .legal-body h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-page .legal-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page .legal-body p {
  margin-bottom: 1.25rem;
}

.legal-page .legal-body ul,
.legal-page .legal-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.legal-page .legal-body li {
  margin-bottom: 0.5rem;
}

.legal-page .legal-body strong {
  color: var(--gray-900);
}

.legal-page .legal-body a {
  color: var(--violet-electric);
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    min-height: 300px;
  }

  .hex-stack {
    width: 280px;
    height: 280px;
  }

  .hero .diagonal-band {
    width: 30%;
  }

  .about .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-shape {
    max-width: 400px;
    aspect-ratio: 1.2;
  }

  .services-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-card:nth-child(odd) {
    transform: translateY(-10px) translateX(5px);
  }

  .service-card:nth-child(even) {
    transform: translateY(10px) translateX(-5px);
    margin-left: -10px;
    margin-right: -10px;
  }

  .service-card:nth-child(n) {
    margin-top: 0;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step {
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
  }

  .process-step:nth-child(odd) .step-content,
  .process-step:nth-child(even) .step-content {
    text-align: left;
    grid-column: 1;
    grid-row: 1;
  }

  .process-step .step-hex {
    grid-column: 2;
    grid-row: 1;
  }

  .contact .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-info {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-pad: 4rem 1.25rem;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: all 0.35s var(--ease-out);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 7rem 1.25rem 4rem;
    min-height: auto;
  }

  .hero .diagonal-band {
    width: 100%;
    height: 30%;
    top: auto;
    bottom: 0;
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.3;
  }

  .hex-stack {
    width: 220px;
    height: 220px;
  }

  .services-dashboard {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card:nth-child(n) {
    transform: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
  }

  .service-card:hover {
    transform: translateY(-4px) scale(1.01) !important;
  }

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

  .process-timeline::before {
    left: 27px;
  }

  .process-step {
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
  }

  .process-step:nth-child(odd) .step-content,
  .process-step:nth-child(even) .step-content {
    text-align: left !important;
    grid-column: 2;
    grid-row: 1;
  }

  .process-step .step-hex {
    grid-column: 1;
    grid-row: 1;
  }

  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.25rem;
  }

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

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

  .about-shape {
    max-width: 100%;
  }
}

/* ============================================================
   ANIMATIONS — Intersection Observer trigger
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

.fade-in {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}
