:root {
  --bg: #07131c;
  --bg-soft: #0d1d29;
  --surface: rgba(11, 26, 36, 0.72);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --text: #e7eef4;
  --text-muted: #a7bac8;
  --line: rgba(173, 213, 243, 0.14);
  --white: #ffffff;
  --accent: #62d3ff;
  --accent-deep: #3ba8d3;
  --accent-soft: rgba(98, 211, 255, 0.14);
  --shadow: 0 30px 80px rgba(1, 8, 13, 0.4);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #07131c;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background-color: #07131c;
  background:
    radial-gradient(circle at top, rgba(98, 211, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #07131c 0%, var(--bg-soft) 100%);
  color: var(--text);
}

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

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

.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 28px clamp(20px, 4vw, 48px) 48px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 42%, rgba(98, 211, 255, 0.15), transparent 18%),
    linear-gradient(180deg, rgba(3, 11, 17, 0.18) 0%, rgba(3, 11, 17, 0.78) 100%),
    linear-gradient(90deg, rgba(3, 11, 17, 0.7) 0%, rgba(3, 11, 17, 0.2) 50%, rgba(3, 11, 17, 0.66) 100%),
    url("etusivu_pic1.jpg") center center / cover no-repeat;
  position: relative;
}

.topbar,
.hero-content,
.section,
.contact-panel {
  position: relative;
  z-index: 1;
}

.hero-content {
  width: min(1120px, 100%);
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0 96px;
  overflow: hidden;
}

.hero-wordmark {
  width: 100%;
  max-width: 1400px;
  height: auto;
  margin: 0;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero h1 {
  margin: 12px 0 18px;
  font-size: clamp(4.5rem, 16vw, 11rem);
  line-height: 0.88;
  font-weight: 400;
  letter-spacing: -0.06em;
  text-transform: lowercase;
}

.lead {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(8, 20, 28, 0.48);
  color: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #04111a;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-deep);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.section {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 100px;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 36px;
}

.section-heading h2,
.contact-panel h2 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 1.02;
}

.section-label {
  color: var(--accent);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(14, 30, 42, 0.88), rgba(8, 21, 30, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card-number {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--accent);
  font-weight: 800;
}

.card h3,
.contact-panel h2 {
  margin-top: 0;
}

.card p,
.contact-panel p {
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-card h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-weight: 700;
}

.contact {
  padding-bottom: 120px;
}

.contact-panel {
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(98, 211, 255, 0.12), transparent 24%),
    linear-gradient(140deg, rgba(6, 20, 29, 0.96), rgba(10, 37, 50, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(173, 213, 243, 0.16);
}

.contact-panel p {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.78);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(280px, 1fr);
  gap: 24px;
  align-items: stretch;
  margin: 28px 0 30px;
}

.contact-card {
  padding: 24px 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(4, 14, 21, 0.56);
  backdrop-filter: blur(10px);
}

.contact-card-single {
  width: 100%;
  margin: 0;
}

.contact-card-header {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-card-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
}

.contact-details {
  display: grid;
  gap: 12px;
}

.contact-details p {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: baseline;
  margin: 0;
}

.contact-details span {
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.contact-card a {
  color: var(--white);
}

.ai-panel {
  position: relative;
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(98, 211, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(98, 211, 255, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(12, 27, 38, 0.96), rgba(5, 15, 22, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 18px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.ai-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(98, 211, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 211, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 100%);
  pointer-events: none;
}

.ai-panel-header,
.ai-code,
.ai-graph {
  position: relative;
  z-index: 1;
}

.ai-panel-header {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.ai-window-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.ai-dot:first-child {
  background: #62d3ff;
  box-shadow: 0 0 14px rgba(98, 211, 255, 0.7);
}

.ai-panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.ai-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(98, 211, 255, 0.08);
  border: 1px solid rgba(98, 211, 255, 0.14);
  color: rgba(231, 238, 244, 0.68);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.ai-code {
  display: grid;
  gap: 8px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(98, 211, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.ai-code p {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(231, 238, 244, 0.82);
}

.ai-code span {
  color: var(--accent);
  display: inline-block;
  min-width: 22px;
  margin-right: 8px;
}

.ai-graph {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 78px;
  margin: 20px 0 16px;
}

.bar {
  width: 100%;
  border-radius: 999px 999px 10px 10px;
  background: linear-gradient(180deg, rgba(98, 211, 255, 0.95), rgba(41, 110, 136, 0.42));
  box-shadow: 0 0 18px rgba(98, 211, 255, 0.18);
}

.bar-1 {
  height: 34%;
}

.bar-2 {
  height: 58%;
}

.bar-3 {
  height: 46%;
}

.bar-4 {
  height: 78%;
}

.bar-5 {
  height: 100%;
}

.site-footer {
  padding: 0 20px 36px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: rgba(231, 238, 244, 0.62);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .intro-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 100svh;
    padding:
      max(16px, env(safe-area-inset-top))
      14px
      max(28px, env(safe-area-inset-bottom));
  }

  .hero-content {
    min-height: 100svh;
    padding: 20px 0 32px;
  }

  .hero-wordmark {
    width: 100%;
    max-width: 560px;
  }

  .section {
    width: min(100% - 28px, 1200px);
    padding-bottom: 72px;
  }

  .card,
  .contact-panel {
    padding: 24px;
  }

  .contact-details p {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 380px) {
  .hero {
    padding-inline: 10px;
  }

  .hero-wordmark {
    max-width: 94vw;
  }
}
