/* ============================================================
   Matteo Piras — Boutique Software House
   Palette pulled from the logo: black cosmos, chrome silver,
   cyan-blue (the "M"), violet (the "P").
   ============================================================ */

:root {
  --bg:        #05060a;
  --bg-2:      #0a0c14;
  --silver-1:  #f4f7fc;
  --silver-2:  #c6cedd;
  --silver-3:  #8b94a8;
  --cyan:      #4dd0ff;
  --blue:      #2b6cff;
  --violet:    #9b5cff;
  --violet-2:  #c08bff;

  --metal: linear-gradient(180deg, #ffffff 0%, #d7deea 38%, #9aa3b6 60%, #eef2f8 100%);
  --accent: linear-gradient(100deg, var(--cyan) 0%, var(--blue) 45%, var(--violet) 100%);

  --ring: rgba(155, 92, 255, .35);
  --glass: rgba(255, 255, 255, .04);
  --glass-border: rgba(198, 206, 221, .14);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html, body { height: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(120% 120% at 50% 0%, var(--bg-2) 0%, var(--bg) 60%);
  color: var(--silver-2);
  overflow-x: hidden;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Cosmic backdrop ---------- */
.starfield,
.nebula {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.starfield {
  background-image:
    radial-gradient(1px 1px at 20% 30%, #fff, transparent),
    radial-gradient(1px 1px at 80% 20%, #cfe6ff, transparent),
    radial-gradient(1.4px 1.4px at 65% 70%, #fff, transparent),
    radial-gradient(1px 1px at 35% 80%, #d9c9ff, transparent),
    radial-gradient(1px 1px at 50% 50%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 12% 65%, #bfe0ff, transparent),
    radial-gradient(1px 1px at 90% 60%, #fff, transparent);
  opacity: .55;
  animation: drift 120s linear infinite;
}

.nebula {
  background:
    radial-gradient(40% 50% at 12% 75%, rgba(43,108,255,.16), transparent 70%),
    radial-gradient(45% 55% at 88% 25%, rgba(155,92,255,.18), transparent 70%),
    radial-gradient(35% 40% at 70% 85%, rgba(77,208,255,.10), transparent 70%);
  filter: blur(8px);
}

@keyframes drift {
  from { transform: translateY(0); }
  to   { transform: translateY(-60px); }
}

/* ============================================================
   ENTRY GATE
   ============================================================ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(80% 80% at 50% 45%, rgba(10,12,20,.4) 0%, var(--bg) 75%);
  transition: opacity .8s var(--ease), visibility .8s var(--ease);
}
.gate.hidden { opacity: 0; visibility: hidden; }

.gate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  animation: rise 1s var(--ease) both;
}

.gate-logo {
  width: min(440px, 78vw);
  height: auto;
  border-radius: 18px;
  filter: drop-shadow(0 0 60px rgba(77,208,255,.18))
          drop-shadow(0 0 90px rgba(155,92,255,.16));
  animation: float 7s ease-in-out infinite;
}

.enter-btn {
  position: relative;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-size: 15px;
  color: var(--silver-1);
  padding: 16px 54px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: blur(6px);
  cursor: pointer;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.enter-btn span { position: relative; z-index: 1; padding-left: .32em; }
.enter-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.enter-btn:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 0 30px rgba(77,208,255,.35), 0 0 50px rgba(155,92,255,.25);
}
.enter-btn:hover::before { opacity: .9; }
.enter-btn:active { transform: translateY(0); }

/* ============================================================
   MAIN SITE
   ============================================================ */
.site {
  position: relative;
  z-index: 5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .8s var(--ease) .15s, transform .8s var(--ease) .15s;
}
.site.show { opacity: 1; transform: none; }

/* ---- top bar with monogram + name ---- */
.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 30px;
  justify-content: flex-end;
}
.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 22px rgba(155,92,255,.25);
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: .14em;
  font-size: 17px;
  text-align: right;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-name small {
  font-size: 9.5px;
  letter-spacing: .42em;
  font-weight: 500;
  color: var(--silver-3);
  background: none;
  -webkit-text-fill-color: var(--silver-3);
  margin-top: 4px;
}

/* ---- hero ---- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px 24px 60px;
  max-width: 760px;
  margin: 0 auto;
}
.hero-title {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: .02em;
  margin-bottom: 22px;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgba(43,108,255,.18));
}
.hero-desc {
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--silver-2);
  max-width: 620px;
  margin-bottom: 48px;
}

/* ---- action buttons ---- */
.actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  padding: 24px 28px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--silver-1);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.action-icon {
  font-size: 26px;
  line-height: 1;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.action-label {
  font-family: "Orbitron", sans-serif;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 13px;
}
.action:hover {
  transform: translateY(-4px);
  border-color: var(--ring);
  background: rgba(255,255,255,.06);
  box-shadow: 0 12px 40px rgba(77,208,255,.14), 0 0 28px rgba(155,92,255,.18);
}

/* ---- footer ---- */
.foot {
  padding: 26px 24px;
  text-align: center;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--silver-3);
}

/* ============================================================
   SOFTWARE SECTION
   ============================================================ */
.software {
  padding: 40px 24px 80px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}
.section-title {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: clamp(18px, 3vw, 24px);
  text-align: center;
  margin-bottom: 36px;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  color: var(--silver-3);
  margin: -22px 0 30px;
}
.soft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.soft-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 26px 22px;
  border-radius: 16px;
  text-decoration: none;
  color: var(--silver-1);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.soft-name {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: .12em;
  font-size: 16px;
}
.soft-go {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--silver-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.soft-go .arrow {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 15px;
  transition: transform .35s var(--ease);
}
.soft-card:hover {
  transform: translateY(-4px);
  border-color: var(--ring);
  background: rgba(255,255,255,.06);
  box-shadow: 0 12px 40px rgba(77,208,255,.14), 0 0 28px rgba(155,92,255,.18);
}
.soft-card:hover .arrow { transform: translate(3px, -3px); }

/* ============================================================
   PRODUCT PAGE  (/rebatchme/info)
   ============================================================ */
.product {
  position: relative;
  z-index: 5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.product-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 30px;
}
.back-link {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .35s var(--ease);
}
.back-link:hover { color: var(--silver-1); }

.product-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 24px 70px;
  max-width: 720px;
  margin: 0 auto;
}
.product-logo {
  width: min(180px, 42vw);
  height: auto;
  border-radius: 28px;
  margin-bottom: 30px;
  filter: drop-shadow(0 0 50px rgba(77,208,255,.18))
          drop-shadow(0 0 80px rgba(155,92,255,.16));
  animation: float 7s ease-in-out infinite;
}
.product-name {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 6vw, 48px);
  letter-spacing: .02em;
  margin-bottom: 6px;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.product-platform {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--silver-3);
  margin-bottom: 30px;
}
.product-desc {
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--silver-2);
  max-width: 580px;
  margin-bottom: 26px;
}
.product-claims {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-bottom: 44px;
}
.product-claims span {
  font-family: "Orbitron", sans-serif;
  font-size: 12px;
  letter-spacing: .12em;
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- App Store badge ---- */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px 13px 22px;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255,255,255,.22);
  text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.appstore-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.5);
  box-shadow: 0 12px 40px rgba(77,208,255,.18), 0 0 28px rgba(155,92,255,.2);
}
.apple-logo { width: 26px; height: 26px; fill: #fff; flex: none; }
.appstore-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  color: #fff;
}
.appstore-text small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .02em;
}
.appstore-text strong {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* ============================================================
   FORMS  (/support, /contacts)
   ============================================================ */
.form-wrap {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 20px 24px 70px;
  text-align: center;
}
.form-wrap .product-name { margin-bottom: 18px; }
.form-intro {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--silver-2);
  margin-bottom: 36px;
}
.form-intro strong { color: var(--silver-1); font-weight: 500; }

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form label > span {
  font-family: "Orbitron", sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--silver-3);
}
.form input,
.form select,
.form textarea {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  color: var(--silver-1);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 13px 15px;
  width: 100%;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.form textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form select { appearance: none; cursor: pointer; }
.form input::placeholder,
.form textarea::placeholder { color: var(--silver-3); opacity: .7; }
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--ring);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(155,92,255,.14);
}
.form select option { background: var(--bg-2); color: var(--silver-1); }

.form-note {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--silver-3);
  background: rgba(77,208,255,.06);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 14px;
}

