/* =========================================================
   GDGOC Binus University International - Certificate Validator
   Editorial layout + Material Web Components form fields.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --blue: #4285F4;
  --red: #EA4335;
  --green: #34A853;
  --yellow: #FBBC05;

  --ink: #202124;
  --ink-muted: #5F6368;
  --ink-faint: #80868B;
  --surface: #FFFFFF;
  --bg: #FFFFFF;
  --border: #DADCE0;

  --radius: 6px;
  --max: 700px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Google Sans', 'Roboto', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Maintenance Mode (Scoped to Section) */
.section.is-maintenance>.section__inner>*:not(.maintenance) {
  display: none !important;
}

.maintenance {
  display: none;
  min-height: 400px;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.section.is-maintenance .maintenance {
  display: flex;
  flex-direction: column;
}

.maintenance__inner {
  max-width: 440px;
}

.maintenance__icon {
  font-size: 56px;
  color: var(--blue);
  margin-bottom: 20px;
}

.maintenance__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.maintenance__text {
  color: var(--ink-muted);
  font-size: 15px;
  margin-bottom: 24px;
  line-height: 1.6;
}

/* ---------- Nav ---------- */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* 4-colour Google stripe */
.nav::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg,
      var(--blue) 0% 25%,
      var(--red) 25% 50%,
      var(--yellow) 50% 75%,
      var(--green) 75% 100%);
}

.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer__logo {
  display: block;
  height: 32px;
  width: auto;
  opacity: 0.7;
  flex-shrink: 0;
}

.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
}

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

.nav__logo {
  display: block;
  height: auto;
  max-height: 52px;
  width: auto;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 80px 32px 72px;
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue);
  background: #E8F0FE;
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 20px;
  border-left: 3px solid var(--blue);
}

.hero__heading {
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 22px;
}

/* colour the first word blue */
.hero__heading .c-blue {
  color: var(--blue);
}

.hero__heading .c-red {
  color: var(--red);
}

.hero__heading .c-yellow {
  color: var(--yellow);
}

.hero__heading .c-green {
  color: var(--green);
}

.hero__sub {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 520px;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

/* Geometric background blobs */
.hero__geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.geo {
  position: absolute;
  border-radius: 50%;
  opacity: .08;
  animation: drift 8s ease-in-out infinite alternate;
}

.geo--1 {
  width: 340px;
  height: 340px;
  background: var(--blue);
  right: -60px;
  top: -80px;
}

.geo--2 {
  width: 200px;
  height: 200px;
  background: var(--red);
  right: 160px;
  top: 60px;
  animation-delay: -2s;
}

.geo--3 {
  width: 260px;
  height: 260px;
  background: var(--yellow);
  right: 80px;
  bottom: -60px;
  animation-delay: -4s;
}

.geo--4 {
  width: 140px;
  height: 140px;
  background: var(--green);
  right: 320px;
  bottom: 20px;
  animation-delay: -6s;
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(12px, -16px) scale(1.04);
  }
}

/* ---------- Main section ---------- */
.section {
  padding: 64px 32px 80px;
  flex: 1;
  background: #FAFAFA;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 4-dot Google decorative accent */
.section__title::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 16px 0 0 var(--red), 8px 14px 0 var(--yellow), 24px 14px 0 var(--green);
  margin-right: 20px;
  flex-shrink: 0;
}

/* ---------- Form ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 520px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Material Web Components - field tokens ---------- */
md-outlined-text-field {
  --md-outlined-text-field-focus-outline-color: var(--blue);
  --md-outlined-text-field-focus-label-text-color: var(--blue);
  --md-outlined-text-field-label-text-font: 'Google Sans', sans-serif;
  --md-outlined-text-field-input-text-font: 'Roboto', sans-serif;
  --md-outlined-text-field-supporting-text-font: 'Roboto', sans-serif;
  --md-outlined-text-field-outline-color: var(--border);
  --md-outlined-text-field-input-text-color: var(--ink);
  --md-outlined-text-field-label-text-color: var(--ink-muted);
  --md-outlined-text-field-error-focus-outline-color: var(--red);
  --md-outlined-text-field-error-outline-color: var(--red);
  --md-outlined-text-field-error-label-text-color: var(--red);
}

/* Cert ID field: monospace input */
#field-cert-id {
  --md-outlined-text-field-input-text-font: 'Roboto Mono', monospace;
  --md-outlined-text-field-input-text-size: 13.5px;
}

