/* Justivo Coming Soon — Pure CSS with Animations */

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

/* ===== Variables ===== */
:root {
  --navy: #1A237E;
  --navy-dark: #0D1542;
  --navy-light: #3949AB;
  --gold: #D4A843;
  --gold-light: #F5E6C8;
  --gold-dark: #B8922E;
  --white: #FFFFFF;
  --off-white: #F8F9FA;
  --text: #1B1B1F;
  --text-light: #6B7280;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(26, 35, 126, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 35, 126, 0.12);
  --shadow-lg: 0 12px 40px rgba(26, 35, 126, 0.18);
  --shadow-gold: 0 4px 24px rgba(212, 168, 67, 0.25);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--navy); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Keyframes ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

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

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes phoneShadow {
  0%, 100% { box-shadow: 0 20px 60px rgba(26, 35, 126, 0.25); }
  50% { box-shadow: 0 30px 80px rgba(26, 35, 126, 0.35); }
}

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ===== Animated Background ===== */
.bg-animated {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--white) 0%, #EEF0FF 30%, var(--off-white) 60%, #FFF9EC 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  overflow: hidden;
}

.bg-animated::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 80vw; height: 80vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 35, 126, 0.03) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

.bg-animated::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -20%;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.04) 0%, transparent 70%);
  animation: floatSlow 25s ease-in-out infinite;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 35, 126, 0.06);
  animation: fadeInDown 0.8s ease;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  width: 100%;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}
body {
  overflow-x: hidden;
  width: 100%;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.logo-text span {
  color: var(--gold);
}

.badge-coming {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 100px;
  box-shadow: 0 4px 16px rgba(26, 35, 126, 0.3);
  flex-shrink: 1;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-coming::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

/* ===== Hero ===== */
.hero {
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease;
  opacity: 1;
}

.hero-tagline {
  display: inline-block;
  padding: 8px 20px;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy-dark);
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 500px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Platform badges */
.platforms {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.platform-badge:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.platform-badge.android {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-color: var(--navy);
}

.platform-badge .icon {
  font-size: 1.4rem;
}

.platform-badge .status {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.7;
}

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  animation: fadeIn 1s ease;
  opacity: 1;
}

.phone-showcase {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.phone-frame {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(26, 35, 126, 0.2);
  animation: float 6s ease-in-out infinite, phoneShadow 6s ease-in-out infinite;
  border: 8px solid var(--navy-dark);
  background: var(--navy-dark);
}

.phone-frame img {
  width: 100%;
  display: block;
  border-radius: 28px;
}

/* Floating cards around phone */
.float-card {
  position: absolute;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 2;
}

.float-card .fc-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.float-card-ai {
  top: 15%; left: -20%;
  animation: floatSlow 5s ease-in-out infinite;
}

.float-card-ai .fc-icon {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
}

.float-card-doc {
  bottom: 20%; right: -15%;
  animation: floatSlow 6s ease-in-out 1s infinite;
}

.float-card-doc .fc-icon {
  background: var(--gold-light);
  color: var(--gold-dark);
}

.float-card-lang {
  top: 55%; left: -25%;
  animation: floatSlow 7s ease-in-out 2s infinite;
}

.float-card-lang .fc-icon {
  background: #E8F5E9;
  color: #2E7D32;
}

/* ===== Features Section ===== */
.features-section {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 16px;
  text-align: center;
}

.section-sub {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 60px;
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-icon.navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
}

.feature-icon.gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--white);
}

.feature-icon.blue {
  background: linear-gradient(135deg, #1565C0 0%, #42A5F5 100%);
  color: var(--white);
}

.feature-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ===== Screenshots Section ===== */
.screenshots-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
  overflow: hidden;
}

.screenshots-wrapper {
  display: flex;
  gap: 32px;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 0;
}

.screenshot-item {
  flex: 0 0 auto;
  width: 240px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--navy-dark);
  background: var(--navy-dark);
  transition: all 0.5s ease;
}

