:root {
  --bg-base: #050b1f;
  --bg-deep: #071636;
  --fg: #e7f0ff;
  --muted: #9fb2d6;
  --card: rgba(10, 24, 56, 0.72);
  --card-strong: rgba(11, 28, 64, 0.88);
  --border: rgba(84, 166, 255, 0.34);
  --primary: #2e84ff;
  --primary-contrast: #ecf7ff;
  --accent: #00d9ff;
  --accent-2: #6effc7;
  --success: #20d493;
  --danger: #ff4d83;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--fg);
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 8%, rgba(0, 217, 255, 0.20), transparent 28%),
    radial-gradient(circle at 88% 5%, rgba(46, 132, 255, 0.24), transparent 32%),
    radial-gradient(circle at 45% 100%, rgba(110, 255, 199, 0.09), transparent 38%),
    linear-gradient(135deg, var(--bg-base), var(--bg-deep));
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(135, 190, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135, 190, 255, 0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 50% 45%, #000 45%, transparent 100%);
  z-index: -1;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

header {
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  box-shadow: none;
}

.nav {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: #bfe4ff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .8px;
  font-size: 1.22rem;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 16px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  transition: color .2s ease;
}
.nav-links a:hover { color: #d8edff; }

main { padding: 30px 0 48px; }

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin: 10px auto 28px;
  max-width: 860px;
  padding: 18px;
  border: 1px solid rgba(73, 148, 255, 0.24);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(11, 29, 66, 0.62), rgba(8, 19, 46, 0.40));
  box-shadow: inset 0 0 0 1px rgba(135, 205, 255, 0.08), 0 14px 40px rgba(0, 0, 0, 0.32);
}

.hero-video {
  min-height: 320px;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(150deg, rgb(3 13 32 / 63%), rgb(5 30 66));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin: 14px 0;
  letter-spacing: -0.4px;
  line-height: 1.05;
  color: #e6f5ff;
}

.hero p { color: #bfd3f2; font-size: 1.08rem; line-height: 1.68; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(78, 190, 255, 0.45);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: .84rem;
  color: #9fe7ff;
  font-weight: 800;
  background: rgba(8, 26, 57, 0.74);
  box-shadow: inset 0 0 18px rgba(0, 217, 255, 0.14);
}

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(160deg, var(--card), rgba(7, 20, 48, 0.56));
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(140, 213, 255, 0.06), 0 14px 30px rgba(0, 0, 0, 0.34);
  padding: 18px;
}

.card.strong {
  background: linear-gradient(160deg, var(--card-strong), rgba(7, 23, 54, 0.72));
}

.card h1, .card h2, .card h3, .card h4 {
  margin-top: 0;
  color: #e9f6ff;
}

.muted { color: var(--muted); }

.notice {
  border: 1px solid rgba(255, 206, 102, 0.5);
  background: linear-gradient(140deg, rgba(79, 55, 17, 0.55), rgba(52, 35, 9, 0.48));
}

.btn {
  border: 0;
  background: linear-gradient(120deg, #1f70ff, #00b7ff);
  color: var(--primary-contrast);
  border-radius: 12px;
  min-height: 42px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 147, 255, 0.35), inset 0 0 0 1px rgba(199, 237, 255, 0.18);
  transition: transform .15s ease, filter .15s ease;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

.btn.secondary {
  background: linear-gradient(120deg, rgba(19, 78, 152, 0.86), rgba(12, 110, 129, 0.86));
  color: #cffaff;
}

.btn.ghost {
  background: rgba(9, 31, 66, 0.78);
  border: 1px solid var(--border);
  color: #d8ebff;
  box-shadow: none;
}

.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.form-group { margin-bottom: 14px; }
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
  font-size: .95rem;
  color: #d9ecff;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(5, 20, 49, 0.88);
  color: #eaf5ff;
  padding: 0 12px;
  font-size: .95rem;
}

