/* =========================
   ROOT — Cream / White / Light Theme
========================= */
:root {
  --cream: #FDF8F0;
  --cream-dark: #F5EDE0;
  --white: #FFFFFF;
  --text: #2C2416;
  --text-soft: #5C5346;
  --muted: #8A7F6E;
  --primary: #C4A35A;        /* soft gold */
  --primary-dark: #A88B3D;
  --secondary: #8B7355;      /* warm brown */
  --accent: #D4B87A;
  --border: #E8DFD0;
  --card-bg: #FFFFFF;
  --shadow: 0 8px 30px rgba(44, 36, 22, 0.08);
  --shadow-hover: 0 12px 40px rgba(44, 36, 22, 0.12);
  --radius: 20px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =========================
   RESPONSIVE TEXT
========================= */
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 600; }
p  { font-size: clamp(0.95rem, 1.8vw, 1.05rem); color: var(--text-soft); }

/* =========================
   NAVBAR — Fixed, works on all pages
========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(253, 248, 240, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.logo {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 8px 22px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-soft);
  padding: 6px 4px;
  transition: color 0.25s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-dark);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* =========================
   PAGE HEADER
========================= */
.page-header {
  padding: calc(var(--nav-height) + 50px) 6% 40px;
  text-align: center;
  background: linear-gradient(180deg, var(--cream-dark) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin-bottom: 12px;
  color: var(--text);
}

.page-header p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
}

/* =========================
   PAGE SECTION
========================= */
.page-section {
  padding: 50px 6% 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 6px 20px rgba(196, 163, 90, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(196, 163, 90, 0.45);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary-dark);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-soft {
  background: var(--cream-dark);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-soft:hover {
  background: var(--border);
}

.btn-download {
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  color: #fff;
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.3);
  width: 100%;
  margin-top: 8px;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(45, 106, 79, 0.4);
}

.btn-disabled {
  background: var(--cream-dark);
  color: var(--muted);
  border: 1px solid var(--border);
  width: 100%;
  margin-top: 8px;
  cursor: default;
  pointer-events: none;
}

/* =========================
   HERO (Home only)
========================= */
.hero {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 40px) 6% 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-content {
  flex: 1 1 480px;
}

.hero-content h1 span {
  color: var(--primary-dark);
}

.hero-content p {
  margin-top: 20px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-buttons {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  flex: 1 1 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-circle {
  width: min(80vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 163, 90, 0.25), transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: soft-rotate 18s linear infinite;
}

.ai-circle::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0.6;
}

.ai-circle span {
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: 2px;
}

@keyframes soft-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* =========================
   HIGHLIGHTS (Home)
========================= */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 20px 6% 90px;
  max-width: 1200px;
  margin: 0 auto;
}

.highlight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.highlight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.highlight-card .icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.highlight-card h3 {
  margin-bottom: 8px;
  color: var(--text);
}

/* =========================
   CARDS GRID (Features / Services / Explore)
========================= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  line-height: 1.7;
  color: var(--text-soft);
}

/* =========================
   ABOUT
========================= */
.about-grid {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.about-image-card {
  flex: 1 1 300px;
  max-width: 380px;
}

.placeholder-img {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, var(--cream-dark), var(--border));
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.placeholder-img span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.placeholder-img small {
  color: var(--muted);
  margin-top: 6px;
}

.about-text {
  flex: 1 1 420px;
}

.about-text .label {
  color: var(--primary-dark);
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.about-text h2 {
  margin-bottom: 18px;
  line-height: 1.25;
}

.about-text p {
  margin-bottom: 14px;
  line-height: 1.8;
}

.about-text .btn {
  margin: 18px 0 28px;
}

.info-boxes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.info-box h4 {
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

/* =========================
   SOFTWARE PAGE
========================= */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}

.software-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.software-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.software-icon-box {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--cream-dark), #fff);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.04);
}

.software-icon-box.muted {
  opacity: 0.7;
}

.soft-emoji {
  font-size: 2.8rem;
}

.software-card h3 {
  margin-bottom: 6px;
  color: var(--text);
}

.soft-tag {
  font-size: 0.85rem;
  color: var(--primary-dark);
  font-weight: 500;
  margin-bottom: 12px;
}

.soft-desc {
  font-size: 0.95rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* =========================
   VISION / POLICY BOX
========================= */
.vision-box {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
  text-align: center;
}

.vision-box p {
  margin-bottom: 16px;
  line-height: 1.85;
  color: var(--text-soft);
}

.vision-box p:last-child {
  margin-bottom: 0;
}

/* =========================
   CONTACT
========================= */
.contact-box {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: var(--shadow);
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

input,
textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  border: none;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-family: inherit;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(196, 163, 90, 0.4);
}

/* =========================
   START PAGE
========================= */
.start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.start-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.start-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.center-btn {
  text-align: center;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: var(--cream-dark);
  border-top: 1px solid var(--border);
  padding: 40px 6% 24px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-brand .logo {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-soft);
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--primary-dark);
}

.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* =========================
   TABLET
========================= */
@media (max-width: 991px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 6% 24px;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease;
  }

  .nav-links.open {
    max-height: 420px;
    opacity: 1;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 14px 8px;
    font-size: 1rem;
  }

  .nav-links a.active::after {
    display: none;
  }

  .nav-links a.active {
    color: var(--primary-dark);
    font-weight: 600;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: calc(var(--nav-height) + 30px);
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .about-grid {
    flex-direction: column;
    align-items: center;
  }

  .about-text {
    text-align: center;
  }

  .about-image-card {
    max-width: 280px;
  }

  .info-boxes {
    text-align: left;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 600px) {
  .page-header {
    padding: calc(var(--nav-height) + 30px) 5% 30px;
  }

  .page-section {
    padding: 36px 5% 60px;
  }

  .hero {
    gap: 36px;
    padding-bottom: 40px;
  }

  .btn {
    width: 100%;
  }

  .hero-buttons {
    width: 100%;
  }

  .contact-box,
  .vision-box {
    padding: 28px 20px;
  }

  .software-card {
    padding: 28px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* =========================
   EXTRA SMALL
========================= */
@media (max-width: 380px) {
  html {
    font-size: 14px;
  }
}
