/* ============================================================
   SophyWorks.ai — Landing Page V2
   Payoneer-style · Centered hero · Floating product cards
   3 variations: ?v=a | ?v=b | ?v=c
   ============================================================ */

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

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;

  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: #fafafa;
  color: var(--slate-900);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--slate-900);
  letter-spacing: -0.02em;
}

.navbar__brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: contain;
}

.navbar__brand-text {
  height: 18px;
  object-fit: contain;
}

.navbar__center {
  display: flex;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-500);
}

.navbar__center a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-smooth);
}

.navbar__center a:hover {
  color: var(--slate-900);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.btn--ghost {
  background: transparent;
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
}

.btn--ghost:hover {
  color: var(--slate-900);
  background: var(--slate-100);
}

.btn--signin {
  background: transparent;
  color: var(--slate-700);
  font-weight: 500;
  padding: 0.55rem 1rem;
}

.btn--signin:hover {
  color: var(--slate-900);
}

.btn--signup {
  background: var(--slate-900);
  color: white;
  padding: 0.6rem 1.4rem;
}

.btn--signup:hover {
  background: var(--slate-800);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn--cta {
  padding: 0.9rem 2.4rem;
  font-size: 1rem;
  font-weight: 700;
  background: var(--sky-500);
  color: white;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.3);
}

.btn--cta:hover {
  background: var(--sky-600);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.35);
}

.btn--cta-secondary {
  padding: 0.9rem 2.4rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--slate-900);
  color: white;
}

.btn--cta-secondary:hover {
  background: var(--slate-800);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--transition-smooth);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 2rem 4rem;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(236, 72, 153, 0.10) 45%, rgba(56, 189, 248, 0.12) 100%);
}

/* Gaussian blur blobs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.5;
}

.hero::before {
  width: 600px;
  height: 600px;
  top: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  animation: drift1 14s ease-in-out infinite;
}

.hero::after {
  width: 500px;
  height: 500px;
  bottom: -5%;
  right: -5%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
  animation: drift2 16s ease-in-out infinite;
}

/* Subtle ring decoration */
.hero__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  opacity: 0.5;
  pointer-events: none;
}

.hero__ring--inner {
  width: 340px;
  height: 340px;
  opacity: 0.3;
}

.hero__content {
  position: relative;
  z-index: 10;
  max-width: 720px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--slate-900);
  margin-bottom: 1.5rem;
}

