/* --------------------------------------------------------------------------
   Radmin Landing Page — Design System
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;500;600&family=Syne:wght@600;700&display=swap');

:root {
  /* Brand colors */
  --bg: #060A10;
  --surface: #0B1018;
  --surface-hover: #111820;
  --accent-teal: #0EA5A0;
  --accent-teal-hover: #0C8A86;
  --accent-navy: #1B3A5C;
  --accent-navy-light: #254A75;
  
  /* Text colors */
  --text: #E8ECF2;
  --text-secondary: #8C96A8;
  --text-muted: #505968;
  
  /* Border colors */
  --border: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.1);
  --border-bright: rgba(255, 255, 255, 0.15);
  
  /* Glow shadows */
  --glow-btn: 0 8px 24px rgba(14, 165, 160, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  --glow-card: 0 12px 40px rgba(0, 0, 0, 0.5);
  --glow-border: 0 0 20px rgba(27, 58, 92, 0.5);
  
  /* WhatsApp colors */
  --wa-header: #075E54;
  --wa-buyer: #005C4B;
  --wa-bot: #1B2838;

  /* Fonts */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Layout */
  --max: 1140px;
  --section-pad: 110px;
  --radius-card: 16px;
  --radius-btn: 10px;
  --nav-h: 64px;
  
  /* Easings */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Utilities */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }
.container--narrow { max-width: 800px; }
.container--manifesto { max-width: 680px; }
.text-teal { color: var(--accent-teal); }
.text-green { color: #10B981; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background-color: rgba(6, 10, 16, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--ease-out);
}
.nav { height: 100%; display: flex; align-items: center; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.nav__brand { display: flex; align-items: center; gap: 10px; transition: transform 0.3s var(--ease-out); }
.nav__brand:hover { transform: scale(1.02); }
/* Brand mark: same pixel sizes as Restard (Logo Re) — nav 32px, footer 24px */
.nav__logo {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.nav__logo img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
  display: block;
}
.nav__brand-text { display: flex; flex-direction: column; gap: 0px; }
.nav__brand-name { font-family: var(--font-heading); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1; }
.nav__brand-tag { font-size: 9px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); line-height: 1; margin-top: 2px; }

.nav__actions { display: flex; align-items: center; gap: 24px; }
.nav__links { display: flex; gap: 24px; }
.nav__link {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  padding: 6px 0; position: relative;
  transition: color 0.2s var(--ease-out);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--accent-teal); transform: scaleX(0); transform-origin: right;
  transition: transform 0.2s var(--ease-out);
  border-radius: 2px;
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.lang-toggle {
  display: flex; padding: 3px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface);
}
.lang-toggle__btn {
  padding: 4px 8px; font-size: 11px; font-weight: 600; color: var(--text-muted);
  border-radius: 5px; transition: all 0.2s var(--ease-out);
}
.lang-toggle__btn:hover { color: var(--text-secondary); }
.lang-toggle__btn--active { background-color: var(--accent-navy); color: var(--text); border: 1px solid rgba(255,255,255,0.05); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font-size: 15px; font-weight: 600;
  border-radius: var(--radius-btn);
  transition: all 0.2s var(--ease-out);
  cursor: pointer;
  text-align: center;
}
.btn--teal {
  background: var(--accent-teal); color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}
.btn--teal:hover {
  background: var(--accent-teal-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-btn);
}
.btn--teal:active { transform: translateY(0); box-shadow: none; }

.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.05); border-color: var(--border-bright);
  transform: translateY(-2px);
}
.btn--ghost:active { transform: translateY(0); }

/* --------------------------------------------------------------------------
   Sections & Typography
   -------------------------------------------------------------------------- */
.section { padding-block: var(--section-pad); position: relative; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header__label {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-teal);
  background: rgba(14, 165, 160, 0.1); padding: 4px 12px; border-radius: 99px;
  margin-bottom: 16px; border: 1px solid rgba(14, 165, 160, 0.2);
}
.section-header__title { font-size: clamp(2rem, 4vw, 2.5rem); letter-spacing: -0.02em; margin-bottom: 16px; }
.section-header__desc { font-size: 17px; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero { display: flex; align-items: center; padding-block: 80px 60px; overflow: hidden; min-height: calc(100vh - var(--nav-h)); }
.hero__grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 80%);
}
.hero__orb { position: absolute; border-radius: 50%; filter: blur(120px); z-index: 0; pointer-events: none; }
.hero__orb--navy { width: 50vw; height: 50vw; background: var(--accent-navy); opacity: 0.3; top: -10%; left: -10%; }
.hero__orb--teal { width: 40vw; height: 40vw; background: var(--accent-teal); opacity: 0.15; bottom: -10%; right: -10%; }

