/* ============================================================
   DEME Studios — Ultra Minimal Landing
   ============================================================
   Inspired by the 3D prismatic cube logo. Clean white space
   with the logo's gradient colors as living, breathing accents.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */

:root {
  --color-bg: #fafafe;
  --color-text: #1a1a2e;
  --color-text-muted: #6b6b8a;
  --color-surface: #ffffff;
  --color-border: rgba(0, 0, 0, 0.06);

  --color-magenta: #E946A8;
  --color-orange: #F5A623;
  --color-blue: #4DA6E8;
  --color-violet: #7B4FD0;
  --gradient-brand: linear-gradient(135deg, #E946A8, #F5A623, #4DA6E8, #7B4FD0);

  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: rgba(123, 79, 208, 0.15);
  color: var(--color-text);
}

a {
  color: var(--color-violet);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-magenta); }

img { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   3. MAIN SCENE — Full viewport landing
   ============================================================ */

.scene {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 2rem 1rem;
  overflow: hidden;
}

/* Gradient orbs — living background accents */
.scene__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.25;
  pointer-events: none;
  will-change: transform;
}
.scene__orb--1 {
  width: 500px; height: 500px;
  background: var(--color-magenta);
  top: -10%; right: -5%;
  animation: drift-1 25s ease-in-out infinite;
}
.scene__orb--2 {
  width: 400px; height: 400px;
  background: var(--color-blue);
  bottom: -5%; left: -8%;
  animation: drift-2 30s ease-in-out infinite;
}
.scene__orb--3 {
  width: 300px; height: 300px;
  background: var(--color-violet);
  top: 40%; left: 50%;
  animation: drift-3 20s ease-in-out infinite;
}
.scene__orb--4 {
  width: 250px; height: 250px;
  background: var(--color-orange);
  top: 15%; left: 20%;
  animation: drift-4 22s ease-in-out infinite;
}

@keyframes drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(1.1); }
  66% { transform: translate(20px, -20px) scale(0.95); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(0.9); }
  66% { transform: translate(-20px, 20px) scale(1.05); }
}
@keyframes drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, -30px) scale(1.08); }
  66% { transform: translate(30px, 40px) scale(0.92); }
}
@keyframes drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 20px) scale(1.05); }
  66% { transform: translate(-30px, -30px) scale(0.95); }
}


/* ============================================================
   4. LOGO
   ============================================================ */

.logo {
  position: relative;
  z-index: 2;
  max-width: 480px;
  width: 100%;
  margin-top: auto;
  margin-bottom: 0;
  will-change: transform;
  animation: logo-enter 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes logo-enter {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}


/* ============================================================
   5. 3D CUBE — Interactive floating cube inspired by logo
   ============================================================ */

.cube-wrapper {
  position: absolute;
  z-index: 1;
  perspective: 800px;
  width: 120px;
  height: 120px;
  right: 15%;
  top: 25%;
  opacity: 0;
  cursor: grab;
  animation: cube-appear 1.5s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cube-appear {
  0% { opacity: 0; transform: scale(0.5); }
  100% { opacity: 1; transform: scale(1); }
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-20deg) rotateY(0deg);
  will-change: transform;
}

.cube__face {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cube__face--front {
  background: linear-gradient(135deg, rgba(233, 70, 168, 0.4), rgba(233, 70, 168, 0.15));
  transform: translateZ(60px);
}
.cube__face--back {
  background: linear-gradient(135deg, rgba(77, 166, 232, 0.4), rgba(77, 166, 232, 0.15));
  transform: rotateY(180deg) translateZ(60px);
}
.cube__face--right {
  background: linear-gradient(135deg, rgba(123, 79, 208, 0.4), rgba(123, 79, 208, 0.15));
  transform: rotateY(90deg) translateZ(60px);
}
.cube__face--left {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.4), rgba(245, 166, 35, 0.15));
  transform: rotateY(-90deg) translateZ(60px);
}
.cube__face--top {
  background: linear-gradient(135deg, rgba(123, 79, 208, 0.3), rgba(77, 166, 232, 0.15));
  transform: rotateX(90deg) translateZ(60px);
}
.cube__face--bottom {
  background: linear-gradient(135deg, rgba(233, 70, 168, 0.3), rgba(245, 166, 35, 0.15));
  transform: rotateX(-90deg) translateZ(60px);
}

