/* ==========================================================================
   YottoCode — Animations, Reveal System & Utility Classes
   ========================================================================== */

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

@keyframes motion-ambient-drift {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 50% 0%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50% 100%; }
  100% { background-position: 0% 50%; }
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(15px, -20px); }
  50%      { transform: translate(30px, 5px); }
  75%      { transform: translate(-10px, 20px); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(-20px, 15px); }
  50%      { transform: translate(-25px, -15px); }
  75%      { transform: translate(15px, -25px); }
}

@keyframes dot-pulse {
  0%, 100% { opacity: 0.2; }
  50%      { opacity: 0.8; }
}

@keyframes decor-float-0 {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  25%      { transform: translate(5px, -10px) rotate(-5.5deg); }
  50%      { transform: translate(-3px, -16px) rotate(-2deg); }
  75%      { transform: translate(6px, -6px) rotate(-4.5deg); }
}

@keyframes decor-float-1 {
  0%, 100% { transform: translate(0, 0) rotate(4deg); }
  25%      { transform: translate(-6px, -12px) rotate(2deg); }
  50%      { transform: translate(4px, -18px) rotate(5.5deg); }
  75%      { transform: translate(-3px, -5px) rotate(3deg); }
}

@keyframes decor-float-2 {
  0%, 100% { transform: translate(0, 0) rotate(-4.5deg); }
  25%      { transform: translate(7px, -7px) rotate(-2.5deg); }
  50%      { transform: translate(-5px, -14px) rotate(-6deg); }
  75%      { transform: translate(3px, -9px) rotate(-3.5deg); }
}

@keyframes decor-float-3 {
  0%, 100% { transform: translate(0, 0) rotate(3.5deg); }
  25%      { transform: translate(-5px, -11px) rotate(5deg); }
  50%      { transform: translate(6px, -8px) rotate(2deg); }
  75%      { transform: translate(-7px, -15px) rotate(4.5deg); }
}

@keyframes shield-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

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

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

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

/* --------------------------------------------------------------------------
   Hero Starfield — 8 directional drift keyframes
   -------------------------------------------------------------------------- */

@keyframes star-drift-0 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(150px, 0px); }
}

@keyframes star-drift-1 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(106px, 106px); }
}

@keyframes star-drift-2 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(0px, 150px); }
}

@keyframes star-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-106px, 106px); }
}

@keyframes star-drift-4 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-150px, 0px); }
}

@keyframes star-drift-5 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-106px, -106px); }
}

@keyframes star-drift-6 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(0px, -150px); }
}

@keyframes star-drift-7 {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(106px, -106px); }
}

/* --------------------------------------------------------------------------
   Scroll Reveal System
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > .reveal:nth-child(1)  { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2)  { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3)  { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4)  { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(5)  { transition-delay: 0.32s; }
.reveal-stagger > .reveal:nth-child(6)  { transition-delay: 0.4s; }
.reveal-stagger > .reveal:nth-child(7)  { transition-delay: 0.48s; }
.reveal-stagger > .reveal:nth-child(8)  { transition-delay: 0.56s; }
.reveal-stagger > .reveal:nth-child(9)  { transition-delay: 0.64s; }
.reveal-stagger > .reveal:nth-child(10) { transition-delay: 0.72s; }

/* --------------------------------------------------------------------------
   Glass Card
   -------------------------------------------------------------------------- */

.glass-card {
  transition: border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.35s ease,
              box-shadow 0.35s ease;
}

.glass-card:hover {
  border-color: rgba(42, 171, 238, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   Gradient Border Card
   -------------------------------------------------------------------------- */

.gradient-border-card {
  border: 1.5px solid transparent;
  background-image: linear-gradient(white, white),
                    linear-gradient(135deg, #2AABEE, #186288);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* --------------------------------------------------------------------------
   CTA Button
   -------------------------------------------------------------------------- */

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #2AABEE, #186288);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(42, 171, 238, 0.3);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.cta-button:hover  { transform: scale(1.04); }
.cta-button:active { transform: scale(0.97); }

/* --------------------------------------------------------------------------
   Section Background Animation
   -------------------------------------------------------------------------- */

.section-bg-animated {
  background-size: 400% 400%;
  animation: motion-ambient-drift 20s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Status Icons
   -------------------------------------------------------------------------- */

.status-yes     { color: var(--green); }
.status-no      { color: var(--red); }
.status-partial { color: var(--yellow); }

.status-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.status-icon--yes,
.status-icon--green {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-icon--no,
.status-icon--red {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.1);
}

.status-icon--partial,
.status-icon--yellow {
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.15);
}

/* --------------------------------------------------------------------------
   Responsive Grids
   -------------------------------------------------------------------------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 1023px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
}

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

/* --------------------------------------------------------------------------
   Section Layout
   -------------------------------------------------------------------------- */

.section-padding {
  padding: clamp(80px, 12vw, 160px) 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin-top: 16px;
  font-family: var(--f-body);
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   DEV Badge
   -------------------------------------------------------------------------- */

.dev-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(42, 171, 238, 0.1);
  color: #2AABEE;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Callout Box
   -------------------------------------------------------------------------- */

.callout {
  padding: 20px 24px;
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.callout--info {
  background: rgba(42, 171, 238, 0.04);
  border: 1px solid rgba(42, 171, 238, 0.1);
}

.callout--warning {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

/* --------------------------------------------------------------------------
   Dark Section Overrides
   -------------------------------------------------------------------------- */

.section-dark {
  background: #0B1120;
  color: #E6EDF3;
}

.section-dark .section-subtitle {
  color: rgba(200, 210, 225, 0.7);
}

.section-dark .glass-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-dark .glass-card:hover {
  border-color: rgba(42, 171, 238, 0.3);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Pricing Toggle
   -------------------------------------------------------------------------- */

.pricing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.pricing-toggle__label {
  font-family: var(--f-body);
  font-size: 14px;
  transition: all 0.2s ease;
}

.pricing-toggle__label--active {
  font-weight: 600;
  color: var(--text);
}

.pricing-toggle__label--inactive {
  font-weight: 400;
  color: var(--text-faint);
}

.pricing-toggle__switch {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 13px;
  border: 1.5px solid rgba(42, 171, 238, 0.2);
  background: rgba(0, 0, 0, 0.08);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease;
}

.pricing-toggle__switch.is-yearly {
  background: linear-gradient(135deg, #2AABEE, #186288);
}

.pricing-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.pricing-toggle__switch.is-yearly .pricing-toggle__knob {
  transform: translateX(22px);
}

.savings-badge {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
}

.savings-badge.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* --------------------------------------------------------------------------
   Feature Icon Container
   -------------------------------------------------------------------------- */

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.feature-icon--blue    { background: rgba(42, 171, 238, 0.1);  color: #2AABEE; }
.feature-icon--teal    { background: rgba(24, 98, 136, 0.1);   color: #186288; }
.feature-icon--green   { background: rgba(16, 185, 129, 0.1);  color: #10B981; }
.feature-icon--neutral { background: rgba(0, 0, 0, 0.04);      color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Badge Pill
   -------------------------------------------------------------------------- */

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 14px;
}

.badge-pill--accent {
  background: rgba(42, 171, 238, 0.12);
  border: 1px solid rgba(42, 171, 238, 0.15);
}

.badge-pill--green {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* --------------------------------------------------------------------------
   Check Icon List
   -------------------------------------------------------------------------- */

.check-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--f-body);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.check-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
