:root {
  --bg: #f8fafc;
  --bg-mist: #e5e9f2;
  --surface: #ffffff;
  --surface-alt: #f3f4f6;
  --dark: #111827;
  --dark-surface: #1f2937;
  --text: #111827;
  --text-muted: #4b5563;
  --border: #e5e7eb;
  --primary: #374151;
  --primary-hover: #1f2937;
  --primary-soft: rgba(55, 65, 81, 0.08);
  --accent-red: #dc2626;
  --shadow-sm: 0 2px 10px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 16px 40px rgba(17, 24, 39, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar (New Age style) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background-color: var(--primary-soft);
  color: var(--text);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--text);
  font-weight: 700;
}

.nav-links a.nav-cta {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 600;
  padding: 0.52rem 1.2rem;
  margin-left: 0.35rem;
}

.nav-links a.nav-cta:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
}

/* Hero (New Age Masthead) */
.hero {
  background: var(--bg);
  padding: 4.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 4.8vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--dark);
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 48ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-light {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-light:hover {
  background-color: #ffffff;
  color: var(--dark);
  border-color: #ffffff;
}

/* New Age Decorative Device Circle */
.device-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
}

.device-circle {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: linear-gradient(135deg, #374151 0%, #6b7280 55%, #9ca3af 100%);
  opacity: 0.16;
  z-index: 0;
}

.device-circle-solid {
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f2937 0%, #4b5563 100%);
  z-index: 0;
}

.device-accent-dot {
  position: absolute;
  top: 12%;
  right: 10%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-red);
  z-index: 0;
}

.device-accent-cross {
  position: absolute;
  bottom: 14%;
  left: 10%;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  transform: rotate(18deg);
  user-select: none;
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  max-width: 330px;
  width: 100%;
}

.phone-frame-2d {
  position: relative;
  z-index: 1;
  max-width: 265px;
  width: 100%;
  filter: drop-shadow(0 18px 36px rgba(17, 24, 39, 0.18));
}

/* Quote / Statement Band (New Age signature gradient band) */
.quote-band {
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  color: #ffffff;
  padding: 4.5rem 0;
  text-align: center;
}

.quote-band blockquote {
  margin: 0 auto 1.25rem;
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  font-weight: 700;
}

.quote-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

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

.section-mist {
  background-color: var(--bg-mist);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin: 0 0 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.015em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* New Age Split Features Layout */
.features-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

.features-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.75rem;
}

.feature-item {
  text-align: left;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--bg-mist);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  padding: 10px;
}

.feature-icon img {
  width: 28px;
  height: 28px;
}

.feature-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
}

.feature-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Showcase */
.theme-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}

.theme-tab {
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.theme-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.showcase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.showcase-card img {
  max-height: 410px;
  width: auto;
  margin: 0 auto 1.1rem;
  filter: drop-shadow(0 12px 24px rgba(17, 24, 39, 0.14));
}

.showcase-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
}

.showcase-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* CTA Band (New Age bottom CTA) */
.cta-band {
  background: linear-gradient(135deg, #111827 0%, #374151 100%);
  color: #ffffff;
  padding: 4.5rem 0;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
}

.cta-band p {
  margin: 0 auto 1.75rem;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

/* Content Pages (Tietoturva & Ota yhteyttä) */
.page-main {
  padding: 3.5rem 0 4.5rem;
  background: var(--bg-mist);
  min-height: calc(100vh - 180px);
}

.page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  max-width: 820px;
  margin: 0 auto;
}

.page-card h1 {
  margin: 0 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.3rem);
}

.page-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.75rem;
}

.page-card h2 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.25rem;
}

.page-card p,
.page-card li {
  color: var(--text-muted);
}

.page-card ul {
  padding-left: 1.25rem;
}

.notice-box {
  background: var(--surface-alt);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.98rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.hp-field {
  display: none;
}

.form-status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: none;
}

.form-status.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-status.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Dark Minimal Footer (New Age style) */
.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.footer-links a:hover {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .features-split,
  .showcase-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .hero-visual {
    order: -1;
  }

  .phone-frame {
    max-width: 260px;
  }

  .device-circle,
  .device-circle-solid {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 640px) {
  .features-grid-2col {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 0.65rem 0;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .page-card {
    padding: 1.5rem;
  }
}
