@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;700;800&display=swap');

:root {
  /* Colors - Premium Bespoke Theme (Electric Violet & Deep Black) */
  --bg-main: #ffffff;
  --bg-light: #fafafa;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-dark: #0a0a0a;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  --text-inverse-muted: #94a3b8;

  --accent-primary: #7c3aed;
  /* Electric Violet */
  --accent-primary-hover: #6d28d9;
  --accent-secondary: #f43f5e;
  /* Vibrant Rose for gradients */
  --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);

  --border-color: #e2e8f0;
  --border-dark: #1e293b;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Spacing & Layout */
  --max-width: 1200px;
  --nav-height: 80px;

  /* Shadows & Animation */
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

/* Massive headers for homepage */
h1 {
  font-size: clamp(3rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.01em;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Utilities --- */
.text-center {
  text-align: center;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section-dark {
  background-color: var(--bg-dark);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--text-inverse);
}

.section-dark p {
  color: var(--text-inverse-muted);
}

.section-title {
  margin-bottom: 4rem;
}

.section-subtitle {
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: inline-block;
}

.section-dark .section-subtitle {
  color: #a78bfa;
  /* Lighter violet for dark bg */
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
}

.btn-primary:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(124, 58, 237, 0.3);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--text-main);
  background: var(--text-main);
  color: var(--bg-main);
}

.section-dark .btn-outline {
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.section-dark .btn-outline:hover {
  background: white;
  color: var(--bg-dark);
}

/* --- Navbar (Glassy Pill layout) --- */
.navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: var(--max-width);
  height: var(--nav-height);
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
  top: 1rem;
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.95);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 1.5rem 0 2rem;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Dropdown */
.dropdown {
  position: relative;
  /* Add padding to create a safe hover zone between toggler and menu */
  padding-bottom: 1rem;
  margin-bottom: -1rem;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.dropdown-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  fill: currentColor;
}

.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-width: 260px;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-xl);
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.dropdown-item:hover {
  color: var(--accent-primary);
  background: var(--bg-light);
  transform: translateX(5px);
}

/* Mobile Menu Button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-main);
  margin: 5px 0;
  transition: var(--transition-smooth);
  border-radius: 2px;
}

/* --- Layouts & Grids --- */
/* Replacing identical specific columns with responsive CSS Grid masonry or asymmetrical layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* Feature Cards - Minimalist */
.feature-card {
  padding: 3rem 2.5rem;
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.feature-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--accent-primary);
  transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--accent-gradient);
  color: white;
  transform: scale(1.1);
}

/* Interactive Vertical Timeline Process (Replaces 8-step wrapping list reference) */
.vertical-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.vertical-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border-color);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: calc(50% - 3rem);
  padding: 2.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-content {
  background: var(--bg-main);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--bg-main);
  border: 4px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent-primary);
  box-shadow: 0 0 0 8px rgba(124, 58, 237, 0.1);
  transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-primary);
  color: white;
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 0 12px rgba(124, 58, 237, 0.2);
}

/* Inverse styling for dark sections */
.section-dark .feature-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.section-dark .feature-icon-wrapper {
  background: rgba(255, 255, 255, 0.1);
}

/* --- Footer (Deep Black, Clean Structure) --- */
.footer {
  background: var(--bg-dark);
  padding: 6rem 0 3rem;
  color: var(--text-inverse);
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer .logo {
  color: white;
}

.footer-title {
  color: white;
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

.footer p {
  color: var(--text-inverse-muted);
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-inverse-muted);
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--accent-primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.9rem;
  color: var(--text-inverse-muted);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

/* Form Elements */
.input-field {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-light);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.input-field:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
  background: var(--bg-main);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
  .vertical-timeline::before {
    left: 40px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    align-items: flex-end;
  }

  .timeline-content {
    width: calc(100% - 100px);
  }

  .timeline-dot {
    left: 40px;
  }
}

@media (max-width: 992px) {
  .nav-action-btns {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-main);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.5rem;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 1rem 0 0;
    display: none;
    min-width: 100%;
    text-align: center;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .grid-2>div:nth-child(2) {
    order: -1;
    /* Stack images on top on mobile */
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .section {
    padding: 5rem 0;
  }

  .navbar {
    width: 100%;
    border-radius: 0;
    top: 0;
    border: none;
    border-bottom: 1px solid var(--border-color);
  }
}