/*
 * FinCore Site Stylesheet
 *
 * This CSS file defines the look and feel of the FinCore marketing website. It
 * uses modern CSS features like custom properties, flexbox and grid to
 * create a responsive, accessible layout. The design is minimal and
 * professional with plenty of breathing room. Adjust the variables below to
 * tweak colors or sizing globally.
 */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

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

/* Custom properties */
:root {
  --primary-color: #0ea5e9;       /* Deep blue for primary elements */
  --secondary-color: #10b981;     /* Teal for highlights */
  --accent-color: #8b5cf6;        /* Bright blue accent */
  --neutral-light: #f5f8fa;       /* Very light grey for section backgrounds */
  --neutral-dark: #0e2134;        /* Dark shade for hero and footer */
  --text-color: #1f2d3d;         /* Dark text */
  --text-muted: #516170;         /* Muted grey text */
  --border-radius: 0.5rem;
  --max-width: 1120px;
  --transition-fast: 0.2s ease-in-out;
}

/* Utility classes */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: var(--border-radius);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--secondary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--primary-color);
  color: #fff;
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn.large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.cta {
  background-color: var(--secondary-color);
  color: #fff;
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  margin-left: 1rem;
}

.cta:hover,
.cta:focus {
  background-color: var(--accent-color);
  color: #fff;
}

/* Navigation */
header {
  background-color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

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

.nav-menu li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-menu li a:hover,
.nav-menu li a:focus {
  color: var(--primary-color);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.nav-toggle .bar {
  width: 22px;
  height: 2px;
  background-color: var(--text-color);
  transition: transform var(--transition-fast) ease;
}

/* Hero section */
.hero {
  position: relative;
  background-image: url('../images/hero-bg.png');
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(14, 33, 52, 0.7) 0%, rgba(14, 33, 52, 0.9) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #e0e6ed;
}

.hero-buttons .btn + .btn {
  margin-left: 1rem;
}

/* Why section */
.why {
  background-color: var(--neutral-light);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.why-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.why-item h3 {
  font-size: 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Projections section */
.projections {
  background-color: #fff;
}

.projections-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.projections-text {
  max-width: 520px;
}

.projections-text h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.projections-text p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.projections-chart {
  width: 100%;
  max-width: 480px;
  padding: 1rem;
  border-radius: var(--border-radius);
  background-color: var(--neutral-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

canvas#projectionChart {
  width: 100% !important;
  height: auto !important;
}

/* Features overview */
.overview {
  background-color: var(--neutral-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.feature-card h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Icon styles */
/* Hide external font icons by default because our environment may block the font.
 * We instead use decorative circles via ::before on headings (see styles below). */
.why-item i,
.feature-card i,
.about-item i {
  display: none;
}

/* CTA section */
.cta {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
}

.cta-container h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.cta-container p {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  color: #e9f1f7;
}

/* FAQ styles */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: #fff;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  border: 1px solid #e6ecf2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::marker {
  display: none;
}

.faq-item summary::after {
  content: '\25BC';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%) rotate(0);
  transition: transform var(--transition-fast);
  font-size: 0.8rem;
  color: var(--primary-color);
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-item p {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Pricing grid and cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.plan-card {
  background-color: #fff;
  border: 1px solid #e6ecf2;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.plan-card.popular {
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.plan-badge {
  position: absolute;
  top: -0.75rem;
  right: 1rem;
  background-color: var(--secondary-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--border-radius);
}

.plan-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.plan-price .price-cycle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
}

.plan-features li {
  position: relative;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  padding-left: 1.5rem;
}

.plan-features li::before {
  content: '\2713'; /* checkmark */
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--secondary-color);
  font-weight: 700;
}

.plan-card .btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* About page styles */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.about-item {
  background-color: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  text-align: center;
}

.about-item h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.about-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Decorative markers for cards when icons are unavailable */
.feature-card h3::before,
.why-item h3::before,
.about-item h3::before {
  content: '';
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 0.75rem auto;
  background-color: var(--secondary-color);
  border-radius: 50%;
}

/* Footer */
.footer {
  background-color: var(--neutral-dark);
  color: #f0f5fa;
  padding: 2rem 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: #c2d1e0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: #fff;
}

.footer-copy {
  font-size: 0.9rem;
  color: #8fa5bd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 0.5rem;
    width: 200px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: none;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .navbar {
    align-items: center;
  }
  .projections-container {
    flex-direction: column;
  }
  .cta-container h2 {
    font-size: 1.5rem;
  }
  .cta-container p {
    font-size: 1rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
}

/* --- SkedCore brand enhancements --------------------------------------- */
:root {
  --brand-grad: linear-gradient(135deg, #0ea5e9 0%, #10b981 50%, #8b5cf6 100%);
}

/* Gradient brand text for hero title */
.hero-title {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Animated primary button with gradient and subtle shimmer */
.btn-primary {
  background-image: var(--brand-grad);
  background-size: 150% 150%;
}
.btn-primary:hover,
.btn-primary:focus {
  filter: hue-rotate(-8deg) brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.25);
}

/* Card hover lift + rainbow accent bar */
.feature-card, .why-item, .plan-card, .about-item {
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.feature-card:hover, .why-item:hover, .plan-card:hover, .about-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(14,33,52,.08);
}
.feature-card::after, .why-item::after, .plan-card::after, .about-item::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9, #10b981, #8b5cf6);
  opacity: 0; transition: opacity .2s ease;
}
.feature-card:hover::after, .why-item:hover::after, .plan-card:hover::after, .about-item:hover::after {
  opacity: 1;
}

/* Reveal-on-scroll animation */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible {
  opacity: 1; transform: translateY(0);
}

/* Sticky header polish */
header.scrolled {
  backdrop-filter: blur(6px);
  background-color: rgba(255,255,255,0.75);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

/* Hero decorative blobs */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  z-index: 0;
  width: 42vmax; height: 42vmax;
  filter: blur(60px);
  opacity: .25;
  border-radius: 50%;
}
.hero::before {
  background: radial-gradient(closest-side, #10b981, transparent 70%);
  top: -12vmax; left: -10vmax;
}
.hero::after {
  background: radial-gradient(closest-side, #0ea5e9, transparent 70%);
  bottom: -12vmax; right: -10vmax;
}

/* Underline flourish for footer/nav links */
.nav-menu li a, .footer-nav a {
  position: relative;
}
.nav-menu li a::after, .footer-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  height: 2px; width: 0%;
  background: linear-gradient(90deg,#0ea5e9,#10b981);
  transition: width .25s ease;
}
.nav-menu li a:hover::after, .footer-nav a:hover::after {
  width: 100%;
}

/* Fix for positioning of pseudo after elements on cards */
.feature-card, .why-item, .plan-card, .about-item { position: relative; }
