/* ========================================
   IteraForms Landing — Styles
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #3498DB;
  --primary-light: rgba(33, 150, 243, 0.1);
  --primary-dark: #2980B9;

  --secondary: #214A55;
  --secondary-light: #32767D;
  --secondary-dark: #1A1E32;

  --tertiary: #3D5515;
  --tertiary-light: #81A333;
  --tertiary-dark: #0B2405;

  --white: #FFFFFF;
  --gray-50: #F8FAFB;
  --gray-100: #F1F4F8;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* --- Container --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.938rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 8px;
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--secondary);
  border-color: var(--gray-300);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--full {
  width: 100%;
}

/* --- Section Titles --- */
.section-label {
  font-size: 0.813rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--secondary-dark);
  margin-bottom: 16px;
}

.section-title--center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.section-desc {
  font-size: 1.063rem;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 560px;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar--scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__logo {
  display: flex;
  align-items: center;
}

.navbar__logo-img {
  height: 40px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}

.navbar__links a:hover {
  color: var(--primary);
}

.navbar__links .btn {
  color: var(--white);
}

.navbar__links .btn:hover {
  color: var(--white);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(170deg, var(--gray-50) 0%, var(--white) 50%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  font-size: 0.813rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--secondary-dark);
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Mockup */
.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__mockup {
  position: relative;
}

.mockup-phone {
  width: 280px;
  height: 520px;
  border-radius: 36px;
  border: 3px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
}

.mockup-phone__screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.mockup-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.813rem;
  font-weight: 600;
  animation: float 3s ease-in-out infinite;
}

.mockup-badge--sync {
  top: 60px;
  right: -60px;
  color: var(--tertiary-light);
}

.mockup-badge--location {
  bottom: 80px;
  left: -50px;
  color: var(--primary);
  animation-delay: -1.5s;
}

.badge-icon {
  font-size: 1.1rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- Problem --- */
.problem {
  padding: 80px 0;
  background: var(--secondary-dark);
  color: var(--white);
}

.problem__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.problem .section-title {
  color: var(--white);
}

.problem .section-desc {
  color: var(--gray-300);
}

.problem__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.problem__item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1rem;
  color: var(--gray-200);
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  border-left: 3px solid rgba(255, 255, 255, 0.1);
}

.problem__icon {
  color: #E74C3C;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* --- Features --- */
.features {
  padding: 100px 0;
  background: var(--gray-50);
}

.features .section-label {
  text-align: center;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--secondary-dark);
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 0.938rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* --- Use Cases --- */
.use-cases {
  padding: 100px 0;
}

.use-cases .section-label {
  text-align: center;
}

.use-cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.use-case-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all 0.2s ease;
}

.use-case-card:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.use-case-card__icon {
  font-size: 1.375rem;
  flex-shrink: 0;
  color: var(--primary);
  transition: color 0.2s ease;
}

.use-case-card:hover .use-case-card__icon {
  color: var(--primary);
}

/* --- Industries --- */
.industries {
  padding: 80px 0;
  background: var(--gray-50);
}

.industries__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.industries .section-desc {
  margin-bottom: 16px;
}

.industries__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.industry-tag {
  padding: 12px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--secondary);
  transition: all 0.2s ease;
}

.industry-tag:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

/* --- Benefits --- */
.benefits {
  padding: 100px 0;
}

.benefits .section-label {
  text-align: center;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.benefit-item {
  padding: 8px 0;
}

.benefit-item__number {
  font-size: 0.813rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.benefit-item__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--secondary-dark);
  margin-bottom: 8px;
}

.benefit-item__desc {
  font-size: 0.938rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* --- CTA --- */
.cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary) 100%);
}

.cta__inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta__desc {
  font-size: 1.063rem;
  color: var(--gray-300);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta__email-btn {
  font-size: 1.125rem;
  padding: 18px 40px;
}

.cta__email-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(52, 152, 219, 0.4);
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  background: var(--gray-50);
  color: var(--gray-600);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer__logo-link {
  display: inline-block;
}

.footer__logo-img {
  height: 80px;
  width: auto;
}

.footer__tagline {
  font-size: 0.813rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.footer__links {
  display: flex;
  gap: 28px;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__copy {
  font-size: 0.813rem;
  color: var(--gray-500);
  width: 100%;
  text-align: center;
  margin-top: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

/* ========================================
   Animations (scroll-triggered)
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .hero__inner,
  .problem__inner,
  .industries__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero__visual {
    order: -1;
  }

  .features__grid,
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .use-cases__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .navbar__links {
    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);
  }

  .navbar__links.active {
    display: flex;
  }

  .navbar__toggle {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .mockup-phone {
    width: 240px;
    height: 440px;
  }

  .mockup-badge--sync { right: -20px; }
  .mockup-badge--location { left: -20px; }

  .features__grid,
  .benefits__grid,
  .use-cases__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
  }
}
