/* Core styles (updated for liquid iPad-like hero, fade and animations)
   Replace the repository's assets/css/style.css with this file or merge the hero styles below.
*/

:root{
  --bg: #ffffff;
  --text: #0f1720;
  --muted: #6b7280;
  --accent: #0b73ff;
  --card: rgba(255,255,255,0.65);
  --glass-border: rgba(255,255,255,0.4);
  --shadow: 0 8px 30px rgba(16,24,40,0.12);
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Global utility (existing styles should be preserved; include these where needed) */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  line-height:1.45;
  font-size:16px;
}

/* container */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
}

/* Header, nav, buttons — keep your existing styles; small tweaks for spacing */
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:18px 0}
.logo{font-weight:700;font-size:1.1rem;text-decoration:none;color:var(--text)}
.top-nav a{margin-left:18px;color:var(--text);text-decoration:none}
.btn{background:var(--accent);color:white;padding:10px 14px;border-radius:8px;text-decoration:none;display:inline-block}
.btn-outline{background:transparent;border:1px solid rgba(11,115,255,0.12);color:var(--accent)}

/* HERO layout */
.hero{
  padding:60px 0;
  position:relative;
  overflow:visible;
}

.hero-inner{
  display:flex;
  gap:36px;
  align-items:center;
  justify-content:space-between;
}

/* Left copy */
.hero-copy{flex:1 1 46%}
.hero-copy h1{font-size:2rem;margin:.2rem 0 0.6rem}
.hero-copy .lead{color:var(--muted);margin-bottom:1rem}

/* Visual area (iPad-like card) */
.hero-visual{
  flex:0 0 48%;
  max-width:520px;
  position:relative;
  display:block;
  align-self:center;
  perspective:1200px; /* gives 3D depth to float animation */
}

/* main image */
.visual-img{
  width:100%;
  height:auto;
  display:block;
  border-radius:20px;
  box-shadow: var(--shadow);
  transform-origin:center;
  transition:transform .9s cubic-bezier(.2,.8,.2,1), filter .6s;
  will-change:transform, filter;
  backface-visibility:hidden;
}

/* half fade overlay: left half faded (use gradient) */
.visual-fade{
  position:absolute;
  inset:0;
  border-radius:20px;
  pointer-events:none;
  background: linear-gradient(90deg, rgba(255,255,255,0.72) 0%, rgba(255,255,255,0.44) 28%, rgba(255,255,255,0.1) 48%, rgba(255,255,255,0.0) 52%, rgba(255,255,255,0.0) 100%);
  mix-blend-mode:normal;
}

/* Translucent logo/ccv card that sits on the right half */
.logo-card{
  position:absolute;
  right:20px;
  top:50%;
  transform:translateY(-50%) translateZ(0);
  width:46%;
  min-width:160px;
  background:var(--card);
  border-radius:14px;
  padding:14px;
  display:flex;
  align-items:center;
  gap:12px;
  box-shadow: 0 6px 30px rgba(12,16,24,0.16);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  border:1px solid var(--glass-border);
  transition:transform .6s cubic-bezier(.2,.8,.2,1), opacity .5s;
}

/* logo & text inside the card */
.logo-card-logo{width:42px;height:42px;object-fit:contain;border-radius:8px}
.logo-card-text{display:flex;flex-direction:column;font-size:0.9rem}
.logo-card-text .small-muted{font-size:.75rem;color:var(--muted);margin-top:2px}

/* placeholder CCV area — styled as a subtle tag */
.logo-card-ccv{
  margin-left:auto;
  font-weight:600;
  color:var(--accent);
  background:rgba(11,115,255,0.06);
  padding:6px 10px;
  border-radius:10px;
  font-size:.85rem;
}

/* floating blobs for liquid effect */
.float-blob{
  position:absolute;
  border-radius:50%;
  filter:blur(18px);
  opacity:0.28;
  transform:translateZ(0);
}
.blob-1{
  width:120px;height:120px;
  right:-24px;top:-24px;
  background:linear-gradient(135deg,#9be7ff 0%, #6fb9ff 100%);
  animation:float 6s ease-in-out infinite;
}
.blob-2{
  width:80px;height:80px;
  right:40px;bottom:-18px;
  background:linear-gradient(135deg,#ffd6b6 0%, #ffb3a1 100%);
  animation:float 8s ease-in-out infinite reverse;
}

/* subtle interactive hover for desktop */
.hero-visual:hover .visual-img{transform:translateY(-6px) scale(1.02)}
.hero-visual:hover .logo-card{transform:translateY(-52%) translateX(4px) scale(1.02)}

/* float keyframe */
@keyframes float{
  0%{transform:translateY(0) translateZ(0)}
  50%{transform:translateY(-10px) translateZ(0)}
  100%{transform:translateY(0) translateZ(0)}
}

/* Cards, grid and other existing styles should remain; ensure responsiveness below */

/* RESPONSIVE: tablet / iPad */
@media (max-width: 900px){
  .hero-inner{
    gap:20px;
  }
  .hero-copy{flex-basis:50%}
  .hero-visual{flex-basis:50%; max-width:420px}
  .hero-copy h1{font-size:1.6rem}
  .logo-card{right:12px;width:48%}
}

/* RESPONSIVE: mobile */
@media (max-width: 600px){
  .hero-inner{
    display:block;
  }
  .hero-visual{
    margin:18px auto 0;
    max-width:420px;
    width:100%;
  }
  .logo-card{
    position:relative;
    right:auto;
    top:auto;
    transform:none;
    margin-top:-72px; /* pull over image a bit */
    width:86%;
    left:50%;
    transform:translateX(-50%);
  }
  .visual-fade{border-radius:12px}
  .hero-copy h1{font-size:1.3rem}
  .hero-copy .lead{font-size:.95rem}
}

/* Reduced motion: respect user preference */
@media (prefers-reduced-motion: reduce){
  .float-blob, .visual-img, .logo-card{animation:none;transition:none}
  .blob-1, .blob-2{animation:none}
  .hero-visual:hover .visual-img,
  .hero-visual:hover .logo-card{transform:none}
}

/* small utilities */
.small-muted{color:var(--muted);font-size:.85rem}
