/* public/styles.css */

/* Global reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body,
#root {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #0b163f;
}

/* Buttons */

.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 500;
  padding: 12px 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.btn-primary {
  background: #28bafe;
  color: #ffffff;
  text-decoration: none;
  margin-top: 40px !important;
  display:block;
  max-width:300px;
}

.btn-outline {
  background: #ffffff;
  color: #0b163f;
  border: 1px solid #d9e7ff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-login {
  background: #28bafe;
  color: #ffffff;
  padding-inline: 40px;
  font-size: 20px;
}

.btn-login-icon {
  margin-left: 4px;
  font-size: 19px;
}

/* Layout wrappers */

.app {
  background: #ffffff;
}

/* Navbar */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  transition: background-color 0.2s ease, box-shadow 0.2s ease,
    backdrop-filter 0.2s ease;
}

.navbar--scrolled {
  background: rgba(2, 10, 59, 0.96);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  margin-right: 10px;
}

.logo-text {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 20px;
}

.nav-links a {
  color: #e3ecff;
  text-decoration: none;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: #28bafe;
  transition: width 0.15s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hamburger toggle (hidden on desktop) */

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 12px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #e3ecff;
  margin: 5px 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

/* Simple "X" animation when open */
.nav-toggle--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown menu */

.mobile-nav {
  display: none;
  position: fixed;
  top: 76px; /* approx navbar height */
  left: 0;
  right: 0;
  background: #020a3b;
  padding: 16px 24px 22px;
  flex-direction: column;
  gap: 12px;
  z-index: 40;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.mobile-nav--open {
  display: flex;
}

.mobile-nav a {
  color: #e3ecff;
  text-decoration: none;
  font-size: 18px;
  padding: 4px 0;
}

.mobile-nav a:hover {
  color: #ffffff;
}

/* Hero section */

.hero {
  position: relative;
  padding-top: 120px;
  padding-bottom: 120px;
  background: radial-gradient(
    circle at top left,
    #223a9c 0,
    #020a3b 60%,
    #01041b 100%
  );
  color: #ffffff;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -220px;
  width: 160%;
  height: 340px;
  background: #ffffff;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-left {
  padding-right: 40px;
}

.hero-title {
  font-size: 50px;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.7;
  color: #b6c6ff;
  max-width: 520px;
  margin-bottom: 28px;
}

/* Hero robot */

.hero-right {
  display: flex;
  justify-content: center;
}

.hero-robot-wrapper {
  position: relative;
  width: 360px;
  height: 360px;
}

.hero-robot {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* About section */

.about {
  background: #ffffff;
  padding: 80px 0 100px;
  padding-top: 0;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.about-left {
  display: flex;
  justify-content: center;
}

.about-robot-wrapper {
  width: 360px;
  max-width: 100%;
}

.about-robot {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about-right {
  max-width: 540px;
}

.section-label {
  display: inline-block;
  font-size: 19px;
  font-weight: 500;
  color: #28bafe;
  margin-bottom: 8px;
}

.section-title {
  font-size: 40px;
  line-height: 1.4;
  margin-bottom: 16px;
  color: #121b3f;
}

.section-text {
  font-size: 20px;
  line-height: 1.7;
  color: #6d728f;
  margin-bottom: 24px;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 40px;
  margin-bottom: 28px;
}

.about-points ul {
  list-style: none;
}

.about-points li {
  font-size: 20px;
  color: #282f4f;
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}

.about-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #28bafe;
  font-weight: 600;
}

/* ===== Tabbed Services section ===== */

.services {
  background: #f4fcff;
  padding: 80px 0 100px;
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.services-label {
  font-size: 19px;
  font-weight: 500;
  color: #28bafe;
  margin-bottom: 8px;
  display: inline-block;
}

.services-title {
  font-size: 40px;
  font-weight: 600;
  color: #121b3f;
  margin-bottom: 10px;
}

.services-subtitle {
  max-width: 100%;
  margin: 0 auto 40px;
  font-size: 20px;
  line-height: 1.7;
  color: #6d728f;
}

/* Tabs row */

.services-tabs {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.services-tab {
  flex: 1;
  min-width: 160px;
  border: none;
  cursor: pointer;
  background: #ffffff;
  padding: 20px 18px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: 500;
  color: #1b264f;
  text-align: left;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
  border-top: 4px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
    transform 0.15s ease, border-color 0.15s ease;
}

.services-tab--active {
  background: #223a9c;
  color: #ffffff;
  border-top-color: #020627;
  box-shadow: 0 18px 44px rgba(9, 67, 183, 0.4);
  transform: translateY(-2px);
}

/* Layout under tabs */

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 40px;
}

.services-copy {
  max-width: 560px;
}

.services-detail-title {
  font-size: 24px;
  font-weight: 600;
  color: #121b3f;
  margin-bottom: 16px;
}

.services-detail-text {
  font-size: 20px;
  line-height: 1.7;
  color: #6d728f;
  margin-bottom: 18px;
}

.services-detail-list {
  list-style: none;
  margin-bottom: 24px;
}

.services-detail-list li {
  position: relative;
  padding-left: 24px;
  font-size: 20px;
  color: #2a3153;
  margin-bottom: 8px;
}

.services-detail-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #28bafe;
  font-weight: 600;
}

.services-cta {
  margin-top: 4px;
}

/* Illustration */

.services-image-wrapper {
  display: flex;
  justify-content: center;
}

.services-image {
  max-width: 360px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ==== Footer (3-column, dark theme) ==== */

.footer {
  background: #020627;
  color: #d8defe;
  margin-top: 0;
}

.footer-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-col-main {
  max-width: 360px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.footer-logo-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  margin-right: 10px;
}

.footer-logo-text {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #ffffff;
}

.footer-text {
  font-size: 18px;
  line-height: 1.7;
  color: #a6b0ff;
  margin-bottom: 22px;
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer-list {
  list-style: none;
  font-size: 18px;
  line-height: 1.9;
  color: #b7c0ff;
}

.footer-list li {
  margin-bottom: 4px;
}

.footer-info {
  list-style: none;
  font-size: 18px;
  line-height: 1.8;
  color: #b7c0ff;
}

.footer-info li {
  margin-bottom: 10px;
}

.footer-info-label {
  display: block;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
  font-size: 19px;
}

.footer-info-value {
  display: block;
}

.footer-bottom {
  background: #010418;
  padding: 16px 0;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 19px;
  color: #8d95d1;
}

.footer-bottom-links a {
  color: #c0c6ff;
  text-decoration: none;
  margin: 0 4px;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
}

.footer-bottom-sep {
  color: #5d6499;
}

.footer-designed {
  color: #8d95d1;
}

.footer-designed-name {
  color: #28bafe;
  font-weight: 500;
}

/* Footer service links */

.footer-list a {
  color: #b7c0ff;
  text-decoration: none;
}

.footer-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==== Policy Modals (Terms & Privacy) ==== */

.policy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 32, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.policy-modal {
  width: min(720px, 92vw);
  max-height: 80vh;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.policy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eef0ff;
}

.policy-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #121b3f;
}

.policy-modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #8a90b3;
  padding: 0;
}

.policy-modal-close:hover {
  color: #121b3f;
}

.policy-modal-body {
  padding: 18px 20px 8px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
  color: #3a4060;
}

.policy-modal-body h4 {
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 600;
  color: #121b3f;
}

.policy-modal-body ul {
  padding-left: 18px;
  margin-bottom: 8px;
}

.policy-modal-body li {
  margin-bottom: 4px;
}

.policy-note {
  margin-top: 10px;
  font-size: 12px;
  color: #8a90b3;
}

.policy-modal-footer {
  padding: 12px 20px 14px;
  border-top: 1px solid #eef0ff;
  display: flex;
  justify-content: flex-end;
}

.policy-modal-btn {
  font-size: 13px;
  padding-inline: 22px;
}

/* Anchors: offset for fixed nav */
#hero,
#about,
#services {
  scroll-margin-top: 90px;
}

/* Responsive */

@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-left {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .about-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .about-right {
    margin: 0 auto;
  }

  .about-points {
    text-align: left;
  }

  /* Hide desktop links, show hamburger */
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .services-layout {
    grid-template-columns: 1fr;
  }

  .services-image-wrapper {
    order: -1;
    margin-bottom: 20px;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .services-tabs {
    flex-direction: column;
  }

  .services-tab {
    flex: none;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-col-main {
    max-width: none;
  }

  .footer-bottom-inner {
    align-items: flex-start;
  }

  .policy-modal {
    max-height: 88vh;
  }

  .policy-modal-body {
    padding-inline: 16px;
  }
}