/* =========================================
   IMAGE EFFECTS
   ========================================= */

:root {
  --img-radius-sm: 7px;
  --img-radius-md: 9px;
  --img-radius-lg: 12px;

  --img-border: rgba(15, 23, 42, 0.08);
  --img-shadow-1: 0 10px 30px rgba(15, 23, 42, 0.08);
  --img-shadow-2: 0 24px 60px rgba(15, 23, 42, 0.12);
  --img-shadow-3: 0 30px 80px rgba(15, 23, 42, 0.16);
}

/* Base image polish */
img,
video,
.mainimage,
.mainimagepage,
.imagemain,
.imagemainlogo,
.imagedemo,
.appimage,
section .feature img,
section.red .feature img,
section.blue .feature img,
section .splash .thumb img,
section .media .embed iframe:not(.vine-embed),
section .stats-page .thumb img,
.share-this .qr img {
  max-width: 100%;
  height: auto;
  border-radius: var(--img-radius-md);
  overflow: hidden;
  border: 1px solid var(--img-border);
  box-shadow: var(--img-shadow-1);
  margin: 12px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    filter 220ms ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-sizing: border-box;
}

/* Stronger showcase images */
.mainimage,
.mainimagepage,
.btn,
.imagemain,
.imagedemo,
section .feature img {
  border-radius: var(--img-radius-lg);
  box-shadow: var(--img-shadow-2);
}

