/* ===========================
   CUSTOM PROPERTIES (DESIGN TOKENS)
   =========================== */
:root {
  /* Colors */
  --white-90: #e6e6e6;
  --white-60: #999999;
  --white-40: #666666;
  --white-20: rgba(255, 255, 255, 0.2);
  --white-10: #1a1a1a;
  --white-8: #141414;
  --white-5: #0d0d0d;
  --white-0: #000000;
  --white-t-90: #ffffff;
  --white-t-40: rgba(255, 255, 255, 0.4);
  --white-t-20: rgba(255, 255, 255, 0.2);
  --white-t-10: rgba(255, 255, 255, 0.1);
  --blue-100: #0077b6;
  --blue-40: #002438;
  --border-gray: #333333;
  --error-color: #c3423f;

  /* Typography */
  --font-family: "Rubik", sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;

  /* Font Sizes */
  --title-0: 48px; /* Main hero title */
  --title-1: 35px; /* Section titles */
  --title-2: 25px; /* Statistics */
  --title-3: 21px; /* Feature titles */
  --title-4: 16px; /* Button/Tab text */
  --body-default: 14px; /* Body text */
  --label-default: 12px; /* Form labels */

  /* Line Heights */
  --line-height-title-0: 60px;
  --line-height-title-4: 24px;
  --line-height-body: 24px;
  --line-height-normal: 18px;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 12px;
  --spacing-lg: 16px;
  --spacing-xl: 24px;
  --spacing-2xl: 32px;
  --spacing-3xl: 48px;
  --spacing-4xl: 60px;
  --spacing-5xl: 120px;

  /* Border Radius */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;

  /* Container Widths */
  --container-width: 960px;
  --section-padding: 120px;
}

/* ===========================
   GLOBAL STYLES
   =========================== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  font-size: var(--body-default);
  line-height: var(--line-height-body);
  color: var(--white-90);
  background-color: var(--white-0);
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
}

p {
  margin: 0;
  line-height: var(--line-height-body);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

input,
textarea {
  font-family: inherit;
  outline: none;
}

/* ===========================
   COMPONENT STYLES
   =========================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: var(--body-default);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--blue-100);
  color: var(--white-90);
  border: none;
}

.btn-primary:hover {
  background-color: #005a8a;
}

.btn-ghost {
  background-color: transparent;
  color: var(--white-60);
}

.btn-ghost:hover {
  color: var(--white-90);
  background-color: var(--white-t-10);
}

.btn-large {
  padding: 8px 12px;
  font-size: var(--title-4);
  line-height: var(--line-height-title-4);
}

/* removed unused .btn-outline */

/* ===========================
   HEADER
   =========================== */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: var(--white-0);
  border-bottom: 1px solid var(--border-gray);
  padding: 16px;
}

.header-content {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
}

.logo img {
  height: 22px;
  width: 79.2px;
}

