/* ==========================================================================
   Newton ERP & CRM - Clean Light Theme
   White background, light blue accent, professional & modern
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-page: #ffffff;
  --bg-section-alt: #f7f9fc;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f7ff;
  --border-color: #e2e8f0;
  --border-color-glow: rgba(14, 165, 233, 0.35);

  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-light: #38bdf8;
  --primary-glow: rgba(14, 165, 233, 0.25);
  --primary-bg: #e0f2fe;

  --accent-teal: #0d9488;
  --accent-blue-dark: #1e40af;
  --accent-sky: #7dd3fc;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.10);
  --shadow-card: 0 4px 16px rgba(14, 165, 233, 0.12);

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===================== Gradient Text ===================== */
.gradient-text {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 60%, #0369a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-teal {
  background: linear-gradient(135deg, #0ea5e9 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1.5px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-pay {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-pay:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===================== Card ===================== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-color-glow);
  box-shadow: var(--shadow-lg), 0 0 0 3px var(--primary-bg);
  transform: translateY(-3px);
}

/* ===================== Navbar ===================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0);
}

.navbar.scrolled {
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: var(--primary);
}

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

/* ===================== Hero ===================== */
.hero {
  padding-top: 130px;
  padding-bottom: 0;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 60%);
  position: relative;
  overflow: hidden;
}

/* Subtle background grid pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 48px auto;
  position: relative;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-bg);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-full);
  color: var(--primary-hover);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 28px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

.hero-title {
  font-size: 3.8rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* ===================== Hero 3D Mockup ===================== */
.hero-mockup-section {
  perspective: 1200px;
  margin: 40px auto 0;
  max-width: 1100px;
  padding: 0 20px;
  position: relative;
}

.mockup-3d-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow:
    -20px 30px 70px rgba(14, 165, 233, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.9),
    var(--shadow-lg);
  transform: rotateY(-14deg) rotateX(6deg) scale(0.95);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}

.mockup-3d-wrapper:hover {
  transform: rotateY(-3deg) rotateX(1.5deg) scale(0.98);
  box-shadow:
    -8px 18px 50px rgba(14, 165, 233, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.9),
    var(--shadow-lg);
}

.mockup-header-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f57;
}

.dot-yellow {
  background: #febc2e;
}

.dot-green {
  background: #28c840;
}

.mockup-url {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 10px;
  font-weight: 500;
  font-family: var(--font-body);
}

.mockup-image-container {
  overflow: hidden;
  background: #f8fafc;
}

.mockup-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===================== Screenshots Section ===================== */
.screenshots-section {
  padding: 100px 0 60px;
  background: var(--bg-page);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px auto;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.6rem;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Alternating feature+screenshot rows */
.screenshot-row {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.65s ease-out forwards;
}

.screenshot-row:nth-child(2) {
  animation-delay: 0.05s;
}

.screenshot-row:nth-child(3) {
  animation-delay: 0.15s;
}

.screenshot-row:nth-child(4) {
  animation-delay: 0.25s;
}

.screenshot-row:nth-child(5) {
  animation-delay: 0.35s;
}

.screenshot-row:nth-child(6) {
  animation-delay: 0.45s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screenshot-row.reverse {
  grid-template-columns: 1.65fr 1fr;
}

.screenshot-row.reverse .screenshot-info {
  order: 2;
}

.screenshot-row.reverse .screenshot-mockup-wrapper {
  order: 1;
}

.screenshot-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.screenshot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--primary-bg);
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: var(--radius-full);
  color: var(--primary-hover);
  font-size: 0.82rem;
  font-weight: 700;
  width: fit-content;
  letter-spacing: 0.02em;
}

.screenshot-info h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.screenshot-info p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* 3D perspective wrappers */
.screenshot-mockup-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
  transform-style: preserve-3d;
  cursor: pointer;
  background: #f8fafc;
}

.screenshot-mockup-wrapper.perspective-left {
  transform: perspective(1100px) rotateY(-12deg) rotateX(4deg) scale(0.97);
  box-shadow:
    -16px 24px 56px rgba(14, 165, 233, 0.13),
    0 0 0 1px rgba(255, 255, 255, 0.8),
    var(--shadow-md);
}

.screenshot-mockup-wrapper.perspective-left:hover {
  transform: perspective(1100px) rotateY(-2deg) rotateX(1deg) scale(1);
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--primary-bg);
}

.screenshot-mockup-wrapper.perspective-right {
  transform: perspective(1100px) rotateY(12deg) rotateX(4deg) scale(0.97);
  box-shadow:
    16px 24px 56px rgba(14, 165, 233, 0.10),
    0 0 0 1px rgba(255, 255, 255, 0.8),
    var(--shadow-md);
}

.screenshot-mockup-wrapper.perspective-right:hover {
  transform: perspective(1100px) rotateY(2deg) rotateX(1deg) scale(1);
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--primary-bg);
}

/* ===================== Features Grid ===================== */
.features-section {
  padding: 100px 0;
  background: var(--bg-section-alt);
}

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

.feature-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary-bg);
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 4px;
}

.feature-card:nth-child(2) .feature-icon-wrap {
  background: #f0fdf4;
  border-color: rgba(16, 185, 129, 0.2);
}

.feature-card:nth-child(3) .feature-icon-wrap {
  background: #fff7ed;
  border-color: rgba(251, 146, 60, 0.2);
}

.feature-card:nth-child(4) .feature-icon-wrap {
  background: #fdf4ff;
  border-color: rgba(168, 85, 247, 0.2);
}

.feature-card:nth-child(5) .feature-icon-wrap {
  background: #f0fdf4;
  border-color: rgba(16, 185, 129, 0.2);
}

.feature-card:nth-child(6) .feature-icon-wrap {
  background: #eff6ff;
  border-color: rgba(59, 130, 246, 0.2);
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.feature-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-list {
  list-style: none;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.feature-list li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===================== CTA Contact Section ===================== */
.cta-banner {
  padding: 90px 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-top: 1px solid rgba(14, 165, 233, 0.15);
}

.cta-box {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 2.8rem;
  color: var(--text-main);
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================== Footer ===================== */
footer {
  border-top: 1px solid var(--border-color);
  padding: 32px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  background: var(--bg-page);
}

/* ===================== Responsive ===================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .mockup-3d-wrapper {
    transform: none !important;
  }

  .screenshot-row,
  .screenshot-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .screenshot-row.reverse .screenshot-info {
    order: 1;
  }

  .screenshot-row.reverse .screenshot-mockup-wrapper {
    order: 2;
  }

  .screenshot-mockup-wrapper.perspective-left,
  .screenshot-mockup-wrapper.perspective-right {
    transform: none !important;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .screenshot-info h3 {
    font-size: 1.4rem;
  }

  .cta-box h2 {
    font-size: 2.1rem;
  }
}