:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;

  --bg: white;
  --surface: #ffffff;
  --text-light: #ffffff;
  --text-main: #111827;
  --text-secondary: #6b7280;
  --border: #e5e7eb;

  --surface-soft: #f8fafc;
  --border-soft: #eef2f7;

  --positive-bg: #ecfdf5;
  --positive-border: #16a34a;
  --positive-text: #065f46;

  --negative-bg: #fef2f2;
  --negative-border: #dc2626;
  --negative-text: #7f1d1d;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  color: var(--text-main);
  background: var(--bg);

  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main {
  max-width: 920px;
  margin: 40px auto;
  padding: 0 16px;
  width: 100%;
  flex: 1;
}

.row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.col {
  flex: 1 1 280px;
}

.header {
  width: 100%;
  padding: 10px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);

  display: flex;
  justify-content: space-between;
  align-items: center;

  position: relative;
  z-index: 1001;
}

.logo {
  height: 36px;
  display: block;
}

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

.nav-links {
  display: flex;
  gap: 12px;
}

.nav a {
  text-decoration: none;
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.nav a:hover {
  background: var(--surface-soft);
  color: var(--primary-hover);
}

.menu-toggle {
  display: none;
  font-size: 22px;
  margin-top: 10px;

  background: transparent;
  border: none;
  cursor: pointer;

  color: var(--primary);

  height: 36px;           /* match logo */
  width: 36px;

  line-height: 36px;      /* THIS is the key */
  text-align: center;

  padding: 0;
}

.menu-close {
  display: none;
}
/* hero */
.hero {
  text-align: center;
  margin-bottom: 36px;
}

.hero h1 {
  margin-bottom: 10px;
  font-size: 30px;
      color: var(--primary);

}

button, .button {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 16px;

  border: none;
  border-radius: 6px;

  background: var(--primary);
  color: var(--text-light);

  cursor: pointer;

  font-weight: 600;
  font-size: 15px;
  text-decoration: none;

  transition: background 0.15s ease;
}

button:hover, .button:hover {
  background: var(--primary-hover);
}

button:active, .button:active {
  transform: translateY(1px);
}

/* footer */
.footer {
  width: 100%;
  padding: 20px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* DESKTOP */
.nav-links {
  display: flex;
  gap: 12px;
}

/* OVERLAY (background behind drawer) */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

/* DRAWER */
.nav-links {
  display: flex;
  gap: 12px;
}

.box {
  margin-top: 24px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
}

input:focus {
  outline: none;
  border-color: var(--primary);
}

/* text */
.small {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

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

/* utility */
.hidden {
  display: none;
}

/* mobile behaviour */
@media (max-width: 640px) {

  .menu-toggle {
    display: inline-block;   /* not flex */
  }

  .menu-toggle:hover {
    background: var(--surface-soft);
    border-radius: 6px;
  }

   .menu-close {
  position: absolute;
  top: 12px;
  right: 12px;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  margin: 0;

  background: transparent;
  border: none;

  cursor: pointer;

    color: var(--primary);


  z-index: 1001;
}

  .menu-close:hover {
    background: var(--surface-soft);
    border-radius: 8px;
  }

  /* drawer panel */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    max-width: 320px;

    flex-direction: column;
    gap: 0;

    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 30px rgba(0,0,0,0.08);

    padding: 80px 16px 16px;

    transform: translateX(100%);
    transition: transform 0.25s ease;

    z-index: 1000;

      position: fixed;

  }

  .nav-links a {
    padding: 14px 10px;
    border-radius: 8px;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
  }

  .main {
    margin: 40px auto;
  }

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

  .hero p {
    font-size: 14px;
    padding: 0 6px;
  }

  .header {
    padding: 10px 16px;
    height: 56px;          /* locks visual height */
  }

  .row {
    flex-direction: column;
    gap: 20px;
  }

  .col {
    flex: 1 1 100%;
  }

  input {
    padding: 14px;
    font-size: 16px;
  }

  button, .button {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }

  .box {
    padding: 16px;
  }

  .footer {
      font-size: 8px;
  }
}