/* ============================================================
   theme-modern.css — modern overlay for index1.html
   Loaded after theme.css; restyles colors, type, spacing,
   shadows, buttons, hero, sections, cards without altering
   the original theme.css.
   ============================================================ */

:root {
  /* refreshed accent: indigo → violet gradient anchor */
  --m-accent: #4f46e5;
  --m-accent-2: #7c3aed;
  --m-accent-soft: #eef2ff;

  /* deeper, less muddy dark surface */
  --m-ink: #0f172a;
  --m-ink-2: #1e293b;
  --m-ink-3: #334155;

  /* neutral surface palette */
  --m-bg: #fafbfc;
  --m-surface: #ffffff;
  --m-border: #e5e7eb;
  --m-border-strong: #d1d5db;

  /* text */
  --m-text: #0b1220;
  --m-text-muted: #4b5563;
  --m-text-soft: #6b7280;

  /* radii & shadows */
  --m-r-sm: 10px;
  --m-r-md: 16px;
  --m-r-lg: 24px;
  --m-r-xl: 32px;
  --m-shadow-1: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --m-shadow-2: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --m-shadow-3: 0 14px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
  --m-shadow-glow: 0 20px 60px rgba(79, 70, 229, 0.18);

  /* motion */
  --m-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* override original tokens to propagate accent change */
  --colors--blue: #4f46e5;
  --colors--bg: #fafbfc;
  --colors--body: #4b5563;
  --colors--heading: #0b1220;
  --colors--dark-blue: #0f172a;
  --colors--dark-blue-2: #1e293b;
}

/* ----------- Global type and surface ----------- */
html { scroll-behavior: smooth; }
body {
  background: var(--m-bg);
  color: var(--m-text-muted);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5, h6,
.display, .h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--m-text);
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-weight: 700;
}
.display { font-weight: 800; letter-spacing: -0.035em; }

