@font-face {
  font-family: 'Psygen';
  src: url('fonts/psygen.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-heading: 'Psygen', sans-serif;
  --font-body: 'Inter', 'Neue Montreal', sans-serif;
  --bg-color: #EBEBEB;
  --card-bg: #FFFFFF;
  --text-main: #1D1D1F;
  --text-muted: #666666;
  --accent: #FF5A00;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-color);
  font-family: var(--font-body);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
}

.container {
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
  padding: 20px;
}

.navbar {
  display: flex;
  justify-content: center;
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-pill {
  background: rgba(255, 255, 255, 0.712);
  border-radius: 30px;
  padding: 12px 24px;
  display: flex;
  gap: 24px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-pill a {
  text-decoration: none;
  font-family: var(--font-body);
  color: var(--text-main);
  font-size: 14px;
}

/* HERO SECTION */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  position: relative;
  min-height: 400px;
}

.hero-content {
  text-align: center;
  max-width: 1200px;
  z-index: 2;
}

.hero-title {
  position: relative;
  font-family: var(--font-heading);
  font-size: 80px;
  line-height: 1.1;
  font-weight: normal;
  margin-bottom: 24px;
  display: inline-block;
  isolation: isolate;
}

.hero-icon {
  position: absolute;
  top: 20%;
  left: -170px;
  transform: translateY(-50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.text-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 16px;
  color: #888;
  margin-bottom: 40px;
  line-height: 1.6;
}

.btn-explore {
  background: var(--card-bg);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-weight: normal;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  font-size: 26px;
  color: var(--text-main);
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s;
}

.btn-explore:hover {
  transform: translateY(-2px);
}

.hero-image {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  z-index: 10;
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  transform: rotate(15deg);
}

/* MEDIUM SCREENS HERO FIX */
@media (max-width: 1280px) {
  .hero-title {
    font-size: 72px;
  }
  .hero-icon {
    width: 180px;
    height: 180px;
    left: -140px;
  }
  .hero-image {
    width: 280px;
    right: 40px;
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 60px;
    padding: 0 40px;
  }
  
  .hero-icon {
    width: 150px;
    height: 150px;
    left: 10px;
    top: -40px;
    opacity: 0.6;
    z-index: -1; /* Move behind text to avoid overlap blocking reading */
  }
  
  .hero-image {
    width: 220px;
    right: -20px;
    opacity: 0.7;
    z-index: -1;
  }

  .hero-subtitle {
     padding: 0 80px;
  }
  
  .hero-subtitle br {
    display: none;
  }
}

@media (max-width: 850px) {
  .hero-title {
     font-size: 52px;
  }
  .hero-subtitle {
    padding: 0 40px;
  }
  .hero-image {
    width: 180px;
    right: -40px;
  }
  .btn-explore {
    font-size: 20px;
    padding: 12px 32px;
  }
}

/* PRODUCTS SECTION */
.products {
  margin-top: 80px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 40px;
  margin-bottom: 24px;
  font-weight: normal;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.product-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.product-card.full-width {
  grid-column: span 2;
}

.product-card.full-width img {
  aspect-ratio: 2/0.8;
}

.btn-see-more {
  display: block;
  width: 100%;
  background: var(--card-bg);
  border: none;
  padding: 16px;
  border-radius: 20px;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: var(--text-main);
  box-sizing: border-box;
}

/* PROCESS SECTION */
.process {
  margin-top: 80px;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 24px;
}

.process-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
}

.process-icon img {
  width: 100%;
  height: 100%;
}

.process-text h3 {
  font-family: var(--font-heading);
  font-weight: normal;
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 8px;
}

.process-text p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* TECH STACK SECTION */
.tech-stack {
  margin-top: 80px;
}

.badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.badge {
  background: var(--card-bg);
  padding: 10px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
}

.badge svg {
  color: #888;
}

.tech-description {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* CONTACT SECTION */
.contact {
  margin-top: 80px;
  margin-bottom: 40px;
}

.contact-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  background: var(--card-bg);
  font-family: var(--font-body);
  font-size: 14px;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
}

.btn-submit {
  background: var(--accent);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
}

.btn-submit:hover {
  opacity: 0.9;
}

/* ABOUT SECTION */
.about {
  margin-top: 80px;
}

.about .text-accent {
  color: var(--accent);
}

.about-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
}

.about-desc strong {
  color: var(--text-main);
  font-weight: 500;
}

.about-block {
  margin-bottom: 60px;
}

.about-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

.about-icon img {
  width: 100%;
  height: 100%;
}

.about-block-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: normal;
  margin: 0 0 16px 0;
}

.about-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  max-width: 400px;
}

