﻿.upgrade-modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.65);
    z-index:9999;

    display:flex;
    align-items:center;
    justify-content:center;

    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:.2s;
}

.upgrade-modal.show{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}



.upgrade-modal .modal-content{

    width: min(520px, 92vw);

    background: linear-gradient(180deg,#0f172a,#0b1220);

    border-radius:18px;

    box-shadow:
        0 25px 80px rgba(0,0,0,.6);

    overflow:hidden;

    animation: modalPop .18s ease;
}

@keyframes modalPop{
    from{
        transform:scale(.92);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

.upgrade-modal .modal-header{
    padding:18px 22px;

    background:linear-gradient(90deg,#020617,#020617);

    font-weight:600;
}

.upgrade-modal .modal-header i{
margin-right:16px;
}

.upgrade-modal .modal-body{
    padding:22px;
    line-height:1.6;
}


.upgrade-modal .modal-close{
    cursor:pointer;
    font-size:20px;
    opacity:.7;
}

.upgrade-modal .modal-close:hover{
    opacity:1;
}

.upgrade-modal .modal-btn{

    appearance:none;
    border:none;

    padding:12px 22px;
    border-radius:10px;

    font-weight:600;
    font-size:15px;

    cursor:pointer;

    background:linear-gradient(135deg,#3b82f6,#2563eb);
    color:white;

    box-shadow:
        0 6px 18px rgba(37,99,235,.35);

    transition:.18s ease;
}

/* hover */
.upgrade-modal .modal-btn:hover{
    transform:translateY(-2px);
    box-shadow:
        0 10px 26px rgba(37,99,235,.45);
}

/* klick */
.upgrade-modal .modal-btn:active{
    transform:translateY(0);
    box-shadow:
        0 4px 12px rgba(37,99,235,.35);
}

.hero {
  padding-top: 8px;
}

.hero .container {
  display: grid;
  grid-template-columns: 520px 1fr;
  align-items: center;
  gap: 40px; 
}

.hero-content {
  max-width: 520px;
}

.hero-image {
  display: none;
}

@media (min-width: 768px) {
  .hero-image {
    display: block;
  }
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
   margin-right: -140px;
   margin-top:-160px;
}

.devices {
  position: relative;
  width: 100%;
  max-width: 640px;
  display: flex;
  justify-content: flex-end;
  transform: scale(0.75);
  transform-origin: right center;
}

.devices::before {
  content: "";
  position: absolute;
  inset: -80px -120px;
  background: radial-gradient(
    circle at 60% 50%,
    rgba(30,215,96,.22),
    rgba(30,215,96,.06) 35%,
    transparent 70%
  );
  filter: blur(60px);
  z-index: 0;
}

.laptop {
  position: relative;
  width: 100%;
  max-width: 720px;
  border-radius: 20px;
  padding: 10px;
  background: linear-gradient(145deg, #2b2b2b, #0f1115);
  box-shadow:
    0 60px 140px rgba(0,0,0,.85),
    0 10px 40px rgba(0,0,0,.6);
  transform: perspective(1600px) rotateY(-6deg);
  z-index: 1;
}

.laptop img {
  width: 100%;
  border-radius: 12px;
}

.phone {
  position: absolute;
  right: -40px;
  bottom: -30px;
  width: 220px;
  background: #000;
  padding: 6px;
  border-radius: 18px;
  overflow: hidden;
  z-index: 5;
}

.phone img {
  width: 100%;
  border-radius: 10px;
}

.phone::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 16px;
  background: #000;
  border-radius: 20px;
}

@media (min-width: 768px) {
  .phone {
    transform: perspective(1400px) rotateY(-12deg) rotateZ(4deg);
  }
}

@media (max-width: 768px) {

  .hero .container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-image {
    order: -1;
    display: block;
  }

  .laptop {
    display: none;
  }

  .devices {
    height: 240px;
  }

  .phone {
    position: absolute;
    width: 170px;
    margin-top: -40px;
  }

  .phone-back {
    left: 40%;
    transform: translateX(-50%) rotate(6deg);
    z-index: 1;
    opacity: 0.9;
  }

  .phone-front {
    left: 55%;
    transform: translateX(-50%) rotate(-6deg);
    z-index: 2;
  }
}

.hero {
  position: relative;
  isolation: isolate;
}

.button1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.button-primary1 {
  background: var(--accent);
  color: #000;
  box-shadow: 0 8px 26px rgba(30, 215, 96, 0.35);
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;       /* ⇐ behövs för shimmer */
}

.button-primary1 {
  background: #1ed760; /* fallback om --accent saknas */
  color: #000;
}

.button-primary1 {
  box-shadow:
    0 8px 26px rgba(30, 215, 96, 0.35),
    0 0 0 2px rgba(0,0,0,0.4);
}

.button-primary1:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(30, 215, 96, 0.45);
}

/* ✨ shimmer-effekt */
.button-primary1.shimmers::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 150%;
  height: 100%;
  background: linear-gradient(
    115deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.6) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: skewX(-20deg);
  animation: shimmerMoves 0.8s ease-out forwards;
}

@keyframes shimmerMoves {
  from {
    left: -150%;
  }
  to {
    left: 150%;
  }
}