/* Sparkle dots on faces */
.cube__face::before,
.cube__face::after {
  content: '✦';
  position: absolute;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  animation: twinkle 2s ease-in-out infinite alternate;
}
.cube__face::before { top: 20%; left: 30%; animation-delay: 0s; }
.cube__face::after { bottom: 25%; right: 25%; animation-delay: 1s; }

@keyframes twinkle {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

/* Second cube — smaller, different position */
.cube-wrapper--2 {
  width: 70px;
  height: 70px;
  left: 12%;
  top: 55%;
  right: auto;
  animation-delay: 1s;
}
.cube-wrapper--2 .cube {}
.cube-wrapper--2 .cube__face {
  width: 70px;
  height: 70px;
  font-size: 0.8rem;
}
.cube-wrapper--2 .cube__face--front  { transform: translateZ(35px); }
.cube-wrapper--2 .cube__face--back   { transform: rotateY(180deg) translateZ(35px); }
.cube-wrapper--2 .cube__face--right  { transform: rotateY(90deg) translateZ(35px); }
.cube-wrapper--2 .cube__face--left   { transform: rotateY(-90deg) translateZ(35px); }
.cube-wrapper--2 .cube__face--top    { transform: rotateX(90deg) translateZ(35px); }
.cube-wrapper--2 .cube__face--bottom { transform: rotateX(-90deg) translateZ(35px); }

/* Third cube */
.cube-wrapper--3 {
  width: 50px;
  height: 50px;
  left: 70%;
  top: 70%;
  right: auto;
  animation-delay: 1.5s;
}
.cube-wrapper--3 .cube {}
.cube-wrapper--3 .cube__face {
  width: 50px;
  height: 50px;
  font-size: 0.5rem;
}
.cube-wrapper--3 .cube__face--front  { transform: translateZ(25px); }
.cube-wrapper--3 .cube__face--back   { transform: rotateY(180deg) translateZ(25px); }
.cube-wrapper--3 .cube__face--right  { transform: rotateY(90deg) translateZ(25px); }
.cube-wrapper--3 .cube__face--left   { transform: rotateY(-90deg) translateZ(25px); }
.cube-wrapper--3 .cube__face--top    { transform: rotateX(90deg) translateZ(25px); }
.cube-wrapper--3 .cube__face--bottom { transform: rotateX(-90deg) translateZ(25px); }


/* ============================================================
   6. CTA BUTTON
   ============================================================ */

.cta {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  margin-bottom: 2rem;
  padding: 0.9rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  background-position: 0% 50%;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  animation: cta-enter 1s 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-position 0.6s ease;
}
.cta:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123, 79, 208, 0.3), 0 4px 15px rgba(233, 70, 168, 0.2);
  background-position: 100% 50%;
}
.cta:active {
  transform: translateY(0);
}

@keyframes cta-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes btn-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ============================================================
   7. CONTACT MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 30, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-slow);
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-surface);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(30px) scale(0.95);
  transition: all var(--transition-slow);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--color-border);
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  color: var(--color-text-muted);
  font-size: 1.2rem;
}
.modal__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
}

.modal__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.modal__subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form__group {
  margin-bottom: 1.25rem;
}
.form__group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form__group input,
.form__group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--color-violet);
  box-shadow: 0 0 0 3px rgba(123, 79, 208, 0.1);
}
.form__group textarea {
  resize: vertical;
  min-height: 100px;
}

.form__submit {
  width: 100%;
  padding: 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-brand);
  background-size: 200% 200%;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  margin-top: 0.5rem;
}
.form__submit:hover {
  background-size: 300% 300%;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(123, 79, 208, 0.25);
  animation: btn-shimmer 3s ease infinite;
}

.form__message {
  text-align: center;
  padding: 1.5rem;
  border-radius: 10px;
  font-weight: 500;
}
.form__message--success {
  background: rgba(123, 79, 208, 0.08);
  color: var(--color-violet);
  display: none;
}
.form__message--error {
  background: rgba(233, 70, 168, 0.08);
  color: var(--color-magenta);
  display: none;
}
.form__message-sub {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
}


/* ============================================================
   8. FOOTER
   ============================================================ */

