/* WebCodeDesigns — dark premium UI, open typography */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --bg: #070b12;
  --bg-elev: #0e1420;
  --bg-soft: #121a29;
  --bg-card: #151d2e;
  --ink: #e9eef7;
  --ink-soft: #a7b2c5;
  --muted: #8b97ab;
  --line: rgba(233, 238, 247, 0.1);
  --line-strong: rgba(233, 238, 247, 0.16);
  --teal: #2dd4bf;
  --teal-deep: #14b8a6;
  --teal-soft: rgba(45, 212, 191, 0.14);
  --radius: 16px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  --font-d: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-b: "Source Sans 3", "Segoe UI", sans-serif;
  --wrap: min(1140px, calc(100% - 2rem));
  --header: 4.35rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--font-b);
  color: var(--ink);
  background: var(--bg);
  font-size: 1.0625rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, .logo__text, .footer__brand, .hero__brand {
  font-family: var(--font-d);
  letter-spacing: 0.03em;
  margin: 0;
  font-weight: 600;
  color: #f5f7fb;
}
h1 {
  font-size: clamp(2.05rem, 5vw, 3.35rem);
  line-height: 1.48;
  font-weight: 600;
  letter-spacing: 0.04em;
}
h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.035em;
}
h3 {
  font-size: 1.14rem;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0.03em;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: var(--wrap); margin-inline: auto; }
.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 99;
  background: var(--bg-card); color: var(--ink); padding: .7rem 1rem; border-radius: 10px;
}
.skip:focus { top: 1rem; }

.eyebrow {
  margin: 0 0 .9rem;
  color: var(--teal);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
}
.lead {
  margin-top: 1rem;
  color: var(--ink-soft);
  max-width: 40rem;
  font-size: 1.1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}
