/* ============================================================
   GlobeStreet Tech — Design System & Shared Styles
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Serif+Display:ital@0;1&display=swap');

/* --- Custom Properties --- */
:root {
  --navy-deep: #0B1120;
  --navy: #0F1B3D;
  --navy-mid: #111D35;
  --blue: #2356F6;
  --blue-bright: #3B82F6;
  --blue-light: #60A5FA;
  --blue-bg: #EEF2FF;
  --cream: #FAFAF8;
  --cream-dark: #F5F3EE;
  --white: #FFFFFF;
  --text-light: #F1F5F9;
  --text-muted: #94A3B8;
  --text-dark: #0F1B3D;
  --text-gray: #64748B;
  --border-dark: rgba(255, 255, 255, 0.06);
  --border-light: #E8E4DC;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 100px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-blue: 0 8px 32px rgba(35, 86, 246, 0.12);
  --shadow-glow: 0 0 24px rgba(59, 130, 246, 0.25);
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.2;
  font-weight: 400;
}

h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.5vw, 42px); }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
h4 { font-size: clamp(18px, 2vw, 22px); }

p {
  font-size: 16px;
  line-height: 1.7;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(11, 17, 32, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  color: var(--text-light);
  white-space: nowrap;
}

.nav-logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--blue-bright);
  border-radius: 50%;
  margin: 0 8px;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6);
  animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(59, 130, 246, 0.6); }
  50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.9); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
}

.nav-links a.active {
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue-bright);
  border-radius: 1px;
}

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

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

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

.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(11, 17, 32, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 32px 24px;
  border-bottom: 1px solid var(--border-dark);
  z-index: 999;
}

.nav-mobile-overlay.open {
  display: block;
}

.nav-mobile-overlay a {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-dark);
  transition: color 0.2s ease;
}

.nav-mobile-overlay a:last-child {
  border-bottom: none;
}

.nav-mobile-overlay a:hover,
.nav-mobile-overlay a.active {
  color: var(--text-light);
}

/* --- Nav Dropdown --- */
.nav-dropdown-wrap {
  position: relative;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 0.5rem 0;
  min-width: 260px;
  z-index: 1000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  margin-top: 0.5rem;
}

.nav-dropdown-wrap:hover .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--cream);
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.nav-dropdown a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-dropdown-trigger {
  cursor: pointer;
}

/* --- Mobile Services Submenu --- */
.nav-mobile-services {
  display: none;
}

.nav-mobile-services a {
  padding-left: 1.5rem;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-dark);
}

.nav-mobile-services a:last-child {
  border-bottom: none;
}

.nav-mobile-services-trigger svg {
  transition: transform 0.2s;
}

.nav-mobile-services-trigger.expanded svg {
  transform: rotate(180deg);
}

/* --- Section Patterns --- */
section {
  position: relative;
}

.section-dark {
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  color: var(--text-light);
  padding: 120px 0 100px;
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--text-light);
}

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

.section-light {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  color: var(--text-dark);
  padding: 100px 0;
}

.section-light h2,
.section-light h3 {
  color: var(--text-dark);
}

.section-light p {
  color: var(--text-gray);
}

.section-dark-accent {
  background: var(--navy);
  color: var(--text-light);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section-dark-accent h2,
.section-dark-accent h3 {
  color: var(--text-light);
}

.section-dark-accent p {
  color: var(--text-muted);
}

.section-cta {
  background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 255, 255, 0.08), transparent 60%);
  pointer-events: none;
}

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

.section-cta p {
  color: rgba(255, 255, 255, 0.85);
}

/* Hero specific */
.hero {
  padding: 160px 0 120px;
  min-height: 540px;
  display: flex;
  align-items: center;
}

/* Grid Texture Overlay */
.grid-texture {
  position: relative;
  overflow: hidden;
}

.grid-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

/* Radial Blue Glow */
.blue-glow {
  position: relative;
}

