/* ============================================================
   Pakoteseula.fi — Marketing site stylesheet
   ============================================================ */

/* Custom properties */
:root {
  --color-bg:         #f8fafc;
  --color-surface:    #ffffff;
  --color-primary:    #1e3a5f;
  --color-primary-dk: #152a47;
  --color-accent:     #2563eb;
  --color-accent-lt:  #dbeafe;
  --color-text:       #0f172a;
  --color-muted:      #64748b;
  --color-border:     #e2e8f0;
  --color-hero-bg:    #0f2240;
  --color-hero-text:  #e0eaff;
  --color-badge-bg:   rgba(255,255,255,.08);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);

  --font-base: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-base);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  padding: .625rem 1.25rem;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .12s;
  white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.btn-lg { font-size: 1rem; padding: .875rem 1.75rem; border-radius: var(--radius-md); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--color-hero-text);
  border-color: rgba(255,255,255,.25);
}
.btn-ghost:hover { background: var(--color-badge-bg); border-color: rgba(255,255,255,.4); }

.btn-nav {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  padding: .5rem 1rem;
  font-size: .875rem;
  border-radius: var(--radius-sm);
}
.btn-nav:hover { background: #1d4ed8; border-color: #1d4ed8; }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 34, 64, .96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  flex-shrink: 0;
}
.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.logo-text { color: #e0eaff; }
.logo-tld { color: var(--color-accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a:not(.btn) {
  color: #94a3b8;
  font-size: .9375rem;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:not(.btn):hover { color: #fff; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: var(--color-hero-bg);
  color: #fff;
  padding-block: 6rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% -10%, rgba(37,99,235,.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at -10% 80%, rgba(37,99,235,.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 780px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--color-badge-bg);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  padding: .375rem .875rem;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  box-shadow: 0 0 6px #4ade80;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 1.25rem;
}
.text-accent { color: #60a5fa; }

.hero-lead {
  font-size: 1.1875rem;
  color: var(--color-hero-text);
  max-width: 600px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   Lists strip
   ============================================================ */
.lists-strip {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding-block: 1.25rem;
}
.lists-strip .container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.strip-label {
  font-size: .875rem;
  color: var(--color-muted);
  font-weight: 500;
  flex-shrink: 0;
}
.lists-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.list-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--color-text);
}
.list-flag { font-size: 1.125rem; }
.list-sep { color: var(--color-border); font-size: 1.25rem; }

/* ============================================================
   Features
   ============================================================ */
.features {
  padding-block: 5rem;
  background: var(--color-bg);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--color-primary);
  margin-bottom: .75rem;
}
.section-header p {
  font-size: 1.0625rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: #bfdbfe;
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: var(--color-accent-lt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: .75rem;
  color: var(--color-accent);
}
.feature-icon svg { width: 100%; height: 100%; }

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.feature-card p {
  font-size: .9375rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* ============================================================
   How it works
   ============================================================ */
.how-it-works {
  padding-block: 5rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  counter-reset: steps;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.step-num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 5px var(--color-accent-lt);
}

.step-body h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.step-body p {
  font-size: .9375rem;
  color: var(--color-muted);
  line-height: 1.65;
}

/* ============================================================
   CTA section
   ============================================================ */
.cta-section {
  background: var(--color-hero-bg);
  color: #fff;
  padding-block: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(37,99,235,.3) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  max-width: 640px;
}
.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}
.cta-section p {
  color: var(--color-hero-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-primary-dk);
  color: #94a3b8;
  padding-top: 3.5rem;
}

.footer-inner {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
}

.footer-brand {
  flex: 1 1 240px;
}
.footer-brand p {
  margin-top: .75rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: #64748b;
}

.footer-brand .logo { color: #e0eaff; }
.footer-brand .logo-text { color: #e0eaff; }

.footer-nav { flex: 0 1 160px; }
.footer-nav h4 {
  font-size: .8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #475569;
  margin-bottom: 1rem;
}
.footer-nav ul { display: flex; flex-direction: column; gap: .625rem; }
.footer-nav a {
  font-size: .9375rem;
  color: #94a3b8;
  transition: color .15s;
}
.footer-nav a:hover { color: #e0eaff; }

.footer-bottom {
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-bottom p {
  font-size: .875rem;
  color: #475569;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .nav-links li:not(:last-child) { display: none; }

  .hero { padding-block: 4rem 3.5rem; }

  .lists-strip .container { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .list-sep { display: none; }

  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .step { flex-direction: row; align-items: flex-start; }
  .step-num { flex-shrink: 0; }

  .footer-inner { flex-direction: column; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .feature-card, .btn { transition: none; }
}
