/* ============================================================
   ependise.gr — shared stylesheet
   Χρησιμοποιείται από όλες τις σελίδες (index, founders,
   investors, operators, deals, legal pages, 404).
   ============================================================ */

:root {
  --primary-blue: #2447f9;
  --primary-blue-dark: #1a36c7;
  --secondary-blue: #eef2ff;
  --dark-blue: #111827;
  --text-main: #172033;
  --text-muted: #718096;
  --white: #ffffff;
  --light-gray: #f3f5f9;
  --border: #e2e8f0;
  --success-green: #10b981;
  --amber: #f59e0b;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: var(--light-gray);
  color: var(--text-main);
  line-height: 1.7;
}

a { text-decoration: none; transition: 0.3s; color: var(--primary-blue); }

img { max-width: 100%; height: auto; }

h1, h2, h3 { color: var(--dark-blue); }

h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 20px;
  line-height: 1.2;
}

h3 { line-height: 1.3; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Skip link (προσβασιμότητα) ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary-blue); color: #fff;
  padding: 10px 18px; z-index: 10000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Navigation ---------- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  font-weight: 800;
  font-size: 20px;
  color: var(--dark-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links { display: flex; gap: 22px; align-items: center; }

.nav-links a {
  color: #4a5568;
  font-weight: 600;
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a.active { color: var(--primary-blue); }

.nav-links a.nav-cta {
  background: var(--primary-blue);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 10px;
}
.nav-links a.nav-cta:hover { background: var(--primary-blue-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--dark-blue);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
  color: var(--white);
  background: linear-gradient(rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.86)),
              url('https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.hero--compact { min-height: 52vh; padding: 70px 20px 50px; }

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--white);
}

.hero p {
  max-width: 820px;
  margin: 0 auto 22px;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 22px;
}

/* ---------- Stats bar ---------- */
.stats-container {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 45px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.1);
  padding: 20px 40px;
  border-radius: var(--radius);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-box { text-align: center; }

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--success-green);
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  font-family: inherit;
  text-align: center;
}

.btn + .btn { margin-left: 12px; }

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 10px 20px rgba(36, 71, 249, 0.2);
}

.btn-primary:hover { transform: translateY(-2px); background: var(--primary-blue-dark); color: #fff; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.2); color: #fff; }

.btn-outline {
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
  background: var(--white);
}
.btn-outline:hover { background: var(--secondary-blue); }

/* ---------- Sections & cards ---------- */
.section { padding: 80px 20px; }
.section--alt { background: var(--light-gray); }
.section--white { background: var(--white); }

.container { max-width: 1120px; margin: 0 auto; }
.container--narrow { max-width: 780px; }

.card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
  border: 1px solid #edf2f7;
  margin-bottom: 30px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.lead { font-size: 17px; color: var(--text-muted); }

/* ---------- Feature list ---------- */
.feature-list { display: grid; gap: 20px; margin-top: 20px; }

.feature {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid #eef2f7;
  transition: 0.3s ease;
}

.feature:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 10px 25px rgba(36, 71, 249, 0.05);
}

.feature h3 { margin: 0 0 10px; }
.feature p { margin: 0; color: var(--text-muted); }

.icon-box {
  background: var(--secondary-blue);
  padding: 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  height: 50px;
  color: var(--primary-blue);
  font-weight: 800;
}

.icon-box--step { min-width: 64px; height: 64px; font-size: 22px; }

/* ---------- Grids ---------- */
.intro-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* ---------- Audience cards (3 είσοδοι) ---------- */
.audience-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: 0.3s ease;
}
.audience-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-blue);
  box-shadow: 0 18px 35px rgba(36, 71, 249, 0.08);
}
.audience-card .audience-icon { font-size: 34px; margin-bottom: 14px; }
.audience-card h3 { margin: 0 0 12px; font-size: 21px; }
.audience-card p { color: var(--text-muted); margin: 0 0 18px; }
.audience-card ul { color: var(--text-muted); padding-left: 20px; margin: 0 0 24px; font-size: 14px; }
.audience-card li { margin-bottom: 6px; }
.audience-card .audience-cta { margin-top: auto; }

/* ---------- Project cards ---------- */
.project-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08); }

.project-image {
  height: 200px;
  background-color: #cbd5e1;
  background-size: cover;
  background-position: center;
  position: relative;
}

.project-category {
  position: absolute;
  top: 15px; left: 15px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-blue);
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.example-tag {
  position: absolute;
  top: 15px; right: 15px;
  background: var(--dark-blue);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.project-title { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
.project-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 25px; flex-grow: 1; }

.progress-wrap { margin-top: auto; }

.target-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 15px;
}

