* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Arial, sans-serif;
  background: #0f0f0f;
  color: #ffffff;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
}


.hero h1 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -2px;
}

.k, .i {
  color: #6cf2c2;
  font-weight: 800;
}

.tagline {
  font-size: 20px;
  opacity: 0.85;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: white;
  color: black;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.contact {
  padding: 80px 16px;
  background: #111;
}

.contact-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 16px;
  background: #1a1a1a;
  text-align: center;
}

.contact-card h2 {
  margin-bottom: 12px;
}

.contact-card a {
  color: #6cf2c2;
  font-weight: 600;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: white;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav {
  display: flex;
  gap: 16px;
}

.nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.nav a:hover {
  color: white;
}

.section {
  padding: 80px 16px;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.card {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card h3 {
  margin: 0 0 8px 0;
}

.link {
  color: #6cf2c2;
  text-decoration: none;
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.nav-btn {
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 14px;
}
.nav-btn:hover { color: #fff; }

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.modal.is-open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal-dialog {
  position: relative;
  max-width: 520px;
  margin: 10vh auto;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 24px;
  color: #fff;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 12px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.8);
  font-size: 18px;
  cursor: pointer;
}
.modal-close:hover { color: #fff; }

.modal-sub {
  margin-top: 6px;
  opacity: 0.85;
}

.field {
  display: block;
  margin-top: 14px;
}
.field span {
  display: block;
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: #0f0f0f;
  color: #fff;
  outline: none;
}
.field input:focus,
.field textarea:focus {
  border-color: rgba(108, 242, 194, 0.6);
}
.thankyou {
  display: none;
  text-align: center;
  padding: 56px 20px; /* vairāk gaisa apkārt */
}

.thankyou h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
}

.thankyou p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.78;
  margin-bottom: 28px; /* elpa pirms pogas */
}

/* Make Thank You text match hero style */
.thankyou h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.thankyou p {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.85;
  line-height: 1.5;
}
.thankyou {
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.thankyou .btn {
  padding: 12px 28px;
  font-size: 15px;
}
/* Pixel intro overlay */
.intro{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 1s ease, visibility 1s ease;
}

.intro::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.intro-card{
  width: min(720px, calc(100vw - 32px));
  border-radius: 18px;
  padding: 28px 28px 22px;
  background: rgba(18,18,18,.85);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);

  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 22px;
  align-items: center;

  transform: translateY(8px) scale(0.98);
  animation: introPop .35s ease forwards;
}

@keyframes introPop{
  to { transform: translateY(0) scale(1); }
}

.pixel-art{
  width: 96px;
  height: 96px;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.45));
}

.intro-text{
  display: grid;
  gap: 10px;
}

.intro-line{
  font-size: 12px;
  letter-spacing: .08em;
  opacity: .9;
}

.intro-title{
  font-weight: 700;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: .02em;
}

.intro-title .k{
  color: #6cf2c2;
}

.pixel-dim{
  color: rgba(255,255,255,.72);
  font-weight: 500;
}

.intro-sub{
  font-size: 14px;
}

.caret{
  display: inline-block;
  margin-left: 6px;
  opacity: .9;
  animation: caretBlink .9s steps(1) infinite;
}

@keyframes caretBlink{
  50%{ opacity: 0; }
}

.intro--hide{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}


