/* ==========================================================================
   MEU LINKOO - HOME STYLESHEET
   Design System, Responsive Layout & SVG Keyframe Animations
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

/* --- Root Design Tokens --- */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Colors */
  --bg-dark: #090a10;
  --bg-card: rgba(18, 20, 32, 0.65);
  --bg-card-hover: rgba(26, 30, 48, 0.85);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(99, 102, 241, 0.4);

  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.35);
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  --gradient-glow: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.08) 50%, transparent 70%);

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --max-width: 1140px;
}

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 50% 12%, rgba(99, 102, 241, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
    var(--bg-dark);
}

/* --- Animated Grid Background --- */
.bg-grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

/* --- Container with generous mobile padding --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 576px) {
  .container {
    padding: 0 1.25rem;
  }
}

/* --- Header --- */
.site-header {
  padding: 1.5rem 0 0.5rem;
  position: relative;
  z-index: 20;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 480px) {
  .header-nav {
    flex-wrap: wrap;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--primary-glow);
  flex-shrink: 0;
}

.logo-icon-wrap svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-amber);
  white-space: nowrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-amber);
  box-shadow: 0 0 10px var(--accent-amber);
  animation: pulse-glow 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.3);
  }
}

/* --- Hero Section & Z-Index Layering for 3D Depth --- */
.hero-section {
  padding: 1.25rem 0 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.hero-header-wrap {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 10; /* CRITICAL: Keeps headline & text ALWAYS ON TOP of background elements */
  pointer-events: none;
}

.hero-header-wrap a,
.hero-header-wrap button,
.hero-header-wrap input {
  pointer-events: auto;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #818cf8;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-tag svg {
  width: 14px;
  height: 14px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(9, 10, 16, 0.8);
}

.hero-title .highlight {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
  text-shadow: 0 2px 10px rgba(9, 10, 16, 0.7);
}

@media (max-width: 576px) {
  .hero-description {
    font-size: 0.95rem;
  }
}

/* --- Hero Graphics Stage (Z-Index Layer 1 - Sits BEHIND Text) --- */
.hero-graphics-stage {
  position: relative;
  z-index: 1; /* Sits UNDER hero-header-wrap text */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 740px;
  margin: -40px auto 1.25rem;
  overflow: visible;
}

.svg-container {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.55));
  transition: transform 0.3s ease-out;
}

/* --- SVG Keyframe Animations --- */

/* Gears rotation */
.gear-spin-cw {
  transform-origin: center;
  animation: spinClockwise 12s linear infinite;
}

.gear-spin-ccw {
  transform-origin: center;
  animation: spinCounter 9s linear infinite;
}

@keyframes spinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCounter {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Character Head Nod & Typing Animation */
.character-head {
  transform-origin: 400px 140px;
  animation: headNod 3.8s ease-in-out infinite;
}

@keyframes headNod {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  35% { transform: rotate(-1.5deg) translateY(2px); }
  70% { transform: rotate(1deg) translateY(-1px); }
}

.character-hand-left {
  animation: typeHandLeft 1.1s ease-in-out infinite alternate;
}

.character-hand-right {
  animation: typeHandRight 1.4s ease-in-out infinite alternate-reverse;
}

@keyframes typeHandLeft {
  0% { transform: translate(0, 0); }
  50% { transform: translate(3px, -2px); }
  100% { transform: translate(-1px, 1px); }
}

@keyframes typeHandRight {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-3px, -2px); }
  100% { transform: translate(2px, 1px); }
}

/* Screen Code Lines shimmer & Cursor */
.code-line-anim {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  animation: typeCode 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.code-line-2 { animation-delay: 0.4s; }
.code-line-3 { animation-delay: 0.8s; }
.code-line-4 { animation-delay: 1.2s; }

@keyframes typeCode {
  0% { stroke-dashoffset: 140; opacity: 0.3; }
  50% { stroke-dashoffset: 0; opacity: 1; }
  90%, 100% { stroke-dashoffset: 0; opacity: 1; }
}

.blinking-cursor {
  animation: blink 0.9s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Coffee Steam Rising */
.steam-path {
  opacity: 0;
  transform-origin: bottom center;
  animation: riseSteam 2.8s ease-out infinite;
}

.steam-2 { animation-delay: 0.9s; }

@keyframes riseSteam {
  0% { transform: translateY(0) scaleX(0.8); opacity: 0; }
  30% { opacity: 0.6; }
  100% { transform: translateY(-22px) scaleX(1.4); opacity: 0; }
}

/* Floating Maintenance & Tech Elements (DEPTH OF FIELD EFFECT) */
.float-element-1 {
  animation: floatSlow 4s ease-in-out infinite alternate;
  opacity: 0.4; /* Reduced opacity for background depth */
  filter: blur(1.5px); /* Soft blur effect behind text */
  transition: all 0.3s ease;
}

.float-element-2 {
  animation: floatSlow 5s ease-in-out infinite alternate-reverse;
  opacity: 0.45; /* Reduced opacity for background depth */
  filter: blur(1.8px); /* Soft blur effect behind text */
  transition: all 0.3s ease;
}

.float-element-3 {
  animation: floatSlow 4.5s ease-in-out infinite alternate;
  animation-delay: 0.8s;
  opacity: 0.45;
  filter: blur(1.5px);
  transition: all 0.3s ease;
}

@keyframes floatSlow {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-12px) rotate(3deg); }
}

/* --- Progress Bar Card --- */
.progress-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
  max-width: 500px;
  position: relative;
  z-index: 5;
}

@media (max-width: 576px) {
  .progress-card {
    padding: 1rem 1.15rem;
  }
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  margin-bottom: 0.6rem;
}

.progress-label {
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.progress-percent {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-cyan);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 90%;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer-slide 2.5s infinite;
}

@keyframes shimmer-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-note {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 0.6rem;
}

/* --- Features Section (Centered 2 Cards) --- */
.features-section {
  padding: 2.5rem 0 3.5rem;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.25rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-align: left;
}

@media (max-width: 576px) {
  .feature-card {
    padding: 1.5rem 1.25rem;
  }
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
  color: #818cf8;
}

.feature-icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- Newsletter / Notify Section --- */
.notify-section {
  padding: 1.5rem 0 4.5rem;
}

.notify-box {
  background: linear-gradient(135deg, rgba(26, 30, 48, 0.8) 0%, rgba(18, 20, 32, 0.9) 100%);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-lg);
  padding: 3rem 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 576px) {
  .notify-box {
    padding: 2.25rem 1.15rem;
  }
}

.notify-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  background: var(--primary);
  opacity: 0.15;
  filter: blur(80px);
  pointer-events: none;
  border-radius: 50%;
}

.notify-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.notify-desc {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 1.75rem;
  font-size: 0.95rem;
}

.notify-form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 0 auto;
}

@media (max-width: 576px) {
  .notify-form {
    flex-direction: column;
  }
}

.notify-input {
  flex: 1;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(10, 12, 20, 0.8);
  border: 1px solid var(--border-card);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.925rem;
  outline: none;
  transition: all 0.25s ease;
}

.notify-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.notify-btn {
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.925rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.notify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.notify-feedback {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #34d399;
  display: none;
  font-weight: 500;
}

.notify-feedback.active {
  display: block;
}

/* --- Footer --- */
.site-footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
}