/* Material Symbols config */
.material-symbols-rounded {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  font-size: 20px;
  color: var(--ink-muted);
}

/* ---------- MWC Buttons ---------- */
.form__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 8px;
}

md-filled-button {
  --md-filled-button-container-color: var(--blue);
  --md-filled-button-label-text-font: 'Google Sans', sans-serif;
  --md-filled-button-label-text-weight: 600;
  --md-filled-button-label-text-size: 14px;
  --md-filled-button-container-height: 40px;
  min-width: 110px;
}

md-text-button {
  --md-text-button-label-text-font: 'Google Sans', sans-serif;
  --md-text-button-label-text-color: var(--ink-muted);
  --md-text-button-container-height: 44px;
}

/* ---------- Result ---------- */
.result {
  margin-top: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: opacity .3s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1);
  transform-origin: top;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.result--hidden {
  opacity: 0;
  transform: scaleY(0) translateY(-8px);
  pointer-events: none;
  height: 0;
  margin: 0;
  border: none;
}

.result--visible {
  opacity: 1;
  transform: scaleY(1) translateY(0);
}

.result--valid {
  border-color: var(--border);
  background: #fff;
}

.result--invalid {
  border-color: var(--red);
  background: #FEF3F2;
}

.result__bar {
  height: 6px;
  width: 100%;
}

.result--valid .result__bar {
  background: linear-gradient(90deg,
      var(--blue) 0% 25%,
      var(--red) 25% 50%,
      var(--yellow) 50% 75%,
      var(--green) 75% 100%);
}

.result--invalid .result__bar {
  background: linear-gradient(90deg, var(--yellow), var(--red));
}

.result__body {
  padding: 24px 28px;
}

.result__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.result__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.result__icon .material-symbols-rounded {
  font-size: 22px;
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.result--valid .result__icon {
  background: #E6F4EA;
  color: var(--green);
}

.result--invalid .result__icon {
  background: #FDE7E7;
  color: var(--red);
}

.result__status {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 0;
  letter-spacing: -.3px;
}

.result--valid .result__status {
  color: var(--ink);
}

.result--invalid .result__status {
  color: #C5221F;
}

.result__detail {
  font-size: 14px;
  color: var(--ink-muted);
  font-family: 'Roboto', sans-serif;
  margin-bottom: 20px;
  margin-top: 4px;
}

.result__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  font-family: 'Roboto', sans-serif;
  overflow: hidden;
}

.chip__label {
  font-weight: 600;
  color: #fff;
  padding: 5px 10px;
  margin-right: 0;
  font-size: 11px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.chip__value {
  padding: 5px 12px 5px 10px;
  font-family: 'Roboto Mono', monospace;
  font-size: 12.5px;
  color: var(--ink);
}

/* Per-chip Google colors */
.chip--blue .chip__label {
  background: var(--blue);
}

.chip--red .chip__label {
  background: var(--red);
}

.chip--yellow .chip__label {
  background: #F9AB00;
  color: #fff;
}

.chip--green .chip__label {
  background: var(--green);
}

/* ---------- Missing cert section ---------- */
.nocert {
  background: var(--ink);
  color: #fff;
  border-top: none;
  border-bottom: none;
  padding: 72px 32px;
}

.nocert__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.nocert__header {
  margin-bottom: 40px;
}

.nocert__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .08);
  padding: 5px 12px;
  border-radius: 3px;
  margin-bottom: 16px;
  border-left: 3px solid rgba(255, 255, 255, .3);
}

.nocert__heading {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 16px;
}

.nocert__accent {
  color: var(--blue);
}

.nocert__sub {
  font-size: 15px;
  color: rgba(255, 255, 255, .6);
  font-family: 'Roboto', sans-serif;
  line-height: 1.7;
  max-width: 520px;
}

.nocert__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 600px) {
  .nocert__steps {
    grid-template-columns: 1fr;
  }
}

.nocert__step {
  display: flex;
  flex-direction: column;
}

.nocert__step-img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 18px;
  aspect-ratio: 16/9;
  object-fit: cover;
  opacity: 0.9;
}

.nocert__num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  align-self: flex-start;
}

.nocert__step-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  font-family: 'Google Sans', sans-serif;
}

.nocert__step-body {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  font-family: 'Roboto', sans-serif;
  line-height: 1.65;
}

.nocert__link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.nocert__link:hover {
  text-decoration: underline;
}

/* ---------- How it works ---------- */
.how {
  background: #FAFAFA;
  border-top: 1px solid var(--border);
  color: var(--ink);
  padding: 72px 32px;
}

