/* IfriSaaS – Custom styles supplementing Tailwind CDN */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── Design Tokens ── */
:root {
  --color-indigo:   #1E1B4B;
  --color-violet:   #6366F1;
  --color-violet-light: #818CF8;
  --color-amber:    #F59E0B;
  --color-amber-dark: #D97706;
  --color-slate-50: #F8FAFC;
  --color-slate-100: #F1F5F9;
  --color-slate-200: #E2E8F0;
  --color-slate-600: #475569;
  --color-slate-700: #334155;
  --color-slate-900: #0F172A;

  --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-card: 1rem;
  --shadow-card: 0 4px 24px -4px rgba(30,27,75,0.10), 0 1px 4px rgba(30,27,75,0.06);
  --shadow-card-hover: 0 12px 40px -8px rgba(99,102,241,0.22), 0 2px 8px rgba(30,27,75,0.08);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-slate-700);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-indigo);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ── Navbar ── */
#navbar {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(30,27,75,0.08);
}

#navbar.scrolled-dark {
  background: rgba(30, 27, 75, 0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(0,0,0,0.25);
}

.nav-link {
  position: relative;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

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

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--color-amber);
  color: #1a1200;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--color-amber-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,158,11,0.35);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  border: 2px solid rgba(255,255,255,0.35);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.btn-ghost-dark {
  color: var(--color-indigo);
  border-color: var(--color-indigo);
}

.btn-ghost-dark:hover {
  background: var(--color-indigo);
  color: #fff;
  border-color: var(--color-indigo);
}

.btn-violet {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: var(--color-violet);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-violet:hover {
  background: #4F46E5;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}

/* ── Hero ── */
.hero-bg {
  background: linear-gradient(135deg, var(--color-indigo) 0%, #2D2A6E 60%, #1a1060 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 50%, rgba(99,102,241,0.25) 0%, transparent 60%),
                    radial-gradient(circle at 10% 80%, rgba(245,158,11,0.10) 0%, transparent 40%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── Cards ── */
.service-card {
  background: #fff;
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s;
}

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

.service-card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

/* ── Timeline ── */
.timeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.timeline-step .step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-violet);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px rgba(99,102,241,0.15);
}

.timeline-connector {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-violet), rgba(99,102,241,0.2));
}

/* ── Pricing cards ── */
.pricing-card {
  background: #fff;
  border: 2px solid var(--color-slate-200);
  border-radius: var(--radius-card);
  padding: 2.5rem;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.pricing-card.featured {
  border-color: var(--color-violet);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.08), var(--shadow-card-hover);
}

.pricing-card .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-violet);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── FAQ Accordion ── */
.faq-item {
  border-bottom: 1px solid var(--color-slate-200);
}

.faq-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-indigo);
  transition: color 0.2s;
}

.faq-trigger:hover { color: var(--color-violet); }

.faq-trigger svg {
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.3s ease;
  color: var(--color-violet);
}

.faq-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.2s;
}

.faq-body.open {
  max-height: 500px;
}

.faq-body p {
  padding-bottom: 1.25rem;
  color: var(--color-slate-600);
  line-height: 1.7;
}

/* ── Section labels ── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-violet);
  background: rgba(99,102,241,0.08);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

/* ── Section headings ── */
.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-indigo);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--color-slate-600);
  max-width: 42rem;
  line-height: 1.7;
}

/* ── Client logo strip ── */
.client-logo {
  height: 36px;
  filter: grayscale(100%) opacity(0.45);
  transition: filter 0.2s;
}

.client-logo:hover {
  filter: grayscale(0%) opacity(1);
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--color-indigo) 0%, #2D2A6E 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(99,102,241,0.3), transparent 60%),
              radial-gradient(circle at 80% 20%, rgba(245,158,11,0.1), transparent 50%);
  pointer-events: none;
}

/* ── Footer ── */
footer {
  background: var(--color-slate-900);
}

.footer-link {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}

/* ── Form ── */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-slate-200);
  border-radius: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-slate-700);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--color-violet);
  box-shadow: 0 0 0 4px rgba(99,102,241,0.12);
}

.form-input::placeholder {
  color: #94A3B8;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-indigo);
  margin-bottom: 0.4rem;
}

/* ── Animated SVG pipeline ── */
.pipeline-anim circle,
.pipeline-anim rect,
.pipeline-anim path {
  transition: opacity 0.4s;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.15); }
}

@keyframes flow-line {
  0% { stroke-dashoffset: 200; }
  100% { stroke-dashoffset: 0; }
}

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

.float-anim { animation: float 4s ease-in-out infinite; }
.float-anim-delay { animation: float 4s ease-in-out 1.5s infinite; }

/* ── Value cards ── */
.value-card {
  background: var(--color-slate-50);
  border-radius: var(--radius-card);
  padding: 2rem;
  border: 1px solid var(--color-slate-200);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.value-card:hover {
  border-color: var(--color-violet-light);
  box-shadow: var(--shadow-card);
}

/* ── Team cards ── */
.team-card {
  text-align: center;
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

/* ── Comparison table ── */
.compare-table {
  border-collapse: collapse;
  width: 100%;
}

.compare-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 1rem;
  border-bottom: 2px solid var(--color-slate-200);
  text-align: center;
}

.compare-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--color-slate-100);
  text-align: center;
  font-size: 0.9rem;
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--color-slate-700);
}

.check-yes { color: #16A34A; font-size: 1.2rem; }
.check-no  { color: #D1D5DB; font-size: 1.2rem; }
.check-partial { color: var(--color-amber); font-size: 1rem; font-weight: 600; }

/* ── Mobile menu ── */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

#mobile-menu.open {
  max-height: 600px;
}

/* ── Process steps (vertical on mobile) ── */
.process-phase {
  position: relative;
  padding-left: 4rem;
}

.process-phase .phase-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-violet), #4F46E5);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Skip to content ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-violet);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus { top: 0; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-slate-600);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--color-violet);
  text-decoration: none;
}

/* ── Highlight badge ── */
.highlight-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-violet);
  line-height: 1;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--color-indigo) 0%, #2D2A6E 100%);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(99,102,241,0.25), transparent 60%);
  pointer-events: none;
}

/* ── Responsive utilities ── */
@media (max-width: 768px) {
  .section-heading { font-size: 1.75rem; }
  .pricing-card { padding: 1.75rem; }
}

/* ── Focus visible ── */
*:focus-visible {
  outline: 2px solid var(--color-violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Social icon ── */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: #94A3B8;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-icon:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

/* ── Deliverable list ── */
.deliverable-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: var(--color-slate-700);
}

.deliverable-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-violet);
}

/* ── Stat strip ── */
.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-item .stat-num {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-amber);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-item .stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
