/* ==========================================================================
   MG Mobiles Advertisement — Marketing site styles
   Shared tokens (palette, type, buttons) now live in shared.css so the
   login page and both dashboards reuse the exact same design system.
   ========================================================================== */

@import url('shared.css');

body{ overflow-x: hidden; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav{
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,7,13,.7);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.nav__inner{
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__brand{ display: flex; align-items: center; gap: .7rem; }
.nav__mark{
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--signal);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 700; font-size: .85rem;
  color: var(--void);
  flex-shrink: 0;
}
.nav__brandtext{ display: flex; flex-direction: column; line-height: 1.15; }
.nav__brandtext strong{ font-family: var(--f-display); font-size: .95rem; }
.nav__brandtext small{ font-family: var(--f-mono); font-size: .65rem; color: var(--text-low); letter-spacing: .08em; }

.nav__links{ display: flex; align-items: center; gap: 2rem; }
.nav__links a{ font-size: .9rem; color: var(--text-mid); transition: color .2s; }
.nav__links a:hover{ color: var(--text-hi); }
.nav__cta{
  padding: .6rem 1.2rem; border-radius: 999px;
  border: 1px solid var(--border-2);
  color: var(--text-hi) !important;
}
.nav__cta:hover{ border-color: var(--tt); }

.nav__toggle{ display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav__toggle span{ display: block; width: 22px; height: 2px; background: var(--text-hi); margin: 5px 0; transition: .25s; }

.nav__mobile{
  display: none; flex-direction: column;
  border-top: 1px solid var(--border);
  padding: .5rem 1.5rem 1rem;
}
.nav__mobile a{ padding: .8rem 0; border-bottom: 1px solid var(--border); color: var(--text-mid); }
.nav__mobile.open{ display: flex; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 6rem 1.5rem 5rem;
}
.hero__canvas{
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: .55;
}
.hero__vignette{
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 30%, transparent 0%, var(--void) 78%);
  pointer-events: none;
}
.hero__inner{ position: relative; z-index: 2; max-width: 760px; text-align: center; margin: 0 auto; }
.hero__title{ font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; }
.hero__lead{ font-size: 1.1rem; max-width: 560px; margin: 0 auto 2rem; color: var(--text-mid); }
.hero__actions{ display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero__channels{
  display: inline-flex; gap: 1.5rem; align-items: center;
  font-family: var(--f-mono); font-size: .78rem; color: var(--text-low);
  flex-wrap: wrap; justify-content: center;
}
.channel-dot{ width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: .4rem; }
.channel-dot--ig{ background: var(--ig); box-shadow: 0 0 10px var(--ig); }
.channel-dot--fb{ background: var(--fb); box-shadow: 0 0 10px var(--fb); }
.channel-dot--tt{ background: var(--tt); box-shadow: 0 0 10px var(--tt); }

.hero__ticker{
  position: absolute; bottom: 0; left: 0; right: 0;
  border-top: 1px solid var(--border);
  background: rgba(16,19,31,.6);
  overflow: hidden; padding: .9rem 0;
  z-index: 2;
}
.hero__ticker-track{
  display: flex; gap: 1.2rem; white-space: nowrap;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em;
  color: var(--text-low);
  animation: ticker 28s linear infinite;
  width: max-content;
}
@keyframes ticker{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ==========================================================================
   SECTION HEAD (shared)
   ========================================================================== */
section{ padding: 7rem 1.5rem; max-width: 1200px; margin: 0 auto; }
.section-head{ max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.section-head h2{ font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-lead{ font-size: 1.05rem; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services__grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.card{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover{ transform: translateY(-4px); background: var(--surface-2); border-color: var(--border-2); }
.card__top{ display: flex; align-items: center; gap: .5rem; margin-bottom: 1.2rem; }
.card__pulse{ width: 8px; height: 8px; border-radius: 50%; background: var(--text-low); position: relative; }
.card__pulse::after{
  content:''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid currentColor; opacity: 0; animation: pulse 2.4s ease-out infinite;
}
.card--ig .card__pulse{ background: var(--ig); color: var(--ig); }
.card--fb .card__pulse{ background: var(--fb); color: var(--fb); }
.card--tt .card__pulse{ background: var(--tt); color: var(--tt); }
.card--studio .card__pulse{ background: var(--ig-2); color: var(--ig-2); }
.card--data .card__pulse{ background: var(--tt-2); color: var(--tt-2); }
@keyframes pulse{ from{ transform: scale(1); opacity: .6; } to{ transform: scale(2.4); opacity: 0; } }

.card__tag{ font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; color: var(--text-low); }
.card h3{ font-size: 1.25rem; margin-bottom: .5rem; }
.card p{ font-size: .92rem; margin-bottom: 0; }

.card--cta-card{
  background: var(--signal-soft);
  border: 1px solid var(--border-2);
  display: flex; flex-direction: column; justify-content: center;
}
.card--cta-card h3{ font-size: 1.15rem; }

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process__list{ position: relative; max-width: 720px; margin: 0 auto; }
.process__list::before{
  content: ''; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1px;
  background: var(--border-2);
}
.process__list li{
  display: flex; gap: 1.6rem; padding: 1.4rem 0; position: relative;
}
.process__num{
  font-family: var(--f-mono); font-size: .85rem; color: var(--void);
  background: var(--signal);
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-weight: 600; z-index: 1;
}
.process__list h3{ font-size: 1.1rem; margin-bottom: .3rem; }
.process__list p{ font-size: .92rem; margin: 0; }

/* ==========================================================================
   WHY
   ========================================================================== */
.why__inner{
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center;
}
.why__list{ margin-top: 1.5rem; display: flex; flex-direction: column; gap: .9rem; }
.why__list li{ font-size: .95rem; color: var(--text-mid); padding-left: 1.3rem; position: relative; }
.why__list li::before{
  content: ''; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal);
}
.why__list strong{ color: var(--text-hi); }

.why__panel{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2rem;
}
.panel__row{ display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.panel__row span{ font-family: var(--f-mono); font-size: .78rem; color: var(--text-low); width: 110px; flex-shrink: 0; }
.panel__row i{
  display: block; height: 8px; border-radius: 999px; background: var(--surface-2);
  flex: 1; position: relative; overflow: hidden; font-style: normal;
}
.panel__row i::after{
  content: ''; position: absolute; inset: 0; width: var(--w); border-radius: 999px;
  background: var(--signal);
  animation: growBar 1.4s var(--ease) both;
}
@keyframes growBar{ from{ width: 0; } }
.panel__note{ font-size: .78rem; color: var(--text-low); margin: 1rem 0 0; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact__form{
  max-width: 720px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.form__grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.field{ display: flex; flex-direction: column; gap: .5rem; }
.field span, .field legend{ font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; color: var(--text-low); text-transform: uppercase; padding: 0; }
.field input, .field select, .field textarea{
  background: var(--void); border: 1px solid var(--border-2); border-radius: 10px;
  padding: .8rem 1rem; color: var(--text-hi); font-family: var(--f-body); font-size: .95rem;
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus{ border-color: var(--tt); outline: none; }
.field textarea{ resize: vertical; min-height: 100px; }
.field--platforms{ border: none; padding: 0; margin-bottom: 1.2rem; }
.platform-check{ display: flex; gap: 1.5rem; flex-wrap: wrap; }
.platform-check label{ display: flex; align-items: center; gap: .5rem; font-family: var(--f-body); font-size: .9rem; color: var(--text-mid); text-transform: none; }
.form__actions{ display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.form__note{ font-size: .85rem; color: var(--tt); margin: 1rem 0 0; min-height: 1.2em; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer{ border-top: 1px solid var(--border); padding: 3rem 1.5rem; }
.footer__inner{
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
}
.footer__brand{ display: flex; align-items: center; gap: .8rem; }
.footer__brand strong{ font-family: var(--f-display); font-size: .95rem; }
.footer__brand p{ font-family: var(--f-mono); font-size: .7rem; color: var(--text-low); margin: 0; }
.footer__links{ display: flex; gap: 1.6rem; }
.footer__links a{ font-size: .85rem; color: var(--text-mid); }
.footer__links a:hover{ color: var(--text-hi); }
.footer__legal{ font-size: .78rem; color: var(--text-low); margin: 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px){
  .services__grid{ grid-template-columns: repeat(2, 1fr); }
  .why__inner{ grid-template-columns: 1fr; }
  .form__grid{ grid-template-columns: 1fr; }
}

@media (max-width: 680px){
  .nav__links{ display: none; }
  .nav__toggle{ display: block; }
  .services__grid{ grid-template-columns: 1fr; }
  section{ padding: 4.5rem 1.25rem; }
  .contact__form{ padding: 1.6rem; }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .grad-text, .hero__ticker-track, .card__pulse::after, .panel__row i::after{ animation: none !important; }
}