/* Small images cleaner */
.imagemainlogo,
.appstorelogo,
section .media .info img,
section .content .avatar-holder .avatar {
  border-radius: var(--img-radius-sm);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

/* Hover lift */
.mainimage:hover,
.mainimagepage:hover,
.imagemain:hover,
.imagedemo:hover,
section .feature img:hover,
section .splash .thumb img:hover,
section .stats-page .thumb img:hover,
.appimage:hover,
video:hover {
  transform: translateY(-4px);
  box-shadow: var(--img-shadow-3);
  border-color: rgba(37, 99, 235, 0.18);
}

/* Depth */
.mainimage,
.mainimagepage,
.imagemain,
.imagedemo,
section .feature img,
section .splash .thumb img,
section .stats-page .thumb img,
.appimage {
  background: #fff;
}


/* ==================================================
   INDIVIDUAL ICON STYLES
   ================================================== */

.rand1::before {
  background: radial-gradient(circle, rgba(236,72,153,0.55) 0%, rgba(236,72,153,0) 70%);
}
.rand1 i {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

.rand2::before {
  background: radial-gradient(circle, rgba(249,115,22,0.52) 0%, rgba(249,115,22,0) 70%);
}
.rand2 i {
  background: linear-gradient(135deg, #fb923c 0%, #ef4444 100%);
}

.rand3::before {
  background: radial-gradient(circle, rgba(59,130,246,0.48) 0%, rgba(59,130,246,0) 70%);
}
.rand3 i {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

.rand4::before {
  background: radial-gradient(circle, rgba(14,165,233,0.48) 0%, rgba(14,165,233,0) 70%);
}
.rand4 i {
  background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
}

.rand5::before {
  background: radial-gradient(circle, rgba(139,92,246,0.46) 0%, rgba(139,92,246,0) 70%);
}
.rand5 i {
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
}

.rand6::before {
  background: radial-gradient(circle, rgba(34,197,94,0.46) 0%, rgba(34,197,94,0) 70%);
}
.rand6 i {
  background: linear-gradient(135deg, #22c55e 0%, #14b8a6 100%);
}

/* QR */
.share-this .qr img {
  background: #fff;
  padding: 8px;
  border-radius: 20px;
}

/* Embedded media */
section .media .embed,
section .media iframe,
section .media embed,
section .media object {
  max-width: 100%;
}

section .media .embed iframe:not(.vine-embed),
section .media embed,
section .media object {
  width: 100%;
  border-radius: var(--img-radius-lg);
  box-shadow: var(--img-shadow-2);
  border: 1px solid var(--img-border);
  overflow: hidden;
}

/* =========================================
   SMALL UI MODERNIZATION
   ========================================= */

.container.content {
  max-width: 1100px;
  padding-left: 18px;
  padding-right: 18px;
}

.panel.panel-body.panel-default {
  position: relative;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
  transition:
    box-shadow 220ms ease,
    border-color 220ms ease,
    transform 220ms ease;
}

.panel.panel-body.panel-default:hover {
  box-shadow: 0 18px 40px rgba(15,23,42,0.09);
  border-color: rgba(37,99,235,0.12);
  transform: translateY(-1px);
}

.mainto-page1,
.mainto-page2 {
  position: relative;
  overflow: hidden;
}

.mainto-page1 {
  background:
    radial-gradient(circle at 20% 20%, rgba(37,99,235,0.05), transparent 34%),
    linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
}

.mainto-page2 {
  background:
    radial-gradient(circle at 80% 30%, rgba(99,102,241,0.04), transparent 32%),
    linear-gradient(180deg,#f8fafc 0%,#f3f6fb 100%);
}

.mainto-page1::after,
.mainto-page2::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(15,23,42,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.18), transparent 75%);
  pointer-events: none;
}

.mainto-page1 > *,
.mainto-page2 > * {
  position: relative;
  z-index: 1;
}



.light {
  background:
    radial-gradient(circle at 20% 20%, rgba(37,99,235,0.05), transparent 34%),
    linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
}

.mainto {
  background:
    radial-gradient(circle at 80% 30%, rgba(99,102,241,0.04), transparent 32%),
    linear-gradient(180deg,#f8fafc 0%,#f3f6fb 100%);
}

hr {
  border: none;
  border-top: 1px solid rgba(148,163,184,0.4);
  width: min(68%, 1400px);
  margin: 30px auto;
  background: transparent;
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 991px) {
  .container.content {
    padding-left: 16px;
    padding-right: 16px;
  }

}

.iphone-x {
  position: relative;
  z-index: 1;
  height: 675px;
  width: 327px;
  z-index:1000;
  margin-top:-50px;
}

.iphone-x *, .iphone-x *::before, .iphone-x *::after {
  box-sizing: border-box;
  display: block;
}

/* BODY */
.iphone-x .side {
  background: linear-gradient(180deg,#ffffff 0%,#eef1f4 60%,#dde2e8 100%);
  border-radius: 54px;
  box-shadow:
    inset 0 0 2px 1px rgba(150,160,170,.5),
    inset 0 0 0 4px #f7f8fa,
    0px -1px 13px 9px rgba(255,255,255,0.75) inset;
  height: 675px;

  /* thinner sides */
  padding: 8px 10px;

  width: 327px;
  z-index: 1;
}

/* SCREEN */
.iphone-x .screen {
  background:#000;
  background-position: center center;
  background-size: cover;
  border-radius: 40px;
  position: relative;

  /* expanded screen area */
  height: 659px;
  width: 307px;

  margin-left:0;
  margin-top:0;

  z-index:198;
  overflow:hidden;
}

video {
  position:absolute;
  top:-10px;
  left:-8px;

  width:101%;
  height:101%;
  overflow: hidden;
  object-fit:cover;
  object-position:center;

  transform:scale(1.02);

  backface-visibility:hidden;
  will-change:transform;
}

.iphone-x .line::after, .iphone-x .line::before {
  content: "";
  position: absolute;
  border: solid rgba(160,170,180,0.25);
  border-width: 0 6px;
  height: 5px;
  left: 0;
  width: 100%;
  z-index: 9;
}

.iphone-x .line::after {
  top: 68px;
}

.iphone-x .line::before {
  bottom: 68px;
}

/* DYNAMIC ISLAND AREA */
.iphone-x .header {
  background: #121314;
  border-bottom-left-radius: 13px;
  border-bottom-right-radius: 13px;
  height: 24px;
  left: 50%;
  margin-left: -82px;
  position: absolute;
  top: 20px;
  width: 164px;
  z-index: 199;
}

.iphone-x .sensor-1::after, .iphone-x .sensor-1::before {
  content: "";
  position: absolute;
}

.iphone-x .sensor-1::after {
  background: #222;
  border-radius: 50%;
  height: 11px;
  width: 11px;
  left: 1%;
  margin-left: 10px;
  top: 3px;
}

.iphone-x .sensor-1::before {
  background: #222;
  border-radius: 50%;
  height: 11px;
  width: 11px;
  left: 10%;
  margin-left: 20px;
  top: 3px;
}

.iphone-x .sensor-2::after, .iphone-x .sensor-2::before {
  content: "";
  position: absolute;
}

.iphone-x .sensor-2::before {
  background: #333;
  border-radius: 2.5px;
  height: 5px;
  width: 40px;
  left: 50%;
  margin-left: -20px;
  top: 7px;
}

.iphone-x .sensor-3::after, .iphone-x .sensor-3::before {
  content: "";
  position: absolute;
}

.iphone-x .sensor-3::before {
  background: #444;
  border-radius: 50%;
  height: 11px;
  width: 11px;
  left: 50%;
  margin-left: 35px;
  top: 3px;
  box-shadow:0px 0px 5px 2px navy inset
}

.iphone-x .sensor-3::after {
  background: #222;
  border-radius: 50%;
  height: 15px;
  width: 15px;
  left: 65%;
  margin-left: 33px;
}

/* BUTTONS */
.iphone-x .volume-button {
  background: #e3e6ea;
  height: 26px;
  left: -2px;
  position: absolute;
  top: 92px;
  width: 3px;
}

.iphone-x .volume-button::after, .iphone-x .volume-button::before {
  content: "";
  position: absolute;
  background: #e3e6ea;
  height: 50px;
  left: 0;
  width: 3px;
}

.iphone-x .volume-button::after {
  top: 48px;
}

.iphone-x .volume-button::before {
  top: 112px;
}

.iphone-x .power-button {
  background: #e3e6ea;
  height: 80px;
  right: -2px;
  position: absolute;
  top: 160px;
  width: 3px;
}
/* =========================================
   MOBILE ADJUSTMENTS
   ========================================= */

@media (max-width: 767px) {
  img,
  video,
  .mainimage,
  .mainimagepage,
  .imagemain,
  .imagedemo,
  .appimage,
  section .feature img,
  section .splash .thumb img,
  section .stats-page .thumb img,
  section .media .embed iframe:not(.vine-embed),
  .share-this .qr img {
    width: calc(100% - 12px);
    max-width: 100%;
    margin: 6px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
  }

  .mainimage:hover,
  .mainimagepage:hover,
  .imagemain:hover,
  .imagedemo:hover,
  section .feature img:hover,
  section .splash .thumb img:hover,
  section .stats-page .thumb img:hover,
  .appimage:hover,
  video:hover,
  .panel.panel-body.panel-default:hover {
    transform: none;
  }

  video {
  position:absolute;
  top:0px;
  left:0px;
  border-radius: 16px;

  width:100%;
  height:100%;
  overflow: hidden;
  object-fit:cover;
  object-position:center;

  transform:scale(1.02);

  backface-visibility:hidden;
  will-change:transform;
}

  .container.content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .panel.panel-body.panel-default {
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(15,23,42,0.06);
  }

  .mainto-page1::after,
  .mainto-page2::after {
    background-size: 28px 28px;
    opacity: 0.5;
  }
  
  .light::after,
  .mainto::after {
    background-size: 28px 28px;
    opacity: 0.5;
  }

  .share-this .qr img {
    padding: 6px;
    border-radius: 16px;
  }

  section .media .embed iframe:not(.vine-embed),
  section .media embed,
  section .media object {
    min-height: 220px;
  }
}

#wave{
  display:block;
  width:100%;
  height:clamp(120px,14vw,220px);
}

#wave path {
  transition: opacity 220ms ease;
}

.table-inner {
    border-radius: 8px;
}


@media (max-width: 480px) {
  .container.content {
    padding-left: 12px;
    padding-right: 12px;
  }

  img,
  video,
  .mainimage,
  .mainimagepage,
  .imagemain,
  .imagedemo,
  .appimage,
  section .feature img,
  section .splash .thumb img,
  section .stats-page .thumb img {
    width: 100%;
    margin: 4px 0;
  }

video {
  position:absolute;
  top:0px;
  left:0px;

  width:100%;
  height:100%;
  overflow: hidden;
  object-fit:cover;
  object-position:center;

  transform:scale(1.02);

  backface-visibility:hidden;
  will-change:transform;
}

  .panel.panel-body.panel-default {
    border-radius: 8px;
  }
  
  .table-inner {
    border-radius: 8px;
}
}