.screenshot-item:nth-child(odd) {
  animation: floatSlow 7s ease-in-out infinite;
}

.screenshot-item:nth-child(even) {
  animation: floatSlow 7s ease-in-out 1.5s infinite;
  margin-top: 40px;
}

.screenshot-item:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
}

.screenshot-item img {
  width: 100%;
  display: block;
  border-radius: 22px;
}

/* ===== Notify Section ===== */
.notify-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.notify-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: rgba(212, 168, 67, 0.08);
  animation: float 15s ease-in-out infinite;
}

.notify-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.notify-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.notify-content h2 span {
  color: var(--gold);
}

.notify-content p {
  font-size: 1.1rem;
  opacity: 0.85;
  max-width: 500px;
  margin: 0 auto 40px;
}

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

.notify-form input {
  flex: 1;
  padding: 16px 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all 0.3s ease;
}

.notify-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.notify-form input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.15);
}

.notify-form button {
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy-dark);
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.notify-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

/* Notify message */
.notify-msg {
  margin-top: 16px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.notify-msg.success {
  background: rgba(74, 222, 128, 0.2);
  color: #BBF7D0;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.notify-msg.error {
  background: rgba(248, 113, 113, 0.2);
  color: #FCA5A5;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Languages */
.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
}

.lang-tag {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Footer ===== */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 40px 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-img {
  width: auto;
  height: 56px;
  object-fit: contain;
  background: var(--white);
  padding: 8px;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.footer-logo span {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.footer p {
  opacity: 0.6;
  font-size: 0.85rem;
}

.footer-center {
  text-align: center;
}

.footer-credits {
  margin-top: 4px;
  font-size: 0.8rem !important;
  opacity: 0.5 !important;
}

.footer-credits a {
  color: var(--gold);
  opacity: 1;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Fallback: make visible if JS disabled or observer fails */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero h1 { font-size: 2.8rem; }
  .hero-description { margin: 0 auto 40px; }
  .platforms { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }

  .float-card { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .hero .container { gap: 30px; }
  .hero h1 { font-size: 1.9rem; }
  .hero { padding: 90px 0 50px; min-height: auto; }
  .hero-description { font-size: 0.92rem; line-height: 1.6; max-width: 100%; padding: 0 4px; }
  .section-title { font-size: 1.8rem; }
  .section-sub { font-size: 0.95rem; padding: 0 8px; }
  .features-grid { grid-template-columns: 1fr; }
  .screenshots-wrapper { gap: 16px; flex-wrap: wrap; }
  .screenshot-item { width: 180px; }
  .notify-form { flex-direction: column; }
  .notify-section h2 { font-size: 1.6rem; }
  .notify-section p { font-size: 0.95rem; max-width: 100%; }
  .footer .container { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; }
  .platforms { flex-direction: column; align-items: center; }
  .badge-coming { font-size: 0.65rem; padding: 6px 12px; letter-spacing: 1px; }
  .logo-img { height: 32px; }
  .logo-text { font-size: 1.1rem; }
  .header .container { padding: 0 12px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero h1 { font-size: 1.5rem; }
  .hero { padding: 76px 0 36px; }
  .hero-tagline { font-size: 0.75rem; padding: 6px 14px; }
  .hero-description { font-size: 0.88rem; }
  .phone-showcase { max-width: 220px; }
  .screenshot-item { width: 140px; }
  .badge-coming { font-size: 0.6rem; padding: 5px 10px; letter-spacing: 1px; }
  .section-title { font-size: 1.4rem; }
  .feature-card { padding: 24px 18px; }
  .feature-card h3 { font-size: 1.05rem; }
  .platform-badge { padding: 10px 18px; font-size: 0.9rem; }
  .languages { gap: 6px; }
  .lang-tag { padding: 4px 10px; font-size: 0.7rem; }
  .notify-form input { padding: 12px 16px; }
  .notify-form button { padding: 12px 24px; }
  .footer-logo-img { height: 44px; }
}
