/* ============================================
   SATAMASSA.FI — Design System
   ============================================ */

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

:root {
  --navy:       #0b1e2d;
  --ocean:      #1a4a6e;
  --teal:       #1a8fa0;
  --teal-light: #e2f4f7;
  --orange:       #d94f1f;
  --orange-light: #fdeee8;
  --sky:        #eaf5f8;
  --white:      #ffffff;
  --bg:         #f3f7fa;
  --text:       #1a2533;
  --muted:      #546778;
  --border:     #cdd8e3;

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                'Helvetica Neue', Arial, sans-serif;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 2px 12px rgba(11, 30, 45, 0.08);
  --shadow-md: 0 4px 24px rgba(11, 30, 45, 0.12);
  --shadow-lg: 0 10px 48px rgba(11, 30, 45, 0.2);

  --max-w: 1060px;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body { margin: 0; }

/* ---- Utility ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================
   LANGUAGE NAV
   ============================================ */
.lang-bar {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  display: flex;
  gap: 0.125rem;
  z-index: 20;
}

.lang-bar a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  transition: color 0.15s, background 0.15s;
}

.lang-bar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.lang-bar a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  background:
    linear-gradient(158deg,
      #071828 0%,
      #0e3050 35%,
      #1a5276 70%,
      #1a7f8e 100%
    );
  color: #fff;
  padding: 5.5rem 1.5rem 8rem;
  text-align: center;
  overflow: hidden;
}

/* subtle diagonal grain */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 48px,
    rgba(255, 255, 255, 0.018) 48px,
    rgba(255, 255, 255, 0.018) 96px
  );
  pointer-events: none;
}

/* radial glow behind the title */
.hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  height: 640px;
  background: radial-gradient(
    ellipse,
    rgba(26, 143, 160, 0.22) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-logo {
  display: block;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  box-shadow:
    0 0 0 6px rgba(255, 255, 255, 0.12),
    0 16px 48px rgba(0, 0, 0, 0.45);
  object-fit: cover;
}

@media (max-width: 640px) {
  .hero-logo { width: 140px; height: 140px; }
}

.hero-eyebrow {
  margin: 0 0 0.875rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero-year {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(4rem, 13vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--orange);
  margin: 0.1em 0 0.35em;
  text-shadow: 0 4px 24px rgba(217, 79, 31, 0.4);
}

.hero-sub {
  margin: 0;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 2;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 90px;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 4.5rem 0;
}

.section--white { background: var(--white); }
.section--sky   { background: var(--sky);   }
.section--bg    { background: var(--bg);    }

.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-header {
  text-align: center;
  margin-bottom: 2.75rem;
}

.section-header .section-title { margin-bottom: 0.5rem; }

.section-header p {
  margin: 0.5rem auto 0;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* ============================================
   INTRO
   ============================================ */
.intro-body {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 1.0625rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}

.intro-body strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================
   THEME BANNER
   ============================================ */
.section--theme {
  background: linear-gradient(135deg, #0e3050 0%, #1a8fa0 100%);
  padding: 3rem 0;
}

.theme-banner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 780px;
  margin: 0 auto;
}

.theme-banner__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.theme-banner__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.theme-banner__tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.theme-banner__body p {
  margin: 0;
  font-size: 1rem;
  color: #fff;
  line-height: 1.7;
}

@media (max-width: 580px) {
  .theme-banner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* ============================================
   DOWNLOAD
   ============================================ */
.app-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.app-buttons__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: #111827;
  color: #fff;
  text-decoration: none;
  padding: 0.9rem 1.625rem;
  border-radius: var(--radius);
  min-width: 210px;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.app-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.app-btn:active {
  transform: translateY(-1px);
}

.app-btn svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.app-btn__label {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.app-btn__label small {
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  opacity: 0.65;
  text-transform: uppercase;
}

.app-btn__label strong {
  font-size: 1rem;
  font-weight: 600;
}

.app-btn--web {
  background: var(--orange);
  font-size: 1.0625rem;
  padding: 1rem 2rem;
  gap: 0.875rem;
  border: none;
}

.app-btn--web:hover {
  background: #c04418;
}

.app-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: 100%;
  max-width: 480px;
}

.app-divider::before,
.app-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.app-btn__free {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

/* ============================================
   STEPS
   ============================================ */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}

.step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.625rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.2s;
}

.step:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.step-num {
  flex-shrink: 0;
  width: 2.625rem;
  height: 2.625rem;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================
   ABOUT CARDS
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.about-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--orange-light);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.about-card__icon img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.about-card h3 {
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.5rem;
}

.about-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

.about-card a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}

.about-card a:hover {
  text-decoration: underline;
}

.badge {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

/* ============================================
   PARTNER LOGOS BAR
   ============================================ */
.partners {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.partners__label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.partners__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem 3.5rem;
}

.partner-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.partner-logo:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.partner-logo img,
.partner-logo svg {
  display: block;
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* Sailmate SVG is very tall (square icon + text stacked), constrain width */
.partner-logo--sailmate img,
.partner-logo--sailmate svg {
  height: 52px;
}

.partner-logo--venebat img {
  height: 80px;
}

@media (max-width: 480px) {
  .partners__logos { gap: 1.75rem 2.5rem; }
  .partner-logo img,
  .partner-logo svg { height: 36px; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 2.25rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .hero {
    padding-top: 4.5rem;
    padding-bottom: 7rem;
  }

  .hero-icon { width: 60px; height: 60px; }

  .section { padding: 3.5rem 0; }

  .app-btn {
    min-width: unset;
    width: 100%;
    max-width: 300px;
  }

  .step { padding: 1.375rem 1.25rem; }
  .about-card { padding: 1.625rem 1.5rem; }
}