.blue-glow::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(35, 86, 246, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Dot Grid Texture */
.dot-grid {
  position: relative;
  overflow: hidden;
}

.dot-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(59, 130, 246, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

/* Section content should be above textures */
.section-dark .container,
.section-dark-accent .container,
.section-light .container,
.section-cta .container {
  position: relative;
  z-index: 1;
}

/* --- Eyebrow / Badge --- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.eyebrow-dark {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-light);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.eyebrow-light {
  background: var(--blue-bg);
  color: var(--blue);
  border: 1px solid rgba(35, 86, 246, 0.1);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--blue-bright);
  border-radius: 50%;
}

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

.section-header .eyebrow {
  margin-bottom: 16px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
  transition: all 0.3s ease;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  background: var(--blue-bright);
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-blue);
}

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

/* Checklist inside cards */
.card-checklist {
  list-style: none;
  padding: 0;
  margin-top: 16px;
}

.card-checklist li {
  font-size: 14px;
  color: var(--text-gray);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.card-checklist li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--blue-bright);
  font-weight: 700;
}

.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--blue-bright);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--blue-bg);
  color: var(--blue);
  margin-bottom: 14px;
}

.card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.card p {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  transition: gap 0.2s ease;
}

.card-link:hover {
  gap: 10px;
}

.card-link .arrow {
  transition: transform 0.2s ease;
}

.card-link:hover .arrow {
  transform: translateX(3px);
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Dark Card (for process steps) */
.card-dark {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  transition: all 0.3s ease;
}

.card-dark:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(59, 130, 246, 0.2);
  transform: translateY(-4px);
}

.card-dark .step-number {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 42px;
  color: rgba(59, 130, 246, 0.2);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.card-dark:hover .step-number {
  color: rgba(59, 130, 246, 0.5);
}

.card-dark h3 {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.card-dark p {
  font-size: 15px;
  color: var(--text-muted);
}

/* Process Steps Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Product Card (larger, for data-platform) */
.product-card {
  background: var(--white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.3s ease;
}

.product-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}

.product-card .card-icon {
  font-size: 36px;
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 24px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.product-card .product-tagline {
  font-size: 16px;
  color: var(--blue);
  font-style: italic;
  margin-bottom: 20px;
}

.product-card ul {
  list-style: none;
  padding: 0;
}

.product-card ul li {
  font-size: 15px;
  color: var(--text-gray);
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding-left: 20px;
  position: relative;
}

.product-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  background: var(--blue-bright);
  border-radius: 50%;
}

.product-card ul li:last-child {
  border-bottom: none;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 15px 34px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue-bright);
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.35);
}

.btn-ghost-light {
  background: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}

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

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

.btn-white {
  background: var(--white);
  color: #1E3A8A;
  font-weight: 700;
}

.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Hero Content --- */
.hero-content {
  max-width: 680px;
}

.hero-content h1 {
  margin-bottom: 20px;
}

.hero-content h1 em {
  color: var(--blue-light);
  font-style: italic;
}

.hero-content p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}

/* --- CTA Section Content --- */
.cta-content {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 17px;
  margin-bottom: 32px;
}

.cta-content .btn-group {
  justify-content: center;
}

.cta-note {
  margin-top: 24px;
  font-size: 13px;
  opacity: 0.7;
}

/* --- Demo Container --- */
.demo-container {
  margin-top: 40px;
}

.demo-browser {
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  background: #0a1020;
}

.demo-browser .pf-bar {
  background: #0a1020;
  border-bottom: 1px solid #141e30;
  padding: 0 14px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-browser iframe {
  display: block;
  width: 100%;
  height: 900px;
  border: none;
  border-radius: 0;
}

.demo-disclaimer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-gray);
}

/* --- Integration / Narrative Section --- */
.narrative-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.narrative-block h2 {
  margin-bottom: 24px;
}

.narrative-block p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* --- Contact Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 520px;
  width: 90%;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-gray);
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal h2 {
  font-size: 28px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.modal p {
  color: var(--text-gray);
  margin-bottom: 28px;
  font-size: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-gray);
  opacity: 0.6;
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.form-success h3 {
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-gray);
}

/* --- Footer --- */
.site-footer {
  background: #080D1A;
  color: var(--text-muted);
  padding: 60px 0 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
}

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

.footer-link-group h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-link-group a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer-link-group a:hover {
  color: var(--text-light);
}

.footer-future-wrap {
  position: relative;
  margin-top: 2px;
}

.footer-future-trigger {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  cursor: default;
  transition: color 0.2s ease;
}

.footer-future-trigger::after {
  content: ' \203A';
  font-size: 16px;
  opacity: 0.5;
}

.footer-future-wrap:hover .footer-future-trigger {
  color: var(--text-light);
}

