/* ===================================
   Social Scale AI - Main Stylesheet
   Enterprise Professional Design
   =================================== */

/* CSS Variables */
:root {
  /* Colors */
  --primary-purple: #6B4CE6;
  --primary-purple-dark: #5438C5;
  --primary-purple-light: #8B72F0;

  --navy-dark: #0F172A;
  --navy: #1E293B;
  --navy-light: #334155;

  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50: #F9FAFB;

  --white: #FFFFFF;
  --black: #000000;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--navy-dark);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: 700;
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-purple);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-purple-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-xl);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.875rem 1.75rem;
  font-size: var(--font-size-base);
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-purple);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-purple-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy-dark);
  border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
  border-color: var(--primary-purple);
  color: var(--primary-purple);
}

.btn-outline {
  background: transparent;
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}

.btn-outline:hover {
  background: var(--primary-purple);
  color: var(--white);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--font-size-lg);
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: all var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo - Ultron-Inspired Angular Tech Aesthetic */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-mark {
  width: 46px;
  height: 46px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-wordmark {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: color var(--transition-base);
}

.logo-tagline {
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--primary-purple);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-top: 2px;
}

/* Hover states */
.logo:hover .logo-wordmark {
  color: var(--primary-purple);
}

.logo:hover .logo-mark svg .mark-outer {
  stroke: var(--primary-purple);
}

.logo:hover .logo-mark svg .mark-core {
  fill: var(--primary-purple);
}

/* Footer logo - light version */
.footer .logo-wordmark {
  color: var(--white);
}

.footer .logo-tagline {
  color: var(--primary-purple-light);
}

.footer .logo-mark svg .mark-outer {
  stroke: var(--white);
}

.footer .logo-mark svg .mark-inner {
  stroke: rgba(255, 255, 255, 0.4);
}

.footer .logo-mark svg .mark-core {
  fill: var(--primary-purple-light);
}

.footer .logo:hover .logo-wordmark {
  color: var(--primary-purple-light);
}

.footer .logo:hover .logo-mark svg .mark-outer {
  stroke: var(--primary-purple-light);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-links a {
  color: var(--gray-600);
  font-weight: 500;
  padding: var(--spacing-sm) 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-purple);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-purple);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--spacing-sm);
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy-dark);
  transition: all var(--transition-base);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  padding: calc(var(--header-height) + var(--spacing-4xl)) 0 var(--spacing-4xl);
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--primary-purple);
  background: linear-gradient(135deg, rgba(107, 76, 230, 0.1) 0%, rgba(107, 76, 230, 0.05) 100%);
  border: 1px solid rgba(107, 76, 230, 0.2);
  border-radius: 50px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--primary-purple);
  margin-bottom: var(--spacing-lg);
}

.hero h1 {
  margin-bottom: var(--spacing-lg);
}

.hero h1 .highlight {
  color: var(--primary-purple);
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  margin-bottom: var(--spacing-xl);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic {
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-50) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-graphic::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(107, 76, 230, 0.1) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Floating elements for hero graphic */
.hero-graphic .float-element {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.hero-graphic .float-element:nth-child(1) {
  top: 15%;
  left: 10%;
  animation: float 3s ease-in-out infinite;
}

.hero-graphic .float-element:nth-child(2) {
  top: 60%;
  right: 10%;
  animation: float 3s ease-in-out infinite 0.5s;
}

.hero-graphic .float-element:nth-child(3) {
  bottom: 15%;
  left: 20%;
  animation: float 3s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-icon.purple { background: rgba(107, 76, 230, 0.1); color: var(--primary-purple); }
.float-icon.green { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.float-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3B82F6; }

/* ===================================
   Sections Common Styles
   =================================== */
.section {
  padding: var(--spacing-4xl) 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--spacing-3xl);
}

.section-header .overline {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--primary-purple);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-sm);
}

.section-header h2 {
  margin-bottom: var(--spacing-md);
}

.section-header p {
  color: var(--gray-600);
  font-size: var(--font-size-lg);
  margin-bottom: 0;
}

.section-alt {
  background: var(--gray-50);
}

/* ===================================
   Services/Features Grid
   =================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--primary-purple);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(107, 76, 230, 0.1) 0%, rgba(107, 76, 230, 0.05) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  color: var(--primary-purple);
}

.feature-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-sm);
}

.feature-card p {
  color: var(--gray-600);
  margin-bottom: 0;
}

/* ===================================
   Stats Section
   =================================== */
