﻿/* ================================================================
   Reveloom — Custom Styles (reveloom.com)
   Built on: Forty template (HTML5UP)
   ================================================================ */

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  --funding-bar-h: 0px;
  --accent: #7c3aed;
  --accent-dark: #6d28d9;
  --bg: #0a0612;
  --surface: #130d1f;
  --surface2: #1c1432;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: rgba(124,58,237,0.18);
  --radius: 12px;
  --gap: 2.5em;
}

/* ── Dark Theme (R-THEME1) ─────────────────────────────────────── */
body { background-color: var(--bg, #0a0612) !important; color: var(--text, #e2e8f0) !important; }
#wrapper { background-color: var(--bg) !important; }
#main { background-color: var(--bg) !important; }

/* ── Header / Nav ──────────────────────────────────────────────── */
#header {
  position: fixed !important;
  top: var(--funding-bar-h, 0px) !important;
  z-index: 10000 !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  background-color: rgba(10,6,18,0.95) !important;
  border-bottom: 1px solid var(--border) !important;
}
#header a.logo strong { color: #fff !important; }
#header a.logo span { color: rgba(255,255,255,0.55) !important; }
#header nav a { color: rgba(255,255,255,0.75) !important; border-bottom-color: rgba(255,255,255,0.15) !important; }
#header nav a:hover { color: #fff !important; }

/* ── Funding Bar (R-FUNDING-BAR1) ─────────────────────────────── */
#funding-bar { background-color: #6d28d9 !important; color: #fff !important; }
#funding-bar a, #funding-bar strong, #funding-bar span { color: #fff !important; }
#funding-bar button { color: rgba(255,255,255,0.85) !important; }

/* ── Hero / Banner (R-IMG8, R-HERO3, R-HERO4) ─────────────────── */
#banner {
  background-image: url('../images/hero-main.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(30,5,40,0.30);
  background-blend-mode: multiply;
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
}
#banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 0;
  pointer-events: none;
}
#banner > * { position: relative; z-index: 2; }
#banner .inner { position: relative; z-index: 2; }
#banner h1, #banner h2, #banner p { color: #fff !important; }
#banner p { color: rgba(255,255,255,0.82) !important; }

/* About page banner override (R-ABOUT1) */
body.page-about #banner {
  background-image: url('../images/about-hero.jpg') !important;
}

/* Product page banner */
body.page-product #banner {
  background-image: url('../images/product-hero.jpg') !important;
}

/* ── Menu (R-NAV1) ─────────────────────────────────────────────── */
#menu {
  background-color: var(--surface2) !important;
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 320px !important;
  max-width: 80vw !important;
  height: 100% !important;
  z-index: 10002 !important;
  overflow-y: auto !important;
  padding: 3em 2em 2em !important;
  box-sizing: border-box !important;
  transform: translateX(100%) !important;
  transition: transform 0.35s ease !important;
  border-left: 1px solid var(--border) !important;
}
body.is-menu-visible #menu {
  transform: translateX(0) !important;
}
body.is-menu-visible::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 10001;
}
#menu .links li a {
  color: var(--text) !important;
  border-bottom-color: var(--border) !important;
}
#menu .links li a:hover { color: var(--accent) !important; }
#menu .close { color: rgba(255,255,255,0.6) !important; }

/* ── Tiles (R-TILES2) ──────────────────────────────────────────── */
#one.tiles {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 4em 2em !important;
  gap: 1.5em !important;
  box-sizing: border-box !important;
}
.tiles article {
  border-radius: var(--radius) !important;
  overflow: hidden !important;
}
.tiles article .image img {
  object-fit: contain !important;
  object-position: center !important;
}

/* ── Inner sections (R-INNER1) ─────────────────────────────────── */
#main .inner {
  display: block;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}
.inner { max-width: 1100px; margin: 0 auto; box-sizing: border-box; }

/* ── Sections ──────────────────────────────────────────────────── */
#main section { background-color: var(--bg) !important; }
#main section#two { background-color: var(--surface) !important; }
#two .inner { padding: 4em 2em; }

/* ── Section text overrides (R-CSS1) ───────────────────────────── */
#main h1, #main h2, #main h3, #main h4 { color: var(--text) !important; }
#main p { color: var(--text-muted) !important; }
#main a { color: var(--accent) !important; }

