/* ============================================================
   TopoLisp — Shared Design System
   style.css v1.0 — May 2026
   Used by all 6 pages of topolisp.gr
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400&display=swap');

/* ─── CSS VARIABLES ─── */
:root {
  --tl-navy-deep:    #050d1f;
  --tl-navy-mid:     #0a1628;
  --tl-navy-light:   #132040;
  --tl-cyan:         #00aaff;
  --tl-cyan-bright:  #00c8ff;
  --tl-cyan-tint:    #e8f4ff;
  --tl-white:        #ffffff;
  --tl-off-white:    #f5f7fa;
  --tl-border:       #e8ecf2;
  --tl-text:         #0f1d35;
  --tl-text-muted:   #6b7c93;

  --tl-font-display: 'Outfit', sans-serif;
  --tl-font-body:    'Inter', sans-serif;
  --tl-font-mono:    'JetBrains Mono', monospace;

  --tl-radius:       4px;
  --tl-radius-lg:    8px;
  --tl-max:          1060px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }

/* ─── BASE ─── */
body {
  font-family: var(--tl-font-body);
  color: var(--tl-text);
  background: var(--tl-white);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── CONTAINER ─── */
.container {
  max-width: var(--tl-max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── NAVIGATION ─── */
.nav {
  background: var(--tl-navy-deep);
  height: 56px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: var(--tl-max);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
}
.nav-logo {
  font-family: var(--tl-font-body);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-right: auto;
  text-decoration: none;
}
.nav-logo .topo { color: #fff; }
.nav-logo .lisp { color: var(--tl-cyan-bright); }
.nav-links { display: flex; align-items: center; }
.nav-link {
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 14px;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-link:hover { color: rgba(255,255,255,0.85); }
.nav-link.active { color: #fff; }
.nav-cta {
  background: linear-gradient(135deg, #00aaff, #007dff);
  color: var(--tl-navy-deep);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--tl-radius);
  text-decoration: none;
  margin-left: 16px;
  box-shadow: 0 0 16px rgba(0,170,255,0.3);
  transition: box-shadow 0.2s, filter 0.2s;
}
.nav-cta:hover { filter: brightness(1.12); box-shadow: 0 0 24px rgba(0,170,255,0.5); }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  background: var(--tl-navy-deep) url('../images/inner-hero-texture.png') center center / cover no-repeat;
  padding: 56px 0 52px;
  position: relative;
  overflow: hidden;
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,170,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,170,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--tl-max);
  margin: 0 auto;
  padding: 0 2rem;
}
.page-hero-label {
  font-family: var(--tl-font-mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tl-cyan);
  margin-bottom: 12px;
}
.page-hero h1 {
  font-family: var(--tl-font-display);
  font-size: 42px;
  line-height: 1.1;
  color: #fff;
  font-weight: 400;
  margin-bottom: 16px;
  max-width: 640px;
}
.page-hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  line-height: 1.65;
}

/* ─── SECTION NAV ─── */
.section-nav {
  background: var(--tl-white);
  border-bottom: 1px solid var(--tl-border);
  position: sticky;
  top: 56px;
  z-index: 90;
  overflow-x: auto;
}
.section-nav-inner {
  max-width: var(--tl-max);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
}
.snav-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--tl-text-muted);
  text-decoration: none;
  padding: 14px 18px 12px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s;
}
.snav-link:hover { color: var(--tl-text); }
.snav-link.active { color: var(--tl-navy-deep); border-bottom-color: var(--tl-cyan); }

/* ─── SECTION UTILITIES ─── */
.page-section { padding: 64px 0; border-bottom: 1px solid var(--tl-border); }
.page-section.alt { background: var(--tl-off-white); }

.section-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}
.section-sidebar-num { font-family: var(--tl-font-mono); font-size: 13px; color: var(--tl-cyan); letter-spacing: 0.1em; margin-bottom: 8px; }
.section-sidebar-title { font-family: var(--tl-font-display); font-size: 22px; color: var(--tl-navy-deep); font-weight: 400; line-height: 1.2; margin-bottom: 8px; }
.section-sidebar-desc { font-size: 13px; color: var(--tl-text-muted); line-height: 1.6; }

/* ─── TYPOGRAPHY HELPERS ─── */
.section-label { font-family: var(--tl-font-mono); font-size: 16px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tl-cyan); margin-bottom: 12px; }
.section-title { font-family: var(--tl-font-display); font-size: 32px; line-height: 1.15; color: var(--tl-navy-deep); margin-bottom: 12px; font-weight: 400; }
.section-sub { font-size: 16px; color: var(--tl-text-muted); max-width: 520px; line-height: 1.65; margin-bottom: 44px; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  background: var(--tl-navy-deep);
  color: #fff;
  font-family: var(--tl-font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--tl-radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--tl-navy-mid); box-shadow: 0 4px 20px rgba(5,13,31,0.4); }

