@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@400;500;700&family=JetBrains+Mono:wght@400;700&display=swap');

:root {
  --bg-color: #ffffff;
  --surface-color: #e8f4fd;
  --text-color: #333333;
  --heading-color: #1a1a1a;
  --accent-color: #5b9ec9;
  --accent-strong: #2d7aaa;
  --logo-color: #3CA9DE;
  --line-color: #d8e7f2;
  --max-width: 980px;
  --nav-height: 72px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
h4 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--heading-color);
  font-weight: 400;
  line-height: 1.15;
}

p {
  max-width: 70ch;
}

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

.mono {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
}

.container {
  width: min(var(--max-width), 90%);
  margin: 0 auto;
}

main {
  flex: 1;
  padding-top: var(--nav-height);
}

.section {
  padding: 120px 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 22px;
}

.dotted-underline {
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 2px dotted var(--line-color);
}

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7d90a0;
  margin-bottom: 18px;
}

header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

header.scrolled {
  border-bottom-color: #e8eef4;
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  color: var(--heading-color);
  white-space: nowrap;
}

.brand-logo {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 22px;
  background: #d8e7f2;
  display: inline-block;
}

.brand-name {
  display: inline-block;
}

.mobile-toggle {
  border: 1px solid var(--line-color);
  background: transparent;
  color: var(--heading-color);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  position: relative;
  color: #3d4d59;
  transition: color 0.2s ease;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--accent-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-strong);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.hero {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0;
}

.hero-title,
.typed-heading {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.typed-text {
  display: inline-block;
  white-space: nowrap;
}

.typed-caret {
  width: 2px;
  height: 0.92em;
  background: var(--accent-strong);
  display: inline-block;
  vertical-align: baseline;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.6rem);
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #3e4a56;
  margin-bottom: 26px;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 54px;
}

.hero-link {
  color: var(--accent-strong);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-link .arrow,
.text-link .arrow {
  transition: transform 0.2s ease;
}

.hero-link:hover .arrow,
.text-link:hover .arrow {
  transform: translateX(4px);
}

.hero-logo {
  width: clamp(280px, 42vw, 420px);
  height: auto;
}

.section-intro {
  margin-bottom: 48px;
}

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

.project-card {
  border: 1.5px solid var(--line-color);
  padding: 30px;
  position: relative;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.project-card::before {
  content: '';
  position: absolute;
  left: -1.5px;
  top: -1.5px;
  height: 3px;
  width: calc(100% + 3px);
  background: var(--accent-strong);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.project-card:hover {
  background: var(--surface-color);
  border-color: #b7d4e8;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #6d8da3;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.project-card h3 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.project-card h3 i,
.accent-italic {
  font-style: italic;
}

.project-card p {
  margin-bottom: 18px;
}

.stack-pill {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent-strong);
  background: #f3f9fc;
  border: 1px solid #c6ddec;
  padding: 7px 10px;
  margin-bottom: 18px;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.services-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 50px;
  margin-bottom: 72px;
  align-items: start;
}

.services-list {
  list-style: none;
}

.services-list li {
  font-family: 'JetBrains Mono', monospace;
  color: var(--heading-color);
  margin-bottom: 10px;
}

.services-list li::before {
  content: '> ';
  color: var(--accent-strong);
}

.note {
  margin-top: 14px;
  font-size: 0.95rem;
  color: #55616b;
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-item {
  border: 1px solid var(--line-color);
  padding: 14px;
  background: #fbfdff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 52px;
}

.pricing-card {
  padding: 30px;
  background: #f9fcff;
  border: 1px solid transparent;
}

.pricing-card h3 {
  font-size: 1.85rem;
  margin-bottom: 6px;
}

.price {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-strong);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.pricing-card.featured {
  background: var(--accent-strong);
  color: #ffffff;
}

.pricing-card.featured h3,
.pricing-card.featured .price,
.pricing-card.featured a {
  color: #ffffff;
}

.badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  background: #ffffff;
  color: var(--accent-strong);
  padding: 4px 8px;
  margin-bottom: 16px;
}

.brief-block {
  background: var(--surface-color);
  padding: 34px;
}

.btn-mono {
  border: 1px solid var(--accent-strong);
  color: var(--accent-strong);
  font-family: 'JetBrains Mono', monospace;
  display: inline-flex;
  padding: 10px 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-mono:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.kontakt-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
}

.kontakt-intro h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 16px;
}

.email-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.email-box {
  border: 1px solid var(--line-color);
  padding: 12px 14px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent-strong);
}

.copy-btn,
.submit-btn {
  border: 1px solid var(--accent-strong);
  color: var(--accent-strong);
  background: transparent;
  padding: 11px 16px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.submit-btn {
  width: 100%;
}

.copy-btn:hover,
.submit-btn:hover {
  background: var(--accent-strong);
  color: #ffffff;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  color: #566674;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-color);
  padding: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  background: #ffffff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-strong);
}

footer {
  border-top: 1px solid #e8eef4;
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #5d6771;
  font-size: 0.9rem;
}

.footer-inner a {
  color: #5d6771;
}

.footer-inner a:hover {
  color: var(--accent-strong);
}

/* Scroll reveal: elements animate only after entering viewport */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Custom cursor */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-strong);
}

.cursor-ring {
  width: 28px;
  height: 28px;
  border: 1.5px solid rgba(45, 122, 170, 0.55);
  border-radius: 999px;
  transition: width 0.15s ease, height 0.15s ease, border-radius 0.15s ease;
}

.cursor-ring.is-hover {
  width: 36px;
  height: 36px;
}

.cursor-ring.is-text {
  width: 2px;
  height: 28px;
  border-radius: 2px;
  border-color: rgba(45, 122, 170, 0.85);
}

@media (max-width: 900px) {
  .grid-2,
  .pricing-grid,
  .services-layout,
  .kontakt-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 64px 0;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  nav {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e8eef4;
    display: none;
  }

  nav.is-open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 5%;
  }

  .hero {
    min-height: auto;
    padding: 72px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (pointer: coarse), (max-width: 760px), (prefers-reduced-motion: reduce) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
