@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;700&display=swap');
* {
  font-family: 'Merriweather', serif;
}

:root {
  --shadowcore-start: #1b1f3a;
  --shadowcore-end: #3a3d67;
  --goldentide-start: #f4f7fb;
  --goldentide-end: #e0f1ff;
  --text-dark: #f4f4f4;
  --text-light: #222831;
  --text-muted-dark: #b0b0b0;
  --text-muted-light: #666a6d;
  --subtitle-color-dark: #a8a8a8;
  --subtitle-color-light: #555f68;
  --transition: 0.4s ease-in-out;
  --header-gradient-dark: linear-gradient(135deg, #2c3e50, #4ca1af);
  --header-border-dark: #57e2e5;
  --header-gradient-light: linear-gradient(135deg, #ffecd2, #fcb69f);
  --header-border-light: #ff9a76;
  --battery-fill-dark: #39f0ba;
  --battery-fill-light: #00bcd4;
  --battery-head-fill: #eeeeeecc;
  --bolt-fill: #ffffff;
  --logo-text-fill: #ffffff;
  --logo-subtext-fill: #cccccc;
  --radius: 20px;
  --glow: 0 0 30px rgba(255, 255, 255, 0.15);
  --blur: 10px;
}

html[data-theme="dark"] {
  --bg: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
  --text: #f0f0f0;
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-img-preview: rgba(0, 0, 0, 1);
  --btn-bg: #6c5ce7;
  --text-muted: #bbbbbb;
  --subtitle-color: #a8a8a8;
  --header-bg: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
  --header-border: #57e2e5;
  --hover-brightness: 1.12;
  --card-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  --clip-gradient: linear-gradient(135deg, #57e2e5, #6c5ce7);
  --clip-glow: rgba(87, 226, 229, 0.35);
  --header-logo-svg: rgba(255, 255, 255, 0.4);
  --battery-fill: var(--battery-fill-dark);
  --logo-text-fill: #ffffff;
  --logo-subtext-fill: #cccccc;

  --shield-gradient-start: #57e2e5;
  --shield-gradient-end: #6c5ce7;
  --shield-border: #57e2e5;
  --shield-glow: #57e2e5;
  --battery-body: #ffffffee;
  --battery-border: #57e2e5;
  --battery-head: #ffffffcc;
  --bolt-fill: #6c5ce7;
  --bolt-stroke: #4a3cbf;
  --corner-glow: #57e2e5;
}

html[data-theme="light"] {
  --bg: linear-gradient(to bottom, #f5f7fa, #dce3ed);
  --text: #1e1e2f;
  --card-bg: rgba(255, 255, 255, 0.96);
  --card-img-preview: rgba(255, 255, 255, 1);
  --btn-bg: #845ec2;
  --text-muted: #666a6d;
  --subtitle-color: #555f68;
  --header-bg: linear-gradient(to bottom, #f5f7fa, #e4e9f0);
  --header-border: #a178df;
  --hover-brightness: 1.05;
  --card-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  --clip-gradient: linear-gradient(135deg, #845ec2, #00c6ff);
  --clip-glow: rgba(132, 94, 194, 0.3);
  --header-logo-svg: rgba(0, 0, 0, 0.4);
  --battery-fill: var(--battery-fill-light);
  --logo-text-fill: #111111;
  --logo-subtext-fill: #666666;

  --shield-gradient-start: #845ec2;
  --shield-gradient-end: #00c6ff;
  --shield-border: #a178df;
  --shield-glow: #a178df;
  --battery-body: #ffffff;
  --battery-border: #26c6da;
  --battery-head: #f0f0f0;
  --bolt-fill: #845ec2;
  --bolt-stroke: #5e35b1;
  --corner-glow: #a178df;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.header {
  padding: 1em 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1em;
}

.header-logo-svg {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 6px var(--header-logo-svg));
  margin-bottom: 1rem;
  margin-left: 40px;
  z-index: 100;
}

.battery-body {
  fill: var(--battery-fill);
  stroke: #fff;
  stroke-width: 3;
}

.battery-head {
  fill: var(--battery-head-fill);
}

.bolt {
  fill: var(--bolt-fill);
}

.logo-text {
  fill: var(--logo-text-fill);
}

.logo-subtext {
  fill: var(--logo-subtext-fill);
}

.logo {
  font-size: 3em;
  font-weight: 700;
  animation: popUp 1s ease-in-out;
}

.header-nav {
  display: flex;
  background: var(--card-bg);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 100;
  text-decoration: none;
}

.icon-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

.header-content-container {
  background: var(--header-bg);
  border-radius: 100% 50% 100% 50%;
  padding: 50px 0;
  margin-top: -2.5rem;
  box-shadow: 0 10px 50px var(--header-border);
  backdrop-filter: blur(var(--blur));
}

.orbit {
  position: absolute;
  border: 3px solid var(--header-border);
  border-radius: 50% 50% / 50% 50%;
  filter: blur(2px);
  /*animation: tilt-diagonal 240s ease-out infinite;*/
  transform-origin: center center;
  opacity: 0.5;
}

.orbit-1 {
  width: 120%;
  height: 100%;
  top: 10%;
  left: -10%;
  transform: rotate(35deg);
}

.orbit-2 {
  width: 120%;
  height: 100%;
  top: 15%;
  left: -15%;
  transform: rotate(35deg);
}

/*@keyframes tilt-diagonal {*/
/*  from { transform: rotate(0deg); }*/
/*  to { transform: rotate(360deg); }*/
/*}*/

.hero {
  text-align: center;
  padding: 3em 1em 4em;
  animation: fadeIn 1.2s ease-out;
}

.hero h2 {
  font-size: 3.2em;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: 1.2em;
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.85;
}

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
  margin-top: 2em;
}

.main-action-btn, .modal-trigger {
  padding: 1em 2em;
  background: var(--btn-bg);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.main-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  flex-direction: row;
  padding: 1em 2em;
}

.main-action-btn:hover, .modal-trigger:hover {
  filter: var(--hover-brightness);
  transform: translateY(-3px);
}

.main-action-btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.4;
}

.main-action-btn-content p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.main-action-btn-content pre {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
}

.battery-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -2rem;
}

.battery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto;
  padding: 14px 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--glow);
  backdrop-filter: blur(var(--blur));
  max-width: 1150px;
}

