
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  --navy: #102A43;
  --navy-dark: #071B30;
  --orange: #F7941D;
  --blue: #1685D9;
  --white: #FFFFFF;
  --background: #F3F6FA;
  --text: #243746;
  --muted: #64748B;
  --border: #DFE6EE;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'DM Sans', Arial, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

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

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER */
.site-header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--orange);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: var(--navy-dark);
  border-radius: 11px;
  font-size: 23px;
}

.brand-one {
  color: var(--orange);
}

.brand-text {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start;
  line-height: 1.15;
}

.brand-byline {
  display: block;
  margin-top: 4px;
  font-size: 11px !important;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: #C7D8E8;
}

.brand-name {
  white-space: nowrap;
}

.brand-byline {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: #C7D8E8;
}

.header-label {
  font-size: 13px;
  color: #C7D8E8;
}

/* MAIN CONTENT */
.main-content {
  padding: 48px 0 70px;
}

.page-heading {
  margin-bottom: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  background: #E2EFFB;
  border: 1px solid #C9E1F7;
  border-radius: 6px;
  color: #1765A3;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.page-heading h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(29px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: var(--navy);
  margin: 17px 0 12px;
  line-height: 1.25;
}

.page-heading p {
  color: var(--muted);
  margin: 0;
  max-width: 900px;
  text-wrap: pretty;
}

/* TOOL CARDS */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  transition: transform .2s, box-shadow .2s;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(16, 42, 67, .09);
}

.tool-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: #E8F4FD;
  color: var(--blue);
  border-radius: 12px;
  font-size: 25px;
  margin-bottom: 20px;
}

.tool-card h2 {
  font-size: 19px;
  color: var(--navy);
  margin: 0 0 10px;
}

.tool-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  background: var(--orange);
  color: var(--navy-dark);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.btn-primary:hover {
  background: #E7830E;
}

/* FOOTER */
.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* MOVEMENT MINI - RESULT FORM */

.movement-result {
  max-width: 800px;
  margin: 24px auto 0;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.movement-result[hidden],
#movementOutput[hidden] {
  display: none;
}

.movement-result h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 22px;
}

.movement-result > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.movement-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.movement-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 7px;
}

.movement-field label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.movement-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #FAFCFE;
  color: var(--text);
  font-size: 15px;
}

.movement-field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 133, 217, .12);
}

#movementOutput {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

#movementOutput h3 {
  margin: 0 0 15px;
  color: var(--navy);
  font-size: 19px;
}

#movementText {
  width: 100%;
  min-height: 440px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #F8FAFC;
  color: var(--text);
  font-family: monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}

#movementOutput .analyze-button {
  margin-top: 16px;
}

#movementOutput .upload-button {
  display: block;
  margin-top: 12px;
  text-align: center;
}

#movementOutput .upload-button[hidden] {
  display: none;
}

#movementFeedback {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* MOVEMENT MINI - SMART VERIFICATION */

.movement-verification {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 2px solid #DC2626;
  border-radius: 10px;
  background: #FEF2F2;
  color: #991B1B;
  font-size: 14px;
  line-height: 1.6;
}

.movement-verification[hidden] {
  display: none;
}

.movement-verification strong {
  display: block;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 800;
}

.movement-verification ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.movement-verification li {
  margin-bottom: 6px;
}

.movement-verification p {
  margin: 0;
  font-size: 13px;
}

.movement-field input.needs-verification {
  border: 1px solid #DC2626;
  background: #FFF5F5;
}

.movement-field input.needs-verification:focus {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.movement-field-warning {
  color: #DC2626;
  font-size: 12px;
  font-weight: 500;
}

.movement-field-warning[hidden] {
  display: none;
}

/* RESPONSIVE - TABLET */
@media (max-width: 900px) {
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* RESPONSIVE - MOBILE */
@media (max-width: 600px) {
  .container {
    width: calc(100% - 32px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    font-size: 22px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-label {
    display: none;
  }

  .main-content {
    padding: 32px 0 48px;
  }

  .page-heading {
    margin-bottom: 24px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tool-card {
    padding: 22px;
  }

  .btn-primary {
    width: 100%;
    min-height: 48px;
  }

  /* Movement Mini */
  .movement-result {
    padding: 18px 16px;
    margin-top: 18px;
  }

  .movement-result h2 {
    font-size: 19px;
  }

  .movement-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 15px;
  }

  .movement-field.full-width {
    grid-column: 1 / -1;
  }

  .movement-field input {
    min-height: 48px;
    font-size: 16px;
  }

  #movementText {
    min-height: 380px;
    font-size: 12px;
  }

  /* Smart Verification */
  .movement-verification {
    padding: 15px;
    font-size: 13px;
  }

  .movement-verification strong {
    font-size: 14px;
  }
}