.target-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.target-value { font-size: 15px; font-weight: 700; color: var(--dark-blue); }

.project-footer-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  border-top: 1px solid #eef2f7;
  padding-top: 15px;
}

/* ---------- Deal-flow filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 10px;
}

.filter-pill {
  background: var(--white);
  border: 1px solid var(--border);
  color: #4a5568;
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}
.filter-pill:hover { border-color: var(--primary-blue); color: var(--primary-blue); }
.filter-pill.active { background: var(--primary-blue); border-color: var(--primary-blue); color: var(--white); }

.filter-count { font-size: 13px; color: var(--text-muted); margin-top: 6px; }

.empty-state {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: 20px;
  padding: 50px 30px;
  text-align: center;
  color: var(--text-muted);
}

/* ---------- Notice / callout ---------- */
.notice {
  background: var(--secondary-blue);
  border-left: 5px solid var(--primary-blue);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 14px;
  margin: 25px 0;
}
.notice--warn { background: #fffbeb; border-left-color: var(--amber); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #2d3748;
}

input, select, textarea {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-family: inherit;
  outline: none;
  font-size: 15px;
  background: var(--white);
  color: var(--text-main);
}

textarea { resize: vertical; }

input:focus, select:focus, textarea:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(36, 71, 249, 0.1);
}

.form-hint { font-size: 12px; color: var(--text-muted); display: block; margin-top: 6px; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { width: auto; margin-top: 5px; }
.checkbox-row label { margin-bottom: 0; font-weight: 500; font-size: 13px; }

/* honeypot — αόρατο σε ανθρώπους, ορατό σε bots */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { margin-top: 20px; display: none; text-align: center; font-weight: 600; }
.form-status--ok { color: var(--success-green); }
.form-status--err { color: #dc2626; }

/* ---------- AI assistant ---------- */
.ai-hero-section {
  padding: 80px 20px;
  background-color: var(--white);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.ai-hero-content h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 18px;
}

.ai-badge {
  background: var(--secondary-blue);
  border: 1px solid var(--primary-blue);
  color: var(--primary-blue);
  padding: 8px 20px;
  border-radius: 30px;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.ai-input-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  max-width: 850px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
  text-align: left;
}

.ai-input-card label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--dark-blue);
}

#ai-btn {
  background: var(--primary-blue);
  color: var(--white);
  border: none;
  padding: 20px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: 0.3s;
  font-family: inherit;
}
#ai-btn:hover { background: var(--primary-blue-dark); transform: translateY(-2px); }
#ai-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.ai-result-box {
  margin-top: 40px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-left: 6px solid var(--primary-blue);
  padding: 30px;
  border-radius: 20px;
  text-align: left;
}

/* ---------- Legal / text pages ---------- */
.legal-page { background: var(--white); }
.legal-page .container { padding: 60px 0; }
.legal-page h1 { font-size: clamp(28px, 4vw, 40px); }
.legal-page h2 { font-size: 22px; margin-top: 35px; }
.legal-page p, .legal-page li { color: #35415a; font-size: 15px; }

/* ---------- Scroll-to-top ---------- */
#scrollTop {
  position: fixed;
  bottom: 30px; right: 30px;
  background: var(--primary-blue);
  color: var(--white);
  width: 45px; height: 45px;
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  font-size: 18px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--dark-blue);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 20px 40px;
  font-size: 13px;
}

footer a { color: var(--white); font-weight: 600; }
footer a:hover { color: #90cdf4; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  text-align: left;
  padding-bottom: 35px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid h4 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 14px;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }

.footer-bottom { padding-top: 25px; text-align: center; }

.risk-disclaimer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 20px;
  line-height: 1.6;
}

/* ---------- Cookie banner ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #1a202c;
  color: #e2e8f0;
  padding: 16px 24px;
  display: none;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  z-index: 9999;
  font-size: 13px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
}
#cookie-banner a { color: #90cdf4; text-decoration: underline; }
#cookie-banner .cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
#cookie-banner button {
  padding: 8px 20px; border: none; border-radius: 6px;
  font-weight: 700; cursor: pointer; font-size: 13px; font-family: inherit;
}
#cookie-accept { background: var(--primary-blue); color: #fff; }
#cookie-reject { background: #4a5568; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 60px 20px; }
  .card, .ai-input-card { padding: 28px 22px; }
  .stats-container { gap: 20px; padding: 18px 22px; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid #f1f5f9; font-size: 15px; }
  .nav-links a.nav-cta { margin-top: 12px; text-align: center; border-bottom: none; }

  .btn { display: block; width: 100%; }
  .btn + .btn { margin-left: 0; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