.footer-future-dropdown {
  display: none;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 4px;
  margin-left: 4px;
}

.footer-future-wrap:hover .footer-future-dropdown {
  display: block;
}

.footer-future-dropdown a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 3px 0;
  transition: color 0.2s ease;
  opacity: 0.7;
}

.footer-future-dropdown a:hover {
  color: var(--text-light);
  opacity: 1;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  opacity: 0.6;
}

/* --- Portfolio Rows --- */
.portfolio-rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pf-row {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pf-row:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 6px 32px rgba(59, 130, 246, 0.08);
}

.pf-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.15);
}

.pf-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.pf-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pf-status {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-left: auto;
}

.pf-live {
  background: rgba(40, 180, 100, 0.12);
  color: #34d399;
  border: 1px solid rgba(40, 180, 100, 0.2);
}

.pf-paused {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.pf-inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  min-height: 280px;
}

.pf-left {
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
}

.pf-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.2;
  margin-bottom: 8px;
}

.pf-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--blue-light);
  margin-bottom: 14px;
  line-height: 1.5;
}

.pf-desc {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 18px;
  flex: 1;
}

.pf-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.pf-pill {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 4px;
}

.pf-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.pf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-light);
  transition: gap 0.2s ease, color 0.2s ease;
}

.pf-link:hover {
  gap: 10px;
  color: var(--white);
}

.pf-link .arrow {
  transition: transform 0.2s ease;
}

.pf-link:hover .arrow {
  transform: translateX(3px);
}

/* Browser chrome preview */
.pf-preview {
  position: relative;
  overflow: hidden;
  background: #0a1020;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: #0a1020;
  border-bottom: 1px solid #141e30;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 5px;
  z-index: 2;
}

.pf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.pf-dr { background: #ff5f57; }
.pf-dy { background: #febc2e; }
.pf-dg { background: #28c840; }

.pf-url {
  margin-left: 8px;
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: #3a4a6a;
  background: #060c18;
  padding: 2px 10px;
  border-radius: 6px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-slides {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  bottom: 0;
}

.pf-slides img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.pf-slides img.active {
  opacity: 1;
}

.pf-slide-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 3;
}

.pf-sdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 0.2s ease;
  border: none;
  padding: 0;
}

.pf-sdot.on {
  background: rgba(255, 255, 255, 0.85);
}

@media (max-width: 900px) {
  .pf-inner {
    grid-template-columns: 1fr;
  }

  .pf-preview {
    height: 220px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .pf-left {
    padding: 20px;
  }

  .pf-title {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .pf-meta {
    padding: 8px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .pf-tag {
    font-size: 10px;
  }
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger delays for grid items */
.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .hero-content p {
    font-size: 16px;
  }

  .section-dark,
  .section-light,
  .section-dark-accent {
    padding: 72px 0;
  }

  .section-cta {
    padding: 60px 0;
  }

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

  .process-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
  }

  .demo-browser iframe {
    height: 600px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .modal {
    padding: 32px 24px;
  }

  .product-card {
    padding: 28px 22px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 32px;
  }

  .container {
    padding: 0 16px;
  }

  .demo-browser iframe {
    height: 500px;
  }
}


/* ── Salesforce Page ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

.lead-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.body-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.aside-stat-block {
  background: var(--surface-dark);
  border-radius: 8px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.aside-stat-n {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  font-family: var(--font-heading);
}

.aside-stat-l {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted-dark, #8899aa);
  margin-top: 4px;
}

.fsc-callout {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.fsc-callout h2 {
  margin: 16px 0 20px;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.fsc-callout p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted-light, #aabbcc);
  margin-bottom: 32px;
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.differentiator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.diff-block {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 28px 24px;
}

.diff-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.diff-block h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.diff-block p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted-light, #aabbcc);
}

.cert-bar-section {
  padding: 32px 0;
}

.cert-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-right: 4px;
}

.cert-pill {
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(var(--accent-rgb, 0, 120, 212), 0.1);
  color: var(--accent);
  border: 1px solid rgba(var(--accent-rgb, 0, 120, 212), 0.25);
  border-radius: 100px;
  padding: 4px 14px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

@media (max-width: 600px) {
  .card-grid-4 {
    grid-template-columns: 1fr;
  }
}