.btn-accent {
  display: inline-block;
  background: linear-gradient(135deg, #00aaff, #007dff);
  color: var(--tl-navy-deep);
  font-family: var(--tl-font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--tl-radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(0,170,255,0.25);
  transition: box-shadow 0.2s, filter 0.2s;
}
.btn-accent:hover {
  filter: brightness(1.12);
  box-shadow: 0 0 36px rgba(0,170,255,0.45);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-family: var(--tl-font-body);
  font-size: 14px;
  font-weight: 400;
  padding: 13px 28px;
  border-radius: var(--tl-radius);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

.btn-outline-dark {
  display: inline-block;
  background: transparent;
  color: var(--tl-navy-deep);
  font-family: var(--tl-font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--tl-radius);
  text-decoration: none;
  border: 1px solid var(--tl-border);
  cursor: pointer;
  transition: border-color 0.15s;
}
.btn-outline-dark:hover { border-color: var(--tl-text-muted); }

/* ─── TAG NEW ─── */
.tag-new {
  display: inline-block;
  background: var(--tl-cyan);
  color: var(--tl-navy-deep);
  font-family: var(--tl-font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ─── TRUST BAR ─── */
.trust-bar { background: var(--tl-off-white); border-bottom: 1px solid var(--tl-border); padding: 18px 0; }
.trust-inner { max-width: var(--tl-max); margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--tl-text); padding: 4px 28px 4px 0; border-right: 1px solid var(--tl-border); margin-right: 28px; white-space: nowrap; }
.trust-item:last-child { border-right: none; margin-right: 0; }
.trust-item--star { font-weight: 600; color: var(--tl-navy-deep); font-size: 14px; }
.trust-emp { color: var(--tl-cyan); font-family: var(--tl-font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; background: var(--tl-cyan-tint); border: 0.5px solid rgba(0,170,255,0.3); border-radius: 3px; padding: 1px 6px; margin-left: 2px; vertical-align: middle; }
.trust-icon { width: 6px; height: 6px; background: var(--tl-cyan); border-radius: 50%; flex-shrink: 0; }

/* ─── KAEK CROSS-SELL ─── */
.kaek-box { background: var(--tl-cyan-tint); border: 0.5px solid rgba(0,170,255,0.25); border-radius: var(--tl-radius-lg); padding: 1.5rem 2rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.kaek-text { flex: 1; min-width: 280px; }
.kaek-label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tl-cyan); font-family: var(--tl-font-mono); margin-bottom: 6px; }
.kaek-title { font-size: 17px; font-weight: 600; color: var(--tl-navy-deep); margin-bottom: 4px; }
.kaek-desc { font-size: 15px; color: var(--tl-text-muted); line-height: 1.55; }
.kaek-link { color: var(--tl-cyan); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 1px solid rgba(0,170,255,0.3); padding-bottom: 1px; }
.kaek-link:hover { border-bottom-color: var(--tl-cyan); }

/* ─── FOOTER ─── */
.footer { background: #03080f; padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { max-width: var(--tl-max); margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-logo { font-family: var(--tl-font-body); font-size: 16px; font-weight: 600; }
.footer-logo .topo { color: rgba(255,255,255,0.6); }
.footer-logo .lisp { color: var(--tl-cyan-bright); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); font-family: var(--tl-font-mono); }
.footer-links { display: flex; gap: 20px; }
.footer-link { font-size: 12px; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.15s; }
.footer-link:hover { color: rgba(255,255,255,0.7); }
.footer-social { display: flex; gap: 8px; }
.footer-social-link { width: 32px; height: 32px; background: rgba(255,255,255,0.06); border: 0.5px solid rgba(255,255,255,0.1); border-radius: var(--tl-radius); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); transition: background 0.15s, border-color 0.15s, color 0.15s; }
.footer-social-link:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); color: rgba(255,255,255,0.8); }

/* ─── VIDEO EMBED ─── */
/* Replace .video-placeholder with .video-embed + iframe when YouTube is live */
.video-placeholder {
  background: var(--tl-navy-deep);
  border-radius: var(--tl-radius-lg);
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 32px 0;
}
.video-placeholder-icon { width: 48px; height: 48px; background: rgba(0,170,255,0.15); border: 0.5px solid rgba(0,170,255,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.video-placeholder-icon svg { fill: var(--tl-cyan); }
.video-placeholder-text { font-size: 12px; color: rgba(255,255,255,0.3); font-family: var(--tl-font-mono); text-align: center; line-height: 1.5; }
.video-embed { position: relative; aspect-ratio: 16/9; margin: 32px 0; border-radius: var(--tl-radius-lg); overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ─── HAMBURGER ─── */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--tl-radius);
  cursor: pointer;
  padding: 7px 9px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 1px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--tl-navy-mid);
    flex-direction: column;
    padding: 4px 0 12px;
    border-bottom: 1px solid rgba(0,170,255,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 99;
  }
  .nav.nav-open .nav-links { display: flex; }
  .nav-link {
    display: block;
    font-size: 14px;
    padding: 12px 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    letter-spacing: 0.04em;
  }
  .nav-cta { margin: 12px 1.5rem 0; display: block; text-align: center; }
  .page-hero h1 { font-size: 30px; }
  .section-layout { grid-template-columns: 1fr; gap: 28px; }
  .trust-item { border-right: none; margin-right: 0; padding-right: 0; }
  .container { padding: 0 1.25rem; }
  .footer-links { flex-wrap: wrap; gap: 10px 16px; }
  .section-nav { overflow: visible; }
  .section-nav-inner { overflow-x: auto; padding: 0 1.25rem; -webkit-overflow-scrolling: touch; }
}
