/* features.css — standalone stylesheet for the customer-facing features
   showcase page (features.html). Deliberately NOT style.css: this page is
   shared publicly and should never inherit or fight the ~40 admin/dashboard
   classes that file carries. Color and font tokens below are copied from
   style.css's :root block for visual continuity with the portal itself. */

:root {
  --paper:      #FAFAF9;
  --card:       #FFFFFF;
  --ink:        #1C2622;
  --ink-soft:   #475569;
  --line:       #E5E1D8;
  --accent:     #025430;
  --accent-dark:#023F24;
  --sage:       #5B7D6B;
  --sage-bg:    #EAF0EC;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; }

/* ── Header ── */
.site-header {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 18px 24px; max-width: 1040px; margin: 0 auto;
}
.header-signin {
  font-size: 13.5px; font-weight: 600; color: var(--accent);
  text-decoration: none; padding: 8px 16px; border-radius: 20px;
  border: 1px solid var(--line);
}
.header-signin:hover { background: var(--sage-bg); border-color: var(--sage-bg); }

/* ── Hero ──
   Light, airy background instead of a dark corporate panel. The real
   ArabSpec logo is shown plainly, the same way the login screen displays
   it (no box, no crop — just the mark), set against a soft glow and a
   slow float so it feels alive rather than a static image. Paired with a
   pill badge and a highlighter-style accent under one word for a current,
   editorial feel. Left-aligned so the text shares the same left edge as
   the header logo and the feature rows below it. */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #FFFFFF 0%, #F4F8F5 55%, #EAF0EC 100%);
  padding: 88px 24px 80px;
}
.hero-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
}
.hero-content { flex: 1 1 520px; min-width: 0; }
.hero-badge {
  display: inline-block; background: var(--sage-bg); color: var(--accent-dark);
  font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; padding: 7px 16px; border-radius: 20px; margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 56px;
  line-height: 1.14; letter-spacing: -0.015em; color: var(--ink);
  max-width: 620px; margin: 0 0 22px;
}
.accent-word { position: relative; z-index: 0; white-space: nowrap; }
.accent-word::before {
  content: ''; position: absolute; left: -5px; right: -5px; bottom: 6px; height: 16px;
  background: #BFE0CC; transform: rotate(-1.2deg); border-radius: 3px; z-index: -1;
}
.hero-sub {
  font-size: 17px; line-height: 1.65; color: var(--ink-soft);
  max-width: 500px; margin: 0 0 34px;
}
.hero-cta {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14px; text-decoration: none;
  padding: 14px 28px; border-radius: 26px;
}
.hero-cta:hover { background: var(--accent-dark); }

.hero-visual {
  flex: 0 0 300px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual::before {
  content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,160,0.32) 0%, rgba(2,84,48,0.14) 45%, transparent 72%);
  animation: heroGlowPulse 6s ease-in-out infinite;
}
.hero-visual img {
  position: relative; width: auto; height: 190px; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 16px 26px rgba(2,84,48,0.22));
  animation: heroFloat 5s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* Ambient sparkle particles — quiet twinkling points of light drifting
   around the glow, rather than a confetti burst. Each one twinkles on its
   own timer so they never sync up, reading as alive rather than mechanical. */
