/* === Klarbyte Brand Colors === */
:root {
  --color-primary: #0f467c;
  --color-accent: #26c1b9;
  --color-bg-light: #f9fafb;
  --color-bg-soft: #ebf7f6;
  --color-bg-footer: #1a1f2b;
  --color-bg-header: #1a1f2b;
  --color-gray: #6b7280;
  --color-dark: #1a1f2b;
  --color-success: #22c55e;
  --color-warning: #facc15;
  --color-white: #ffffff;
  --color-link: #26c1b9;
  --color-muted: #a0aec0;
}

/* === Reset & Base === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background: var(--color-bg-light);
  color: var(--color-dark);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding-bottom: 60px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5 {
  color: var(--color-primary);
  margin-bottom: 10px;
}

p {
  color: var(--color-gray);
}

/* === Header === */
.site-header {
  background: var(--color-bg-header);
  padding: 16px 32px;
  color: white;
  position: relative;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 48px;
}

.menu-toggle {
  display: none;
  background-color: var(--color-bg-header);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 28px;
  cursor: pointer;
}

.menu-toggle:hover {
  background-color: var(--color-accent);
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.nav a:hover {
  text-decoration: underline;
}

body.menu-open .nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: absolute;
  top: 70px;
  right: 20px;
  background-color: var(--color-bg-header);
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  width: max-content;
  z-index: 999;
}

/* === Hero === */
.hero {
  background: white;
  color: var(--color-dark);
  text-align: center;
  padding: 80px 20px 60px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.3;
}

.hero h1 span {
  color: var(--color-accent);
}

.hero-subtext {
  font-size: 18px;
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-gray);
}

/* === Product Section === */
.product-section {
  background: var(--color-bg-soft);
  padding: 80px 20px;
  text-align: center;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-intro {
  color: var(--color-primary);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-subtext {
  color: var(--color-gray);
  font-size: 16px;
  margin-bottom: 40px;
}

.card {
  background: white;
  padding: 50px 30px;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.product-logo {
  width: 220px;
  margin-bottom: 30px;
}

.subtitle {
  font-size: 20px;
  color: var(--color-dark);
  margin-bottom: 16px;
  font-weight: 600;
}

.description {
  font-size: 16px;
  color: var(--color-gray);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* === Button === */
.button {
  background: var(--color-accent);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
  display: inline-block;
}

.button:hover {
  background: var(--color-accent);
}

/* === Footer === */
.site-footer {
  background: var(--color-bg-footer);
  color: white;
  padding: 16px 20px;
  border-top: 1px solid #233b4f;
  margin-top: auto;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  flex-direction: row;
}

.footer-brand {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--color-muted);
}

.footer-logo {
  width: 28px;
  margin-bottom: 0;
}

.footer-links {
  flex: 1 1 140px;
  min-width: 150px;
}

.footer-links h4 {
  font-size: 15px;
  color: var(--color-accent);
  margin-bottom: 10px;
  cursor: pointer;
  position: relative;
}

.footer-links h4::after {
  content: '+';
  font-size: 16px;
  position: absolute;
  right: 0;
  top: 0;
  transition: transform 0.2s ease;
}

.footer-links.active h4::after {
  content: '-';
}

.footer-links ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: block;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.footer-links.active ul {
  max-height: 500px;
  margin-top: 10px;
}

.footer-links ul li a {
  display: block;
  color: var(--color-link);
  font-size: 13px;
  text-decoration: none;
  margin-bottom: 6px;
}

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

.footer-email {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-email:hover {
  text-decoration: underline;
}

/* === Responsive Styles === */
@media (min-width: 769px) {
  .footer-links h4::after {
    display: none;
  }

  .footer-links ul {
    display: block !important;
    max-height: none !important;
    margin-top: 6px;
  }

  .footer-links {
    text-align: left;
  }

  .menu-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero h1 {
    font-size: 28px;
  }

  .card {
    padding: 40px 20px;
    margin: 0 10px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .footer-links {
    width: 100%;
    order: 1;
    margin-bottom: 0;
    transition: margin-bottom 0.3s ease;
  }

  .footer-links.active {
    margin-bottom: 28px;
  }

  .footer-links h4 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: var(--color-accent);
    cursor: pointer;
  }

  .footer-links h4::after {
    content: '+';
    font-size: 16px;
    transition: transform 0.2s ease;
    position: static;
  }

  .footer-links.active h4::after {
    content: '-';
  }

  .footer-links ul {
    display: none;
    text-align: center;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
  }

  .footer-links.active ul {
    display: block;
    max-height: 500px;
    margin-top: 10px;
  }

  .footer-brand {
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    color: var(--color-muted);
    order: 2;
  }

  .footer-logo {
    width: 32px;
  }
}