.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; margin-bottom: 24px; font-size: 13px; font-weight: 500;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px;
}
.hero__badge-icon { color: var(--accent-teal); }
.hero__title { font-size: clamp(2.5rem, 5vw, 3.5rem); letter-spacing: -0.03em; margin-bottom: 20px; }
.hero__subtitle { font-size: 18px; color: var(--text-secondary); margin-bottom: 32px; max-width: 480px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* WhatsApp Mockup */
.wa-mockup {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--border);
  background: #0A0E14; box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6);
  max-width: 400px; margin-left: auto;
}
.wa-mockup__header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--wa-header); }
.wa-mockup__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.wa-mockup__avatar img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
  display: block;
}
.wa-mockup__header-text { display: flex; flex-direction: column; }
.wa-mockup__title { font-size: 16px; font-weight: 600; color: #fff; line-height: 1.2; font-family: var(--font-body); }
.wa-mockup__status { font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.wa-mockup__messages {
  height: 380px; padding: 20px; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, #0d1218 0%, #060a10 100%);
}

.chat-msg { display: flex; width: 100%; }
.chat-msg--buyer { justify-content: flex-end; }
.chat-msg--bot { justify-content: flex-start; }
.chat-msg__bubble { max-width: 85%; padding: 10px 14px; position: relative; box-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.chat-msg--buyer .chat-msg__bubble { background: var(--wa-buyer); border-radius: 12px 12px 2px 12px; }
.chat-msg--bot .chat-msg__bubble { background: var(--wa-bot); border-radius: 12px 12px 12px 2px; }
.chat-msg__bubble p { font-size: 14px; line-height: 1.45; color: #e8ecf2; margin-bottom: 2px; }
.chat-msg__time { display: block; font-size: 10px; color: rgba(255,255,255,0.4); text-align: right; }
.chat-msg--bot .chat-msg__time { text-align: left; }

.chat-msg--pending { opacity: 0; transform: scale(0.95) translateY(10px); }
.chat-msg--visible { opacity: 1; transform: scale(1) translateY(0); transition: all 0.5s var(--ease-spring); }

.wa-mockup__typing {
  display: flex; align-items: center; gap: 4px; padding: 12px 16px;
  background: var(--wa-bot); border-radius: 12px 12px 12px 2px; align-self: flex-start;
  opacity: 0; transform: scale(0.9) translateY(4px);
  transition: all 0.3s var(--ease-spring);
}
.wa-mockup__typing.is-visible { opacity: 1; transform: scale(1) translateY(0); }
.wa-mockup__typing-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-secondary); animation: typingBounce 1.2s ease-in-out infinite; }
.wa-mockup__typing-dot:nth-child(2) { animation-delay: 0.15s; }
.wa-mockup__typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* --------------------------------------------------------------------------
   Social Proof Bar
   -------------------------------------------------------------------------- */
.social-proof { background-color: var(--surface); padding-block: 40px; border-block: 1px solid var(--border); }
.social-proof__grid { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; gap: 24px; }
.social-proof__stat { font-family: var(--font-heading); font-size: 32px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.social-proof__label { font-size: 14px; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   Problem vs Solution
   -------------------------------------------------------------------------- */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; position: relative; }
.vs-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 48px; height: 48px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--text-muted);
  z-index: 2;
}

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-card); padding: 40px;
  transition: all 0.25s var(--ease-out);
}
.card--vs-left { background: var(--surface); }
.card--vs-right {
  background: linear-gradient(145deg, var(--accent-navy), var(--surface));
  border-color: rgba(27, 58, 92, 0.6); position: relative; overflow: hidden;
}
.card--vs-right::before {
  content: ''; position: absolute; inset: 0;
  box-shadow: inset 0 0 20px rgba(14, 165, 160, 0.1); pointer-events: none;
}

