/* ============================================================
   4free Landing Page — Custom Styles
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #ff9900;
  --color-primary-10: rgba(255, 153, 0, 0.1);
  --color-primary-20: rgba(255, 153, 0, 0.2);
  --color-primary-25: rgba(255, 153, 0, 0.25);
  --color-primary-30: rgba(255, 153, 0, 0.3);
  --color-bg-light: #f8f7f5;
  --color-bg-dark: #231b0f;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --transition-base: 200ms ease;
  --transition-medium: 300ms ease;
  --transition-slow: 500ms ease;
  --shadow-primary: 0 10px 40px rgba(255, 153, 0, 0.25);
}

/* --- Base Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-display);
  background-color: var(--color-bg-light);
  color: #0f172a;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--color-primary-30);
}

/* --- Gradient utility --- */
.soft-gradient {
  background: linear-gradient(135deg, #fffcf7 0%, #fef3e2 100%);
}

/* ============================================================
   NAVIGATION
   ============================================================ */

/* Header transitions on scroll */
header {
  transition: box-shadow var(--transition-medium), background-color var(--transition-medium);
}

header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}



/* ============================================================
   ANIMATIONS
   ============================================================ */

/* --- Ping animation (badge hero) --- */
@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

.animate-ping {
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* --- Card hover transitions --- */
.feature-card {
  transition: box-shadow var(--transition-medium), transform var(--transition-medium);
}

.feature-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.feature-card .icon-wrap {
  transition: transform var(--transition-medium);
}

.feature-card:hover .icon-wrap {
  transform: scale(1.1);
}

/* --- Phone mockup hover --- */
.phone-mockup {
  transition: transform var(--transition-slow);
}

.phone-mockup:hover {
  transform: rotate(0deg) !important;
}

/* ============================================================
   FORM & CTA
   ============================================================ */

#email-input::placeholder {
  color: #94a3b8;
}

#email-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-20);
}

#cta-form .success-msg {
  display: none;
  color: #4ade80;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

#cta-form .error-msg {
  display: none;
  color: #f87171;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer a {
  text-decoration: none;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-family: 'Material Symbols Outlined';
}