.button-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero-section {
  position: relative;
  height: 1020px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 180px 0 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 1020px;
  background-image: url("../assets/68b494b4b84099d6d477a44f9322861d6bfe2047.png");
  background-size: 100.28% 100.42%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

.hero-content {
  max-width: var(--container-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  z-index: 2;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
  padding: 0 32px;
}

.hero-title {
  font-size: var(--title-0);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-title-0);
  color: var(--white-90);
  text-align: center;
  width: 100%;
}

.hero-description {
  font-size: var(--title-4);
  line-height: var(--line-height-title-4);
  color: var(--white-60);
  text-align: center;
  width: 100%;
}

.hero-image {
  margin-top: 48px;
  width: 100%;
  max-width: var(--container-width);
  border: 1px solid var(--white-t-20);
  border-bottom: none;
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   FEATURES SECTION
   =========================== */
.features-section {
  background-color: var(--white-0);
  padding: 0 12px;
}

.features-container {
  background-color: var(--white-5);
  border: 1px solid var(--border-gray);
  border-radius: var(--border-radius-lg);
  padding: var(--section-padding) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.features-rows-wrapper {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
}

.features-row {
  max-width: var(--container-width);
  display: flex;
  align-items: stretch;
  width: 100%;
  overflow: visible;
}

.feature-text {
  padding: var(--spacing-4xl);
  display: flex;
  flex-direction: column;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feature-title {
  font-size: var(--title-3);
  font-weight: var(--font-weight-medium);
  color: var(--white-90);
  line-height: 25px;
}

.feature-description {
  font-size: var(--title-4);
  line-height: var(--line-height-title-4);
  color: var(--white-60);
}

.feature-stats {
  flex: 1;
  background-color: var(--blue-100);
  padding: var(--spacing-4xl);
  height: auto;
  display: flex;
  flex-direction: column;
}

.stats-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 36px;
  font-weight: var(--font-weight-regular);
  color: var(--white-90);
  line-height: 43px;
}

.stat-description {
  font-size: var(--title-4);
  line-height: var(--line-height-title-4);
  color: var(--white-90);
}

/* Feature Visual Section */
.feature-visual {
  background-color: var(--white-10);
  position: relative;
  overflow: visible;
}

.feature-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.feature-single-image {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: auto;
}

/* ===========================
   TESTIMONIALS SECTION
   =========================== */
.testimonials-section {
  position: relative;
  padding: var(--section-padding) 0;

  overflow: hidden;
}

.testimonials-bg {
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background-image: url("../assets/68b494b4b84099d6d477a44f9322861d6bfe2047.png");
  background-size: 100.28% 100.42%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.testimonials-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
}

.testimonials-carousel {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.testimonials-viewport {
  overflow: hidden;
  width: 100%;
}

.testimonials-scroll {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 32px;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonials-scroll::-webkit-scrollbar {
  display: none;
}

.spacer {
  flex: 0 0 220px;
  height: 100%;
}

.testimonial-card {
  flex: 0 0 420px;
  background-color: var(--white-5);
  border: 1px solid var(--border-gray);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-4xl) 48px;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: var(--spacing-4xl);
}

.testimonial-nav-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.testimonial-nav {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white-5);
  border: 1px solid var(--border-gray);
  color: var(--white-90);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
}

.testimonial-nav:hover {
  background: var(--white-10);
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  height: 100%;
}

.testimonial-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-quote {
  font-size: var(--title-3);
  font-weight: var(--font-weight-medium);
  color: var(--white-90);
  line-height: 25px;
}

.testimonial-text {
  font-size: var(--title-4);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-title-4);
  color: var(--white-60);
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.author-name {
  font-size: var(--title-4);
  font-weight: var(--font-weight-medium);
  color: var(--white-90);
  line-height: var(--line-height-normal);
}

.author-position {
  font-size: var(--body-default);
  font-weight: var(--font-weight-medium);
  color: var(--white-40);
  line-height: var(--line-height-normal);
}

.pagination {
  width: 80px;
  height: 8px;
}

.pagination img {
  width: 100%;
  height: 100%;
}

/* ===========================
   ROLE FEATURES SECTION
   =========================== */
.role-features-section {
  padding: 0 12px;
  background-color: var(--white-0);
}

.role-features-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--white-5);
  border: 1px solid var(--border-gray);
  border-radius: var(--border-radius-lg);
  padding: var(--section-padding) 0;
}

.role-features-content {
  max-width: var(--container-width);
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.section-header {
  display: flex;
  flex-direction: column;
  width: var(--container-width);
  gap: 32px;
  text-align: left;
}

.section-title {
  font-size: 35px;
  font-weight: var(--font-weight-regular);
  color: var(--white-90);
  line-height: 41px;
}

/* Features Component */
.features-component {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4xl);
}

.feature-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-gray);
}

.tab-item {
  flex: 1;
  padding: 0 24px 16px;
  position: relative;
  cursor: pointer;
  text-align: center;
}

.tab-item:hover span {
  color: var(--white-90);
}

.tab-item.active {
  border-bottom: 3px solid var(--blue-100);
}

.tab-item span {
  font-size: var(--title-4);
  line-height: var(--line-height-title-4);
  color: var(--white-40);
}

.tab-item.active span {
  color: var(--white-90);
}

.tab-content {
  display: flex;
  gap: var(--spacing-4xl);
  height: 520px;
}

/* Micro animations for tab switches */
@keyframes tabFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.tab-anim {
  animation: tabFadeUp 320ms ease-out both;
}

.features-grid {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 450px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  background-color: var(--blue-40);
  padding: 10px;
  border-radius: var(--border-radius-sm);
  flex-shrink: 0;
}

.feature-icon img {
  width: 24px;
  height: 24px;
}

.feature-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-name {
  font-size: 21px;
  font-weight: var(--font-weight-medium);
  color: var(--white-90);
  line-height: 25px;
}

.feature-desc {
  font-size: var(--title-4);
  line-height: var(--line-height-title-4);
  color: var(--white-60);
}

.feature-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-gray);
}

/* Feature Mockup */
.feature-mockup {
  flex: 1;
  background-color: var(--white-0);
  border-radius: var(--border-radius-lg);
  height: 520px;
  overflow: hidden;
  position: relative;
}

.mockup-content {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ===========================
   MORE FEATURES SECTION
   =========================== */
.more-features-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  position: relative;
  padding: 120px 0;
  background-color: var(--white-0);
  overflow: hidden;
  gap: 240px;
}