.vs-card__title { font-size: 24px; margin-bottom: 24px; text-align: center; }
.vs-list { display: flex; flex-direction: column; gap: 20px; }
.vs-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: var(--text-secondary); }
.vs-list li svg { flex-shrink: 0; width: 24px; height: 24px; margin-top: 2px; }
.vs-list--problem li svg { color: var(--text-muted); opacity: 0.8; }
.vs-list--solution li { color: var(--text); }
.vs-list--solution li svg { color: #10B981; }

/* --------------------------------------------------------------------------
   Features
   -------------------------------------------------------------------------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.features-grid--bottom { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 760px; margin: 0 auto; }

.feature-card { position: relative; padding: 32px; overflow: hidden; }
.feature-card:hover {
  transform: translateY(-4px); background: var(--surface-hover);
  border-color: var(--border-hover);
}
.feature-card__topline {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-navy), var(--accent-teal));
  opacity: 0; transition: opacity 0.25s var(--ease-out);
}
.feature-card:hover .feature-card__topline { opacity: 1; }

.feature-card__icon {
  width: 48px; height: 48px; background: rgba(27, 58, 92, 0.3); border: 1px solid var(--accent-navy);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: var(--accent-teal); margin-bottom: 20px;
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card__title { font-size: 20px; margin-bottom: 12px; }
.feature-card__desc { color: var(--text-secondary); font-size: 15px; }

/* --------------------------------------------------------------------------
   How It Works (Timeline)
   -------------------------------------------------------------------------- */
.timeline { display: flex; flex-direction: column; gap: 48px; position: relative; padding-left: 24px; max-width: 600px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; }
.timeline-item__line {
  position: absolute; left: -24px; top: 0; width: 2px; height: 100%;
  background: var(--accent-teal); transform: scaleY(0); transform-origin: top;
  transition: transform 0.6s var(--ease-out);
}
.timeline-item.is-visible .timeline-item__line { transform: scaleY(1); }
.timeline-item__num {
  position: absolute; left: -39px; top: 0; width: 32px; height: 32px;
  background: var(--surface); border: 2px solid var(--accent-teal); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--accent-teal);
  z-index: 2;
}
.timeline-item__content { padding-left: 24px; padding-bottom: 16px; }
.timeline-item__title { font-size: 22px; margin-bottom: 8px; }
.timeline-item__desc { color: var(--text-secondary); font-size: 16px; }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */
.pricing-card {
  max-width: 480px; margin: 0 auto; padding: 48px; position: relative;
  background: var(--surface); border: 1px solid var(--border-bright);
}
.pricing-card__topline {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent-navy), var(--accent-teal));
}
.pricing-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent-teal); color: #fff; padding: 4px 16px;
  border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
}
.pricing-card__name { font-size: 20px; text-align: center; color: var(--text-secondary); margin-bottom: 16px; }
.pricing-card__price { text-align: center; margin-bottom: 8px; }
.pricing-card__price-val { font-family: var(--font-heading); font-size: 48px; font-weight: 700; color: var(--text); }
.pricing-card__price-period { color: var(--text-muted); font-size: 16px; }
.pricing-card__subprice { text-align: center; color: #10B981; font-weight: 500; font-size: 14px; margin-bottom: 32px; }
.pricing-card__divider { height: 1px; background: var(--border); margin-bottom: 32px; }
.pricing-card__features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.pricing-card__features li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.pricing-card__features li svg { color: #10B981; width: 20px; height: 20px; flex-shrink: 0; }
.pricing-card__cta { width: 100%; margin-bottom: 16px; }
.pricing-card__guarantee { text-align: center; font-size: 13px; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   About (Manifesto)
   -------------------------------------------------------------------------- */
.about { text-align: center; }
.about__logo {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  overflow: hidden;
}
.about__logo img {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  object-fit: contain;
  display: block;
}
.about__title { font-size: 32px; margin-bottom: 32px; }
.about__body { font-size: 18px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 24px; text-align: left; }
.about__quote {
  margin: 32px 0; padding-left: 24px; border-left: 3px solid var(--accent-teal);
  font-family: var(--font-heading); font-size: 24px; font-weight: 600; color: var(--text); line-height: 1.4;
  text-align: left;
}
.about__link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-teal); font-weight: 600; margin-top: 32px; transition: gap 0.2s; }
.about__link:hover { gap: 12px; }

/* --------------------------------------------------------------------------
   CTA Block
   -------------------------------------------------------------------------- */
.cta-block { padding-bottom: 120px; }
.cta-card {
  text-align: center; max-width: 720px; margin: 0 auto; padding: 64px 40px;
  position: relative; border-color: rgba(27, 58, 92, 0.4);
  box-shadow: var(--glow-border);
}
.cta-card__title { font-size: 36px; margin-bottom: 16px; }
.cta-card__desc { font-size: 18px; color: var(--text-secondary); margin-bottom: 40px; max-width: 500px; margin-inline: auto; }
.cta-card__actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 32px; background: var(--surface); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer__left { display: flex; align-items: center; gap: 16px; }
.site-footer__logo {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.site-footer__logo img {
  width: 24px;
  height: 24px;
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
  display: block;
}
.site-footer__copy { font-size: 13px; color: var(--text-muted); }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 24px; }
.site-footer__nav a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.site-footer__nav a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Reveal Animations
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal[data-reveal-stagger="1"] { transition-delay: 100ms; }
.reveal[data-reveal-stagger="2"] { transition-delay: 200ms; }
.reveal[data-reveal-stagger="3"] { transition-delay: 300ms; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .btn, .card, .chat-msg, .timeline-item__line { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 968px) {
  :root { --section-pad: 80px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero__badge { margin-inline: auto; }
  .hero__subtitle { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .wa-mockup { margin-inline: auto; }
  .vs-grid { grid-template-columns: 1fr; gap: 48px; }
  .vs-badge { top: 50%; transform: translate(-50%, -50%); } /* adjust dynamically if needed, usually between cards */
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --section-pad: 60px; }
  .nav__links { display: none; }
  .social-proof__grid { grid-template-columns: 1fr; gap: 32px; }
  .features-grid { grid-template-columns: 1fr; }
  .features-grid--bottom { grid-template-columns: 1fr; }
  .pricing-card { padding: 32px 24px; }
  .pricing-card__price-val { font-size: 40px; }
  .site-footer__inner { flex-direction: column; text-align: center; }
  .site-footer__nav { justify-content: center; }
}