.battery-info-label,
.battery-info-value {
  font-size: 15px;
  font-weight: 500;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.why-battorion {
  padding: 60px 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  margin: 80px auto 0 auto;
  max-width: 1100px;
  box-shadow: var(--card-shadow);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  backdrop-filter: blur(var(--blur));
}

.why-battorion .container {
  max-width: 1000px;
  margin: 0 auto;
}

.why-battorion h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 25px;
  text-align: center;
}

.why-battorion p {
  font-size: 1.05rem;
  color: var(--subtitle-color);
  line-height: 1.7;
  margin-bottom: 20px;
}

.why-battorion ul {
  padding-left: 25px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.why-battorion ul li {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.6;
  position: relative;
  padding-left: 24px;
}

.why-battorion ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--btn-bg);
  font-weight: bold;
}

.why-battorion strong {
  color: var(--text);
}

.features {
  padding: 4em 0;
}

.section-title {
  text-align: center;
  font-size: 2.3em;
  font-weight: 700;
  margin-bottom: 2em;
  animation: fadeInUp 1s ease forwards;
}

.feature-container {
  text-align: center;
  margin: 2em auto;
  transform: translateX(-10px);
}

.feature-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5em;
  color: var(--text-muted);
}

.feature-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--subtitle-color);
  max-width: 600px;
  margin: 0 auto;
}

.dashboard, .grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  margin-top: 0;
}

.card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  background: var(--card-bg);
  backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2em;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition), opacity var(--transition);
  opacity: 0;
  transform: translateY(50px);
  max-width: 1000px;
  width: 100%;
  margin: 1em auto;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

.card .text-card {
  flex: 1 1 50%;
  min-width: 300px;
}

.card .text-card h4 {
  margin: 0 0 0.5em;
  font-size: 1.75em;
  font-weight: 700;
  color: var(--text);
}

.card .text-card p {
  margin: 0;
  font-size: 1.05em;
  color: var(--subtitle-color);
  line-height: 1.7;
}

.card .image-card {
  flex: 0 0 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card .image-card img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: calc(var(--radius) - 5px);
  box-shadow: var(--glow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card .image-card img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(0,0,0,0.3);
}

.grid {
  display: flex;
  flex-direction: column;
  gap: 2.5em;
}

@media (max-width: 768px) {
  .card {
    flex-direction: column;
    text-align: center;
  }
  .card .image-card {
    order: -1;
  }
}

#image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 1;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
}

