/* ================= ROOT VARIABLES ================= */
:root {
  --bg-main: #0e1420;
  --bg-sec: #151d2e;
  --text: #e6e9f0;
  --muted: #aab0c0;
  --accent: #1e3cff;
  --accent-hover: #3f5eff;
  --card-bg: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.1);
  --nav-bg: rgba(20,25,40,0.95);
  --transition-speed: 0.4s;
}

body.light {
  --bg-main: #f6f8fc;
  --bg-sec: #ffffff;
  --text: #0e1420;
  --muted: #4b5568;
  --accent: #0b2cff;
  --accent-hover: #3a5eff;
  --card-bg: rgba(0,0,0,0.05);
  --border: rgba(0,0,0,0.08);
  --nav-bg: rgba(255,255,255,0.95);
}

/* ================= RESET ================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease;
}

/* ================= PAGE WRAPPER ================= */
.page-wrapper {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* ================= LINKS & BUTTONS ================= */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-speed) ease, opacity var(--transition-speed) ease;
}
a:hover { opacity: 0.85; }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease, transform 0.15s ease;
}

/* ================= CONTAINER ================= */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= NAVIGATION ================= */
nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo { font-size:1.35rem; font-weight:600; letter-spacing:0.3px; }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
  transition: transform var(--transition-speed) ease;
}

.nav-links a {
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 500;
  transition: background var(--transition-speed) ease, color var(--transition-speed) ease, transform 0.15s ease;
}
.nav-links a:hover {
  background: rgba(30,60,255,0.25);
  color: #ffffff;
  transform: translateY(-1px);
}
body.light .nav-links a:hover {
  background: rgba(11,44,255,0.08);
  color: var(--accent);
}

/* ================= THEME TOGGLE ================= */
.theme-toggle {
  width:44px; height:44px;
  background:#2a2f3a;
  border-radius:12px;
  border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  position:relative;
  transition: background var(--transition-speed) ease, border-color var(--transition-speed) ease;
}
.theme-toggle:hover { background:#343a4a; }
.theme-toggle:active { transform: scale(0.95); }
.theme-toggle svg { width:20px; height:20px; stroke:currentColor; fill:gainsboro; transition: fill var(--transition-speed) ease; }
.theme-toggle .icon { position:absolute; transition: opacity var(--transition-speed) ease, transform var(--transition-speed) ease; }
.theme-toggle .sun { color:#facc15; opacity:1; }
.theme-toggle .moon { color:var(--text); opacity:0; transform: scale(0.6); }
body.light .theme-toggle .sun { opacity:0; transform: scale(0.6); }
body.light .theme-toggle .moon { opacity:1; transform: scale(1); }

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 101;
}
.hamburger span { display:block; width:25px; height:3px; background:var(--text); border-radius:2px; transition: all 0.3s ease; }

/* ================= MOBILE NAV ================= */
.nav-overlay {
  position: fixed;
  inset:0;
  background: rgba(0,0,0,0.5);
  opacity:0; visibility:hidden;
  transition: opacity var(--transition-speed) ease;
  z-index: 199;
}
.nav-overlay.show { opacity:1; visibility:visible; }
@media(max-width:1024px){
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    justify-content: center; /* vertically centered */
    align-items: center;     /* horizontally centered */
    gap: 24px;
    background: var(--nav-bg);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    z-index: 200;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a {
    font-size: 1.25rem; /* bigger tap targets */
    padding: 12px 24px;
  }

  .hamburger { display:flex; }
}
/* ================= HERO ================= */
.hero {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:64px;
  padding-top:140px;
  padding-bottom:96px;
  align-items:center;
  transition: background var(--transition-speed) ease;
}
.hero h1 { font-size:clamp(2.2rem,4vw,3rem); line-height:1.15; }
.hero p { margin:18px 0 36px; color:var(--muted); max-width:520px; transition: color var(--transition-speed) ease; }

/* ================= PRIMARY BUTTON ================= */
.btn-primary {
  padding:16px 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color:#fff; font-weight:600; font-size:1rem;
  border-radius:14px; display:inline-flex; align-items:center; gap:10px;
  box-shadow:0 10px 30px rgba(30,60,255,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background var(--transition-speed) ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:0 18px 45px rgba(30,60,255,0.45);
}
.btn-primary:active { transform: translateY(0); box-shadow:0 8px 18px rgba(30,60,255,0.35); }

/* ================= HERO VIDEO ================= */
.hero-video { border-radius:18px; overflow:hidden; box-shadow:0 22px 55px rgba(0,0,0,0.35); transition: box-shadow 0.3s ease; }
.hero-video iframe { width:100%; aspect-ratio:16/9; border:none; }

/* ================= PRODUCTS ================= */
.products { display:grid; grid-template-columns:repeat(3,1fr); gap:36px; padding:96px 0; }
.product-card {
  background:var(--card-bg);
  padding:36px;
  border-radius:20px;
  border:1px solid var(--border);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background var(--transition-speed) ease;
  box-shadow:0 4px 12px rgba(0,0,0,0.05);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow:0 26px 50px rgba(0,0,0,0.2);
  border-color: rgba(255,255,255,0.2);
}

/* ================= MODAL ================= */
.modal-overlay { position: fixed; inset:0; background: rgba(0,0,0,0.65); display:none; align-items:center; justify-content:center; padding:20px; z-index:200; }
.modal { background: var(--bg-sec); padding:32px; border-radius:18px; width:100%; max-width:440px; position:relative; display:flex; flex-direction:column; gap:14px; animation: modalIn 0.25s ease; transition: background var(--transition-speed) ease, color var(--transition-speed) ease; }
.modal-close { position:absolute; top:14px; right:14px; font-size:1.2rem; color:var(--muted); cursor:pointer; transition: color 0.2s ease, transform 0.15s ease; }
.modal-close:hover { color: var(--text); transform: rotate(90deg); }
.modal input, .modal textarea { padding:12px; border-radius:10px; border:1px solid var(--border); background:transparent; color:var(--text); transition:border-color 0.2s ease, background var(--transition-speed) ease, color var(--transition-speed) ease; }
.modal input:focus, .modal textarea:focus { outline:none; border-color: var(--accent); }

@keyframes modalIn { 0% { opacity:0; transform:translateY(12px); } 100% { opacity:1; transform:translateY(0); } }

/* ================= FOOTER ================= */
footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border);
    padding: 12px 0;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1;
}

