/* Skymod Technology — main.css */

/* ============================================================
   CSS VARIABLES — Dark Theme
   ============================================================ */
:root {
  --bg: #060e0a;
  --surface: #0d1a12;
  --text: #e0eee6;
  --text-muted: #7a9a88;
  --accent: #10b981;
  --border: rgba(16, 185, 129, 0.15);
  --radius: 10px;
  --gap: 3em;
  --sidebar-w: 0px;
  --funding-bar-h: 0px;
  --nav-height: 4.5em;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg) !important;
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 20px !important;
  line-height: 1.9;
}

img { max-width: 100%; height: auto; }
.img-wrap { overflow: hidden; width: 100%; }
.img-wrap img { width: 100%; object-fit: cover; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #34d399; }

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1 { font-size: 3.6rem; font-weight: 700; line-height: 1.1; color: #ffffff; }
h2 { font-size: 2.5rem; font-weight: 700; line-height: 1.3; color: #ffffff; }
h3 { font-size: 1.6rem; font-weight: 600; line-height: 1.4; color: #ffffff; }
h4 { font-size: 1.1rem; font-weight: 600; line-height: 1.5; color: #ffffff; }
p, li { font-size: 1.1rem; line-height: 1.9; }
.label, .tag, .meta { font-size: 0.9rem; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2em; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 2em; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3em; align-items: center; }
.section { padding: 5em 0; }
.section-header { text-align: center; margin-bottom: 3em; }
.section-header p { color: var(--text-muted); max-width: 620px; margin: 0.8em auto 0; font-size: 1.1rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.85em 2.2em;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
.btn-primary:hover { background: #059669; color: #fff; }

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  padding: 0.85em 2.2em;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   FUNDING BAR
   ============================================================ */
#funding-bar { color: #fff !important; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 2.5em !important;
  position: fixed !important;
  top: var(--funding-bar-h, 0px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-height: 4.5em !important;
  z-index: 9999 !important;
  background-color: rgba(6, 14, 10, 0.97) !important;
  border-bottom: 1px solid var(--border) !important;
  box-sizing: border-box !important;
  backdrop-filter: blur(8px);
}

#site-nav .nav-logo {
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  text-decoration: none;
}

#site-nav .nav-menu {
  display: flex !important;
  flex-direction: row !important;
  list-style: none !important;
  margin: 0 0 0 auto !important;
  padding: 0 !important;
}

#site-nav .nav-menu li a {
  display: flex !important;
  align-items: center !important;
  height: 4.5em !important;
  padding: 0 1.2em !important;
  color: rgba(255,255,255,0.72) !important;
  font-size: 15px !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

#site-nav .nav-menu li a:hover,
#site-nav .nav-menu li.active a { color: #ffffff !important; }

#site-nav .nav-menu li a.btn-nav {
  background: var(--accent);
  color: #fff !important;
  border-radius: 6px;
  padding: 0.55em 1.4em !important;
  height: auto !important;
  margin: auto 0 auto 0.8em;
  font-size: 15px !important;
}
#site-nav .nav-menu li a.btn-nav:hover { background: #059669; }

/* Page wrapper padding to avoid content hiding behind fixed nav */
#page-wrapper { padding-top: 4.5em !important; }

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  position: relative;
  background: url('../images/hero-main.jpg') center/cover no-repeat var(--bg);
  padding: 8em 4em 6em;
}
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 0;
  pointer-events: none;
}
#hero > * { position: relative; z-index: 2; }
#hero .hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5em;
  align-items: center;
}
#hero .hero-label {
  color: var(--accent);
  font-size: 0.78em;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.2em;
}
#hero h1 { margin-bottom: 0.8em; }
#hero .hero-tagline {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 480px;
}
#hero .hero-right p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 2.5em;
}
#hero .hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1em;
  align-items: flex-start;
}

/* ============================================================
   STATS / METRICS BAR
   ============================================================ */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5em 0;
}
.stats-bar .stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2em;
  text-align: center;
}
.stats-bar .stat-item .stat-num {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.stats-bar .stat-item .stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3em;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.feature-card .feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2em;
}
.feature-card .feature-icon svg { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.6em; color: #ffffff; }
.feature-card p { font-size: 1rem; color: var(--text-muted); line-height: 1.8; }

/* ============================================================
   FEATURE ROWS (product page)
   ============================================================ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5em;
  align-items: center;
  padding: 4em 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row .feature-text h3 { font-size: 1.6rem; margin-bottom: 0.7em; }
.feature-row .feature-text p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.9; margin-bottom: 1.2em; }
.feature-row .feature-text ul { list-style: none; padding: 0; }
.feature-row .feature-text ul li {
  padding: 0.35em 0 0.35em 1.6em;
  position: relative;
  color: var(--text-muted);
  font-size: 1rem;
}
.feature-row .feature-text ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.feature-row .feature-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
body.page-about #about-hero {
  background-image: url('../images/about-hero.jpg');
}

.page-hero {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  position: relative;
  background: center/cover no-repeat var(--bg);
  padding: 6em 4em 3em;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 2; }
.page-hero-inner { max-width: 1100px; margin: 0 auto; width: 100%; }
.page-hero-inner .page-label {
  color: var(--accent);
  font-size: 0.78em;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 0.8em;
}
.page-hero-inner h1 { font-size: 3rem; }

.spotlight-section { padding: 5em 0; }
.spotlight-inner {
  display: flex;
  gap: 4em;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2em;
}
.story-img { flex-shrink: 0; width: 45%; }
.story-img img { width: 100%; border-radius: var(--radius); object-fit: cover; height: 380px; }
.story-text { flex: 1; }
.story-text h2 { margin-bottom: 0.8em; }
.story-text p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1em; }

/* Investors section */
#investors { background: var(--surface); border-top: 1px solid var(--border); padding: 4em 0; }
#investors .investor-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2em 2.5em;
  text-align: center;
}
#investors .investor-name { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
#investors .investor-round { font-size: 0.88rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.4em; }
#investors .investor-amount { font-size: 2rem; font-weight: 700; color: #ffffff; margin: 0.5em 0 0.3em; }