/* ── Contact section ────────────────────────────────────────────── */
#contact {
  background-color: var(--surface) !important;
  color: var(--text) !important;
}
#contact h3 { color: var(--text) !important; }
#contact p, #contact span { color: var(--text-muted) !important; }
#contact a { color: var(--accent) !important; }
#contact .contact-method .icon { color: var(--accent) !important; border-color: var(--accent) !important; }
#contact input[type="text"],
#contact input[type="email"],
#contact textarea {
  background-color: var(--surface2) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
#contact input[type="text"]:focus,
#contact input[type="email"]:focus,
#contact textarea:focus {
  border-color: var(--accent) !important;
}
#contact label { color: var(--text-muted) !important; }
#contact input[type="submit"].primary {
  background-color: var(--accent) !important;
  border-color: var(--accent-dark) !important;
}

/* ── Footer ─────────────────────────────────────────────────────── */
#footer {
  background-color: var(--surface) !important;
  border-top: 1px solid var(--border) !important;
}
#footer .inner {
  display: block; /* override main.css grid — layout handled by .inner-grid */
  padding: 3.5em 2em 2em;
}
#footer .inner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3em;
  max-width: 1100px;
  margin: 0 auto 2em;
}
#footer .footer-nav { list-style: none; padding: 0; margin: 0; line-height: 2.4; }
#footer .footer-nav a { color: rgba(255,255,255,0.6) !important; text-decoration: none; font-size: 0.88em; }
#footer .footer-nav a:hover { color: #fff !important; }
#footer h3 { color: var(--text) !important; font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.1em; }
#footer .copyright {
  max-width: 1100px;
  margin: 1.5em auto 0;
  padding-top: 1.5em;
  border-top: 1px solid var(--border);
  font-size: 0.82em;
  text-align: center;
  color: rgba(255,255,255,0.4) !important;
}
#footer .copyright li a { color: rgba(255,255,255,0.55) !important; }
#footer .copyright li a:hover { color: #fff !important; }

/* ── Buttons ────────────────────────────────────────────────────── */
.button.primary {
  background-color: var(--accent) !important;
  border-color: var(--accent-dark) !important;
  color: #fff !important;
}
.button.primary:hover {
  background-color: var(--accent-dark) !important;
}
.button {
  border-color: rgba(255,255,255,0.3) !important;
  color: var(--text) !important;
}
.button:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* ── Blog / Cards ────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
  max-width: 1100px;
  margin: 0 auto;
  padding: 4em 2em;
}
.article-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.article-card.pinned {
  border-left: 3px solid var(--accent);
  background: rgba(124,58,237,0.06);
}
.card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.card-body {
  padding: 1.5em;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h2, .card-body h3 { font-size: 1.05em; margin-bottom: 0.5em; }
#main .blog-grid .article-card h2,
#main .blog-grid .article-card h3 { color: var(--text) !important; }
#main .blog-grid .article-card p { color: var(--text-muted) !important; font-size: 0.9em; }
#main .blog-grid .article-card a { color: var(--text) !important; text-decoration: none; }
#main .blog-grid .article-card a:hover { color: var(--accent) !important; }
.card-meta { font-size: 0.8em; color: var(--text-muted) !important; margin-bottom: 0.75em; }
.card-footer { margin-top: auto; padding-top: 1em; }
.card-footer a { color: var(--accent) !important; font-size: 0.88em; }

/* Tags */
.tag {
  display: inline-block;
  font-size: 0.72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2em 0.65em;
  border-radius: 4px;
  background: rgba(124,58,237,0.15);
  color: var(--accent) !important;
  margin-bottom: 0.75em;
}
.tag.funding {
  background: var(--accent);
  color: #fff !important;
}

/* ── Article Pages ───────────────────────────────────────────────── */
.article-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 5em 2em;
}
.article-hero-img {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 2em;
}
.article-hero-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  display: block;
}
#main .article-page h1 { color: var(--text) !important; font-size: 2em; line-height: 1.2; margin-bottom: 0.5em; }
#main .article-page h2 { color: var(--text) !important; font-size: 1.4em; margin-top: 2em; }
#main .article-page h3 { color: var(--text) !important; font-size: 1.15em; margin-top: 1.5em; }
#main .article-page p { color: var(--text-muted) !important; line-height: 1.75; margin-bottom: 1.2em; }
#main .article-page ul, #main .article-page ol { color: var(--text-muted) !important; line-height: 1.8; padding-left: 1.5em; margin-bottom: 1.2em; }
#main .article-page li { margin-bottom: 0.4em; }
.article-meta { color: var(--text-muted) !important; font-size: 0.88em; margin-bottom: 2em; padding-bottom: 1.5em; border-bottom: 1px solid var(--border); }
.back-link { display: inline-block; margin-bottom: 2em; color: var(--accent) !important; font-size: 0.9em; }
.back-link:hover { color: var(--accent-dark) !important; }