.card-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-color);
}

.card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-info h4 {
  font-family: var(--font-heading);
  font-size: 20px;
  margin: 0 0 4px 0;
  font-weight: normal;
}

.card-motto {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0 0 8px 0;
}

.card-age {
  font-size: 11px;
  margin: 0;
  color: var(--accent);
}

.about-stats {
  display: flex;
  gap: 16px;
  margin-top: 80px;
}

.stat-card {
  flex: 1;
  background: var(--card-bg);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 48px;
  margin: 0 0 8px 0;
  font-weight: normal;
  color: var(--accent);
}

.stat-label {
  font-size: 14px;
  color: var(--text-main);
  margin: 0;
}

/* FAQ SECTION */
.faq {
  margin-top: 80px;
  margin-bottom: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.faq-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--card-bg);
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 24px 20px 24px;
}

.faq-answer p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* RESPONSIVENESS */
@media (max-width: 600px) {
  .hero {
    flex-direction: column;
    min-height: 60vh; /* Reduced height as requested */
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    justify-content: center;
    isolation: isolate; /* Crucial to keep z-index: -1 elements visible! */
  }

  .hero-title {
    font-size: 45px;
    padding: 0 16px;
    position: static; /* Let icon position from .hero instead of .hero-title */
  }

  .hero-title br {
    display: none;
  }

  .hero-icon-circle {
    display: block;
  }

  .hero-icon {
    position: absolute;
    top: -30px;
    left: 0;
    transform: none;
    width: 80px;
    height: 80px;
    z-index: -1;
    opacity: 0.9;
  }

  .hero-subtitle {
    padding: 0 20px;
    margin-bottom: 30px;
  }

  .hero-subtitle br {
    display: none;
  }

  .btn-explore {
    font-size: 20px;
    padding: 12px 30px;
  }

  .hero-image {
    position: absolute;
    top: auto;
    bottom: 0;
    right: -30%;
    transform: none;
    width: 200px;
    z-index: 10;
    pointer-events: none;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card.full-width {
    grid-column: span 1;
  }

  .product-card.full-width img {
    aspect-ratio: 1/1;
  }

  .about-stats {
    flex-direction: column;
  }

  .about-block-title {
    font-size: 28px;
  }

  .stat-value {
    font-size: 36px;
  }

  .about-card {
    flex-direction: column;
    text-align: center;
    max-width: 100%;
  }

  .card-avatar {
    margin-bottom: 12px;
  }
}

/* FOOTER SECTION */
.site-footer {
  margin-top: 40px;
  display: block;
  overflow: hidden;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.footer-white-bg {
  background-color: var(--card-bg);
  position: relative;
  overflow: hidden;
  padding-top: 60px;
  padding-bottom: 8vw; /* Reduced to fix the gap above the watermark */
}

.footer-content {
  width: 90%;
  max-width: 90%;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.footer-links {
  display: flex;
  gap: 120px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-column h4 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: normal;
  margin: 0 0 10px 0;
  color: #888;
}

.footer-column a {
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  transition: opacity 0.2s;
  letter-spacing: -0.01em;
}

.footer-column a:hover {
  opacity: 0.7;
}

.footer-watermark {
  font-family: var(--font-heading);
  font-size: 23vw;
  line-height: 0.75;
  color: #e8e8e8;
  white-space: nowrap;
  position: absolute;
  bottom: 0;
  left: 50%;
  --drag-x: 0px;
  --drag-skew: 0deg;
  transform: translateX(calc(-50% + var(--drag-x))) translateY(42%) skewX(var(--drag-skew));
  z-index: 1;
  pointer-events: none;
}

.footer-bottom-bar {
  background-color: var(--text-main);
  height: 0px;
  width: 100%;
  margin-bottom: 0; /* Ensure no bottom gap */
}

@media (max-width: 768px) {
  .footer-links {
    flex-wrap: wrap;
    gap: 40px;
  }
  
  .footer-watermark {
    font-size: 35vw;
    transform: translateX(calc(-50% + var(--drag-x))) translateY(45%) skewX(var(--drag-skew));
  }
  
  .footer-white-bg {
    padding-bottom: 14vw;
  }
}

/* PROJECT DETAIL PAGE */
.project-detail-hero {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  margin-top: 40px;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.project-detail-hero img {
  width: 100%;
  display: block;
}

.project-detail-content {
  max-width: 1000px;
  margin: 40px auto 100px;
  padding: 0 20px;
}

.project-detail-title {
  font-family: var(--font-heading);
  font-size: 64px;
  margin: 0 0 16px 0;
  text-transform: uppercase;
}

.project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.tag-badge {
  background: #000;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.project-description {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 800px;
}

.legal-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-legal {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #000;
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn-legal:hover {
  transform: translateY(-2px);
}

.btn-legal img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

.btn-legal.accent {
  border-left: 4px solid var(--accent);
}

.detailed-legal-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 800px;
}

.detailed-legal-text p {
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .project-detail-title {
    font-size: 40px;
  }
  .legal-buttons {
    flex-direction: column;
  }
}

/* LENIS SCROLL CSS */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* LOADER SECTION */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: var(--accent); /* Solid orange background */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.8, 0, 1, 1); 
}

.loader.exit {
  transform: translate(100%, 100%);
}

.loader-dots {
  display: flex;
  gap: 0;
}

.dot {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.3);
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #ffffff;
}

@media (max-width: 768px) {
  .dot {
    width: 30px;
    height: 30px;
  }
}

/* SCROLL REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* CAREERS SECTION */
.careers {
  margin-top: 80px;
  margin-bottom: 40px;
}

.job-intro {
  margin-bottom: 40px;
}

.job-intro h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: normal;
  margin-top: 0;
  margin-bottom: 12px;
}