.more-features-bg {
  position: absolute;
  top: 1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  background-image: url("../assets/68b494b4b84099d6d477a44f9322861d6bfe2047.png");
  background-size: 100.28% 100.42%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.more-features-container {
  position: relative;
  align-items: center;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 120px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.feature-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.feature-cards-grid {
  display: flex;
  gap: 32px;
  overflow-x: hidden;
  padding: 0 32px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.feature-cards-track {
  display: flex;
  gap: 32px;
  width: max-content;
}

/* CSS Marquee for feature cards */
@keyframes featureMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-1 * var(--seg, 1200px)), 0, 0);
  }
}

.feature-cards-track.is-marquee {
  will-change: transform;
  animation: featureMarquee var(--dur, 40s) linear infinite;
}

.feature-cards-grid::-webkit-scrollbar {
  display: none;
}

.feature-card {
  flex: 0 0 260px;
  background-color: var(--white-8);
  border: 1px solid var(--border-gray);
  border-radius: var(--border-radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.card-icon {
  background-color: var(--blue-40);
  padding: 10px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  width: 24px;
  height: 24px;
}

.card-text {
  font-size: var(--title-4);
  line-height: var(--line-height-title-4);
  color: var(--white-60);
  text-align: center;
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact-container {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
}

.contact-content {
  background-color: var(--white-5);
  border: 1px solid var(--border-gray);
  border-radius: var(--border-radius-lg);
  display: flex;
  overflow: hidden;
}

.contact-form-section {
  flex: 1;
  padding: var(--spacing-4xl);
}

.form-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4xl);
}

.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-title {
  font-size: var(--title-3);
  font-weight: var(--font-weight-medium);
  color: var(--white-90);
  line-height: 25px;
}

.contact-description {
  font-size: var(--title-4);
  line-height: var(--line-height-title-4);
  color: var(--white-60);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group label {
  font-size: var(--label-default);
  color: var(--white-40);
  line-height: var(--line-height-normal);
  padding: 2px 0;
}

.form-group input,
.form-group textarea {
  padding: 8px 12px;
  background-color: transparent;
  border: 1px solid var(--white-t-10);
  border-radius: var(--border-radius-sm);
  color: var(--white-90);
  font-size: var(--body-default);
  line-height: var(--line-height-normal);
}

.form-group input:focus,
.form-group textarea:focus {
  border: 1px solid var(--blue-100);
  outline: none;
  transition: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--white-40);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.contact-image-section {
  flex: 1;
  background-color: var(--blue-100);
  position: relative;
  overflow: hidden;
}

.contact-image-section img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background-color: var(--white-0);
  padding: var(--spacing-4xl) 0;
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 24px;
}

.footer-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo img {
  height: 22px;
  width: 79.2px;
}

.footer-info p {
  font-size: var(--body-default);
  color: var(--white-40);
  line-height: var(--line-height-normal);
  margin-bottom: 16px;
}

.footer-info p:last-child {
  margin-bottom: 0;
}

.footer-right {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.footer-copyright {
  font-size: var(--body-default);
  color: var(--white-40);
  line-height: var(--line-height-normal);
  text-align: right;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 1200px) {
  :root {
    --container-width: 90%;
  }

  .hero-bg,
  .testimonials-bg,
  .more-features-bg,
  .contact-bg {
    width: 100vw;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
    --spacing-4xl: 40px;
    --title-0: 36px;
    --line-height-title-0: 44px;
    --title-1: 28px;
  }

  .header-content {
    padding: 0 16px;
  }

  .hero-content {
    padding: 0 16px;
  }

  .hero-text {
    padding: 0 16px;
  }

  .features-row {
    flex-direction: column;
  }

  .feature-text,
  .feature-stats,
  .feature-visual {
    flex: none;
    width: 100%;
  }

  .testimonials-scroll {
    padding: 0 16px;
  }

  .testimonial-card {
    flex: 0 0 320px;
    padding: 32px 24px;
  }

  .feature-cards-grid {
    padding: 0 16px;
  }

  .feature-card {
    flex: 0 0 240px;
  }

  .contact-content {
    flex-direction: column;
  }

  .contact-image {
    position: static;
    width: 100%;
    height: 300px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    padding: 0 16px;
  }

  .footer-right {
    align-self: stretch;
    justify-content: flex-start;
  }

  .footer-copyright {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
    line-height: 36px;
  }

  .testimonial-card {
    flex: 0 0 280px;
    padding: 24px 20px;
  }

  .feature-card {
    flex: 0 0 220px;
    padding: 24px 20px;
  }

  .tab-content {
    flex-direction: column;
    height: auto;
  }

  .feature-mockup {
    height: 300px;
  }
}