.typewriter {
  color: var(--sky-500, #0ea5e9);
  border-right: 3px solid var(--sky-500, #0ea5e9);
  padding-right: 4px;
  animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

  0%,
  100% {
    border-color: var(--sky-500, #0ea5e9);
  }

  50% {
    border-color: transparent;
  }
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  color: var(--slate-400);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.hero__cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero__cta-label {
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* ---------- Floating Product Cards ---------- */
.floating-cards {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.float-card {
  position: absolute;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  color: white;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  will-change: transform;
  pointer-events: auto;
  min-width: 210px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.float-card--1,
.float-card--3 {
  background: linear-gradient(135deg, #e11d48, #f59e0b);
}

.float-card--2,
.float-card--4 {
  background: linear-gradient(135deg, #0ea5e9, #ec4899);
}

.float-card__header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.float-card__avatar-sky {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-400), var(--sky-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.float-card__avatar-pink {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.float-card__label {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

.float-card__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
}

.float-card__value {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-align: left;
}

.float-card__value-icon {
  font-size: 0.7rem;
  opacity: 0.6;
}

.float-card__time {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Float card positions ---------- */
.float-card--1 {
  top: 18%;
  left: 6%;
  animation: float-a1 8s ease-in-out infinite;
}

.float-card--2 {
  top: 14%;
  right: 8%;
  animation: float-a2 9s ease-in-out 0.5s infinite;
}

.float-card--3 {
  bottom: 18%;
  left: 8%;
  animation: float-a3 10s ease-in-out 1s infinite;
}

.float-card--4 {
  bottom: 16%;
  right: 6%;
  animation: float-a4 8.5s ease-in-out 0.8s infinite;
}

/* ---------- Features Section ---------- */
.features {
  position: relative;
  z-index: 10;
  padding: 4rem 2rem 5rem;
}

.features__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.feature-card {
  background: transparent;
  border: none;
  padding: 2rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
  transition: var(--transition-smooth);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:nth-child(1) {
  animation-delay: 0.8s;
}

.feature-card:nth-child(2) {
  animation-delay: 1s;
}

.feature-card:nth-child(3) {
  animation-delay: 1.2s;
}

.feature-card:nth-child(4) {
  animation-delay: 1.4s;
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--slate-500);
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
}

.feature-card__body {
  flex: 1;
  min-width: 0;
}

.feature-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.feature-card__desc {
  font-size: 0.875rem;
  color: var(--slate-500);
  line-height: 1.7;
}



/* ---------- Keyframes ---------- */
@keyframes drift1 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(40px, 30px);
  }
}

@keyframes drift2 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-30px, -40px);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Variant A floats */
@keyframes float-a1 {

  0%,
  100% {
    transform: translate(0, 0) rotate(-2deg);
  }

  50% {
    transform: translate(10px, -15px) rotate(0deg);
  }
}

@keyframes float-a2 {

  0%,
  100% {
    transform: translate(0, 0) rotate(1deg);
  }

  50% {
    transform: translate(-12px, -10px) rotate(-1deg);
  }
}

@keyframes float-a3 {

  0%,
  100% {
    transform: translate(0, 0) rotate(1deg);
  }

  50% {
    transform: translate(15px, 10px) rotate(-1deg);
  }
}

@keyframes float-a4 {

  0%,
  100% {
    transform: translate(0, 0) rotate(-1deg);
  }

  50% {
    transform: translate(-10px, -12px) rotate(1deg);
  }
}



/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features__inner {
    grid-template-columns: 1fr;
  }

  .float-card--2,
  .float-card--3 {
    display: none;
  }

  .navbar__center {
    display: none;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1.25rem;
  }

  .hero {
    padding: 10rem 1.25rem 3rem;
  }

  .hero__title {
    font-size: 2.8rem;
  }

  .hero__cta-group {
    flex-direction: column;
  }

  .float-card {
    transform: scale(0.85);
  }

  .features {
    padding: 0 1.25rem 3rem;
  }

  .version-selector {
    bottom: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.2rem;
  }

  .float-card--1,
  .float-card--4 {
    display: none;
  }

  .hero__ring {
    width: 280px;
    height: 280px;
  }

  .hero__ring--inner {
    width: 180px;
    height: 180px;
  }
}

/* ==========================================================
   DARK MODE — follows browser / OS preference
   ========================================================== */
@media (prefers-color-scheme: dark) {

  /* ---------- Override palette variables ---------- */
  :root {
    --slate-50: #0f172a;
    --slate-100: #1e293b;
    --slate-200: #334155;
    --slate-300: #475569;
    --slate-400: #94a3b8;
    --slate-500: #cbd5e1;
    --slate-600: #e2e8f0;
    --slate-700: #f1f5f9;
    --slate-800: #f8fafc;
    --slate-900: #f8fafc;

    /* Sky / Pink stay the same — they are accent colors */
  }

  /* ---------- Body ---------- */
  body {
    background: #0c1220;
    color: #e2e8f0;
  }

  /* ---------- Navbar ---------- */
  .navbar.scrolled {
    background: rgba(12, 18, 32, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  }

  /* Logo: invert black → white (it's black text on transparent) */
  .navbar__brand-text {
    filter: invert(1) brightness(2);
  }

  .navbar__center a:hover {
    color: #f1f5f9;
  }

  /* ---------- Buttons ---------- */
  .btn--signin {
    color: #cbd5e1;
  }

  .btn--signin:hover {
    color: #f8fafc;
  }

  .btn--signup {
    background: #f8fafc;
    color: #0f172a;
  }

  .btn--signup:hover {
    background: #e2e8f0;
    box-shadow: 0 4px 12px rgba(248, 250, 252, 0.15);
  }

  .btn--cta {
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
  }

  .btn--cta:hover {
    box-shadow: 0 8px 30px rgba(14, 165, 233, 0.5);
  }

  .btn--cta-secondary {
    background: #f8fafc;
    color: #0f172a;
  }

  .btn--cta-secondary:hover {
    background: #e2e8f0;
    box-shadow: 0 6px 20px rgba(248, 250, 252, 0.15);
  }

  /* ---------- Hero ---------- */
  .hero {
    background: linear-gradient(135deg,
        rgba(56, 189, 248, 0.08) 0%,
        rgba(236, 72, 153, 0.06) 45%,
        rgba(56, 189, 248, 0.08) 100%);
  }

  .hero::before {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  }

  .hero::after {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
  }

  .hero__ring {
    border-color: rgba(148, 163, 184, 0.15);
  }

  .hero__title {
    color: #f8fafc;
  }

  .hero__subtitle {
    color: #94a3b8;
  }

  /* ---------- Floating cards (already dark → make glassy) ---------- */
  .float-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  }

  /* ---------- Features ---------- */
  .feature-card__icon {
    background: rgba(30, 41, 59, 0.8);
    color: #94a3b8;
  }

  .feature-card__title {
    color: #f1f5f9;
  }

  .feature-card__desc {
    color: #94a3b8;
  }
}