/* ==========================================================
   OneWay Technologies - Master Design System & Stylesheet
   Modern SaaS & IT Agency Visual Identity
   ========================================================== */

/* 1. CSS Custom Properties / Design Tokens */
:root {
  /* Color Palette - Light Mode Default */
  --primary-blue: #1d4ed8;
  --primary-blue-hover: #1e40af;
  --primary-blue-light: #3b82f6;
  --primary-blue-subtle: rgba(29, 78, 216, 0.08);
  
  --accent-gold: #d97706;
  --accent-gold-hover: #b45309;
  --accent-gold-light: #fbbf24;
  --accent-gold-subtle: rgba(217, 119, 6, 0.12);
  --accent-gold-border: rgba(217, 119, 6, 0.3);

  --bg-main: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-dark-contrast: #070d1d;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-card: #e2e8f0;
  --border-focus: #2563eb;

  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(226, 232, 240, 0.8);
  --glass-card: rgba(255, 255, 255, 0.9);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 0 25px rgba(29, 78, 216, 0.2);
  --shadow-gold: 0 0 20px rgba(217, 119, 6, 0.25);

  /* Typography */
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout & Sizing */
  --container-max: 1240px;
  --header-height: 80px;
  --header-compact: 68px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. Dark Mode Theme Overrides */
[data-theme="dark"] {
  --bg-main: #070b14;
  --bg-secondary: #0b1224;
  --bg-tertiary: #111b33;
  --bg-card: #0f172a;
  --bg-card-hover: #15223c;
  --bg-dark-contrast: #03060c;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-card: rgba(255, 255, 255, 0.07);
  --border-focus: #3b82f6;

  --glass-bg: rgba(11, 18, 36, 0.85);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-card: rgba(15, 23, 42, 0.75);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 12px -2px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 32px -4px rgba(0, 0, 0, 0.65);
  --shadow-xl: 0 28px 60px -10px rgba(0, 0, 0, 0.85);
  --shadow-glow: 0 0 35px rgba(37, 99, 235, 0.35);
  --shadow-gold: 0 0 25px rgba(245, 158, 11, 0.3);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
}

/* Background Subtle Tech Grid */
.bg-grid {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(29, 78, 216, 0.08) 0%, transparent 60%),
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  background-position: center top, center center, center center;
}

/* 4. Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1.1rem; font-weight: 600; }
h6 { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

p.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--primary-blue-light);
}

strong, b { font-weight: 600; color: var(--text-primary); }

/* Text Gradients */
.text-gradient-blue {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 60%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 5. Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-compact {
  padding: 64px 0;
}

.section-dark {
  background-color: var(--bg-dark-contrast);
  color: #f8fafc;
}

.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 {
  color: #ffffff;
}

.section-dark p {
  color: #cbd5e1;
}

.section-secondary {
  background-color: var(--bg-secondary);
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--primary-blue-subtle);
  color: var(--primary-blue);
  border: 1px solid rgba(29, 78, 216, 0.2);
  margin-bottom: 16px;
}

.section-badge.gold {
  background: var(--accent-gold-subtle);
  color: var(--accent-gold);
  border-color: var(--accent-gold-border);
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
}

/* 6. Buttons & Micro-interactions */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

.btn-primary:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.45);
}

.btn-gold {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-gold:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.btn-outline:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: var(--primary-blue-subtle);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-icon-round {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* 7. Sticky Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  height: var(--header-compact);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-heading);
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  border: 1px solid rgba(217, 119, 6, 0.4);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(251, 191, 36, 0.25),
    transparent
  );
  transform: rotate(30deg);
  transition: transform 0.6s ease;
}

.brand-logo:hover .logo-mark::after {
  transform: rotate(30deg) translate(50%, 50%);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}

.logo-title span {
  color: var(--primary-blue);
}

.logo-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