.how__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.how__heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 40px;
}

.how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 600px) {
  .how__steps {
    grid-template-columns: 1fr;
  }
}

.step {
  display: flex;
  flex-direction: column;
}

.step__num {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.step__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.step__body {
  font-size: 14px;
  color: var(--ink-muted);
  font-family: 'Roboto', sans-serif;
  line-height: 1.65;
}

/* ---------- Join CTA ---------- */
.join {
  background: #0d0d0d;
  padding: 80px 40px 64px;
  overflow-x: clip;
}

/* Header row: heading left, description+buttons right */
.join__header {
  max-width: var(--max);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
}

.join__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(66, 133, 244, .18);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
  border-left: 3px solid var(--blue);
}

.join__heading {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -.5px;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}

.join__header-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
}

.join__sub {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  font-family: 'Roboto', sans-serif;
  line-height: 1.75;
  margin: 0;
}

.join__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Bento: 3 columns, 2 rows, images only */
.join__bento {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: 260px 260px;
  gap: 10px;
  grid-template-areas:
    "a  a  a  a  a  b  b  b  b  b"
    "c  c  c  c  c  c  c  c  d  d";
}

.join__cell {
  border-radius: 12px;
  overflow: hidden;
  min-height: 0;
}

.join__cell--a {
  grid-area: a;
}

.join__cell--b {
  grid-area: b;
}

.join__cell--c {
  grid-area: c;
}

.join__cell--d {
  grid-area: d;
}

.join__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Buttons */
.join__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Google Sans', sans-serif;
  text-decoration: none;
  transition: opacity .15s, box-shadow .15s;
}

.join__btn .material-symbols-rounded {
  font-size: 17px;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  color: inherit;
}

.join__btn--filled {
  background: var(--blue);
  color: #fff;
}

.join__btn--filled:hover {
  opacity: .88;
  box-shadow: 0 2px 8px rgba(66, 133, 244, .5);
}

.join__btn--green {
  background: var(--green);
  color: #fff;
}

.join__btn--green:hover {
  opacity: .88;
  box-shadow: 0 2px 8px rgba(52, 168, 83, .5);
}

@media (max-width: 768px) {
  .join__header {
    grid-template-columns: 1fr;
  }

  .join__bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
    grid-template-areas:
      "a b"
      "c d";
  }
}

/* ---------- Footer ---------- */
.footer {
  background: #0d0d0d;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}

.footer__logo-top {
  height: 36px;
  width: auto;
  opacity: .85;
  display: block;
  margin-bottom: 28px;
}

/* Social row */
.footer__social-row {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 28px 0;
}

.footer__social-row .footer__inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.footer__follow {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .5);
  font-family: 'Google Sans', sans-serif;
  letter-spacing: .3px;
}

.footer__socials {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer__socials a {
  color: rgba(255, 255, 255, .5);
  display: flex;
  align-items: center;
  transition: color .15s;
}

.footer__socials a:hover {
  color: #fff;
}

.footer__socials svg {
  width: 18px;
  height: 18px;
}

/* Body */
.footer__body {
  padding: 80px 0 48px;
}

.footer__body .footer__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.footer__tagline p {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
  line-height: 1.2;
  letter-spacing: -.5px;
  margin: 0;
  font-family: 'Google Sans', sans-serif;
}

.footer__tagline-accent {
  background: linear-gradient(90deg, #4285F4, #34A853, #FBBC05, #EA4335);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, .9);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin: 0 0 4px;
  font-family: 'Google Sans', sans-serif;
}

.footer__col a {
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  transition: color .15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__col a:hover {
  color: rgba(255, 255, 255, .9);
}

/* Social icons inside footer col */
.footer__socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__socials a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .5);
  text-decoration: none;
  font-size: 13px;
  font-family: 'Roboto', sans-serif;
  transition: color .15s;
}

.footer__socials a:hover {
  color: rgba(255, 255, 255, .9);
}

.footer__socials svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Bottom bar */
.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
}

.footer__bar .footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__logo {
  height: 22px;
  width: auto;
  opacity: .7;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: rgba(255, 255, 255, .35);
  font-family: 'Roboto', sans-serif;
}

.footer__legal a {
  color: rgba(255, 255, 255, .35);
  text-decoration: none;
  transition: color .15s;
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, .7);
}

@media (max-width: 768px) {
  .footer__body .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__nav {
    grid-template-columns: 1fr 1fr;
  }
}