*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ink: #2D3561;
  --coral: #FF6B6B;
  --coral-hover: #E85555;
  --coral-soft: #FFF0F0;
  --body: #2A2A2A;
  --muted: #6B7280;
  --cream: #FFF8F0;
  --cream-dark: #f5ede3;
  --white: #FFFFFF;
  --border: #f5ede3;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--body);
  background:
    /* Coral glow — top right */
    radial-gradient(ellipse 60% 50% at 78% 10%, rgba(255, 107, 107, 0.09) 0%, transparent 65%),
    /* Indigo glow — bottom left */
    radial-gradient(ellipse 50% 55% at 15% 78%, rgba(45, 53, 97, 0.06) 0%, transparent 65%),
    /* Diagonal split: cream → deeper cream */
    linear-gradient(158deg, var(--cream) 38%, #f0e6d8 100%);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Geometric background pattern ─── */
.geo-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  /* Diagonal grid — diamond pattern */
  background:
    repeating-linear-gradient(
      55deg,
      transparent,
      transparent 46px,
      rgba(45, 53, 97, 0.055) 46px,
      rgba(45, 53, 97, 0.055) 47px
    ),
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 46px,
      rgba(45, 53, 97, 0.055) 46px,
      rgba(45, 53, 97, 0.055) 47px
    );
  /* Subtler in center, stronger at edges */
  mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, rgba(0,0,0,0.35) 0%, black 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 45%, rgba(0,0,0,0.35) 0%, black 80%);
}


/* ─── Layout ─── */
.page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Header ─── */
header {
  padding: 32px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.logo-greek {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.logo:hover .logo-greek {
  color: var(--coral);
}

/* ─── Language switcher ─── */
.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--cream-dark);
  border-radius: 8px;
  padding: 3px;
}

.lang-switch__link {
  padding: 5px 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.lang-switch__link:hover {
  color: var(--ink);
}

.lang-switch__link.active {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ─── Hero ─── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0 40px;
}

.hero__tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.hero__tagline-accent {
  color: var(--coral);
}

.hero__description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 20px;
  max-width: 540px;
}

.hero__description strong {
  color: var(--body);
  font-weight: 500;
}

/* ─── Form ─── */
.signup {
  margin-top: 36px;
}

.signup__form {
  display: flex;
  gap: 10px;
  max-width: 460px;
}

.signup__input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  color: var(--body);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.signup__input::placeholder {
  color: #B0B8C4;
}

.signup__input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

.signup__button {
  padding: 14px 28px;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.signup__button:hover {
  background: var(--coral-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.25);
}

.signup__button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 1px 4px rgba(255, 107, 107, 0.2);
}

.signup__hint {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}

.signup__success {
  padding: 16px 20px;
  background: var(--ink);
  color: var(--white);
  border-radius: 12px;
  font-weight: 500;
  max-width: 460px;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.signup__success > span {
  overflow: hidden;
}

.signup__success.visible {
  grid-template-rows: 1fr;
  opacity: 1;
}

/* ─── Value Props ─── */
.values {
  padding: 20px 0 60px;
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.values__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.values__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: background 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.values__item:nth-child(1):hover .values__icon {
  background: #22C55E;
  transform: scale(1.08);
}

.values__item:nth-child(2):hover .values__icon {
  background: var(--coral);
  transform: scale(1.08);
}

.values__item:nth-child(3):hover .values__icon {
  background: #8B5CF6;
  transform: scale(1.08);
}

.values__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.values__text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ─── Footer ─── */
footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__link {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover {
  color: var(--coral);
}

/* ─── Footer market selector ─── */
.footer__markets {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.footer__market-link {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.footer__market-link:hover {
  color: var(--ink);
  background: var(--cream-dark);
}

.footer__market-link.active {
  color: var(--ink);
  font-weight: 600;
}

.footer__market-sep {
  color: var(--border);
  font-size: 0.75rem;
  line-height: 1;
  display: flex;
  align-items: center;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .hero {
    padding: 40px 0 32px;
  }

  .signup__form {
    flex-direction: column;
  }

  .signup__button {
    text-align: center;
  }

  .values__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .values__item {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }

  .values__icon {
    flex-shrink: 0;
    margin-top: 2px;
  }

  .values__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__markets {
    justify-content: flex-start;
  }
}

/* ─── Fade-in animation ─── */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease forwards;
}

.fade-up--d1 { animation-delay: 0.1s; }
.fade-up--d2 { animation-delay: 0.25s; }
.fade-up--d3 { animation-delay: 0.4s; }
.fade-up--d4 { animation-delay: 0.55s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .signup__button,
  .values__icon,
  .logo-greek,
  .signup__input,
  .lang-switch__link,
  .footer__link,
  .footer__market-link {
    transition: none;
  }

  .signup__success {
    transition-duration: 0.01s;
  }
}
