/* ========================================
   Nexora Landing Page - Styles
   ======================================== */

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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #0f172a;
  --text: #334155;
  --text-light: #64748b;
  --text-dark: #0f172a;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --green: #059669;
  --green-light: #d1fae5;
  --purple: #7c3aed;
  --purple-light: #ede9fe;
  --orange: #ea580c;
  --orange-light: #ffedd5;
  --blue-light: #dbeafe;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.938rem;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

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

.btn--outline {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--gray-300);
}
.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

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

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn--full { width: 100%; }

/* --- 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: border-color var(--transition);
}

.header--scrolled {
  border-bottom-color: var(--gray-200);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}

.header__logo-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.header__nav {
  display: flex;
  gap: 32px;
}

.header__link {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}
.header__link:hover {
  color: var(--primary);
}

.header__cta { }

.header__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.header__menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Hero --- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, var(--primary-light) 100%);
  overflow: hidden;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.813rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.hero__title em {
  font-style: normal;
  color: var(--primary);
}

.hero__text {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
}

.hero__stat-suffix {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.hero__stat-label {
  display: block;
  font-size: 0.813rem;
  color: var(--text-light);
  margin-top: 2px;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-300);
}

/* Hero Visual */
.hero__visual {
  position: relative;
  height: 420px;
}

.hero__card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.938rem;
  font-weight: 600;
  color: var(--text-dark);
  animation: float 6s ease-in-out infinite;
}

.hero__card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.hero__card-icon svg {
  width: 22px;
  height: 22px;
}

.hero__card--1 {
  top: 40px;
  right: 20px;
  animation-delay: 0s;
}
.hero__card--1 .hero__card-icon {
  background: var(--primary-light);
  color: var(--primary);
}

.hero__card--2 {
  top: 160px;
  left: 0;
  animation-delay: 2s;
}
.hero__card--2 .hero__card-icon {
  background: var(--green-light);
  color: var(--green);
}

.hero__card--3 {
  bottom: 60px;
  right: 40px;
  animation-delay: 4s;
}
.hero__card--3 .hero__card-icon {
  background: var(--purple-light);
  color: var(--purple);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* --- Section common --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.813rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-text {
  font-size: 1.063rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Services --- */
.services {
  padding: 100px 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: all 0.3s ease;
}

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

.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__icon--blue { background: var(--blue-light); color: var(--primary); }
.service-card__icon--green { background: var(--green-light); color: var(--green); }
.service-card__icon--purple { background: var(--purple-light); color: var(--purple); }
.service-card__icon--orange { background: var(--orange-light); color: var(--orange); }

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-card__text {
  font-size: 0.938rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-card__features {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card__features li {
  font-size: 0.875rem;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}

.service-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.4;
}

/* --- How it works --- */
.how-it-works {
  padding: 100px 0;
  background: var(--gray-50);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step__connector {
  width: 80px;
  height: 2px;
  background: var(--gray-300);
  margin-top: 28px;
  flex-shrink: 0;
}

.step__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.step__text {
  font-size: 0.938rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- Benefits --- */
.benefits {
  padding: 100px 0;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.benefit {
  text-align: center;
  padding: 32px 24px;
}

.benefit__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.benefit__icon svg {
  width: 26px;
  height: 26px;
}

.benefit__title {
  font-size: 1.063rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.benefit__text {
  font-size: 0.938rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* --- CTA --- */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.cta__content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta__title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta__text {
  font-size: 1.063rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* --- Contact --- */
.contact {
  padding: 100px 0;
  background: var(--gray-50);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.938rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact__info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__info-icon svg {
  width: 22px;
  height: 22px;
}

.contact__info-item h4 {
  font-size: 0.938rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.contact__info-item p {
  font-size: 0.875rem;
  color: var(--text-light);
}

.contact__info-card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.contact__info-card h4 {
  font-size: 0.938rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.contact__info-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* --- Footer --- */
.footer {
  padding: 64px 0 0;
  background: var(--secondary);
  color: rgba(255,255,255,0.7);
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand {
  max-width: 320px;
}

.footer__brand .header__logo {
  color: var(--white);
  margin-bottom: 12px;
}

.footer__brand .header__logo-icon {
  color: var(--primary);
}

.footer__tagline {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer__links {
  display: flex;
  gap: 64px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer__col a:hover {
  color: var(--white);
}

.footer__bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.813rem;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .hero__title { font-size: 2.5rem; }
  .services__grid { gap: 20px; }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  /* Header mobile */
  .header__nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }
  .header__nav.active { display: flex; }
  .header__cta { display: none; }
  .header__menu-btn { display: flex; }
  .header__menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .header__menu-btn.active span:nth-child(2) { opacity: 0; }
  .header__menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  /* Hero mobile */
  .hero { padding: 110px 0 60px; }
  .hero__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero__title { font-size: 2.25rem; }
  .hero__visual {
    height: 200px;
    display: none;
  }
  .hero__actions {
    flex-direction: column;
  }
  .hero__stats {
    gap: 20px;
  }

  /* Services mobile */
  .services { padding: 60px 0; }
  .services__grid { grid-template-columns: 1fr; }

  /* Steps mobile */
  .how-it-works { padding: 60px 0; }
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .step__connector {
    width: 2px;
    height: 32px;
    margin-top: 0;
  }

  /* Benefits mobile */
  .benefits { padding: 60px 0; }
  .benefits__grid { grid-template-columns: 1fr; }

  /* CTA mobile */
  .cta { padding: 60px 0; }
  .cta__title { font-size: 1.75rem; }

  /* Contact mobile */
  .contact { padding: 60px 0; }
  .contact__grid { grid-template-columns: 1fr; gap: 32px; }

  /* Footer mobile */
  .footer__top {
    flex-direction: column;
    gap: 32px;
  }
  .footer__links { gap: 40px; }

  /* Section headers */
  .section-title { font-size: 1.75rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__title { font-size: 1.875rem; }
  .hero__stats { flex-direction: column; gap: 16px; }
  .hero__stat-divider { width: 40px; height: 1px; }
  .footer__links { flex-direction: column; gap: 24px; }
}
