:root {
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 64px;
  --content-max-width: 960px;
  --accent: #7662f7;
  --bg: #fdf6ec;
  --frame: #000000;
  --frame-thickness: 14px;
  --notch-h: 46px;
  --notch-w: 128px;
  --cap-w: 96px;
  --cap-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 136 60'%3E%3Cpath fill='%23000' d='M0 14C22 14 36 17.5 46 24L79.1 45.5A90 90 0 0 0 128 60L136 60L136 0L0 0Z'/%3E%3C/svg%3E");
  --cap-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 136 60'%3E%3Cpath fill='%23000' d='M136 14C114 14 100 17.5 90 24L56.9 45.5A90 90 0 0 1 8 60L0 60L0 0L136 0Z'/%3E%3C/svg%3E");
  --white: #ffffff;
  --bg-card: var(--white);
  --text: #000000;
  --text-muted: #6b6b6b;
  --border: #000000;
  --border-width: 2px;
  --shadow-sm: 4px 4px 0 var(--border);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--frame);
  color: var(--text);
  -webkit-user-select: none;
  user-select: none;
}

.wrap {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 var(--space-2);
}

.logo {
  font-family: "Oleo Script Swash Caps", cursive;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

/* Efeito de "afundar": o elemento desliza e a sombra some */

.btn,
.pressable {
  --press: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover,
.btn:active,
.pressable:hover {
  transform: translate(var(--press), var(--press));
  box-shadow: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--bg-card);
  color: var(--text);
  border: var(--border-width) solid var(--border);
  border-radius: 5px;
  box-shadow: var(--press) var(--press) 0 var(--border);
  padding: 0 var(--space-3);
  height: 52px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: var(--white);
}

.btn.small {
  --press: 3px;
  height: 44px;
  padding: 0 var(--space-2);
  font-size: 13px;
  border-radius: 5px;
}

/* Hero */

.hero {
  padding: calc(var(--notch-h) + var(--space-4)) 0 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.02;
  font-weight: 900;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.03em;
}

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

.lead {
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 600;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Sections */

section {
  padding: var(--space-4) 0 0;
}

.section-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  margin: 0 0 var(--space-1);
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  max-width: 520px;
  margin: 0 auto var(--space-3);
}

/* Portfolio */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.portfolio-card {
  background: var(--bg-card);
  border: var(--border-width) solid var(--border);
  border-radius: 5px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.portfolio-thumb {
  height: 180px;
  border-bottom: var(--border-width) solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.portfolio-thumb.self {
  background: var(--accent);
  color: var(--white);
  font-family: "Oleo Script Swash Caps", cursive;
  font-size: 22px;
  text-align: center;
  padding: var(--space-2);
}

.portfolio-thumb.placeholder {
  background: repeating-linear-gradient(
    45deg,
    var(--bg),
    var(--bg) 10px,
    var(--bg-card) 10px,
    var(--bg-card) 20px
  );
  color: var(--text-muted);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.portfolio-body {
  padding: var(--space-3);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--text);
  color: var(--white);
  border-radius: 2px;
  padding: 4px var(--space-1);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-1);
}

.portfolio-body h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 var(--space-1);
}

.portfolio-body p {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0 0 var(--space-2);
  line-height: 1.5;
  flex: 1;
}

.portfolio-card.placeholder .portfolio-body p {
  font-style: italic;
}

/* CTA final */

.cta-final {
  text-align: center;
}

.cta-final h2 {
  font-size: clamp(26px, 4.5vw, 40px);
  margin: 0 0 var(--space-2);
}

.cta-final .lead {
  margin: 0 auto var(--space-3);
}

/* Footer */

footer {
  padding: var(--space-4) 0;
  text-align: center;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
}

/* Moldura com notch */

.frame {
  position: relative;
  min-height: 100vh;
  background: var(--frame);
  padding: var(--frame-thickness);
}

.screen {
  background: var(--bg);
  border-radius: 8px;
  overflow: hidden;
}

.notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  min-width: var(--notch-w);
  justify-content: center;
  height: calc(var(--frame-thickness) + var(--notch-h));
  padding: var(--frame-thickness) var(--space-1) 0;
  background: var(--frame);
}

.notch::before,
.notch::after {
  content: "";
  position: absolute;
  top: 0;
  width: calc(var(--cap-w) + 1px);
  height: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.notch::before {
  right: calc(100% - 1px);
  background-image: var(--cap-l);
}

.notch::after {
  left: calc(100% - 1px);
  background-image: var(--cap-r);
}

@media (max-width: 720px) {
  .frame {
    --frame-thickness: 8px;
    --notch-h: 40px;
    --cap-w: 72px;
    --cap-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 96 48'%3E%3Cpath fill='%23000' d='M0 8C10 8 19 8.5 26 13L55.9 36.4A55 55 0 0 0 89.7 48L96 48L96 0L0 0Z'/%3E%3C/svg%3E");
    --cap-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 96 48'%3E%3Cpath fill='%23000' d='M96 8C86 8 77 8.5 70 13L40.1 36.4A55 55 0 0 1 6.3 48L0 48L0 0L96 0Z'/%3E%3C/svg%3E");
  }

  .logo {
    font-size: 22px;
  }
}