/* Re-assert white text on dark backgrounds (overrides modern heading color) */
.font-color-white,
h1.font-color-white, h2.font-color-white, h3.font-color-white,
h4.font-color-white, h5.font-color-white, h6.font-color-white,
.display.font-color-white,
.h1.font-color-white, .h2.font-color-white, .h3.font-color-white,
.h4.font-color-white, .h5.font-color-white, .h6.font-color-white,
.paragraph.font-color-white,
.paragraph-large.font-color-white,
.paragraph-small.font-color-white { color: #ffffff; }
.paragraph-large { font-size: 1.125rem; line-height: 1.65; }
.paragraph { line-height: 1.65; }
.paragraph-small { line-height: 1.55; }

.text-highlight {
  background: linear-gradient(90deg, var(--m-accent), var(--m-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* upper-heading: modern eyebrow */
.upper-heading,
.upper-heading.text-highlight {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--m-accent-soft);
  color: var(--m-accent);
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ----------- Buttons ----------- */
.button,
.button.w-button,
.primary-button,
.primary-button.w-button,
.button-copy,
.button-copy.w-button {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 0.95rem 1.6rem;
  border: 0;
  transition: transform .25s var(--m-ease), box-shadow .25s var(--m-ease), background .25s var(--m-ease), color .25s var(--m-ease);
  box-shadow: var(--m-shadow-2);
}
.button,
.button.w-button {
  background: linear-gradient(135deg, var(--m-accent), var(--m-accent-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.28);
}
.button:hover,
.button.w-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(79, 70, 229, 0.38);
}
.primary-button,
.primary-button.w-button {
  background: #fff;
  color: var(--m-accent);
  border: 1px solid var(--m-border);
}
.primary-button:hover,
.primary-button.w-button:hover {
  transform: translateY(-2px);
  border-color: var(--m-accent);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.18);
}
.button-copy,
.button-copy.w-button {
  background: var(--m-ink);
  color: #fff;
}
.button-copy:hover,
.button-copy.w-button:hover {
  transform: translateY(-2px);
  background: var(--m-ink-2);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
}
.ternary-button .button-small { font-weight: 600; }
.ternary-button .button-animate-line { background: var(--m-accent); }

/* ----------- Hero ----------- */
.hero-section.bg-gradient {
  background:
    radial-gradient(1100px 600px at 10% -10%, rgba(124, 58, 237, 0.45), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(79, 70, 229, 0.45), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(59, 130, 246, 0.35), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 60%, #111827 100%);
  position: relative;
  overflow: hidden;
}
.hero-section.bg-gradient::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-section .bg-circle { display: none; }
.hero-container { position: relative; z-index: 1; }
.hero-section .display.font-color-white { font-size: clamp(2.2rem, 5.5vw, 4.25rem); }
.hero-section .paragraph-large.font-color-white { color: #c7d2fe; }

.video.w-video.w-embed {
  border-radius: var(--m-r-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255,255,255,0.08);
}

/* ----------- Section spacing ----------- */
section { position: relative; }
.productivity-section,
.usp-section,
.feature-section,
.integration-section,
.pricing-section,
.articles-section,
.faq-section { padding-top: 6rem; padding-bottom: 6rem; }

/* ----------- Cards (productivity, feature, pricing) ----------- */
.productivity-block,
.productivity-block.shadow-1 {
  background: var(--m-surface);
  border: 1px solid var(--m-border);
  border-radius: var(--m-r-lg);
  box-shadow: var(--m-shadow-1);
  transition: transform .3s var(--m-ease), box-shadow .3s var(--m-ease), border-color .3s var(--m-ease);
  padding: 2rem;
}
.productivity-block:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--m-shadow-3);
}
.productivity-block-icon-wrapper {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--m-accent-soft), #fff);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--m-border);
}
.productivity-block-icon { width: 28px; height: 28px; }

.feature-block {
  border-radius: var(--m-r-lg);
  box-shadow: var(--m-shadow-2);
  border: 1px solid rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: transform .3s var(--m-ease), box-shadow .3s var(--m-ease);
}
.feature-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--m-shadow-3);
}
.feature-block.color-light-yellow { background: linear-gradient(160deg, #fff7d6, #fffce8); }
.feature-block.color-light-purple { background: linear-gradient(160deg, #ede9fe, #f5f3ff); }
.feature-block.color-light-blue   { background: linear-gradient(160deg, #dbeafe, #eff6ff); }
.feature-block.color-light-pink   { background: linear-gradient(160deg, #fce7f3, #fdf2f8); }
.feature-block.color-light-green  { background: linear-gradient(160deg, #d1fae5, #ecfdf5); }
.feature-block-icon { filter: drop-shadow(0 8px 16px rgba(15,23,42,0.08)); }

/* ----------- USP blocks ----------- */
.usp-block {
  background: var(--m-surface);
  border: 1px solid var(--m-border);
  border-radius: var(--m-r-xl);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--m-shadow-1);
}
.usp-block + .usp-block { margin-top: 2rem; }
.usp-block-image {
  border-radius: var(--m-r-lg);
  box-shadow: var(--m-shadow-3);
}
.point img.point-check-mark {
  width: 22px; height: 22px;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--m-accent), var(--m-accent-2));
  box-shadow: 0 4px 10px rgba(79,70,229,0.35);
}

/* ----------- Integration section ----------- */
.integration-section {
  background: linear-gradient(180deg, #fafbfc 0%, #eef2ff 100%);
}
.integration-tool-logo {
  width: 60px; height: 60px;
  object-fit: contain !important;
  padding: 12px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--m-border);
  box-shadow: var(--m-shadow-1);
  transition: transform .3s var(--m-ease), box-shadow .3s var(--m-ease);
}
.integration-tool-logo:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: var(--m-shadow-2);
}
.integration-loop-gradient-left,
.integration-loop-gradient-right { display: none !important; }
.integration-section {
  background: #eef2ff;
}

/* ----------- Demo / dark sections ----------- */
.demo-section.bg-gradient.with-bg-curve,
.cta-section,
.cta-section.bg-gradient {
  background-image: url('../images/Demo-Curve.svg'),
    radial-gradient(900px 500px at 10% 0%, rgba(124,58,237,0.35), transparent 60%),
    radial-gradient(900px 500px at 90% 100%, rgba(79,70,229,0.35), transparent 60%),
    linear-gradient(180deg, #0f172a, #111827);
  background-repeat: no-repeat, no-repeat, no-repeat, repeat;
}
.demo-image {
  border-radius: var(--m-r-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
}

/* ----------- Pricing / review block ----------- */
.trust-pilot-review-wrapper.shadow-2,
.pricing-container .shadow-2 {
  border-radius: var(--m-r-xl);
  background: var(--m-surface);
  border: 1px solid var(--m-border);
  box-shadow: var(--m-shadow-3);
}

/* ----------- FAQ ----------- */
.faq-section { background: var(--m-bg); }
.faq-question-wrapper, .faq-block, [class*="faq-"] [class*="block"] {
  border-radius: var(--m-r-md);
}

/* ----------- Tables ----------- */
table {
  border-radius: var(--m-r-md);
  border: 1px solid var(--m-border) !important;
  box-shadow: var(--m-shadow-1);
}
table thead th {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9) !important;
  color: var(--m-text) !important;
  border-bottom: 1px solid var(--m-border) !important;
}

/* ----------- Nav ----------- */
.navbar, .nav, .nav-wrapper, header .navbar {
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}

/* ----------- Footer ----------- */
.footer, footer {
  background: #0b1220;
}

/* ----------- Anchor offset for sticky-ish headers ----------- */
.anchor-div { scroll-margin-top: 96px; }

/* ----------- Reduced motion ----------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ----------- Responsive tweaks ----------- */
@media (max-width: 991px) {
  .productivity-section, .usp-section, .feature-section,
  .integration-section, .pricing-section, .articles-section,
  .faq-section { padding-top: 4rem; padding-bottom: 4rem; }
}
@media (max-width: 479px) {
  .hero-section .display.font-color-white { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .usp-block { padding: 1.25rem; }
  .productivity-block { padding: 1.25rem; }
}
