/* Root theme tokens */
:root {
  --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-soft: #f8fafc;
  --color-text: #0f172a;
  --color-muted: #64748b;

  /* Vibrancy update */
  --color-primary: #2563eb;
  /* Electric Blue */
  --color-primary-dark: #1e40af;
  --color-accent: #f97316;
  /* Vibrant Orange */

  --color-border-soft: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

  --radius-lg: 1rem;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark theme overrides */
body.dark {
  --color-bg: #05050a;
  /* Deep Space Black */
  --color-surface: rgba(17, 24, 39, 0.7);
  /* Glassy surface */
  --color-surface-soft: rgba(30, 41, 59, 0.4);
  --color-text: #f1f5f9;
  --color-muted: #94a3b8;

  --color-primary: #3b82f6;
  --color-primary-dark: #60a5fa;
  --color-accent: #fb923c;

  --color-border-soft: rgba(255, 255, 255, 0.05);
  --shadow-soft: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  /* Offset for fixed header */
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  /* Matte Plastic Texture Simulation */
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.05) 0%, transparent 60%);
  background-size: 8px 8px, 8px 8px, 100% 100%;
  color: var(--color-text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark {
  /* Dark Mode Matte Texture - subtle grain feel */
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 15% 50%, rgba(37, 99, 235, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(249, 115, 22, 0.06), transparent 25%);
  background-size: 4px 4px, 4px 4px, 100% 100%, 100% 100%;
}

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

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1);
  }
}

.fade-in-up {
  animation: fadeIn 0.8s var(--transition-smooth) forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

/* Scroll Reveal Utility */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--transition-smooth);
}

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

/* Layout */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header / Navbar */
header {
  position: fixed;
  top: 0;
  width: 100%;
  /* Fixed positioning ensures it stays top even if parents overflow */
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-soft);
  transition: all 0.3s ease;
}

body.dark header {
  background: rgba(5, 5, 10, 0.7);
}

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

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  height: 44px;
  width: auto;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-brand-main {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav-brand-sub {
  font-size: 0.7rem;
  color: var(--color-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  gap: 32px;
  background: color-mix(in srgb, var(--color-surface) 50%, transparent);
  padding: 8px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-soft);
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
  position: relative;
}

.nav-menu a:hover {
  color: var(--color-text);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transform: translateX(-50%);
  transition: width 0.2s ease;
  border-radius: 2px;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.nav-cta {
  background: color-mix(in srgb, var(--color-surface) 50%, transparent);
  color: var(--color-primary);
  padding: 10px 20px;
  font-size: 0.9rem;
  border: 1px solid var(--color-border-soft);
  box-shadow: none;
  border-radius: var(--radius-full);
}

.nav-cta:hover {
  background: var(--color-surface-soft);
  color: var(--color-text);
  border-color: color-mix(in srgb, var(--color-text) 10%, transparent);
  transform: translateY(0);
}

.nav-ghost-btn {
  padding: 10px;
  border-radius: 50%;
  background: transparent;
  color: var(--color-muted);
  border: 1px solid var(--color-border-soft);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
}

.nav-ghost-btn:hover {
  background: var(--color-surface-soft);
  color: var(--color-text);
  border-color: color-mix(in srgb, var(--color-text) 10%, transparent);
}

/* Main Content */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

section {
  padding: 100px 24px;
  position: relative;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: 100px;
  background: radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--color-primary) 12%, transparent) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--color-accent) 10%, transparent) 0%, transparent 40%);
  overflow: hidden;
}

body.dark .hero {
  background: radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(249, 115, 22, 0.1) 0%, transparent 45%);
}

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

.hero-kicker {
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--color-primary);
}

.hero-title {
  font-size: 2.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

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

.hero-tagline {
  font-size: 1.25rem;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 3rem;
}

.btn-primary {
  /* Shared btn-base styles */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  /* Specifics */
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: white;
  padding: 14px 32px;
  font-size: 1rem;
  box-shadow: var(--shadow-soft), 0 0 0 4px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover), 0 0 0 6px color-mix(in srgb, var(--color-primary) 25%, transparent);
}