.submit-btn {
  margin-top: 6px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--silver-1);
  padding: 15px 28px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass);
  backdrop-filter: blur(6px);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity .35s var(--ease);
  z-index: 0;
}
.submit-btn > * { position: relative; z-index: 1; }
.submit-btn:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: 0 0 30px rgba(77,208,255,.3), 0 0 50px rgba(155,92,255,.22);
}
.submit-btn:hover::before { opacity: .9; }
.submit-btn:active { transform: translateY(0); }

/* ============================================================
   LEGAL / TEXT PAGE  (/privacy)
   ============================================================ */
.legal {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 24px 80px;
}
.legal .product-name {
  text-align: center;
  margin-bottom: 8px;
}
.legal-date {
  text-align: center;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--silver-3);
  margin-bottom: 44px;
}
.legal h2 {
  font-family: "Orbitron", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .06em;
  color: var(--silver-1);
  margin: 34px 0 12px;
}
.legal p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--silver-2);
  margin-bottom: 14px;
}
.legal strong { color: var(--silver-1); font-weight: 500; }
.legal a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(77,208,255,.35);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.legal a:hover { color: var(--violet-2); border-color: var(--ring); }

/* ---- footer privacy link ---- */
.foot a {
  color: var(--silver-3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.foot a:hover { color: var(--silver-1); border-color: var(--glass-border); }
.foot .sep { margin: 0 10px; opacity: .5; }

/* ---------- motion ---------- */
@keyframes rise  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- small screens ---------- */
@media (max-width: 520px) {
  .topbar { justify-content: center; padding: 18px; }
  .brand-name { font-size: 14px; }
  .brand-name small { letter-spacing: .3em; }
  .action { min-width: 120px; flex: 1; }
}
