/* ==========================================================================
   VALNOVO Tattoo — landing page styles
   Dark theme, single deep-red accent, mobile-first.
   ========================================================================== */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Neutrals */
  --bg:        #0a0a0a;
  --bg-2:      #101010;
  --surface:   #161616;
  --surface-2: #1d1d1d;
  --line:      rgba(255, 255, 255, 0.08);
  --text:      #f4f1ee;
  --muted:     #a39e98;

  /* Single accent: deep red */
  --accent:      #e11d2a;
  --accent-deep: #b1121d;
  --accent-soft: rgba(225, 29, 42, 0.14);

  --maxw: 1100px;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for sticky header */
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}
.container--narrow { max-width: 720px; }

.section { padding-block: clamp(64px, 12vw, 120px); }

/* ---- Typographic display face ---- */
.hero__title,
.section__title,
.logo,
.offer__price {
  font-family: "Anton", "Inter", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.02;
}

/* Long German compounds must wrap, never overflow on narrow screens */
.hero__title,
.section__title {
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* ---- Buttons ---- */
.btn {
  --btn-bg: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  background: var(--btn-bg);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
  box-shadow: 0 8px 24px -10px rgba(225, 29, 42, 0.7);
}
.btn:hover { transform: translateY(-2px); background: var(--accent-deep); box-shadow: 0 14px 34px -12px rgba(225, 29, 42, 0.85); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 18px 38px; font-size: 1.1rem; }
.btn--small { padding: 10px 18px; font-size: 0.9rem; box-shadow: none; }
.btn--block { width: 100%; }
.btn--ghost {
  --btn-bg: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,0.18); }

/* Accessible focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-size: 1.35rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--text);
}
.logo::after { content: ""; }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding-block: clamp(72px, 16vw, 150px);
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}
.hero::before {
  /* subtle vignette to add depth */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 120%, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 820px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  padding: 6px 14px;
  border: 1px solid rgba(225, 29, 42, 0.45);
  border-radius: 999px;
  color: #ff6a72;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(2.5rem, 9vw, 5rem);
  margin-bottom: 22px;
}
.hero__sub {
  font-size: clamp(1.05rem, 3.5vw, 1.3rem);
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 34px;
}

.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
}
.hero__trust li {
  position: relative;
  padding-left: 22px;
  font-size: 0.92rem;
  color: var(--muted);
}
.hero__trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---- Section titles ---- */
.section__title {
  font-size: clamp(1.9rem, 6vw, 3rem);
  margin-bottom: 14px;
}
.section__lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 560px;
}

/* ---- Problem ---- */
.section--problem { background: var(--bg-2); }
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 36px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card--problem { border-left: 3px solid var(--accent); }
.card:hover { transform: translateY(-3px); border-color: rgba(225, 29, 42, 0.5); }
.card__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); }

