/* MeOne Studio: minimal universe theme with clear glass */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  min-height: 100vh;
  background: #05060D;
  color: #F7F2EA;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
}

p { margin: 0; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid #FFB347;
  outline-offset: 3px;
  border-radius: 12px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  padding: 10px 16px;
  background: #FFB347;
  color: #1A0F06;
  border-radius: 12px;
  z-index: 100;
}
.skip:focus { top: 16px; }

/* Wallpaper: deep space with two faint nebula glows */

.wallpaper {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 45% at 12% 8%, rgba(110, 90, 255, 0.16) 0%, transparent 70%),
    radial-gradient(50% 40% at 92% 96%, rgba(255, 138, 31, 0.12) 0%, transparent 70%),
    radial-gradient(120% 80% at 50% 50%, #0A0C1A 0%, #05060D 70%);
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Glass surfaces */

.glass {
  position: relative;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(8, 10, 22, 0.45);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.18),
    0 24px 60px -30px rgba(0, 0, 0, 0.95);
}

.glass-clear {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.3),
    0 14px 40px -22px rgba(0, 0, 0, 0.9);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass-clear { background: rgba(28, 22, 40, 0.94); }
}

/* Capsule buttons */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.pill:active { transform: scale(0.97); }

.pill-solid {
  background: linear-gradient(135deg, #FFC15E 0%, #FF8A1F 55%, #FF6B2C 100%);
  color: #1A0F06;
  box-shadow: 0 14px 34px -14px rgba(255, 120, 30, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.pill-solid:hover { box-shadow: 0 16px 40px -12px rgba(255, 120, 30, 1), inset 0 1px 0 rgba(255, 255, 255, 0.55); }

.pill-glass { color: #F7F2EA; }
.pill-glass:hover { background-color: rgba(255, 255, 255, 0.12); }

.pill-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.pill-lg { min-height: 58px; padding: 0 32px; font-size: 18px; max-width: 100%; overflow-wrap: anywhere; }

.play { padding: 0 24px 0 20px; }
.play svg { width: 22px; height: 22px; }
.play span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; font-size: 17px; }
.play small { font-weight: 500; font-size: 11px; color: #C9BFD6; }

/* Floating nav bar */

.bar-wrap {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 16px 0;
}
.bar {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 7px 7px 7px 10px;
  border-radius: 999px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-icon { width: 34px; height: 34px; border-radius: 9px; display: block; }

.bar-links { display: flex; gap: 4px; }
.bar-links a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: #C9BFD6;
}
.bar-links a:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.1); }

@media (max-width: 720px) {
  .bar-links { display: none; }
}

/* Layout */

main, .footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.section { padding-top: clamp(64px, 10vw, 120px); }
.section h2 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 700; }
.section-lead { margin-top: 10px; font-size: 19px; color: #C9BFD6; max-width: 52ch; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding: clamp(56px, 9vw, 112px) 0 clamp(16px, 3vw, 32px);
}
.hero h1 {
  font-size: clamp(42px, 6.6vw, 80px);
  font-weight: 750;
  letter-spacing: -0.04em;
  max-width: 13ch;
  color: #FFFFFF;
}
.lead {
  margin-top: 24px;
  max-width: 44ch;
  font-size: clamp(18px, 1.7vw, 21px);
  color: #C9BFD6;
}
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-art { display: flex; justify-content: center; }
.sun-tile {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  border-radius: 24%;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.sun-tile svg { width: 78%; height: 78%; overflow: visible; }

.sun {
  animation: rise 1.6s cubic-bezier(.2, .8, .2, 1) 0.3s both, glow 4s ease-in-out 2.4s infinite;
  filter: drop-shadow(0 0 0 rgba(255, 138, 31, 0));
}
.ray {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: rayIn 0.6s ease-out both, rayPulse 4s ease-in-out 2.6s infinite;
}
.ray1 { animation-delay: 1.5s, 2.6s; }
.ray2 { animation-delay: 1.7s, 2.8s; }
.ray3 { animation-delay: 1.9s, 3s; }

@keyframes rise {
  from { transform: translateY(32px); }
  to { transform: translateY(0); }
}
@keyframes glow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 138, 31, 0.3)); }
  50% { filter: drop-shadow(0 0 12px rgba(255, 138, 31, 0.95)); }
}
@keyframes rayIn {
  to { stroke-dashoffset: 0; }
}
@keyframes rayPulse {
  0%, 100% { opacity: 1; stroke-dashoffset: 0; }
  50% { opacity: 0.45; stroke-dashoffset: 0; }
}

.sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen 1.6s ease-out 2s both;
  pointer-events: none;
}
@keyframes sheen {
  to { transform: translateX(120%); }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; justify-content: flex-start; }
  .sun-tile { width: min(46vw, 200px); }
}

/* Panels */