/* Nav Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
  transition: width var(--transition-normal);
  border-radius: var(--radius-full);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-blue);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Header Right Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--border-subtle);
  transform: rotate(15deg);
}

.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }

[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

/* Mobile Hamburger */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100vh;
  background: var(--bg-card);
  box-shadow: var(--shadow-xl);
  z-index: 1100;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-slow);
  border-left: 1px solid var(--border-subtle);
}

.mobile-drawer.open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1090;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.drawer-link {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
}

.drawer-link.active {
  color: var(--primary-blue);
}

/* 8. Hero Section */
.hero-section {
  position: relative;
  padding: 100px 0 110px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--primary-blue-subtle);
  border: 1px solid rgba(29, 78, 216, 0.2);
  margin-bottom: 24px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.pill-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-title span.highlight-gold {
  color: var(--accent-gold);
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Hero Trust Badges */
.hero-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-icon {
  width: 22px;
  height: 22px;
  color: var(--primary-blue);
  margin-bottom: 6px;
}

.trust-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.trust-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 9. Hero SaaS Abstract Visual */
.hero-visual {
  position: relative;
  z-index: 1;
}

.dashboard-mockup {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

.mockup-header {
  background: var(--bg-secondary);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

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

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: monospace;
}

.mockup-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Stats Row in Visual */
.mockup-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.mockup-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.mockup-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-blue);
}

.mockup-stat-card.gold::before {
  background: var(--accent-gold);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

.stat-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #10b981;
  margin-top: 2px;
}

/* Code Snippet Card in Mockup */
.mockup-code {
  background: var(--bg-dark-contrast);
  color: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: 'Consolas', monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.code-keyword { color: #f43f5e; font-weight: bold; }
.code-func { color: #38bdf8; }
.code-str { color: #a3e635; }
.code-comment { color: #64748b; font-style: italic; }

/* Floating UI Cards */
.floating-card {
  position: absolute;
  background: var(--glass-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
  animation: float-card 6s ease-in-out infinite;
}

.floating-card.card-left {
  left: -28px;
  top: 35%;
  animation-delay: 0s;
}

.floating-card.card-right {
  right: -24px;
  bottom: 18%;
  animation-delay: 3s;
}

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

.float-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-blue-subtle);
  color: var(--primary-blue);
}

.float-icon.gold {
  background: var(--accent-gold-subtle);
  color: var(--accent-gold);
}

.float-content h5 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.float-content p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* 10. Position Banner (Not Just Website Vendors) */
.position-banner {
  background: linear-gradient(135deg, #0b1224 0%, #111b33 100%);
  border-top: 1px solid rgba(217, 119, 6, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 36px 0;
  color: #f8fafc;
}

.banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.banner-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
}

.banner-lead span {
  color: var(--accent-gold);
}

.banner-tags {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.banner-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: #e2e8f0;
}

/* 11. Cards & Grid System */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

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

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-blue-light);
  box-shadow: var(--shadow-lg);
}

/* Core Service Card Highlight */
.card.core-service {
  border: 1px solid rgba(29, 78, 216, 0.35);
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  position: relative;
}

.card.core-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
  border-radius: var(--radius-full);
}

.core-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--accent-gold-subtle);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold-border);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: var(--primary-blue-subtle);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform var(--transition-normal);
}

.card:hover .service-icon {
  transform: scale(1.08);
  background: var(--primary-blue);
  color: #ffffff;
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.service-price {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-price strong {
  font-size: 1.1rem;
  color: var(--text-primary);
}

.service-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-blue);
}

.service-link:hover {
  color: var(--accent-gold);
  transform: translateX(3px);
}

/* 12. Why Choose Us (6 Pillars) */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition-normal);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold-border);
}

.why-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.35;
}

.why-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.why-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* 13. Process Timeline (6 Steps) */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  position: relative;
  margin-top: 40px;
}

.process-step {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
}

.process-step:hover {
  transform: translateY(-6px);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.step-num-badge {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-blue), #3b82f6);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  border: 2px solid var(--accent-gold);
}

.step-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 14. Portfolio Cards & Filter */
.portfolio-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-blue-light);
}

