/* ==========================================================================
   UNOCRIA - ESTÚDIO CRIATIVO | DESIGN SYSTEM & STYLES
   ========================================================================== */

:root {
  --bg-primary: #040711;
  --bg-surface: rgba(10, 20, 42, 0.55);
  --bg-card: rgba(255, 255, 255, 0.035);
  --border-subtle: rgba(56, 189, 248, 0.12);
  --border-focus: rgba(56, 189, 248, 0.6);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-cyan: #00f2fe;
  --accent-sky: #38bdf8;
  --accent-blue: #2563eb;
  --accent-deep: #1d4ed8;

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --glow-grad: linear-gradient(135deg, #0284c7 0%, #2563eb 55%, #00f2fe 100%);
  --text-grad: linear-gradient(135deg, #ffffff 15%, #93c5fd 55%, #38bdf8 100%);
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Interactive Background & Ambient Lighting
   ========================================================================== */
#ambientCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  animation: floatOrb 22s infinite alternate ease-in-out;
}

.orb-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #1d4ed8 0%, transparent 70%);
  top: -10%;
  left: 15%;
}

.orb-2 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, #0284c7 0%, transparent 70%);
  bottom: -15%;
  right: 10%;
  animation-delay: -7s;
  animation-duration: 26s;
}

.orb-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #00f2fe 0%, transparent 70%);
  top: 40%;
  right: 25%;
  animation-delay: -14s;
  animation-duration: 18s;
  opacity: 0.25;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -60px) scale(1.15); }
  100% { transform: translate(-30px, 40px) scale(0.9); }
}

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

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: #ffffff;
}

.cursor-outline {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, transform 0.1s ease-out;
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-outline {
    display: none !important;
  }
}

/* ==========================================================================
   Layout Wrapper
   ========================================================================== */
.page-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 3rem;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 768px) {
  .page-wrapper {
    padding: 1.5rem 1.25rem;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  cursor: default;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: #ffffff;
  line-height: 1.1;
  transition: opacity 0.3s ease;
}

.brand-name:hover {
  opacity: 0.85;
}

.brand-tag {
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.825rem;
  color: var(--text-muted);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  position: relative;
}

.pulse-indicator::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: #22c55e;
  opacity: 0.5;
  animation: ripple 2s infinite ease-out;
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.4); opacity: 0; }
}

.nav-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.nav-contact-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .status-badge {
    display: none;
  }
}

/* ==========================================================================
   Main Content / Hero
   ========================================================================== */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 3.5rem 0 4rem;
  max-width: 960px;
  align-self: center;
}

.hero-badge-wrap {
  margin-bottom: 1.5rem;
}

.floating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #bae6fd;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.18);
  animation: pulseGlow 4s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px rgba(37, 99, 235, 0.2); }
  100% { box-shadow: 0 0 32px rgba(0, 242, 254, 0.35); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--text-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.hero-description {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 3rem;
  font-weight: 400;
}

/* ==========================================================================
   Countdown Component
   ========================================================================== */
.countdown-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 2rem;
  border-radius: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 75px;
}

.countdown-value-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 0.65rem 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.35);
}

.countdown-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.countdown-separator {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 1.4rem;
  opacity: 0.6;
}

@media (max-width: 600px) {
  .countdown-wrapper {
    gap: 0.45rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
  }
  .countdown-item {
    min-width: 58px;
  }
  .countdown-value-box {
    padding: 0.5rem 0.5rem;
  }
  .countdown-number {
    font-size: 1.6rem;
  }
  .countdown-separator {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   Newsletter & Notification Form
   ========================================================================== */
.form-section {
  width: 100%;
  max-width: 540px;
}

.form-title {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 500;
}

.subscribe-form {
  position: relative;
  width: 100%;
}

.input-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 1.25rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.input-container:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.mail-icon {
  color: var(--text-dim);
  flex-shrink: 0;
  margin-right: 0.65rem;
}

.subscribe-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.5rem 0;
}

.subscribe-form input::placeholder {
  color: var(--text-dim);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--glow-grad);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.45rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.45);
  flex-shrink: 0;
}

.submit-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(0, 242, 254, 0.45);
}

.submit-btn:active {
  transform: scale(0.97);
}

.success-message {
  display: none;
  align-items: center;
  gap: 1rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  margin-top: 1.25rem;
  text-align: left;
  backdrop-filter: blur(12px);
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.success-icon {
  width: 32px;
  height: 32px;
  background: rgba(34, 197, 94, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.success-message strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
}

.success-message p {
  font-size: 0.85rem;
  margin: 0;
  color: #bbf7d0;
}

@media (max-width: 500px) {
  .input-container {
    flex-direction: column;
    border-radius: 20px;
    padding: 0.75rem;
  }
  .input-container input {
    width: 100%;
    margin-bottom: 0.5rem;
    text-align: center;
  }
  .mail-icon {
    display: none;
  }
  .submit-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   Ticker / Marquee
   ========================================================================== */
.ticker-container {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(14, 14, 22, 0.4);
  backdrop-filter: blur(8px);
  padding: 1rem 0;
  position: relative;
  margin-bottom: 2.5rem;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerScroll 24s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.ticker-content span:not(.star) {
  transition: color 0.3s ease;
}

.ticker-content span:not(.star):hover {
  color: #ffffff;
}

.star {
  color: var(--accent-sky);
  font-size: 0.75rem;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
  font-size: 0.8rem;
  font-weight: 500;
}

.social-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .footer {
    flex-direction: column-reverse;
    text-align: center;
    gap: 1.25rem;
  }
  .social-links {
    justify-content: center;
  }
}