.panel { border-radius: 30px; padding: clamp(24px, 3vw, 36px); }
.panel h3 { font-size: 24px; font-weight: 650; margin-top: 18px; color: #FFFFFF; }
.panel p { margin-top: 10px; color: #C9BFD6; max-width: 60ch; }

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.panel-wide { grid-column: 1 / -1; border-radius: 36px; }
.panel-wide h3 { font-size: clamp(26px, 3vw, 32px); }

.chip-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.15);
}
.chip-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #FFC15E;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags li {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #F7F2EA;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 680px) {
  .services { grid-template-columns: 1fr; }
}

/* Projects */

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.project {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.project-body { min-width: 0; flex: 1; }
.project-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
.project h3 { margin-top: 0; font-size: 22px; }
.project p { margin-top: 8px; font-size: 16px; }

.app-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 23%;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5), 0 14px 28px -14px rgba(0, 0, 0, 0.9);
}
.app-icon svg { width: 46px; height: 46px; }
.icon-moti { background: linear-gradient(145deg, #FFC15E, #FF6B2C); }
.icon-glass { background: linear-gradient(145deg, #8FD3FF, #4F6BFF); }
.icon-dock { background: linear-gradient(145deg, #A78BFF, #6236FF); }
.icon-movie { background: linear-gradient(145deg, #FF6FA0, #D61F64); }

.status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.status-testing { background: rgba(52, 211, 153, 0.16); color: #6EE7B7; border: 1px solid rgba(110, 231, 183, 0.35); }
.status-dev { background: rgba(255, 179, 71, 0.14); color: #FFC56B; border: 1px solid rgba(255, 179, 71, 0.35); }

.meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.meta li {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13px;
  color: #C9BFD6;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 860px) {
  .projects { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .project { flex-direction: column; gap: 14px; }
}

/* Process */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.step { border-radius: 28px; padding: 24px; }
.step h3 { font-size: 21px; }
.step p { font-size: 16px; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255, 193, 94, 0.6);
  color: #FFC15E;
  font-weight: 650;
  font-size: 15px;
}

@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* Contact */

.contact {
  text-align: center;
  border-radius: 44px;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 56px);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -60%;
  width: 70%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 31, 0.18) 0%, transparent 65%);
  pointer-events: none;
}
.contact h2 { position: relative; font-size: clamp(34px, 5vw, 56px); color: #FFFFFF; }
.contact p { position: relative; margin: 14px auto 32px; font-size: 19px; max-width: 40ch; }
.contact .pill { position: relative; }

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 64px;
  padding-bottom: 40px;
  font-size: 15px;
  color: #A89DB6;
}
.footer ul { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a, .link-btn { text-decoration: none; }
.footer a:hover, .link-btn:hover { color: #FFFFFF; text-decoration: underline; }
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* About dialog */

.about {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: min(440px, calc(100vw - 32px));
  width: 100%;
  color: #F7F2EA;
}
.about::backdrop {
  background: rgba(5, 4, 10, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.about-card {
  border-radius: 32px;
  padding: 32px 28px 28px;
  text-align: center;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%), rgba(24, 18, 36, 0.75);
}
.about-card h2 { font-size: 24px; font-weight: 700; margin-top: 18px; color: #FFFFFF; }
.about-card p { margin: 12px 0 24px; color: #C9BFD6; }
.about[open] .about-card { animation: pop 0.35s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes pop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.tricolor { display: inline-flex; gap: 4px; }
.tricolor i { display: block; width: 26px; height: 6px; border-radius: 3px; }
.tricolor i:nth-child(1) { background: #FF9933; }
.tricolor i:nth-child(2) { background: #FFFFFF; }
.tricolor i:nth-child(3) { background: #138808; }

/* Privacy page */

.doc {
  max-width: 760px;
  margin: 48px auto 0;
  border-radius: 36px;
  padding: clamp(24px, 5vw, 56px);
}
.doc h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 700; color: #FFFFFF; }
.doc h2 { font-size: 22px; font-weight: 650; margin-top: 36px; color: #FFFFFF; }
.doc p, .doc li { margin-top: 12px; color: #C9BFD6; }
.doc ul { list-style: disc; padding-left: 22px; }
.doc a { color: #FFC15E; }
.doc .updated { margin-top: 8px; font-size: 15px; }

/* Cursor: a dot that tracks the pointer and a ring that follows behind */

.cursor-ring, .cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 200;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s, width 0.25s, height 0.25s, margin 0.25s, background-color 0.25s, border-color 0.25s;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: #FFC15E;
  box-shadow: 0 0 10px #FF8A1F;
}
.has-cursor .cursor-ring, .has-cursor .cursor-dot { opacity: 1; }
.has-cursor .cursor-ring.is-hover {
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  border-color: rgba(255, 193, 94, 0.9);
  background-color: rgba(255, 193, 94, 0.08);
}
.has-cursor .cursor-ring.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

@media (hover: none), (pointer: coarse) {
  .cursor-ring, .cursor-dot { display: none; }
}

/* Motion preferences */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sun, .ray, .sheen, .about[open] .about-card { animation: none; }
  .cursor-ring, .cursor-dot { display: none; }
  .ray { stroke-dashoffset: 0; }
  .sheen { display: none; }
  .pill { transition: none; }
}