input[type="text"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: rgba(91, 199, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(0, 190, 255, 0.18);
}

.row-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.error { color: #ff86a9; font-size: .9rem; font-weight: 700; }

.progress-wrap { margin-bottom: 14px; }
.progress-head { display: flex; justify-content: space-between; color: #9ec0eb; font-size: .92rem; margin-bottom: 6px; }
.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(16, 39, 79, 0.94);
  overflow: hidden;
  border: 1px solid rgba(70, 143, 255, 0.35);
}

.progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent-2));
  width: 0;
  transition: width .2s;
}

.choice {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(8, 27, 61, 0.78);
  color: #e5f4ff;
  padding: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}

.choice:hover { border-color: rgba(108, 200, 255, 0.76); }

.choice.active {
  border-color: rgba(76, 190, 255, 0.95);
  background: linear-gradient(130deg, rgba(11, 46, 99, 0.95), rgba(14, 78, 121, 0.8));
  box-shadow: inset 0 0 0 1px rgba(168, 236, 255, 0.22);
}

.timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(72, 174, 255, 0.58);
  padding: 7px 12px;
  font-size: .85rem;
  font-weight: 800;
  color: #b9ecff;
  background: rgba(7, 31, 64, 0.8);
  box-shadow: inset 0 0 12px rgba(0, 217, 255, 0.18);
}

.timer-pill.danger {
  border-color: rgba(255, 91, 137, 0.65);
  color: #ffd3de;
  background: rgba(66, 11, 33, 0.82);
}

.mode-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(9, 29, 63, 0.82);
  color: #dcf2ff;
  padding: 14px;
  cursor: pointer;
  text-align: left;
}

.mode-item.active {
  border-color: rgba(95, 204, 255, 1);
  background: linear-gradient(145deg, rgba(9, 47, 98, 0.95), rgba(8, 77, 121, 0.76));
  box-shadow: inset 0 0 0 1px rgba(170, 238, 255, 0.24);
}

.stat-kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-kpi .value {
  font-size: 2rem;
  font-weight: 900;
  color: #c8ecff;
  text-shadow: 0 0 20px rgba(75, 176, 255, 0.35);
}

.chart {
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(5, 25, 58, 0.76);
  padding: 10px;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 30px;
  padding: 16px 0 26px;
  background: rgba(5, 14, 34, 0.72);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 700; }