/* ── Team Cards (R-TEAM1) ────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  max-width: 1100px;
  margin: 0 auto;
  padding: 4em 2em;
}
.team-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2em 1.5em;
  text-align: center;
  border: 1px solid var(--border);
}
.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  object-fit: cover;
  object-position: 50% 10%;
  display: block;
  margin: 0 auto 1.2em;
}
.team-card h3 { color: var(--text) !important; font-size: 1em; margin-bottom: 0.25em; }
.team-card .team-role { color: var(--accent) !important; font-size: 0.85em; font-weight: 600; margin-bottom: 0.75em; }
.team-card .bio { color: var(--text-muted) !important; font-size: 0.88em; line-height: 1.6; }
/* Horizontal card variant */
.team-card.team-card--h {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 1.8em !important;
  padding: 1.8em 2em !important;
  text-align: left !important;
}
.team-card.team-card--h img { width: 88px !important; height: 88px !important; min-width: 88px !important; margin: 0 !important; border-radius: 50% !important; }
.team-card.team-card--h .team-info { flex: 1; min-width: 0; }
@media (max-width: 600px) {
  .team-card.team-card--h { flex-direction: column !important; align-items: center !important; text-align: center !important; }
}

/* ── About Page Spotlight (R-ABOUT4) ─────────────────────────────── */
.spotlight-section {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4em;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 4em 2em;
}
.story-text h2 { color: var(--text) !important; }
.story-text p { color: var(--text-muted) !important; line-height: 1.7; }
.story-img {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}
.story-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  display: block;
}
@media (max-width: 768px) {
  .spotlight-section { grid-template-columns: 1fr; gap: 2em; }
  .story-img { max-width: 480px; margin: 0 auto; }
}

/* ── Product Page ────────────────────────────────────────────────── */
.feature-section {
  padding: 5em 2em;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-section h2 { color: var(--text) !important; }
.feature-section p { color: var(--text-muted) !important; line-height: 1.7; }
.feature-img-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  margin: 0 0 1.5em;
}
.feature-img-wrap img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center;
  display: block;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2em;
  margin-top: 3em;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2em;
  border: 1px solid var(--border);
}
#main .feature-card h3 { color: var(--text) !important; font-size: 1em; margin-bottom: 0.5em; }
#main .feature-card p { color: var(--text-muted) !important; font-size: 0.9em; }
.feature-card .icon-wrap { color: var(--accent); font-size: 1.5em; margin-bottom: 0.75em; }

/* ── Pricing Page ──────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
  max-width: 1100px;
  margin: 0 auto;
  padding: 4em 2em;
}
.pricing-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5em 2em;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
}
/* featured: HTML uses .pricing-card--featured */
.pricing-card--featured {
  border-color: var(--accent);
  background: rgba(124,58,237,0.18);
}
/* Featured card — stronger text contrast */
.pricing-card--featured .pricing-name {
  color: #c4b5fd !important;
}
.pricing-card--featured .pricing-price {
  color: #ffffff !important;
}
.pricing-card--featured .pricing-period {
  color: rgba(255,255,255,0.65) !important;
}
.pricing-card--featured .pricing-features li {
  color: rgba(255,255,255,0.8) !important;
  border-bottom-color: rgba(124,58,237,0.3) !important;
}
.pricing-card--featured .pricing-features li i {
  color: #a78bfa !important;
}
/* Featured card button — inverted (white bg, accent text) for contrast */
.pricing-card--featured .button.primary {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--accent) !important;
}
.pricing-card--featured .button.primary:hover {
  background-color: #f5f3ff !important;
  color: var(--accent-dark) !important;
}
.pricing-badge {
  position: absolute;
  top: -0.75em;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72em;
  font-weight: 700;
  padding: 0.2em 0.9em;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}
/* Plan name */
.pricing-name {
  font-size: 0.82em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent) !important;
  margin-bottom: 0.75em;
}
/* Price number: HTML uses .pricing-price */
.pricing-price,
.pricing-amount {
  font-size: 2.5em;
  font-weight: 800;
  color: var(--text) !important;
  margin: 0.25em 0 0.1em;
  line-height: 1;
}
.pricing-period { color: var(--text-muted) !important; font-size: 0.85em; margin-bottom: 1.5em; }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2em;
  text-align: left;
  flex: 1;
}
.pricing-features li {
  padding: 0.45em 0;
  color: var(--text-muted) !important;
  font-size: 0.9em;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6em;
}
/* FA check icon color — no ::before bullet (avoids double indicator) */
.pricing-features li i {
  color: var(--accent);
  font-size: 0.85em;
  flex-shrink: 0;
}
.pricing-cta { margin-top: auto; }