.section { padding: clamp(4.4rem, 9vw, 7rem) 0; background: var(--bg); }
.section--tint {
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(45, 212, 191, 0.06), transparent 55%),
    var(--bg-elev);
}
.section--dark {
  background:
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(56, 189, 248, 0.06), transparent 50%),
    #05080f;
}
.section__head { margin-bottom: clamp(2rem, 4.5vw, 3rem); max-width: 42rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.05rem; padding: .82rem 1.3rem; border-radius: 12px;
  border: 1px solid transparent; text-decoration: none; font-weight: 600;
  letter-spacing: 0.02em; line-height: 1.2;
  cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--teal);
  color: #04201e;
}
.btn--primary:hover {
  background: #5eead4;
  box-shadow: 0 12px 32px rgba(45, 212, 191, 0.28);
}
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: rgba(45, 212, 191, 0.45);
  color: #fff;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 40; height: var(--header);
  backdrop-filter: blur(16px);
  background: rgba(7, 11, 18, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.header.is-on {
  border-bottom-color: var(--line);
  background: rgba(7, 11, 18, 0.94);
}
.header__bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.logo__mark {
  width: .85rem; height: .85rem; border-radius: 4px;
  background: linear-gradient(135deg, var(--teal), #38bdf8);
  box-shadow: 0 0 0 4px var(--teal-soft);
}
.logo__text {
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.nav { display: none; align-items: center; gap: 1.35rem; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 500;
  font-size: .98rem; letter-spacing: 0.02em;
}
.nav a:hover { color: var(--ink); }
.nav__cta { color: var(--teal) !important; font-weight: 700 !important; }
.burger {
  width: 2.65rem; height: 2.65rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-card); display: grid; place-content: center; gap: 6px; cursor: pointer;
}
.burger span { width: 1.1rem; height: 2px; background: var(--ink); display: block; transition: transform .2s ease; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.drawer {
  position: absolute; inset: var(--header) 0 auto;
  background: rgba(10, 15, 24, 0.98);
  border-bottom: 1px solid var(--line); padding: 1rem 1.15rem 1.4rem;
}
.drawer[hidden] { display: none; }
.drawer nav { display: grid; gap: .95rem; }
.drawer a { text-decoration: none; font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .burger, .drawer { display: none !important; }
}

/* Hero */
.hero {
  position: relative; min-height: calc(100svh - var(--header));
  display: grid; align-items: center; overflow: clip;
  background: #05080f; color: var(--ink);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 75% 65% at 65% 40%, #000 15%, transparent 75%);
  animation: drift 30s linear infinite;
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(48px); opacity: .5; }
.hero__glow--a {
  width: min(46vw, 420px); height: min(46vw, 420px); right: -4%; top: 6%;
  background: radial-gradient(circle, rgba(45,212,191,.45), transparent 70%);
  animation: floatA 10s ease-in-out infinite;
}
.hero__glow--b {
  width: min(38vw, 320px); height: min(38vw, 320px); left: -8%; bottom: 8%;
  background: radial-gradient(circle, rgba(56,189,248,.22), transparent 70%);
  animation: floatB 12s ease-in-out infinite;
}
.hero__layout {
  position: relative; z-index: 1;
  display: grid; gap: 2.2rem;
  padding: clamp(3rem, 8vh, 5.5rem) 0;
}
.hero__brand {
  color: var(--teal); font-weight: 600; margin-bottom: 1rem;
  font-size: clamp(1rem, 2vw, 1.12rem); letter-spacing: 0.04em; line-height: 1.4;
}
.hero__lead {
  margin-top: 1.35rem; color: var(--ink-soft); max-width: 34rem;
  font-size: clamp(1.05rem, 2.1vw, 1.18rem); line-height: 1.8; letter-spacing: 0.02em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__copy { animation: rise .85s cubic-bezier(.2,.8,.2,1) both; max-width: 38rem; }

.stack-card {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(14, 20, 32, 0.88);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transform: rotate(-1.2deg);
  animation: rise 1s cubic-bezier(.2,.8,.2,1) .12s both;
  box-shadow: var(--shadow);
}
.stack-card__head {
  display: flex; align-items: center; gap: .4rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: .8rem; letter-spacing: 0.03em;
  font-family: ui-monospace, Consolas, monospace;
}
.stack-card__head span { width: .5rem; height: .5rem; border-radius: 50%; background: rgba(233,238,247,.25); }
.stack-card__head span:nth-child(1){background:#f87171}
.stack-card__head span:nth-child(2){background:#fbbf24}
.stack-card__head span:nth-child(3){background:#34d399}
.stack-card__head em { margin-left: auto; font-style: normal; }
.stack-card__list li {
  display: grid; grid-template-columns: 7.6rem 1fr; gap: .85rem;
  padding: .95rem 1.05rem; border-bottom: 1px solid var(--line);
  font-size: .98rem; line-height: 1.45; letter-spacing: 0.015em;
}
.stack-card__list li:last-child { border-bottom: 0; }
.stack-card__list span {
  font-family: ui-monospace, Consolas, monospace; font-size: .72rem;
  letter-spacing: .08em; color: var(--muted); align-self: center;
}
.stack-card__list b { font-weight: 600; }
.stack-card__list .is-accent {
  background: linear-gradient(90deg, rgba(45,212,191,.14), transparent);
}
.stack-card__list .is-accent span { color: var(--teal); }

@media (min-width: 980px) {
  .hero__layout { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2.5rem; }
}

/* Capability */
.capability { display: grid; gap: 1rem; }
.capability article {
  padding: 1.45rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.capability article:hover {
  border-color: rgba(45, 212, 191, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.capability article p {
  margin-top: .55rem; color: var(--ink-soft); line-height: 1.65; letter-spacing: 0.01em;
}
.capability__wide { grid-column: 1 / -1; }
@media (min-width: 800px) {
  .capability { grid-template-columns: 1fr 1fr; }
}

/* Filters + services */
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.35rem; }
.filter-btn {
  border: 1px solid var(--line); background: var(--bg-card); color: var(--muted);
  border-radius: 999px; padding: .5rem 1rem; font-weight: 600; letter-spacing: 0.02em;
  cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.filter-btn.is-active, .filter-btn:hover {
  background: rgba(45, 212, 191, 0.12); color: var(--ink); border-color: rgba(45, 212, 191, 0.4);
}

.services { display: grid; gap: .9rem; }
.service {
  display: grid; gap: .6rem;
  padding: 1.3rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-card);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.service:hover {
  border-color: rgba(45, 212, 191, 0.38);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.service.is-soon {
  background: linear-gradient(180deg, #131b2c, #101826);
  border-style: dashed;
  border-color: rgba(45, 212, 191, 0.28);
}
.service__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .85rem; }
.service p { color: var(--ink-soft); line-height: 1.65; }
.service__link {
  justify-self: start; margin-top: .25rem;
  border: 0; background: transparent; color: var(--teal);
  font-weight: 700; letter-spacing: 0.02em; cursor: pointer; padding: 0;
  text-decoration: underline; text-underline-offset: .2em;
}
.service__link:disabled { opacity: .55; cursor: not-allowed; text-decoration: none; }
.badge {
  flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-soft); border-radius: 999px; padding: .32rem .6rem;
  line-height: 1.3;
}
@media (min-width: 760px) {
  .services { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: 1fr 1fr 1fr; }
}

/* Projects */
.projects { display: grid; gap: 1rem; }
.project {
  display: grid; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.project:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.project__media {
  min-height: 10rem;
  background:
    linear-gradient(135deg, rgba(45,212,191,.18), rgba(56,189,248,.1)),
    repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(233,238,247,.03) 8px, rgba(233,238,247,.03) 16px),
    #0c1320;
  position: relative;
}
.project__media::after {
  content: "Platzhalter";
  position: absolute; inset: auto 1rem 1rem auto;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); background: rgba(7,11,18,.75); padding: .35rem .6rem; border-radius: 8px;
}
.project__media.has-image::after { display: none; }
.project__body { padding: 1.2rem 1.25rem 1.35rem; display: grid; gap: .6rem; }
.project__meta { display: flex; flex-wrap: wrap; gap: .5rem; }
.project__cat, .project__status {
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); background: rgba(233,238,247,.06); border-radius: 999px; padding: .3rem .6rem;
}
.project__status { color: var(--teal); background: var(--teal-soft); }
.project p { color: var(--ink-soft); line-height: 1.65; }
.project__tech { display: flex; flex-wrap: wrap; gap: .45rem; }
.project__tech li {
  font-size: .84rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: .25rem .6rem;
}
.project__links { display: flex; flex-wrap: wrap; gap: .75rem; }
.project__links a { color: var(--teal); font-weight: 700; text-underline-offset: .18em; }
@media (min-width: 900px) {
  .projects { grid-template-columns: 1fr 1fr 1fr; }
}

/* Process */
.process { display: grid; gap: .9rem; }
.process li {
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
}
.process span {
  display: block; font-family: var(--font-d); font-weight: 700; color: var(--teal);
  margin-bottom: .5rem; letter-spacing: 0.04em; line-height: 1.3;
}
.process h3 { line-height: 1.35; }
.process p { margin-top: .45rem; color: var(--ink-soft); line-height: 1.65; }
@media (min-width: 900px) {
  .process { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .process { grid-template-columns: repeat(6, 1fr); }
}

/* Idea */
.idea {
  display: grid; gap: 1.6rem;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(45,212,191,.12), transparent 60%),
    var(--bg-card);
  box-shadow: var(--shadow);
}
.idea__points { display: grid; gap: .85rem; }
.idea__points li {
  padding-left: 1rem; border-left: 3px solid var(--teal);
  color: var(--ink-soft); line-height: 1.65; letter-spacing: 0.01em;
}
@media (min-width: 880px) {
  .idea { grid-template-columns: 1.2fr .8fr; align-items: center; }
}

/* About */
.about { display: grid; gap: 1.85rem; }
.about__note { margin-top: 1.1rem; color: var(--ink-soft); max-width: 40rem; line-height: 1.7; }
.about__pillars { display: grid; gap: .9rem; }
.about__pillars li {
  padding: 1.1rem 1.15rem; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--line);
  display: grid; gap: .3rem;
}
.about__pillars span { color: var(--ink-soft); line-height: 1.55; }
@media (min-width: 900px) {
  .about { grid-template-columns: 1.2fr .8fr; align-items: end; }
}

/* Form */
.form {
  max-width: 46rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  display: grid; gap: 1.05rem;
}
.form__grid { display: grid; gap: .9rem; }
.form__grid--2 { grid-template-columns: 1fr; }
.form label, .form__full { display: grid; gap: .45rem; }
.form label span, .form__type legend {
  font-weight: 600; font-size: .96rem; letter-spacing: 0.02em; color: var(--ink);
}
.form input, .form select, .form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  background: #0b111c; padding: .9rem 1rem; color: var(--ink);
  outline: none; letter-spacing: 0.01em; line-height: 1.45;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form select option { background: #0b111c; color: var(--ink); }
.form textarea { resize: vertical; min-height: 8.5rem; }
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: rgba(45, 212, 191, 0.5); box-shadow: 0 0 0 4px var(--teal-soft);
}
.form__type { border: 0; padding: 0; margin: 0; display: grid; gap: .7rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--line); border-radius: 999px; padding: .5rem .9rem;
  background: #0b111c; cursor: pointer; font-weight: 600; font-size: .94rem;
  letter-spacing: 0.015em; transition: border-color .18s ease, background .18s ease;
}
.chip input { accent-color: var(--teal); }
.chip:has(input:checked), .chip:hover {
  border-color: rgba(45, 212, 191, 0.45); background: var(--teal-soft);
}
.chip--soft { width: 100%; border-radius: 12px; justify-content: flex-start; }
.form__actions { display: grid; gap: .7rem; }
.form__hint { color: var(--muted); font-size: .94rem; line-height: 1.55; }
.form__hint a { color: var(--teal); font-weight: 700; }
.form__status {
  margin: 0; padding: .9rem 1rem; border-radius: 12px;
  background: var(--teal-soft); color: var(--teal); font-weight: 700;
}
.form__status[hidden] { display: none; }
@media (min-width: 720px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .form__grid--2 { grid-template-columns: 1fr 1fr; }
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background: #05080f;
  padding: 2.3rem 0 2.7rem;
  color: var(--muted);
  font-size: .96rem;
  letter-spacing: 0.01em;
}
.footer__grid { display: grid; gap: 1.3rem; }
.footer__brand {
  color: var(--ink); font-size: 1.18rem; margin-bottom: .35rem;
  font-weight: 600; letter-spacing: 0.02em;
}
.footer nav { display: flex; flex-wrap: wrap; gap: .75rem 1.15rem; }
.footer a { text-decoration: none; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.footer a:hover { color: var(--ink); }
.footer__copy { font-size: .9rem; }
@media (min-width: 860px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .footer__copy { grid-column: 1 / -1; }
}

/* Reveal */
[data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@keyframes drift { to { background-position: 52px 52px, 52px 52px; } }
@keyframes floatA { 50% { transform: translate(-14px, 18px); } }
@keyframes floatB { 50% { transform: translate(14px, -12px); } }
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Legal */
.legal { max-width: 42rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.7rem); line-height: 1.22; }
.legal .legal-block { margin-top: 1.5rem; display: grid; gap: 1.1rem; color: var(--ink-soft); line-height: 1.7; }
.legal strong { color: var(--ink); }
.placeholder {
  display: inline-block; border: 1px dashed rgba(45,212,191,.5);
  background: var(--teal-soft); color: var(--teal);
  border-radius: 8px; padding: .2rem .5rem; font-weight: 700; font-size: .92rem;
}
