/* =============================================
   KURO STUDIO — styles.css
   ============================================= */

/* --- Custom Properties --- */
:root {
  --bg: #050505;
  --text: #E0E0E0;
  --accent: #0033FF;
  --accent-hover: #0026cc;
  --card-border: #1a1a1a;
  --card-bg: #0a0a0a;
  --text-muted: #888;
  --max-width: 1280px;
  --nav-height: 68px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
  cursor: pointer;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}

.btn--accent {
  background-color: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn--accent:hover,
.btn--accent:focus-visible {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn--outline {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--lg {
  font-size: 1rem;
  padding: 0.85rem 2rem;
}

/* --- Section base --- */
.section {
  padding-block: 5rem;
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 3rem;
  text-align: center;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background-color: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.navbar.scrolled {
  border-bottom-color: var(--card-border);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar__logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  color: var(--text);
  flex-shrink: 0;
}

.navbar__nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.navbar__nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  text-transform: lowercase;
}

.navbar__nav a:hover {
  color: var(--text);
}

.navbar__cta {
  display: none;
  flex-shrink: 0;
}

/* Hamburger */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  flex-shrink: 0;
}

.navbar__hamburger span {
  display: block;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.navbar__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background-color: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.25rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-menu__link {
  font-size: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--text-muted);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--card-border);
  transition: color 0.2s;
  text-transform: lowercase;
  letter-spacing: -0.01em;
}

.mobile-menu__link:hover {
  color: var(--text);
}

.mobile-menu__cta {
  margin-top: 2rem;
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 1rem;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 5rem 4rem;
  max-width: 820px;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* =============================================
   PROBLEMAS
   ============================================= */
.problemas {
  background-color: var(--card-bg);
}

.problemas__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.card {
  background-color: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.3s;
}

.card:hover {
  border-color: #333;
}

.card__icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.card__text {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
}

.problemas__cta-text {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 500px;
  margin-inline: auto;
}

/* =============================================
   PRICING
   ============================================= */
.pricing {
  background-color: var(--bg);
}

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.pricing-card {
  position: relative;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: border-color 0.3s;
}

.pricing-card:hover {
  border-color: var(--accent);
}

.pricing-card--featured {
  border-color: var(--accent);
}

.pricing-card__badge {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 0 0 6px 6px;
  text-transform: lowercase;
}

.pricing-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pricing-card__title {
  font-size: 1.15rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pricing-card__price {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-card__price strong {
  color: var(--text);
  font-size: 1.15rem;
}

.pricing-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.pricing-card__list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}

.pricing-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.pricing-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

/* =============================================
   COMO FUNCIONA
   ============================================= */
.como-funciona {
  background-color: var(--card-bg);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: 2rem;
}

.step__number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  flex-shrink: 0;
  width: 3.5rem;
  text-align: center;
}

.step__content {
  padding-top: 0.25rem;
}

.step__title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.step__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step__divider {
  width: 1px;
  height: 2rem;
  background: var(--card-border);
  margin-left: calc(1.75rem + 0.5px);
}

/* =============================================
   PROJETOS
   ============================================= */
.projetos {
  background-color: var(--bg);
}

.projetos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.projeto-card {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.projeto-card:hover {
  border-color: #333;
  transform: translateY(-3px);
}

.projeto-card__image {
  aspect-ratio: 16 / 9;
  background-color: #111;
  overflow: hidden;
}

.projeto-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d0d0d, #151515);
}

.projeto-card__placeholder span {
  font-size: 3rem;
  opacity: 0.4;
}

.projeto-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.projeto-card__title {
  font-size: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
}

.projeto-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =============================================
   SOBRE
   ============================================= */
.sobre {
  background-color: var(--card-bg);
}

.sobre__content {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

.sobre__content .section__title {
  margin-bottom: 1.5rem;
}

.sobre__content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.sobre__content p:last-child {
  margin-bottom: 0;
}

/* =============================================
   CTA FINAL
   ============================================= */
.cta-final {
  background-color: var(--card-bg);
  border-top: 1px solid var(--card-border);
}

.cta-final__content {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.cta-final__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.cta-final__sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--card-border);
  padding-block: 2rem;
  background-color: var(--bg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer__logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--text);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
  text-transform: lowercase;
}

.footer__links a:hover {
  color: var(--text);
}

.footer__copy {
  font-size: 0.8rem;
  color: #555;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for grid children */
.problemas__grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.problemas__grid .fade-in:nth-child(3) { transition-delay: 0.2s; }

.pricing__grid .fade-in:nth-child(2) { transition-delay: 0.08s; }
.pricing__grid .fade-in:nth-child(3) { transition-delay: 0.16s; }
.pricing__grid .fade-in:nth-child(4) { transition-delay: 0.24s; }

.projetos__grid .fade-in:nth-child(2) { transition-delay: 0.1s; }
.projetos__grid .fade-in:nth-child(3) { transition-delay: 0.2s; }

.steps .fade-in:nth-child(3) { transition-delay: 0.1s; }
.steps .fade-in:nth-child(5) { transition-delay: 0.2s; }

/* =============================================
   FOCUS VISIBLE (Accessibility)
   ============================================= */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =============================================
   MEDIA QUERIES
   ============================================= */

/* 768px — Tablet */
@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }

  .navbar__nav {
    display: flex;
  }

  .navbar__hamburger {
    display: none;
  }

  .navbar__cta {
    display: inline-flex;
  }

  .mobile-menu {
    display: none;
  }

  .problemas__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
  }

  .step {
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-inline: 1.5rem;
    padding-block: 1rem;
  }

  .step__number {
    width: auto;
  }

  .step__divider {
    width: 4rem;
    height: 1px;
    background: var(--card-border);
    margin: 0;
    margin-top: 2rem;
    flex-shrink: 0;
  }

  .projetos__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer__links {
    justify-content: flex-end;
  }
}

/* 1024px — Desktop */
@media (min-width: 1024px) {
  .container {
    padding-inline: 2.5rem;
  }

  .pricing__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .projetos__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 1280px — Wide Desktop */
@media (min-width: 1280px) {
  .container {
    padding-inline: 3rem;
  }

  .hero__content {
    padding-block: 6rem 5rem;
  }
}