/* ── Investors Section ───────────────────────────────────────────── */
.investors-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4em 2em;
  text-align: center;
}
#main .investors-section h2 { color: var(--text) !important; }
#main .investors-section p { color: var(--text-muted) !important; }
.investor-name {
  display: inline-block;
  background: rgba(124,58,237,0.12);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2em 2.5em;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--text) !important;
  margin-top: 1em;
}

/* ── Stats ───────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--surface2) !important;
  padding: 3em 2em;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2em;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
#main .stats-bar .stat-number { color: var(--accent) !important; font-size: 2.2em; font-weight: 800; }
#main .stats-bar .stat-label { color: var(--text-muted) !important; font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── Cookie Banner (R-F1) ────────────────────────────────────────── */
#cookie-banner {
  background: var(--surface2);
  color: var(--text);
  padding: 1.2em 2em;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10003;
  flex-wrap: wrap;
}
#cookie-banner p { margin: 0; font-size: 0.88em; color: var(--text-muted); flex: 1; }
#cookie-banner a { color: var(--accent) !important; }
#cookie-banner button { border: none; padding: 0.5em 1.2em; border-radius: 6px; cursor: pointer; font-size: 0.85em; }
#cookie-banner #cookie-accept { background: var(--accent); color: #fff; }
#cookie-banner #cookie-decline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }

/* ── Legal Pages ─────────────────────────────────────────────────── */
.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 5em 2em;
}
#main .legal-page h1 { color: var(--text) !important; font-size: 2em; margin-bottom: 0.5em; }
#main .legal-page h2 { color: var(--text) !important; font-size: 1.3em; margin-top: 2.5em; border-bottom: 1px solid var(--border); padding-bottom: 0.4em; }
#main .legal-page h3 { color: var(--text) !important; font-size: 1.05em; margin-top: 1.5em; }
#main .legal-page p, #main .legal-page li { color: var(--text-muted) !important; line-height: 1.75; margin-bottom: 0.8em; }
#main .legal-page ul, #main .legal-page ol { padding-left: 1.5em; }
.legal-meta { color: var(--text-muted) !important; font-size: 0.85em; margin-bottom: 2.5em; padding-bottom: 1.5em; border-bottom: 1px solid var(--border); }
.legal-toc { background: var(--surface); border-radius: var(--radius); padding: 1.5em 2em; margin-bottom: 2.5em; border: 1px solid var(--border); }
.legal-toc h3 { color: var(--text) !important; margin-bottom: 0.75em; font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.08em; }
.legal-toc ol { padding-left: 1.25em; margin: 0; }
.legal-toc li { margin-bottom: 0.3em; }
.legal-toc a { color: var(--accent) !important; font-size: 0.88em; }

/* ── Contact page form styles ────────────────────────────────────── */
.contact-page { max-width: 1100px; margin: 0 auto; padding: 4em 2em; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4em;
  align-items: start;
}
.contact-info h2 { color: var(--text) !important; }
.contact-info p { color: var(--text-muted) !important; }
.contact-item { display: flex; align-items: flex-start; gap: 1em; margin-bottom: 1.5em; }
.contact-icon { color: var(--accent); font-size: 1.2em; margin-top: 0.1em; flex-shrink: 0; }
.contact-text h4 { color: var(--text) !important; margin-bottom: 0.2em; font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.07em; }
.contact-text p { color: var(--text-muted) !important; font-size: 0.9em; margin: 0; }
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  #footer .inner-grid { grid-template-columns: 1fr; gap: 2em; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .article-page, .legal-page { padding: 3em 1.25em; }
  .team-grid { grid-template-columns: 1fr; }
}

/* Legal Table */
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.88em;
  overflow-x: auto;
  display: block;
}
.legal-page table thead tr { border-bottom: 2px solid rgba(124,58,237,0.3); }
.legal-page table th { text-align: left; padding: 0.75em 1em; color: var(--text); font-weight: 600; white-space: nowrap; }
.legal-page table tbody tr { border-bottom: 1px solid rgba(124,58,237,0.1); }
.legal-page table td { padding: 0.65em 1em; color: var(--text-muted); vertical-align: top; }
.legal-page table td:first-child { font-family: monospace; }

.table-wrapper { overflow-x: auto; }
