/* ============================================
   NEXURAI LANDING PAGE — STYLE.CSS
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  /* Brand Colors */
  --navy:        #0B172A;
  --navy-dark:   #07111F;
  --slate:       #324158;
  --cyan:        #38BDF8;
  --teal:        #0E7490;
  --teal-light:  #0891B2;
  --white:       #FFFFFF;
  --off-white:   #F8FAFC;
  --gray-50:     #F1F5F9;
  --gray-100:    #E2E8F0;
  --gray-200:    #CBD5E1;
  --gray-400:    #94A3B8;
  --gray-500:    #64748B;
  --gray-600:    #475569;
  --gray-700:    #334155;

  /* Typography */
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs:    0.5rem;
  --space-sm:    1rem;
  --space-md:    1.5rem;
  --space-lg:    2.5rem;
  --space-xl:    4rem;
  --space-2xl:   6rem;
  --space-3xl:   8rem;

  /* Layout */
  --container:   1200px;
  --radius:      8px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(11, 23, 42, 0.06), 0 1px 2px rgba(11, 23, 42, 0.04);
  --shadow-md:   0 4px 12px rgba(11, 23, 42, 0.07), 0 1px 4px rgba(11, 23, 42, 0.04);
  --shadow-lg:   0 12px 32px rgba(11, 23, 42, 0.1), 0 4px 8px rgba(11, 23, 42, 0.04);
  --shadow-xl:   0 20px 48px rgba(11, 23, 42, 0.12);

  /* Transitions */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --duration:    0.3s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.btn--primary:hover {
  background: var(--slate);
  border-color: var(--slate);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}

.btn--outline:hover {
  border-color: var(--navy);
  transform: translateY(-1px);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.btn--white:hover {
  background: var(--off-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--outline-white:hover {
  border-color: var(--white);
  transform: translateY(-1px);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--duration) var(--ease);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height var(--duration) var(--ease);
}

.header--scrolled .header__inner {
  height: 60px;
}

.header__logo-img {
  height: 42px;
  width: auto;
  transition: height var(--duration) var(--ease);
}

.header--scrolled .header__logo-img {
  height: 36px;
}

.header__nav-list {
  display: flex;
  gap: var(--space-lg);
}

.header__nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--duration) var(--ease);
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--cyan);
  transition: width var(--duration) var(--ease);
}

.header__nav-link:hover {
  color: var(--navy);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__cta {
  padding: 0.6rem 1.4rem;
  font-size: 0.8125rem;
}

/* Hamburger */
.header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.header__menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.header__menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: calc(72px + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: var(--space-sm);
}

.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: var(--space-md);
}

.hero__subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--gray-600);
  max-width: 520px;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#hero-canvas {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-lg);
}

/* ============================================
   SECTIONS (shared)
   ============================================ */
.section {
  padding: var(--space-3xl) 0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-xl);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: var(--space-xs);
}

.section__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--navy);
}

.section__subtitle {
  margin-top: var(--space-sm);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-600);
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--off-white);
}

.about__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.about__card {
  flex: 0 1 calc(33.333% - var(--space-md));
  min-width: 240px;
}

.about__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--gray-100);
  transition: all var(--duration) var(--ease);
}

.about__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.about__card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(14, 116, 144, 0.08));
  border-radius: var(--radius);
  color: var(--teal);
  margin-bottom: var(--space-sm);
}

.about__card-title {
  font-size: 1rem;
  font-weight: 650;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.about__card-text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--gray-600);
}

/* ============================================
   APPROACH
   ============================================ */
.approach__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
}

.approach__steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: linear-gradient(90deg, var(--gray-200), var(--cyan), var(--gray-200));
  z-index: 0;
}

.approach__step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.approach__step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  margin: 0 auto var(--space-md);
  position: relative;
  box-shadow: 0 0 0 6px var(--white), 0 0 0 8px var(--gray-100);
}

.approach__step:hover .approach__step-num {
  background: var(--teal);
  box-shadow: 0 0 0 6px var(--white), 0 0 0 8px rgba(56, 189, 248, 0.3);
  transition: all var(--duration) var(--ease);
}