.stats-section {
  background: var(--navy-dark);
  padding: var(--spacing-3xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: var(--spacing-sm);
}

.stat-number .accent {
  color: var(--primary-purple-light);
}

.stat-label {
  color: var(--gray-400);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===================================
   CTA Section
   =================================== */
.cta-section {
  padding: var(--spacing-4xl) 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.cta-section p {
  color: var(--gray-400);
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
}

.cta-section .btn-primary {
  background: var(--primary-purple-light);
}

.cta-section .btn-primary:hover {
  background: var(--primary-purple);
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--gray-900);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.footer-brand p {
  color: var(--gray-400);
  font-size: var(--font-size-sm);
}

.footer-column h4 {
  color: var(--white);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-lg);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: var(--spacing-sm);
}

.footer-column a {
  color: var(--gray-400);
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  color: var(--gray-500);
  font-size: var(--font-size-sm);
  margin: 0;
}

.footer-social {
  display: flex;
  gap: var(--spacing-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--primary-purple);
  color: var(--white);
}

/* ===================================
   Page Headers (for inner pages)
   =================================== */
.page-header {
  padding: calc(var(--header-height) + var(--spacing-3xl)) 0 var(--spacing-3xl);
  background: var(--gray-50);
  text-align: center;
}

.page-header h1 {
  margin-bottom: var(--spacing-md);
}

.page-header p {
  color: var(--gray-600);
  font-size: var(--font-size-lg);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================================
   Services Page Specific
   =================================== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  padding: var(--spacing-3xl) 0;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail-content h3 {
  font-size: var(--font-size-3xl);
}

.service-detail-content p {
  color: var(--gray-600);
  margin-bottom: var(--spacing-lg);
}

.service-detail-content ul {
  list-style: none;
  margin-bottom: var(--spacing-xl);
}

.service-detail-content li {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  color: var(--gray-600);
}

.service-detail-content li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--primary-purple);
  margin-top: 2px;
}

.service-image {
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
}

/* ===================================
   About Page Specific
   =================================== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.about-image {
  background: var(--gray-100);
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
  border: 1px solid var(--gray-200);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-xl);
}

.value-card {
  padding: var(--spacing-xl);
}

.value-card h4 {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--primary-purple);
  margin-bottom: var(--spacing-sm);
}

.value-card p {
  color: var(--gray-600);
  margin-bottom: 0;
}

/* ===================================
   Contact Page Specific
   =================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
}

.contact-info h3 {
  margin-bottom: var(--spacing-lg);
}

.contact-info p {
  color: var(--gray-600);
  margin-bottom: var(--spacing-xl);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  background: rgba(107, 76, 230, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-purple);
  flex-shrink: 0;
}

.contact-method h4 {
  font-size: var(--font-size-base);
  margin-bottom: var(--spacing-xs);
}

.contact-method p {
  color: var(--gray-600);
  margin-bottom: 0;
  font-size: var(--font-size-sm);
}

.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
}

/* Tally form embed container */
.tally-embed {
  width: 100%;
  min-height: 450px;
  border: none;
}

/* ===================================
   Contact Form Styles
   =================================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.form-group label {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--navy-dark);
}

.form-group label .required {
  color: var(--primary-purple);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.875rem 1rem;
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy-dark);
  transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(107, 76, 230, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-submit {
  margin-top: var(--spacing-sm);
}

.form-submit .btn {
  width: 100%;
  padding: 1rem;
}

.form-submit .btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Form States */
.form-message {
  padding: var(--spacing-md);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #DC2626;
}

.form-group .error-text {
  font-size: var(--font-size-xs);
  color: #DC2626;
  margin-top: 2px;
}

/* ===================================
   Legal Pages (Privacy, Terms)
   =================================== */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: var(--font-size-xl);
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-md);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: var(--gray-600);
  margin-bottom: var(--spacing-md);
}

.legal-content ul {
  color: var(--gray-600);
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-xl);
}

.legal-content li {
  margin-bottom: var(--spacing-sm);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-graphic {
    max-width: 400px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2.25rem;
    --font-size-4xl: 1.875rem;
    --font-size-3xl: 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .nav .btn {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Utility Classes
   =================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

/* ===================================
   Animations
   =================================== */

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation for grid items */
.features-grid .feature-card,
.stats-grid .stat-item,
.values-grid .value-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.features-grid .feature-card:nth-child(1) { animation-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.3s; }
.features-grid .feature-card:nth-child(4) { animation-delay: 0.4s; }
.features-grid .feature-card:nth-child(5) { animation-delay: 0.5s; }
.features-grid .feature-card:nth-child(6) { animation-delay: 0.6s; }

.stats-grid .stat-item:nth-child(1) { animation-delay: 0.1s; }
.stats-grid .stat-item:nth-child(2) { animation-delay: 0.2s; }
.stats-grid .stat-item:nth-child(3) { animation-delay: 0.3s; }
.stats-grid .stat-item:nth-child(4) { animation-delay: 0.4s; }

.values-grid .value-card:nth-child(1) { animation-delay: 0.1s; }
.values-grid .value-card:nth-child(2) { animation-delay: 0.2s; }
.values-grid .value-card:nth-child(3) { animation-delay: 0.3s; }
.values-grid .value-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero content animation */
.hero-content {
  animation: fadeInUp 0.8s ease;
}

.hero-visual {
  animation: fadeInUp 0.8s ease 0.2s both;
}

/* Button hover glow effect */
.btn-primary:hover {
  box-shadow: 0 0 20px rgba(107, 76, 230, 0.4);
}

/* Link underline animation */
.nav-links a::after,
.footer-column a::after {
  transition: width 0.3s ease;
}

/* Card hover lift */
.feature-card,
.value-card {
  transition: all 0.3s ease;
}

/* Gradient text for highlights */
.highlight {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Smooth page transitions */
html {
  scroll-behavior: smooth;
}

/* Focus states for accessibility */
a:focus,
button:focus,
.btn:focus {
  outline: 2px solid var(--primary-purple);
  outline-offset: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
