@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #fefefe;
  color: #333;
  overflow-x: hidden;
}

.header {
  background: linear-gradient(to right, #1e3a5f, #3f73b7, #44a3d0);
  padding: 10px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.header img.diamant {
  max-height: 50px;
  width: auto;
  max-width: 90%;
}

.header img.keepone {
  max-height: 30px;
  width: auto;
  max-width: 90%;
}

.lang-switcher {
  position: absolute;
  top: 15px;
  right: 20px;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  font-size: 0.9em;
  font-weight: 600;
}

.lang-switcher button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.3s ease;
}

.lang-switcher button.active {
  color: white;
  text-decoration: underline;
}

.lang-switcher button:hover {
  color: rgba(255, 255, 255, 0.9);
}



h1.tagline {
  font-size: 4rem;
  line-height: 1;
  font-weight: bold;
  text-align: center;
  margin: 0;
  margin-top: 80px;
  margin-bottom: 20px;
  text-wrap: balance;
  background-image: linear-gradient(to right, #1e3a5f, #3f73b7, #44a3d0);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  animation: glow 6s ease-in-out infinite;
}

h1.tagline.typewriter {
  animation: none !important;
}

h3.sub {
  text-align: center;
  max-width: 600px;
  margin: 10px auto 30px;
}

.separator {
  width: 20%;
  border: none;
  border-top: 2px dotted #3f73b7;
  margin: 15px auto;
  opacity: 0.8;
  transition: width 0.3s ease;
}

.app-note {
  font-size: 0.75em;
  color: #777;
  margin: 0;
}

@keyframes glow {
  0%, 100% {
    filter: brightness(1.1);
  }
  50% {
    filter: brightness(0.9);
  }
}

.container {
  max-width: 900px;
  margin: 40px auto;
  margin-top: 100px;
  padding: 0 20px;
}

.card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
  margin-top: 100px;
  margin-bottom: 100px;
  padding: 24px;
}

.card-title {
  display: flex;
  align-items: center;
  font-size: 1.3em;
  font-weight: bold;
  color: #333;
  margin-bottom: 16px;
}

.card-title svg {
  margin-right: 10px;
  width: 24px;
  height: 24px;
}

.card p {
  margin: 0 0 1em;
  line-height: 1.6;
  color: #555;
}

.accent {
  color: #3f73b7;
  font-weight: bold;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.feature-icon {
  background-color: rgba(68, 163, 208, 0.1);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-text h3 {
  margin: 0 0 4px;
  font-size: 1em;
  font-weight: bold;
  color: #111;
}

.feature-text p {
  margin: 0;
  font-size: 0.9em;
  color: #666;
  line-height: 1.4;
}

.tips {
  background-color: rgba(189, 131, 255, 0.05);
  border: 1px solid rgba(189, 131, 255, 0.2);
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.tip-item {
  display: block;
  border-bottom: 1px solid rgba(189, 131, 255, 0.2);
  padding: 12px 0;
}

.tip-item:last-of-type {
  border-bottom: none;
}

.tip-bullet {
  width: 3px;
  height: 16px;
  background-color: #3f73b7;
  border-radius: 2px;
  margin-top: 2px;
  flex-shrink: 0;
}

.tip-item p {
  margin: 0;
  font-size: 0.9em;
  color: #555;
}

.tips p strong {
  color: #333;
}

.cta-container {
  text-align: center;
  padding: 30px 20px;
}

.flush-video {
  width: 50%;
  margin: 0 auto !important;
  padding: 0 !important;
  position: relative;
  z-index: 1;
}

.flush-video img {
  display: block;
  width: 90%;
  max-width: 750px;
  margin: 0 auto;
  margin-bottom: -20px;
  border-radius: 0 !important;
  position: relative;
  z-index: 1;
}

.cta-button {
  display: inline-block;
  background-image: linear-gradient(to right, #1e3a5f, #3f73b7, #44a3d0);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #664FCC;
}

.keep-video {
  text-align: center;
  margin: 85px auto;
}

.keep-video video {
  max-width: 750px;
  width: 80%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.keep-image {
  text-align: center;
  margin: 85px auto;
}

.keep-image img {
  max-width: 750px;
  width: 80%;
  height: auto;
}

.keep-image.keep-large img {
  max-width: 700px;
  width: 100%;
  height: auto;
}

.carousel-wrapper {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 100px 0;
  width: 70vw;
  overflow: visible;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 16px;
  padding: 16px 0;
}

.carousel img {
  flex: 0 0 auto;
  width: 30%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: none;
  filter: hue-rotate(-50deg) saturate(1.5);
}

.carousel-btn {
  background: none;
  border: none;
  color: transparent;
  font-size: 2em;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin: 0 25px;
  position: relative;
}

.carousel-btn::before {
  content: attr(data-arrow);
  background: linear-gradient(to right, #1e3a5f, #3f73b7, #44a3d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.carousel-btn:hover::before {
  transform: scale(1.2);
  filter: brightness(1.2);
}

svg, svg * {
  stroke: #3f73b7 !important;
  fill: none !important;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.card.card-purple {
  background: linear-gradient(to right, #1e3a5f, #3f73b7, #44a3d0);
  color: #fff;
  border: none;
  margin-top: 0;
  position: relative;
  z-index: 2;
  overflow: hidden; 
}

.card.card-purple .card-title {
  color: #fff;
}

.card.card-purple .feature-text h3 {
  color: #fff;
}

.card.card-purple .feature-text p {
  color: #eee;
}

.card.card-purple svg, 
.card.card-purple svg * {
  stroke: #fff !important;
}

.card.card-purple .card-title svg,
.card.card-purple .card-title svg * {
  stroke: white !important;
}

.gradient-text {
  font-weight: bold;
  background: linear-gradient(to right, #1e3a5f, #3f73b7, #44a3d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.collapsible {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.arrow svg {
  transform: rotate(-90deg);
  transition: transform 0.35s cubic-bezier(0.45, 1.6, 0.6, 1);
}

.tip-item.active .arrow svg {
  transform: rotate(0deg);
}

.tip-title {
  margin: 0;
  color: #333;
  font-size: 0.95em;
  line-height: 1.4;
}

.tip-text {
  position: relative;
  display: block;
  white-space: normal;
  margin: 4px 0 8px 28px;
  padding-right: 18px;
  color: #555;
  font-size: 0.9em;
  line-height: 1.6;
  max-height: 2em;
  overflow: hidden;
  transition: max-height 0.6s ease;
  box-sizing: border-box;
}

.tip-text::after {
  content: "↓";
  position: absolute;
  bottom: 0;
  right: 10px;
  font-size: 1em;
  color: rgba(189, 131, 255, 0.4);
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.9);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.tip-text::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5em;
  background: linear-gradient(to bottom, transparent, rgba(249,249,249,1));
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.card-purple .tip-text::before {
  background: linear-gradient(to bottom, transparent, rgba(189,131,255,0.1));
}

.tip-item.active .tip-text {
  max-height: 1000px;
}

.tip-item.active .tip-text::before,
.tip-item.active .tip-text::after {
  opacity: 0;
}

.tip-text.closed {
  max-height: 0;
  overflow: hidden;
  margin: 0 0 0 28px;
  padding: 0;
}

.tip-text.closed::before,
.tip-text.closed::after {
  display: none;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  25% { transform: rotate(0.8deg) translateY(-2px); }
  50% { transform: rotate(-0.8deg) translateY(2px); }
  75% { transform: rotate(0.6deg) translateY(-1px); }
}

.wiggle-video {
  animation: wiggle 6s ease-in-out infinite;
  transform-origin: center center;
}

.footer {
  text-align: center;
  padding: 60px 20px;
  margin-top: 150px;
  color: #666;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0));
}

.footer-logo {
  height: 300px;
  opacity: 0.85;
  margin-bottom: 0px;
}

.footer-phrase {
  font-size: 0.95em;
  margin-bottom: 20px;
  color: #444;
}

.footer-links {
  font-size: 0.85em;
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  background: linear-gradient(to right, #1e3a5f, #3f73b7, #44a3d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.7;
}

.footer-copy {
  font-size: 0.75em;
  opacity: 0.6;
  margin-top: 10px;
}

.section-antisocial { 
  background:#f7fafc; 
  padding:20px 40px; 
  border-radius:14px; 
  box-shadow:0 6px 18px rgba(0,0,0,0.05); 
  margin:120px auto; 
  max-width:850px; 
  text-align:center; 
}

.section-antisocial h3 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 35px;
  background: linear-gradient(to right, #1e3a5f, #3f73b7, #44a3d0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-antisocial ul {
  list-style: none;
  text-align: left;
  padding: 0;
  margin: 60px auto 40px;
  max-width: 480px;
}

.section-antisocial li {
  font-size: 1.15rem;
  color: #333;
  padding: 6px 0;
  border-bottom: 1px solid rgba(189,131,255,0.18);
}

.section-antisocial li:last-child {
  border-bottom: none;
}

.section-antisocial p {
  font-size: 1.3rem;
  color: #333;
  line-height: 1.7;
  font-weight: 600;
  margin-top: 25px;
}

/* MEDIA QUERIES RESPONSIVE */

@media (max-width: 900px) {
  .carousel img {
    width: 30%;
    max-width: 180px;
  }
}

@media (max-width: 768px) {
  div[style*="display:flex"] video {
    max-width: 100% !important;
  }
  
  div[style*="display:flex"] h1.tagline {
    font-size: 2rem !important;
    margin: 20px 15px !important;
  }
  
  div[style*="display:flex"][style*="rendu_anim_feed_keepone_alter"] {
    flex-direction: column !important;
    text-align: center;
    margin: 40px 0 !important;
  }

  div[style*="display:flex"][style*="rendu_anim_feed_keepone_alter"] video {
    max-width: 100% !important;
    margin-bottom: 25px;
  }

  div[style*="display:flex"][style*="rendu_anim_feed_keepone_alter"] h1 {
    font-size: 1.8rem !important;
    margin: 0 auto !important;
  }
  
  .feature {
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .lang-switcher {
    top: 10px;
    right: 10px;
    font-size: 0.85em;
  }
  
  .grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 24px;
  }
  
  #introduce {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  #introduce video {
    width: 115vw !important;
    max-width: 115vw !important;
    height: auto !important;
    margin-left: -15vw !important;
    margin-right: -15vw !important;
    border-radius: 0 !important;
    display: block !important;
  }

  .keep-video {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    overflow: hidden !important;
  }

  .keep-video video {
    width: 115vw !important;
    max-width: 115vw !important;
    margin-left: -15vw !important;
    margin-right: -15vw !important;
    border-radius: 0 !important;
  }

  .carousel-wrapper {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0;
    width: 95vw;
    overflow: visible;
  }
  
  .separator {
    width: 60%;
  }

  .carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 16px 0;
  }

  .carousel img {
    flex: 0 0 auto;
    width: 80%;
    max-width: 320px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    scroll-snap-align: center;
  }
  
  .carousel-btn {
    display: none;
  }
  
  h1.tagline {
    margin-left: 15px;
    margin-right: 15px;
    font-size: 2.2rem;
    margin-top: 100px;
    margin-bottom: 0px;
    line-height: 1.1;
  }
  
  .flush-video {
    width: 80%; 
    margin-bottom: -2px;
  }
  
  .container {
    margin-top: 120px;
    padding: 0 15px;
  }
  
  h3.sub {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 15px 20px;
  }
  
  .keep-image img {
    width: 85%;
    max-width: 350px;
  }
  
  .keep-image.keep-large img {
    width: 95%;
    max-width: 100%;
  }
  
  .footer-logo {
    height: 200px;
  }
  
  .footer {
    padding: 40px 15px;
    margin-top: 100px;
  }
  
  div[style*="rendu_anim_feed_keepone_alter"],
  div[style*="margin-left:40px"] {
    display: flex !important;
    flex-direction: column !important;
    margin: 40px auto !important;
    padding: 0 !important;
    text-align: center !important;
    margin-left: 0 !important;
    gap: 25px !important;
  }

  div[style*="rendu_anim_feed_keepone_alter"] video,
  div[style*="margin-left:40px"] video {
    width: 90% !important;
    max-width: 350px !important;
    border-radius: 12px !important;
    margin: 0 auto !important;
  }

  div[style*="rendu_anim_feed_keepone_alter"] h1,
  div[style*="margin-left:40px"] h1 {
    margin: 0 auto !important;
    text-align: center !important;
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
    min-width: auto !important;
  }
  
  .section-antisocial ul {
    margin: 40px 20px;
    max-width: 100%;
  }
  
  .section-antisocial h3 {
    font-size: 1.8rem;
  }
  
  .section-antisocial p {
    font-size: 1rem;
  }
}

@media (max-width: 400px) {
  .separator {
    width: 80%;
  }
  
  .card {
    padding: 20px 16px;
    margin-top: 60px;
    margin-bottom: 60px;
  }
  
  .card-title {
    font-size: 1.1em;
  }
  
  body {
    font-size: 15px;
  }
  
  .feature-text h3 {
    font-size: 0.95em;
  }
  
  .feature-text p {
    font-size: 0.85em;
  }
}

.slogan-gradient {
  background-image: linear-gradient(to right, #1e3a5f, #3f73b7, #44a3d0);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.anti-line {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.anti-line.visible {
  opacity: 1;
  transform: translateX(0);
}

.anti-line:nth-child(1) { transition-delay: 0s; }
.anti-line:nth-child(2) { transition-delay: 0.3s; }
.anti-line:nth-child(3) { transition-delay: 0.6s; }
.anti-line:nth-child(4) { transition-delay: 0.9s; }
.anti-line:nth-child(5) { transition-delay: 1.2s; }
.anti-line:nth-child(6) { transition-delay: 1.5s; }

.fade-on-scroll {
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(.25, .1, .25, 1.25);
}

.fade-on-scroll.visible {
  opacity: 1;
}

.typewriter {
  display: inline-block;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  border-right: 0.08em solid rgba(0,0,0,0.4);
  width: 0;
  animation: none;
}

.typewriter.visible {
  opacity: 1;
  animation: typing var(--tw-duration, 2.2s) steps(var(--tw-steps, 40)) forwards,
             blink 0.9s step-end infinite alternate;
}

@keyframes blink {
  from { border-color: rgba(0,0,0,0.4); }
  to { border-color: transparent; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}