.approach__step-title {
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.approach__step-text {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--gray-500);
  max-width: 240px;
  margin: 0 auto;
}

/* ============================================
   NEXAGRI
   ============================================ */
.nexagri {
  background: var(--navy-dark);
  color: var(--white);
}

.nexagri .section__eyebrow {
  color: var(--cyan);
}

.nexagri__logo {
  height: 80px;
  width: auto;
  margin: var(--space-sm) auto var(--space-xs);
}

.nexagri .section__title {
  color: var(--white);
}

.nexagri .section__subtitle {
  color: var(--gray-400);
}

.nexagri__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.nexagri__card {
  flex: 0 1 calc(33.333% - var(--space-md));
  min-width: 240px;
}

.nexagri__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--duration) var(--ease);
}

.nexagri__card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(56, 189, 248, 0.2);
  transform: translateY(-4px);
}

.nexagri__card-bar {
  width: 32px;
  height: 3px;
  background: var(--cyan);
  border-radius: 2px;
  margin-bottom: var(--space-sm);
  transition: width var(--duration) var(--ease);
}

.nexagri__card:hover .nexagri__card-bar {
  width: 48px;
}

.nexagri__card-title {
  font-size: 0.95rem;
  font-weight: 650;
  margin-bottom: var(--space-xs);
  color: var(--off-white);
}

.nexagri__card-text {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--gray-400);
}

/* ============================================
   WHY NEXURAI
   ============================================ */
.why {
  background: var(--off-white);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.why__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  color: var(--teal);
  margin-bottom: var(--space-sm);
  transition: all var(--duration) var(--ease);
}

.why__col:hover .why__icon {
  background: var(--navy);
  color: var(--cyan);
  border-color: var(--navy);
}

.why__col-title {
  font-size: 1rem;
  font-weight: 650;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.why__col-text {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--gray-600);
}

/* ============================================
   CTA
   ============================================ */
.cta {
  padding: var(--space-3xl) 0;
}

.cta__inner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--slate) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__inner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta__title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: var(--space-sm);
  position: relative;
}

.cta__subtitle {
  font-size: 1.1rem;
  color: var(--gray-400);
  margin-bottom: var(--space-lg);
  position: relative;
}

.cta__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--navy-dark);
  color: var(--gray-400);
  padding-top: var(--space-3xl);
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
  height: 86px;
  width: auto;
  margin-bottom: var(--space-sm);
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer__tagline {
  font-size: 0.8125rem;
  line-height: 1.7;
  max-width: 360px;
  color: var(--gray-500);
}

.footer__nav-title {
  font-size: 0.8125rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-200);
  margin-bottom: var(--space-sm);
}

.footer__nav-list li {
  margin-bottom: var(--space-xs);
}

.footer__nav-list a {
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: color var(--duration) var(--ease);
}

.footer__nav-list a:hover {
  color: var(--cyan);
}

.footer__bottom {
  padding: var(--space-md) 0;
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    max-height: 360px;
  }

  #hero-canvas {
    height: 360px;
  }

  .approach__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .approach__steps::before {
    display: none;
  }

  .why__grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --space-3xl: 5rem;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    padding: 80px var(--space-lg) var(--space-lg);
    transition: right var(--duration) var(--ease);
    z-index: 999;
  }

  .header__nav.active {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    gap: var(--space-md);
  }

  .header__nav-link {
    font-size: 1rem;
  }

  .header__cta {
    display: none;
  }

  .header__menu-btn {
    display: flex;
    z-index: 1001;
  }

  .hero {
    min-height: auto;
    padding-top: calc(72px + var(--space-xl));
    padding-bottom: var(--space-xl);
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__visual {
    max-height: 280px;
  }

  #hero-canvas {
    height: 280px;
  }

  .about__card {
    flex: 0 1 100%;
  }

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

  .nexagri__card {
    flex: 0 1 100%;
  }

  .cta__inner {
    padding: var(--space-xl) var(--space-md);
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.7rem;
  }

  .hero__subtitle {
    font-size: 0.95rem;
  }

  .btn {
    padding: 0.7rem 1.4rem;
    font-size: 0.85rem;
  }
}