.btn-secondary {
  /* Shared btn-base styles */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  /* Specifics */
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border-soft);
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: var(--color-surface-soft);
  border-color: color-mix(in srgb, var(--color-border-soft) 150%, transparent);
  transform: translateY(-2px);
}

/* Hero Card (Glassmorphism) */
.hero-logo-card {
  position: relative;
  background: var(--color-surface);
  border-radius: 32px;
  padding: 3rem;
  text-align: center;
  border: 1px solid var(--color-accent);
  box-shadow: 0 10px 30px -5px rgba(249, 115, 22, 0.15), 0 0 0 1px rgba(249, 115, 22, 0.1);
  animation: float 6s ease-in-out infinite;
}

body.dark .hero-logo-card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hero-logo-card img {
  height: 120px;
  margin: 0 auto 2rem;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.hero-logo-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.hero-logo-sub {
  font-size: 0.8rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
  font-weight: 600;
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.hero-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--color-surface-soft);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--color-border-soft);
}

/* Sections */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 3.5rem;
  max-width: 600px;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  padding: 1.5rem;
  border-radius: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--color-primary) 30%, transparent);
}

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  border-radius: 6px;
}

.card-icon {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

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

.icon-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* Theme Toggle Icons */
.nav-ghost-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
}

/* Show/Hide logic for theme icons */
/* CSS removed: incorrect html selectors */

/* In dark mode, show sun (to switch to light) */

/* If logic needs to be reversed depending on preference */
/* Let's try: Default shows Sun? No, usually show the 'destination' or the 'current state'. */
/* Standard: Show Moon when Light (to go dark), Show Sun when Dark (to go light). */
body:not(.dark) .icon-sun {
  display: none;
}

body.dark .icon-moon {
  display: none;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.card-body {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Solutions Section */
.solutions {
  background: var(--color-surface-soft);
}

body.dark .solutions {
  background: color-mix(in srgb, var(--color-bg) 50%, var(--color-surface-soft));
}

/* CTA */
.cta {
  text-align: center;
  padding: 140px 24px;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--color-primary) 8%, transparent) 0%, transparent 60%);
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.cta-text {
  font-size: 1.2rem;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--color-border-soft);
  padding: 40px 24px;
  background: var(--color-surface);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-muted);
}

.footer-links a:hover {
  color: var(--color-primary);
}

/* Media Queries */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-grid {
    gap: 3rem;
  }
}

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

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

  .hero-tagline {
    margin-inline: auto;
  }

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

  .nav-menu {
    display: none;
  }

  .section-title {
    font-size: 2rem;
  }

  .card {
    padding: 2rem;
  }
}

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

  .cta-title {
    font-size: 2rem;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}

/* Partners Section */

/* Partners Section */
#partners {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}


.partner-list {
  list-style: none;
  padding: 0;
  margin: 3rem auto 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  /* Increase width to fit name */
  gap: 1.5rem;
  justify-items: center;
  align-items: center;
}

.partner-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  /* Align start to keep logo and text together */
  gap: 12px;
  opacity: 0.9;
  transition: all 0.3s ease;
  padding: 0 1.5rem;
  /* Horizontal padding */
  border-radius: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  width: 100%;
  height: 64px;
  /* Slightly shorter height for list effect */
  text-decoration: none;
  color: var(--color-text);
}

.partner-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-primary);
  opacity: 1;
}

.partner-icon {
  height: 24px;
  /* Smaller icon for list view */
  width: 24px;
  min-width: 24px;
  min-height: 24px;
  display: block;
  object-fit: contain;
  background: white;
  /* Ensure visibility on dark theme */
  padding: 2px;
  border-radius: 4px;
  border: none;
}

.partner-name {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 
.partner-link:hover .partner-icon {
  filter: grayscale(0%);
} 
*/
/* End of partner styles */

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

body.dark .modal-content {
  background: rgba(17, 24, 39, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.modal-overlay.is-active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  padding: 8px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--color-surface-soft);
  color: var(--color-text);
}

.modal-header {
  margin-bottom: 24px;
  text-align: center;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.modal-subtitle {
  color: var(--color-muted);
  font-size: 0.9rem;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border-soft);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.w-full {
  width: 100%;
}