.footer-inner p { margin: 0; }

.footer-inner a {
    color: var(--muted);
    text-decoration: none;
    margin: 0 4px;
    line-height: 1;
    transition: color var(--transition-speed) ease;
}
.footer-inner a:hover { color: var(--text); }

/* ================= BACKGROUND SHAPES ================= */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    background: #9b5de5;
    opacity: 0.06;
    z-index: -1;
    animation: floatShape 20s ease-in-out infinite alternate;
}

.shape-1 { width:600px; height:600px; top:-20%; left:-20%; }
.shape-2 { width:500px; height:500px; bottom:-10%; right:-10%; }
.shape-3 { width:400px; height:400px; top:30%; right:10%; }

@keyframes floatShape {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* ================= RESPONSIVE ================= */
@media(max-width:1024px){
  .hero { grid-template-columns:1fr; padding-top:100px; gap:40px; }
  .products { grid-template-columns:1fr 1fr; gap:24px; padding:64px 0; }
}

@media(max-width:768px){
  .products { grid-template-columns:1fr; gap:20px; padding:48px 0; }
  .hero-video iframe { aspect-ratio:16/9; }
}

@media(max-width:480px){
  .container { padding:0 16px; }
  .hero p { font-size:0.95rem; }
  .btn-primary { padding:12px 24px; font-size:0.9rem; }
  .product-card { padding:24px; }
  nav { height:64px; }
  .nav-links { top:64px; width:100%; height:calc(100vh - 64px); padding:24px; }
  .hero { padding-top:80px; padding-bottom:60px; gap:24px; }
}
/* ================= UNDER CONSTRUCTION OVERLAY ================= */
.construction-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.construction-modal {
  background: var(--bg-sec, #1a1a1a);
  border: 1px solid var(--border, #333);
  border-radius: 22px;
  padding: 48px 56px;
  max-width: 520px;
  width: calc(100% - 40px);
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: constructionIn 0.4s ease;
}

.construction-modal h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  color: #fff;
}

.construction-modal p {
  color: var(--muted, #aaa);
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.release-date {
  font-size: 1.15rem;
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #170430, #060d30);
  border: 1px solid rgba(30, 60, 255, 0.35);
  margin-top: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
}

.release-date strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 12px;
  text-align: center;
}

/* Notify form inside release-date */
.notify-form {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.notify-form input {
  background-color: #252731;
  flex: 1 1 200px;
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  outline: none;
  color: white;
}

.notify-form input::placeholder {
  color: rgb(160, 160, 160);
}

.notify-form button {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  background: #371774;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}

.notify-form button:hover {
  background: #4a1a8b; /* slightly lighter hover for contrast */
}

.notify-message {
  font-size: 0.95rem;
  margin-top: 8px;
  text-align: center;
}

/* Animation */
@keyframes constructionIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Block clicks behind overlay */
body * {
  pointer-events: none; /* keep disabled for background */
  user-select: none;
}

/* Allow clicks inside overlay */
#construction-overlay,
#construction-overlay * {
  pointer-events: all;
  user-select: auto;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .release-date {
    padding: 20px 16px;
  }

  .release-date strong {
    font-size: 1.2rem;
  }

  .notify-form input {
    flex: 1 1 100%;
    width: 100%;
    font-size: 0.95rem;
  }

  .notify-form button {
    width: 100%;
    font-size: 0.95rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .release-date {
    padding: 22px 20px;
  }

  .release-date strong {
    font-size: 1.3rem;
  }

  .notify-form input {
    flex: 2 1 60%;
    font-size: 1rem;
  }

  .notify-form button {
    flex: 1 1 35%;
    font-size: 1rem;
  }
}