.footer-links a:hover { color: #ddf2ff; }

.hidden { display: none !important; }

/* Home page redesign inspired by local exampledesign.php */
.home-page {
  --home-purple: #7f5cff;
  --home-purple-2: #5c39d8;
  --home-light-panel: #e7e2ff;
  --home-light-text: #110c28;
  background:
    #09002f
    url("img/art-bg-color.jpg")
    top center / 100% auto
    no-repeat;
}

.home-page::before {
  display: none;
}

.home-page .container {
  width: min(1240px, 94vw);
}

.home-page header {
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  backdrop-filter: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 45;
}

.nav.nav-capsule {
  margin-top: 10px;
  margin-bottom: 10px;
  min-height: 58px;
  background: linear-gradient(180deg, rgba(247, 246, 255, 0.99), rgba(233, 231, 255, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 6px 10px 6px 16px;
  box-shadow: 0 14px 38px rgba(5, 10, 30, 0.4);
  position: relative;
  z-index: 30;
}

.nav.nav-capsule .brand {
  color: #13112f;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  text-transform: none;
}

.nav.nav-capsule .nav-links a {
  color: #1d1a37;
  font-size: 1.05rem;
}

.nav.nav-capsule .nav-links a:hover {
  color: var(--home-purple-2);
}

.btn.btn-nav {
  border-radius: 999px;
  min-height: 42px;
  padding: 0 26px;
  background: linear-gradient(130deg, var(--home-purple), var(--home-purple-2));
  box-shadow: 0 12px 26px rgba(88, 68, 201, 0.4);
  font-size: 1rem;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  border-radius: 10px;
  background: #1a1740;
  transition: transform .25s ease, opacity .25s ease;
}

.home-main {
  padding-top: 8px;
  padding-bottom: 58px;
}

.home-hero {
  position: relative;
  width: 100%;
  min-height: 92vh;
  padding: 78px 0 44px;
  margin-top: 0;
  margin-bottom: 10px;
  background: transparent;
  overflow: hidden;
}

.home-hero .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 72% 34%, rgba(255, 135, 191, 0.22), transparent 36%),
    linear-gradient(116deg, rgba(24, 10, 58, 0.58), rgba(10, 5, 31, 0.5));
}

.home-hero .hero-content {
  max-width: 760px;
  text-align: left;
  position: relative;
  z-index: 3;
}

.home-hero h1 {
  font-size: clamp(2rem, 5.8vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -0.7px;
  margin-top: 20px;
  margin-bottom: 18px;
}

.home-hero p {
  font-size: 1.14rem;
  line-height: 1.5;
  margin: 0;
  max-width: 560px;
}

.home-hero .badge {
  border-radius: 999px;
  background: rgba(32, 16, 70, 0.7);
  border-color: rgba(161, 128, 255, 0.64);
  color: #d7cbff;
  font-size: 0.88rem;
}

.hero-kpis {
  margin-top: 46px;
}

.hero-kpi.card {
  border-radius: 18px;
  border-color: rgba(190, 182, 255, 0.35);
  background: linear-gradient(135deg, rgba(36, 22, 77, 0.65), rgba(16, 8, 42, 0.62));
}

.hero-kpi strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.hero-feature-row {
  margin-top: 54px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  position: relative;
  z-index: 3;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-feature p {
  margin: 0;
  max-width: 260px;
  color: rgba(245, 244, 255, 0.95);
  font-size: 1.07rem;
  line-height: 1.35;
  font-weight: 500;
}

.hero-icon {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e8e5ff;
  background: linear-gradient(165deg, #7d5dff, #5327d9);
  box-shadow: 0 12px 26px rgba(87, 47, 214, 0.45), inset 0 0 0 1px rgba(226, 219, 255, 0.26);
}

.hero-icon svg {
  width: 34px;
  height: 34px;
}

.hero-robot {
  position: absolute;
  right: -24px;
  bottom: 76px;
  width: min(32vw, 380px);
  max-width: 380px;
  max-height: 90%;
  object-fit: contain;
  z-index: 2;
  animation: robot-enter 2.4s cubic-bezier(.17,.67,.18,1) forwards, robot-float 4.8s ease-in-out infinite 2.4s;
  filter: drop-shadow(0 24px 46px rgba(19, 7, 54, 0.65));
}

@keyframes robot-enter {
  from { transform: translateX(520px) scale(0.98); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes robot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.home-cta-split {
  margin-bottom: 32px;
  padding: 0;
  border-radius: 34px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 1.8fr;
  background: transparent;
}

.home-cta-visual {
  min-height: 360px;
  background-image: url("img/square001.jpg");
  background-size: cover;
  background-position: center;
}

.home-cta-content {
  padding: 42px 50px;
  background: linear-gradient(155deg, #ede7ff, #d9d1ff);
}

.home-cta-content h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.07;
  color: var(--home-light-text);
  margin-bottom: 12px;
}

.home-cta-content .muted {
  color: rgba(28, 24, 58, 0.8);
  font-weight: 700;
}

.home-meta {
  font-size: 1rem;
  margin-bottom: 10px;
}

.home-cta-content .btn {
  border-radius: 999px;
  min-height: 50px;
  padding: 0 28px;
}

.home-cta-content .btn.ghost {
  background: rgba(117, 92, 248, 0.12);
  border-color: rgba(108, 83, 238, 0.45);
  color: #2a1f69;
}

.home-modes {
  margin-bottom: 32px;
  border-radius: 28px;
  padding: 24px;
}

.home-modes h3 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  margin-bottom: 8px;
}

.home-modes p {
  margin-top: 0;
}

.home-about {
  margin-bottom: 32px;
}

.home-about .card {
  border-radius: 28px;
  padding: 28px;
}

.home-section-tag {
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}

.home-about h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  margin-bottom: 14px;
}

.home-chip-list h3 {
  margin-bottom: 14px;
}

.chip-item {
  border: 1px solid rgba(132, 194, 255, 0.33);
  border-radius: 16px;
  background: rgba(7, 31, 67, 0.65);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.chip-item:last-child {
  margin-bottom: 0;
}

.chip-item span {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #f6f3ff;
  background: linear-gradient(130deg, var(--home-purple), var(--home-purple-2));
}

.chip-item p {
  margin: 0;
  color: #cad8f4;
}

.home-highlights {
  margin-bottom: 32px;
}

.home-highlights h2 {
  font-size: clamp(2rem, 4.1vw, 4rem);
  margin-top: 0;
  margin-bottom: 20px;
}

.highlight-card {
  border-radius: 22px;
  padding: 16px;
}

.highlight-visual {
  height: 180px;
  border-radius: 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(173, 157, 255, 0.37);
  background-size: cover;
  background-position: center;
}

.highlight-visual-1 { background-image: url("img/highlights000.jpg"); }
.highlight-visual-2 { background-image: url("img/highlights001.jpg"); }
.highlight-visual-3 { background-image: url("img/highlights003.jpg"); }
.highlight-visual-4 { background-image: url("img/highlights005-1.jpg"); }

.home-highlights h3 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.home-highlights p {
  margin: 0;
  font-size: 1.05rem;
}

.home-skills {
  margin-bottom: 16px;
  border-radius: 34px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  padding: 0;
}

.home-skills-visual {
  min-height: 390px;
  background-image: url("img/port-art301.jpg");
  background-size: cover;
  background-position: center;
}

.home-skills-content {
  padding: 38px 44px;
  background: linear-gradient(156deg, #e9e3ff, #dcd2ff);
}

.home-skills-content h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  color: var(--home-light-text);
}

.skill-row {
  border-top: 1px solid rgba(70, 52, 151, 0.22);
  padding: 14px 0;
}

.skill-row:first-of-type {
  border-top: 0;
  padding-top: 2px;
}

.skill-row h4 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  color: #1f1750;
}

.skill-row p {
  margin: 0;
  color: rgba(33, 26, 70, 0.8);
}

.home-page .notice {
  border-radius: 22px;
}

@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .home-hero {
    min-height: 84vh;
    padding: 60px 0 30px;
  }

  .home-hero p {
    font-size: 1.1rem;
  }

  .home-cta-split {
    grid-template-columns: 1fr;
  }

  .home-cta-visual {
    min-height: 240px;
  }

  .home-skills {
    grid-template-columns: 1fr;
  }

  .home-skills-visual {
    min-height: 240px;
  }

  .hero-robot {
    width: min(42vw, 320px);
    right: -34px;
    bottom: 34px;
  }

  .hero-feature-row {
    gap: 16px;
  }

  .hero-feature p {
    font-size: 0.98rem;
    max-width: 190px;
  }
}

@media (max-width: 760px) {
  .nav.nav-capsule {
    border-radius: 16px;
    padding: 8px 10px;
    min-height: 54px;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .nav.nav-capsule .brand {
    font-size: 1rem;
    margin-right: auto;
  }

  .burger {
    display: block;
  }

  .nav.nav-capsule .nav-links {
    display: none;
    width: 100%;
    padding: 8px 8px 2px;
    border-top: 1px solid rgba(99, 86, 167, 0.18);
    gap: 10px;
    flex-direction: column;
  }

  .nav.nav-capsule .nav-links.is-open {
    display: flex;
  }

  .nav.nav-capsule > a:last-child {
    margin-left: auto;
  }

  .btn.btn-nav {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .home-hero {
    min-height: 78vh;
    padding: 56px 0 28px;
  }

  .hero-kpi.card {
    padding: 14px;
  }

  .hero-feature-row {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .hero-feature p {
    max-width: none;
    font-size: 1rem;
  }

  .hero-robot {
    width: min(72vw, 280px);
    right: -32px;
    bottom: 8px;
  }

  .home-cta-content,
  .home-skills-content {
    padding: 24px 20px;
  }

  .home-highlights h3 {
    font-size: 1.6rem;
  }
}
