/* ======================================================
   CODEX – CSS GLOBAL CLEAN (PRODUCTION READY)
====================================================== */

/* ======================
   VARIABLES
====================== */

:root{
  --text:#111;
  --muted:#666;
  --soft:#f5f6f8;
  --border:#e6e6e6;
  --max:1100px;
}

/* ======================
   RESET
====================== */

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,Inter,system-ui,sans-serif;
  color:var(--text);
  line-height:1.7;
  background:#fff;
}

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

/* ======================
   CONTAINER
====================== */

.container{
  width:100%;
  max-width:var(--max);
  margin:auto;
  padding:0 clamp(18px,5vw,40px);
}

/* ======================
   HEADER
====================== */

.site-header{
  background:#fff;
  border-bottom:1px solid var(--border);
  position:relative;
  z-index:1100;
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
  max-width:var(--max);
  margin:auto;
  padding-left:24px;
  padding-right:24px;
}

.logo{
  font-weight:700;
  font-size:18px;
  letter-spacing:.04em;
}

/* ======================
   NAV DESKTOP
====================== */

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

.nav-links a{
  font-size:15px;
  color:#222;
}

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

/* ======================
   BURGER
====================== */

.burger{
  display:none;
  font-size:26px;
  background:none;
  border:none;
  cursor:pointer;

  position:fixed;     
  top:18px;
  right:18px;

  z-index:12000;      
  color:#111;
}

/* ======================
   MOBILE NAV
====================== */

@media (max-width:768px){

  .burger{
    display:block;
  }

  .nav-links{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100vh;
    background:#fff;

    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:32px;
    font-size:18px;

    transform:translateY(-100%);
    transition:transform .35s ease;

    z-index:1100;
  }

  .nav-links.show,
  .nav-links.open,
  .nav-links.active{
    transform:translateY(0);
  }

}

/* ======================
   OVERLAY
====================== */

.menu-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.4);

  opacity:0;
  pointer-events:none;
  transition:opacity .3s ease;

  z-index:1000;
}

.menu-overlay.show,
.menu-overlay.active{
  opacity:1;
  pointer-events:auto;
}

/* ======================
   HERO
====================== */

.hero{
  display:flex;
  justify-content:center;
}

.hero-inner{
  max-width:720px;
  width:100%;
  text-align:left;
}

.hero h1{
  font-size:54px;
  line-height:1.1;
  margin-bottom:24px;
}

.hero p{
  font-size:19px;
  color:var(--muted);
  max-width:720px;
}

@media (max-width:768px){
  .hero{
    padding:80px 0 60px;
  }
  .hero h1{
    font-size:36px;
  }
}

/* ======================
   SECTIONS
====================== */

section{
  padding:60px 0;
}

.section-soft{
  background:var(--soft);
}

/* ======================
   TEXT
====================== */

h2{
  font-size:28px;
  margin-bottom:16px;
}

p{
  margin-bottom:16px;
  max-width:720px;
}

ul{
  max-width:720px;
  padding-left:20px;
}

li{
  margin-bottom:8px;
}

.muted{
  color:var(--muted);
  font-size:14px;
}

.codex-card-title{
  font-weight:800;
}

/* ======================
   BUTTONS
====================== */

.btn{
  display:inline-block;
  margin-top:24px;
  background:#111;
  color:#fff;
  padding:16px 34px;
  border-radius:14px;
  font-size:15px;
  font-weight:500;
  transition:.2s;
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(0,0,0,.18);
}

.btn.primary{
  background:#3b5ccc;
}

.btn.primary:hover{
  background:#2f4db3;
}

/* ======================
   FOOTER
====================== */

.site-footer{
  margin-top:80px;
  border-top:1px solid var(--border);
  padding:40px 0;
  font-size:14px;
  color:#777;
}

.footer-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:32px;
}

.footer-bottom{
  text-align:center;
  margin-top:40px;
  font-size:13px;
  color:#888;
}

/* ======================
   UTILITIES
====================== */

.centered{
  text-align:center;
  margin:auto;
}

html{
  scroll-behavior:smooth;
}

/* ======================
   FORM / UI
====================== */

.input-field {
  flex: 1;
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 16px;
  line-height:56px;
}

.password-wrapper {
  position: relative;
  width: 100%;
  flex:1;
}

.password-wrapper input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: 0.6;
}

.password-toggle:hover {
  opacity: 1;
}

.form-row {
  display: flex;
  gap: 12px;
  width: auto;
  align-items:center;
}

@media (max-width:768px){

  .pro-main{
    margin:32px auto;
    padding:0 20px;
  }

  .pro-login-card{
    padding:0;
    margin-bottom:28px;
  }

  .pro-card{
    padding:0;
    margin-top:28px;
  }

  .form-row{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:14px;
    width:100%;
  }

  .input-field{
    width:100%;
    height:56px;
    font-size:16px;
  }

  .password-wrapper{
    width:100%;
    flex:none;
  }

  .form-row .btn{
    width:100%;
    height:56px;
    margin-top:0;
    padding:0 18px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
  }

  #loginError{
    margin-top:4px;
  }

  .muted-link{
    display:inline-block;
    margin-top:6px;
  }

  .pro-card h2,
  .pro-title{
    margin-bottom:14px;
  }

  .pro-sub,
  .pro-card p{
    margin-bottom:14px;
  }
}

}

/* ======================
   VERIFY UI
====================== */

.verify-highlight{
  margin-top:15px;
  padding:15px;
  background:#f5f7fa;
  border-radius:10px;
  font-size:14px;
}

.lead{
  font-size:18px;
  max-width:600px;
}

.card.highlight{
  border:2px solid #000;
}

.result{
  margin-top:15px;
  padding:14px;
  border-radius:10px;
  display:none;
}

.result.success{
  display:block;
  background:#e6f9ed;
  border:1px solid #2ecc71;
}

.result.error{
  display:block;
  background:#fdecea;
  border:1px solid #e74c3c;
}