.portfolio-thumb {
  height: 210px;
  background: linear-gradient(135deg, #0b1224 0%, #15223c 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.portfolio-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.portfolio-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.portfolio-industry {
  font-size: 0.82rem;
  color: var(--accent-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.portfolio-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tech-tag {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.portfolio-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.portfolio-link:hover {
  color: var(--accent-gold);
}

/* 15. Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--primary-blue);
  box-shadow: 0 12px 36px rgba(29, 78, 216, 0.18);
  transform: scale(1.02);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pricing-featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-blue), #2563eb);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.pricing-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.pricing-starting {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 6px 0 16px;
  line-height: 1;
}

.pricing-amount span.currency {
  font-size: 1.5rem;
  vertical-align: super;
  color: var(--primary-blue);
}

.pricing-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-features {
  list-style: none;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex-grow: 1;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.feature-check {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 3px;
}

/* 16. Cost Estimator / Quick Calculator */
.calculator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
  margin-top: 56px;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.calc-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calc-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.calc-summary {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.calc-est-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.calc-est-val {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin: 8px 0 16px;
}

/* 17. Accordion FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary-blue-light);
  box-shadow: var(--shadow-sm);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--primary-blue);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-gold);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 26px;
}

.faq-content p {
  padding-bottom: 22px;
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* 18. Testimonials Section */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-gold-border);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: var(--accent-gold);
  margin-bottom: 18px;
}

.testimonial-text {
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 24px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-gold));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

.author-info h5 {
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.author-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.placeholder-pill {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* 19. Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-normal);
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-blue-light);
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 100%);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 3px solid var(--accent-gold);
  box-shadow: var(--shadow-md);
}

.team-name {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.85rem;
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 18px;
}

/* 20. Forms, Contact & Quote */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-label span.req {
  color: #ef4444;
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--text-primary);
  background: var(--bg-main);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

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

.contact-info-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item {
  display: flex;
  gap: 16px;
}

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-blue-subtle);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.info-val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* 21. Global Pre-Footer CTA */
.cta-banner {
  background: linear-gradient(135deg, #070d1d 0%, #111b33 50%, #0a1329 100%);
  color: #ffffff;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(217, 119, 6, 0.3);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: #ffffff;
  margin-bottom: 20px;
}

.cta-title span {
  color: var(--accent-gold);
}

.cta-desc {
  font-size: 1.2rem;
  color: #cbd5e1;
  margin-bottom: 36px;
  line-height: 1.6;
}

/* 22. Multi-column Footer */
.site-footer {
  background-color: var(--bg-dark-contrast);
  color: #94a3b8;
  padding: 80px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin: 18px 0 24px;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

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

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  color: #94a3b8;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--accent-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}

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

.footer-bottom-links a {
  color: #94a3b8;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

/* 23. Client Dashboard Specific Styles */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--header-height));
}

.dashboard-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  padding: 32px 18px;
  display: flex;
  flex-direction: column;
}

.sidebar-user {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 24px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.sidebar-link:hover, .sidebar-link.active {
  background: var(--primary-blue);
  color: #ffffff;
}

.dashboard-main {
  padding: 40px;
  background: var(--bg-main);
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 12px 0 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-info { background: rgba(37, 99, 235, 0.15); color: #3b82f6; border: 1px solid rgba(37, 99, 235, 0.3); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-subtle);
}

.data-table td {
  padding: 16px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

/* 24. Flash Alerts & Notifications */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.alert-info {
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #3b82f6;
}

/* 25. Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .floating-card {
    display: none; /* prevent overflow on tablet */
  }

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

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

  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .header-actions .btn {
    display: none; /* Keep header compact on mobile */
  }

  .cards-grid, .cards-grid-3, .why-grid, .pricing-grid, .team-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr;
  }

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

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

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

  .section {
    padding: 64px 0;
  }

  .form-card {
    padding: 24px;
  }
}

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

  .btn-lg {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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