/* ============================================================
   TEAM PAGE
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 0 auto;
}
.team-card { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5em 2em; transition: border-color 0.2s ease; }
.team-card:hover { border-color: var(--accent); }
.team-card img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 1.2em;
  border: 3px solid var(--border);
}
.team-card h3 { font-size: 1.3rem; margin-bottom: 0.3em; }
.team-card .title { color: var(--accent); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.8em; }
.team-card p { color: var(--text-muted); font-size: 0.98rem; line-height: 1.8; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5em;
  align-items: start;
}
.contact-info h3 { font-size: 1.2rem; margin-bottom: 0.5em; color: var(--accent); margin-top: 2em; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.85; }
.contact-info a { color: var(--accent); }
.contact-message { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5em; }
.contact-message h3 { margin-bottom: 0.8em; }
.contact-message p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.8em; line-height: 1.85; }

/* ============================================================
   BLOG LISTING
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5em;
  max-width: 1100px;
  margin: 0 auto;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.blog-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.blog-card .card-img { height: 200px; overflow: hidden; }
.blog-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .card-body { padding: 1.6em; }
.blog-card .card-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.7em; }
.blog-card h3 { font-size: 1.2rem; margin-bottom: 0.5em; line-height: 1.4; }
.blog-card h3 a { color: #ffffff; text-decoration: none; }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card .card-excerpt { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2em;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.step-item { text-align: center; padding: 1.5em; }
.step-num {
  width: 56px;
  height: 56px;
  background: rgba(16,185,129,0.12);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2em;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.step-item h4 { font-size: 1.1rem; margin-bottom: 0.5em; }
.step-item p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 0;
}
#footer .inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3em 4em;
  gap: 3em;
}
#footer .footer-brand p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; margin-top: 0.8em; }
#footer .footer-brand .copyright { font-size: 0.82em; color: var(--text-muted); margin-top: 1.2em; }
#footer h4 { font-size: 1rem; font-weight: 600; color: #ffffff; margin-bottom: 1em; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.6em; }
.footer-nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9em; transition: color 0.2s; }
.footer-nav a:hover { color: var(--text); }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10003;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.2em 2em;
}
.cookie-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; }
.cookie-text strong { font-size: 1rem; color: var(--text); }
.cookie-text p { font-size: 0.88rem; color: var(--text-muted); margin: 0.4em 0 0; line-height: 1.6; }
.cookie-text a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 0.8em; flex-shrink: 0; }
#cookie-decline {
  padding: 0.6em 1.4em;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
}
#cookie-accept {
  padding: 0.6em 1.4em;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
}
#cookie-decline:hover { border-color: var(--accent); color: var(--text); }
#cookie-accept:hover { background: #059669; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(6,14,10,0.9));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5em 2em;
  text-align: center;
}
.cta-section h2 { margin-bottom: 0.6em; }
.cta-section p { color: var(--text-muted); max-width: 560px; margin: 0 auto 2.5em; font-size: 1.05rem; }
.cta-buttons { display: flex; gap: 1em; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   ARTICLE TYPOGRAPHY
   ============================================================ */
.article-body, .post-content { max-width: 720px; margin: 0 auto; }
.article-body p, article p { margin-bottom: 1.4em; line-height: 1.9; }
.article-body h2, article h2 { margin-top: 2.2em; margin-bottom: 0.8em; font-size: 2.5rem; }
.article-body h3, article h3 { margin-top: 1.8em; margin-bottom: 0.6em; font-size: 1.6rem; }
.article-body ul, .article-body ol, article ul, article ol { margin-bottom: 1.4em; padding-left: 1.8em; }
.article-body li, article li { margin-bottom: 0.5em; line-height: 1.85; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
  h3 { font-size: 1.3rem; }
  body { font-size: 16px !important; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 2em; }
  .feature-row.reverse { direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5em; }
  #footer .inner { grid-template-columns: 1fr; padding: 2em; }
  .stats-bar .stats-inner { grid-template-columns: repeat(2, 1fr); }
  #hero { padding: 5em 1.5em 3em; min-height: auto; }
  #hero .hero-inner { grid-template-columns: 1fr; gap: 2.5em; }
  .spotlight-inner { flex-direction: column; }
  .story-img { width: 100%; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  #site-nav .nav-menu { display: none !important; }
  #site-nav { padding: 0 1.5em !important; }
}