.job-intro p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.careers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.career-item {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.career-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.career-item.unavailable .career-header {
  cursor: default;
}

.role-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.role-status {
  font-size: 14px;
  color: var(--accent);
}

.available-status {
  color: var(--accent);
  font-weight: 500;
}

/* Expansion logic */
.career-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
  padding: 0 24px;
  background: #f9f9f9;
}

.career-item.expanded .career-content {
  max-height: 2000px; /* Large enough to allow expansion */
  padding: 24px;
  border-top: 1px solid #eee;
}

.role-perks {
  margin-bottom: 24px;
}

.perks-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.role-perks ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.role-perks ul li {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 4px;
  font-weight: 500;
}

/* Career Form */
.career-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.career-form input,
.career-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #f0f0f0;
  font-family: var(--font-body);
  font-size: 14px;
  box-sizing: border-box;
}

.career-form input:focus,
.career-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.file-input-wrapper {
  position: relative;
  display: inline-block;
  margin: 4px 0;
}

.file-input-wrapper label {
  background: #f0f0f0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: 1px solid #e0e0e0;
  transition: background 0.2s;
}

.file-input-wrapper label:hover {
  background: #e8e8e8;
}

.hidden-input {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

/* RESPONSIVENESS */
@media (max-width: 600px) {
  .career-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* PRODUCTS PAGE STYLES */
.products-page {
  margin-top: 40px;
}

.products-page-title {
  font-family: var(--font-heading);
  font-size: 50px;
  font-weight: normal;
  color: var(--accent);
  margin-bottom: 30px;
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.product-item {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-image-container {
  position: relative;
  width: 100%;
}

.product-image-container img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.btn-try-out {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(40, 40, 40, 0.8);
  color: white;
  border: none;
  border-radius: 30px;
  padding: 10px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s;
  text-decoration: none;
}

.btn-try-out:hover {
  background: rgba(0, 0, 0, 1);
}

.product-item-content {
  padding: 32px 24px;
}

.product-item-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: normal;
  margin: 0 0 16px 0;
}

.product-item-desc {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
}

/* REVIEWS MARQUEE */
.reviews-section {
  margin-top: 80px;
  margin-bottom: 40px;
}

.reviews-title {
  font-size: 16px;
  margin-bottom: 30px;
}

.marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 0;
}

.marquee {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll-left 40s linear infinite;
}

.marquee-2 {
  animation: scroll-right 40s linear infinite;
}

.marquee:hover, .marquee-2:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.review-pill {
  background: var(--card-bg);
  padding: 20px 32px;
  border-radius: 20px;
  white-space: nowrap;
  font-size: 14px;
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

@media (max-width: 600px) {
  .products-page-title {
    font-size: 38px;
  }
  

  .product-image-container img {
    height: 300px;
  }
}

/* POLICY TABLE STYLING */
.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.policy-table th, .policy-table td {
  border: 1px solid #e0e0e0;
  padding: 12px 16px;
  text-align: left;
}

.policy-table th {
  background-color: #f9f9f9;
  font-family: var(--font-heading);
  font-weight: normal;
  text-transform: uppercase;
  font-size: 12px;
  color: #888;
}

.policy-table td {
  color: var(--text-main);
  line-height: 1.5;
}