.sparkle {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff 0%, rgba(14,165,160,0.7) 45%, transparent 75%);
  opacity: 0; z-index: 2;
  animation: sparkleTwinkle 3s ease-in-out infinite;
}
.sp-1 { top: -18px; left: 58px;  width: 6px; height: 6px; animation-delay: 0s;    animation-duration: 3.2s; }
.sp-2 { top: 6px;   left: 268px; width: 5px; height: 5px; animation-delay: 0.9s;  animation-duration: 2.6s; background-image: radial-gradient(circle, #fff 0%, rgba(2,84,48,0.7) 45%, transparent 75%); }
.sp-3 { top: 92px;  left: 296px; width: 7px; height: 7px; animation-delay: 1.6s;  animation-duration: 3.6s; }
.sp-4 { top: 196px; left: 232px; width: 5px; height: 5px; animation-delay: 0.4s;  animation-duration: 2.8s; background-image: radial-gradient(circle, #fff 0%, rgba(2,84,48,0.7) 45%, transparent 75%); }
.sp-5 { top: 206px; left: 66px;  width: 6px; height: 6px; animation-delay: 2.1s;  animation-duration: 3.4s; }
.sp-6 { top: 108px; left: -16px; width: 5px; height: 5px; animation-delay: 1.2s;  animation-duration: 2.9s; background-image: radial-gradient(circle, #fff 0%, rgba(2,84,48,0.7) 45%, transparent 75%); }
.sp-7 { top: 24px;  left: 150px; width: 4px; height: 4px; animation-delay: 2.6s;  animation-duration: 2.4s; }
@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual img, .hero-visual::before, .sparkle { animation: none; opacity: 0; }
}

/* ── Feature bands ──
   Each feature gets a full-bleed alternating background band (rather than
   a plain bordered row) so it reads as its own "spread" — plus a bold
   gradient icon badge (colors borrowed from the real app's own card-icon
   gradients per concept) and a spec-strip of concrete capabilities, so the
   section actually earns attention instead of just listing text. */
.feature-band { width: 100%; }
.feature-band.tint { background: #EEF3EF; }
.feature-band.plain { background: var(--card); }

.feature-row {
  max-width: 880px; margin: 0 auto; padding: 76px 24px;
  display: flex; gap: 40px; align-items: flex-start;
}
.feature-row.reverse { flex-direction: row-reverse; }

.feature-marker { flex: 0 0 68px; }
.feature-icon {
  width: 68px; height: 68px; border-radius: 18px;
  color: #fff; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; box-shadow: 0 10px 22px -10px rgba(0,0,0,0.35);
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-icon.c-green  { background: linear-gradient(135deg,#025430,#023F24); }
.feature-icon.c-dgreen { background: linear-gradient(135deg,#1A6B3A,#145730); }
.feature-icon.c-teal   { background: linear-gradient(135deg,#0EA5A0,#0c908b); }
.feature-icon.c-purple { background: linear-gradient(135deg,#5B21B6,#4a1a94); }
.feature-icon.c-sage   { background: linear-gradient(135deg,#5B7D6B,#3F5B4C); }
.feature-icon.c-amber  { background: linear-gradient(135deg,#92660F,#7a560d); }
.feature-icon.c-blue   { background: linear-gradient(135deg,#1D4ED8,#1E3A8A); }

.feature-content { flex: 1 1 auto; min-width: 0; }
.feature-label {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.09em;
  font-weight: 700; color: var(--sage); margin-bottom: 12px;
}
.feature-row h2 {
  font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 34px;
  color: var(--ink); letter-spacing: -0.015em; margin: 0 0 16px;
  max-width: 640px; line-height: 1.2;
}
.feature-row p {
  font-size: 15.5px; line-height: 1.75; color: var(--ink-soft);
  max-width: 600px; margin: 0 0 20px;
}
.feature-taglist, .feature-spec {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 0;
  font-size: 14px; max-width: 640px;
}
.feature-taglist { color: var(--ink-soft); }
.feature-spec { color: var(--accent-dark); font-weight: 600; }
.feature-taglist li:not(:last-child)::after,
.feature-spec li:not(:last-child)::after { content: '\00b7'; margin: 0 10px; color: var(--line); font-weight: 400; }

/* ── Integrated with (top trust strip, above the hero) ── */
.powered-by { padding: 26px 24px; border-bottom: 1px solid var(--line); background: var(--card); }
.powered-by-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px 32px; flex-wrap: wrap;
  justify-content: center;
}
.powered-by-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em;
  font-weight: 700; color: var(--sage); white-space: nowrap;
}
.powered-by-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 22px 32px;
}
.pb-logo {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-soft); font-weight: 600; font-size: 16px;
}
.pb-logo svg { width: 26px; height: 26px; fill: currentColor; flex-shrink: 0; }

/* ── FAQ ── */
.faq { padding: 72px 24px; border-top: 1px solid var(--line); }
.faq-inner { max-width: 720px; margin: 0 auto; }
.faq h2 {
  font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 32px;
  color: var(--ink); letter-spacing: -0.015em; margin: 0 0 40px; text-align: center;
}
.faq-item { padding: 26px 0; border-top: 1px solid var(--line); }
.faq-item:first-of-type { border-top: none; padding-top: 0; }
.faq-item h3 {
  font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 19px;
  color: var(--ink); margin: 0 0 10px;
}
.faq-item p { font-size: 15px; line-height: 1.7; color: var(--ink-soft); margin: 0; }

/* ── Contact CTA (for prospects who aren't customers yet — every other
   CTA on the page assumes an existing account) ── */
.contact-cta {
  padding: 72px 24px; text-align: center;
  background: linear-gradient(160deg, #F4F8F5 0%, #EAF0EC 100%);
}
.contact-cta h2 {
  font-family: 'Source Serif 4', serif; font-weight: 700; font-size: 34px;
  color: var(--ink); letter-spacing: -0.015em; margin: 0 0 12px;
}
.contact-cta p { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 30px; }
.contact-methods {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
}
.contact-link {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 26px;
  border: 1px solid var(--line);
}
.contact-link svg { width: 19px; height: 19px; fill: none; stroke: var(--accent); stroke-width: 2; flex-shrink: 0; }
.contact-link:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.contact-link:hover svg { stroke: #fff; }

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line); padding: 40px 24px 48px;
  text-align: center;
}
.site-footer p { font-size: 12px; color: #9CA3AF; margin: 0 0 14px; }
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px 0;
}
.site-footer a {
  font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; }
.footer-links a:not(:last-child)::after { content: '\00b7'; margin: 0 12px; color: var(--line); font-weight: 400; }

@media (max-width: 760px) {
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-visual { flex: 0 0 auto; width: 170px; align-self: center; order: 2; margin-top: 8px; }
  .sparkle { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 20px 52px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 15.5px; }
  .feature-row, .feature-row.reverse {
    flex-direction: column; gap: 18px; padding: 48px 20px;
  }
  .feature-marker { flex: 0 0 52px; }
  .feature-icon { width: 52px; height: 52px; border-radius: 14px; }
  .feature-icon svg { width: 22px; height: 22px; }
  .feature-row h2 { font-size: 24px; max-width: none; }
}