#image-modal.hidden {
  display: none;
}

#image-modal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: var(--radius);
}

#close-modal {
  position: absolute;
  top: 2%;
  right: 3%;
  font-size: 2em;
  color: #fff;
  cursor: pointer;
}

.dashboard-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1em auto 4em auto;
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.dashboard-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.dashboard-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 1em;
  color: var(--text-muted);
}

.dashboard-img {
  max-width: 800px;
  width: 80%;
  padding: 2em 2em 2em 2em;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(var(--blur));
}

.dashboard-img img {
  display: block;
  margin: 0 auto;
  width: 80%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--card-bg);
  padding: 2em;
  border-radius: var(--radius);
  max-width: 640px;
  width: 90%;
  box-shadow: var(--glow);
  animation: popUp 0.4s ease-in-out;
}

.modal-content video {
  width: 100%;
  border-radius: 12px;
  max-height: 400px;
}

.close-btn {
  position: absolute;
  top: 1em;
  right: 1em;
  cursor: pointer;
  font-size: 1.6em;
  color: var(--text);
  transition: transform 0.3s ease;
}

.close-btn:hover {
  transform: scale(1.2);
}

.footer {
  text-align: center;
  padding: 3em 1em 2em;
  font-size: 0.95em;
  opacity: 0.7;
}

.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.3em;
}

.social-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

@keyframes popUp {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.corner-decoration {
  position: absolute;
  top: 150px;
  right: 100px;
  width: 300px;
  z-index: 10000;
  opacity: 0.8;
  animation: pulseGlow 2.5s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%   { filter: drop-shadow(0 0 3px var(--corner-glow)); }
  50%  { filter: drop-shadow(0 0 20px var(--corner-glow)); }
  100% { filter: drop-shadow(0 0 3px var(--corner-glow)); }
}

/*@media (max-width: 480px) {*/
/*  .hero h2 {*/
/*    font-size: 1.6em;*/
/*  }*/

/*  .feature-title {*/
/*    font-size: 1.4em;*/
/*  }*/

/*  .feature-subtitle {*/
/*    font-size: 1em;*/
/*  }*/

/*  .card {*/
/*    padding: 1em;*/
/*  }*/

/*  .card .text-card,*/
/*  .card .image-card {*/
/*    min-width: unset;*/
/*    width: 100%;*/
/*  }*/

/*  .header {*/
/*    flex-direction: column;*/
/*    gap: 1em;*/
/*  }*/

/*  .header-nav {*/
/*    justify-content: center;*/
/*  }*/
/*}*/

/*@media (max-width: 768px) {*/
/*  .grid {*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*  }*/

/*  .hero h2 {*/
/*    font-size: 2em;*/
/*  }*/

/*  .section-title {*/
/*    font-size: 1.8em;*/
/*  }*/

/*  .battery-container {*/
/*    flex-direction: column;*/
/*    align-items: center;*/
/*  }*/

/*  .card {*/
/*    flex-direction: column;*/
/*    text-align: center;*/
/*  }*/

/*  .card .image-card {*/
/*    margin-top: 1em;*/
/*  }*/

/*  .dashboard-img {*/
/*    padding: 0.5em;*/
/*  }*/
/*}*/

/*@media (max-width: 1024px) {*/
/*  .container {*/
/*    width: 95%;*/
/*  }*/

/*  .feature-title {*/
/*    font-size: 2em;*/
/*  }*/

/*  .feature-subtitle {*/
/*    font-size: 1.1em;*/
/*  }*/

/*  .card {*/
/*    gap: 1em;*/
/*  }*/
/*}*/

/*@media (min-width: 1441px) {*/
/*  .container {*/
/*    max-width: 1400px;*/
/*  }*/

/*  .hero h2 {*/
/*    font-size: 3.2em;*/
/*  }*/

/*  .feature-title {*/
/*    font-size: 2.8em;*/
/*  }*/

/*  .feature-subtitle {*/
/*    font-size: 1.4em;*/
/*  }*/

/*  .card {*/
/*    max-width: 1200px;*/
/*  }*/

/*  .dashboard-img {*/
/*    max-width: 1200px;*/
/*  }*/
/*}*/