/* ---- Solution ---- */
.solution__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 36px;
}
.solution__item {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 26px 58px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.solution__item::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.solution__item:hover { transform: translateY(-3px); border-color: rgba(225, 29, 42, 0.5); }
.solution__name { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.solution__item p { color: var(--muted); }

/* ---- Gallery ---- */
.section--gallery { background: var(--bg-2); }

/* Showcase: desktop screenshot in a browser frame + overlapping mobile shot */
.showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}
.work {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 0 18px;
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.work:hover {
  transform: translateY(-4px);
  border-color: rgba(225, 29, 42, 0.5);
  box-shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.9);
}
/* fake browser top bar */
.work__browser {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.work__dots { display: inline-flex; gap: 7px; }
.work__dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: #3a3a3a;
}
.work__dots i:first-child { background: var(--accent); }
.work__url {
  flex: 1;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  background: var(--bg);
  border-radius: 999px;
  padding: 5px 14px;
  margin-right: 40px; /* visually balance the dots on the left */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work__shots { position: relative; line-height: 0; }
.work__desktop {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--line);
}
/* phone screenshot floating over the bottom-right of the desktop shot */
.work__mobile {
  position: absolute;
  right: 14px;
  bottom: -26px;
  width: 21%;
  max-width: 130px;
  min-width: 78px;
  height: auto;
  border-radius: 12px;
  border: 3px solid #050505;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.85);
  background: #050505;
}
.work__name {
  margin: 40px 18px 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

/* ---- Founder ---- */
.section--founder {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, var(--accent-soft), transparent 60%),
    var(--bg);
}
.founder {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}
.founder__media { flex: 0 0 auto; width: 100%; max-width: 360px; }
.founder__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.founder__body { flex: 1; }
.founder__text {
  font-size: clamp(1.02rem, 2.6vw, 1.18rem);
  line-height: 1.7;
  color: var(--muted);
  margin-top: 16px;
}
.founder__body .section__title { margin-bottom: 0; }

/* ---- Social proof ---- */
.section--proof { background: var(--bg-2); }
.proof {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.proof__card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.proof__card:hover { transform: translateY(-3px); border-color: rgba(225, 29, 42, 0.5); }
.proof__stars {
  color: var(--accent);
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}
.proof__quote {
  margin: 0 0 18px;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text);
}
.proof__author { display: flex; flex-direction: column; gap: 2px; }
.proof__name { font-weight: 700; color: var(--text); }
.proof__studio { color: var(--muted); font-size: 0.95rem; }
.proof__source { color: #7d7872; font-size: 0.82rem; margin-top: 4px; }

/* ---- Offer / scarcity ---- */
.section--offer { background: var(--bg-2); }
.offer {
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(225, 29, 42, 0.35);
  border-radius: 20px;
  padding: clamp(34px, 7vw, 56px) clamp(22px, 5vw, 48px);
  box-shadow: 0 30px 80px -40px rgba(225, 29, 42, 0.5);
}
.offer__badge {
  display: inline-block;
  margin-bottom: 22px;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}
.offer__headline {
  font-size: clamp(1.3rem, 4.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
}
.offer__anchor {
  margin-bottom: 6px;
  font-size: 1.15rem;
  color: var(--muted);
}
.offer__anchor s { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.offer__price {
  font-size: clamp(3rem, 12vw, 4.6rem);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 12px;
  margin-bottom: 4px;
}
.offer__price span {
  font-size: 1.4rem;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
}
.offer__price small {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}
.offer__note { color: var(--muted); margin-bottom: 30px; }

/* ---- FAQ ---- */
.faq { margin-top: 30px; display: grid; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 20px;
  transition: border-color 0.2s var(--ease);
}
.faq__item[open] { border-color: rgba(225, 29, 42, 0.45); }
.faq__q {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 18px 32px 18px 0;
  position: relative;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}
.faq__item[open] .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { color: var(--muted); padding: 0 0 20px; }

/* ---- Lead form ---- */
.section--lead {
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, var(--accent-soft), transparent 60%),
    var(--bg);
}
.lead-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 14px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.field .optional { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: #6f6a64; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: var(--surface-2);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a39e98' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}

.field--check { gap: 0; }
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  font-weight: 400;
}
.checkbox input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}
.checkbox a { color: #ff6a72; text-decoration: underline; }

.form-error {
  grid-column: 1 / -1;
  color: #ff8a90;
  background: rgba(225, 29, 42, 0.1);
  border: 1px solid rgba(225, 29, 42, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.95rem;
}

/* Success state */
.lead-thanks {
  text-align: center;
  margin-top: 26px;
  padding: 40px 24px;
  background: var(--surface);
  border: 1px solid rgba(225, 29, 42, 0.4);
  border-radius: var(--radius);
}
.lead-thanks__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
}
.lead-thanks__text { font-size: 1.25rem; font-weight: 600; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 44px;
  background: var(--bg-2);
}
.site-footer .container:first-child {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.site-footer__brand { color: var(--muted); font-size: 0.92rem; }
.site-footer__links { display: flex; gap: 22px; }
.site-footer__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.18s var(--ease);
}
.site-footer__links a:hover { color: var(--text); }

/* ---- Standalone legal pages (impressum.html / datenschutz.html) ---- */
.legal-page {
  padding-top: 48px;
  padding-bottom: 80px;
  color: var(--muted);
}
.legal-back {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.18s var(--ease);
}
.legal-back:hover { color: var(--text); }
.legal-page h1 {
  font-family: "Anton", "Inter", system-ui, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 7vw, 3rem);
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 18px;
}
.legal-page .legal-sub { margin-bottom: 28px; }
.legal-page h2 {
  font-size: 1.2rem;
  color: var(--text);
  margin: 30px 0 8px;
}
.legal-page p { font-size: 0.96rem; line-height: 1.7; margin-bottom: 10px; }
.legal-page a { color: #ff6a72; }

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8);
  animation: cookie-in 0.4s var(--ease) both;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.cookie-banner__text a { color: #ff6a72; }
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
@keyframes cookie-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Scroll reveal (progressive enhancement; visible by default) ---- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Tablet / desktop
   ========================================================================== */
@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .solution__list { grid-template-columns: repeat(2, 1fr); }
  .lead-form { grid-template-columns: 1fr 1fr; }
  .showcase { gap: 56px; }
  /* Desktop: make the phone mockup ~2.2x larger and give it more room */
  .work__mobile {
    right: 32px;
    bottom: -40px;
    width: 28%;
    max-width: 290px;
    border-width: 5px;
    border-radius: 18px;
  }
  .work__name { margin-top: 54px; }
  .founder {
    flex-direction: row;
    align-items: center;
    gap: 44px;
  }
  .founder__media { width: 40%; max-width: 380px; }
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* Center via auto margins, NOT transform — the entrance animation uses
       transform: translateY, which would otherwise clobber a translateX(-50%). */
    left: 0;
    right: 0;
    margin-inline: auto;
    width: min(960px, calc(100% - 32px));
  }
  .cookie-banner__actions { flex-shrink: 0; }
  .site-footer .container:first-child {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .solution__list { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
