/* ========== BASE ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Colors / utilities */
.bg-white {
  background-color: #ffffff;
}

.text-gray-900 {
  color: #0f172a;
}

.text-gray-600 {
  color: #4b5563;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.tracking-tight {
  letter-spacing: -0.03em;
}

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

.max-w-6xl {
  max-width: 72rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.p-4 {
  padding: 1rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-10 {
  gap: 2.5rem;
}

/* Layout helpers */
.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.grid {
  display: grid;
}

.md-grid-cols-2 {
  display: grid;
  grid-template-columns: 1fr;
}

.md-grid-cols-3 {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .md-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md-grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md-text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }

  .md-text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

/* Header */
.w-full {
  width: 100%;
}

.border-b {
  border-bottom: 1px solid #e5e7eb;
}

.border-t {
  border-top: 1px solid #e5e7eb;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.bg-white-80 {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.z-50 {
  z-index: 50;
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #ec4899, #f97316);
}

/* Gradient titles */
.gradient-text {
  background: linear-gradient(90deg, #6366f1, #ec4899, #f97316);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.subsection-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #111827;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease,
    color 150ms ease, border-color 150ms ease, filter 150ms ease;
}

/* Purple gradient primary */
.btn-primary {
  background: linear-gradient(120deg, #a855f7, #ec4899);
  color: #fdf2ff;
  box-shadow: 0 12px 25px rgba(147, 51, 234, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 35px rgba(147, 51, 234, 0.5);
  filter: brightness(1.08);
}

.btn-secondary {
  border: 1px solid #d1d5db;
  color: #0f172a;
  background-color: #ffffff;
}

.btn-secondary:hover {
  background-color: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

/* Cards */
.card {
  border: 1px solid #e5e7eb;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 0 0 rgba(15, 23, 42, 0);
  transition: box-shadow 150ms ease, transform 150ms ease, border-color 150ms ease;
  background-color: #ffffff;
}

.card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.12);
  transform: translateY(-3px);
}

.card-small {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.5rem;
  background-color: #ffffff;
  transition: box-shadow 150ms ease, transform 150ms ease, border-color 150ms ease;
}

.card-small:hover {
  border-color: #a5b4fc;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

/* Accent cards for Webstudio highlights */
.accent-card {
  border-color: #c4b5fd;
  background: radial-gradient(circle at 0 0, #f5f3ff, #eef2ff, #ffffff);
}

/* Links */
.link,
.nav-link {
  position: relative;
  font-weight: 500;
}

.link::after,
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6366f1, #ec4899, #f97316);
  transition: width 180ms ease;
}

.link:hover::after,
.nav-link:hover::after {
  width: 100%;
}

.active-link {
  color: #111827;
  font-weight: 600;
}

/* Thumb placeholder */
.thumb {
  height: 180px;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 0 0, #eef2ff, #e0f2fe, #fef3c7);
  margin-bottom: 1.5rem;
}
/* Preview thumbs for case studies */
.preview-thumb {
  height: 140px;
  border-radius: 0.9rem;
  margin-bottom: 1rem;
  background-size: cover;
  background-position: center;
}

/* Slightly different gradients so φαίνονται σαν διαφορετικές "εικόνες" */
.preview-hero {
  background: radial-gradient(circle at 0 0, #eef2ff, #c4b5fd, #f5f3ff);
}

.preview-sections {
  background: radial-gradient(circle at 100% 0, #e0f2fe, #a5b4fc, #fef9c3);
}

.preview-cta {
  background: radial-gradient(circle at 50% 100%, #fee2e2, #f97316, #fef3c7);
}

/* Feature list */
.feature-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.feature-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #a855f7;
}

/* Nav and hamburger */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  background-color: #ffffff;
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.nav-toggle-label span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #111827;
  margin: 3px 0;
  border-radius: 999px;
  transition: transform 150ms ease, opacity 150ms ease;
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav-toggle-label {
    display: none;
  }

  .nav-links {
    display: flex;
    position: static;
  }
}

/* Mobile nav */
@media (max-width: 767.98px) {
  .nav-links {
    position: absolute;
    top: 4rem;
    right: 1rem;
    left: 1rem;
    padding: 1rem 1.25rem;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    display: none;
  }

  .nav-toggle:checked + .nav-toggle-label {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
    transform: translateY(1px);
  }

  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .nav-toggle:checked + .nav-toggle-label + .nav-links {
    display: flex;
  }

  .nav-links a {
    font-size: 0.95rem;
  }
}

/* Footer */
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

/* Small responsive tweak for hero */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }
}