.footer {
  position: relative;
  z-index: 20;
  padding: 1.2rem 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}
.footer a:hover {
  color: var(--color-violet);
}

.footer__links {
  margin: 0;
}

.footer__separator {
  display: inline-block;
  margin: 0 0.6rem;
  opacity: 0.3;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 50px;
  padding: 2px;
  gap: 0;
}
.lang-pill__item {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 50px;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.lang-pill__item:hover:not(.lang-pill__item--active) {
  color: var(--color-violet);
}
.lang-pill__item--active {
  background: var(--color-text);
  color: #fff;
  cursor: default;
}

.legal__content {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  line-height: 1.8;
}


/* ============================================================
   9. LANGUAGE ENTRY PAGE (root)
   ============================================================ */

.lang-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 2rem;
  padding: 2rem;
}

.lang-entry__logo {
  max-width: 300px;
  opacity: 0;
  animation: logo-enter 1s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lang-entry__links {
  display: flex;
  gap: 1.5rem;
  opacity: 0;
  animation: cta-enter 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lang-entry__link {
  padding: 0.7rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  transition: all var(--transition);
  text-decoration: none;
}
.lang-entry__link:hover {
  border-color: var(--color-violet);
  color: var(--color-violet);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(123, 79, 208, 0.15);
}


/* ============================================================
   10. RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .logo { max-width: 320px; }

  .cube-wrapper { width: 80px; height: 80px; right: 5%; top: 15%; }
  .cube__face { width: 80px; height: 80px; }
  .cube__face--front  { transform: translateZ(40px); }
  .cube__face--back   { transform: rotateY(180deg) translateZ(40px); }
  .cube__face--right  { transform: rotateY(90deg) translateZ(40px); }
  .cube__face--left   { transform: rotateY(-90deg) translateZ(40px); }
  .cube__face--top    { transform: rotateX(90deg) translateZ(40px); }
  .cube__face--bottom { transform: rotateX(-90deg) translateZ(40px); }

  .cube-wrapper--2 { width: 45px; height: 45px; left: 5%; }
  .cube-wrapper--2 .cube__face { width: 45px; height: 45px; }
  .cube-wrapper--2 .cube__face--front  { transform: translateZ(22px); }
  .cube-wrapper--2 .cube__face--back   { transform: rotateY(180deg) translateZ(22px); }
  .cube-wrapper--2 .cube__face--right  { transform: rotateY(90deg) translateZ(22px); }
  .cube-wrapper--2 .cube__face--left   { transform: rotateY(-90deg) translateZ(22px); }
  .cube-wrapper--2 .cube__face--top    { transform: rotateX(90deg) translateZ(22px); }
  .cube-wrapper--2 .cube__face--bottom { transform: rotateX(-90deg) translateZ(22px); }

  .cube-wrapper--3 { display: none; }

  .scene__orb { opacity: 0.15; }
  .scene__orb--1 { width: 300px; height: 300px; }
  .scene__orb--2 { width: 250px; height: 250px; }
  .scene__orb--3, .scene__orb--4 { display: none; }

  .modal { padding: 2rem 1.5rem; border-radius: 16px; }
}

@media (max-width: 480px) {
  .logo { max-width: 260px; }
  .cta { font-size: 0.85rem; padding: 0.8rem 1.5rem; }
  .cube-wrapper { width: 60px; height: 60px; }
  .cube__face { width: 60px; height: 60px; }
  .cube__face--front  { transform: translateZ(30px); }
  .cube__face--back   { transform: rotateY(180deg) translateZ(30px); }
  .cube__face--right  { transform: rotateY(90deg) translateZ(30px); }
  .cube__face--left   { transform: rotateY(-90deg) translateZ(30px); }
  .cube__face--top    { transform: rotateX(90deg) translateZ(30px); }
  .cube__face--bottom { transform: rotateX(-90deg) translateZ(30px); }
}


/* ============================================================
   11. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .scene__orb { animation: none; }
  .cube { transform: rotateX(-20deg) rotateY(30deg); }
  .logo, .cta { opacity: 1; transform: none; }
}


/* ============================================================
   12. PRINT
   ============================================================ */

@media print {
  .scene__orb, .cube-wrapper, .modal-overlay { display: none; }
  body { background: #fff; }
}
