:root{
  --bg-overlay: rgba(255,255,255,0.10);
  --glass: rgba(0,0,0,0.38);
  --glass2: rgba(0,0,0,0.28);
  --text: #f9fafb;
  --muted: rgba(255,255,255,0.78);
  --accent: #c21f34;
  --accent2: #2f7a7a;
}

*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background-image: url('/assets/aixmascard-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.bg-dim{
  min-height:100vh;
  background: linear-gradient(90deg, rgba(92,0,0,0.55), rgba(0,71,57,0.45));
}

.container{max-width:1180px;margin:0 auto;padding:18px 18px 30px;}

/* Header */
.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 12px;
}
.brand{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand .title{
  font-size:34px;
  font-weight:800;
  letter-spacing:0.2px;
}
.brand .subtitle{
  font-size:13px;
  color: rgba(255,255,255,0.85);
}

.nav{
  display:flex;
  gap:14px;
  align-items:center;
}
.nav a{
  color: rgba(255,255,255,0.92);
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  padding:10px 10px;
  border-radius:12px;
}
.nav a.active{background: rgba(255,255,255,0.10);}
.nav a:hover{background: rgba(255,255,255,0.08);}

.hamburger{
  display:none;
  border:0;
  background: rgba(255,255,255,0.12);
  color:#fff;
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
}

.mobile-menu{
  position:fixed;
  top:72px;
  right:18px;
  width:220px;
  background: rgba(10,10,10,0.70);
  border:1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(14px);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 20px 50px rgba(0,0,0,0.35);
  display:none;
  z-index:50;
}
.mobile-menu a{
  display:block;
  padding:14px 16px;
  color:#fff;
  text-decoration:none;
  font-weight:700;
}
.mobile-menu a:hover{background: rgba(255,255,255,0.08);}

/* Main hero */
.hero{
  display:flex;
  gap:22px;
  align-items:stretch;
  padding:6px 12px 10px;
}

.hero-left{
  flex:1;
  padding:38px 12px 22px;
}
.hero-left h1{
  margin:0 0 10px;
  font-size:64px;
  line-height:0.95;
  letter-spacing:-0.5px;
  color: rgba(255,255,255,0.95);
  text-shadow: 0 6px 26px rgba(0,0,0,0.35);
}
.hero-left p{
  margin:0 0 18px;
  font-size:18px;
  color: var(--muted);
  max-width:560px;
}

.btn-row{display:flex;gap:12px;flex-wrap:wrap;}
.btn{
  border:0;
  border-radius:14px;
  padding:12px 16px;
  font-weight:800;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.btn.primary{background: var(--accent); color:#fff;}
.btn.ghost{background: rgba(255,255,255,0.16); color:#fff;}
.btn:hover{filter:brightness(1.03);}

/* Card showcase */
.showcase{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:26px 10px 22px;
}

.showcase-card{
  width:min(520px, 100%);
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.18);
  background-image: url('/assets/aixmascard-cards.jpg');
  background-size: cover;
  background-position: center;
  box-shadow:0 18px 60px rgba(0,0,0,0.35);
  position:relative;
}

.showcase-overlay{
  min-height:320px;
  padding:22px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.55));
}

.showcase-overlay h2{
  margin:0 0 6px;
  font-size:22px;
  font-weight:900;
  text-shadow: 0 6px 22px rgba(0,0,0,0.35);
}

.showcase-overlay .small{
  margin:0 0 14px;
  color: rgba(255,255,255,0.88);
  font-weight:600;
}

.showcase-actions{display:flex;gap:12px;flex-wrap:wrap;}

/* Pages */
.page-card{
  margin:10px 12px 22px;
  padding:18px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(14px);
}
.page-card h1{margin:0 0 10px;font-size:34px;}

.form-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.label{font-size:13px;color:rgba(255,255,255,0.85);font-weight:700;margin-bottom:6px;}
.input, textarea, select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.10);
  color:#fff;
  outline:none;
}
textarea{min-height:120px;resize:vertical;}
.field{display:flex;flex-direction:column;}

.dropzone{
  border:2px dashed rgba(255,255,255,0.25);
  border-radius:16px;
  padding:16px;
  background: rgba(255,255,255,0.06);
  cursor:pointer;
}
.dropzone small{color:rgba(255,255,255,0.75)}

.badge-row{display:flex;gap:10px;flex-wrap:wrap;}
.badge{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  font-weight:800;
  cursor:pointer;
}
.badge.active{background: rgba(194,31,52,0.35); border-color: rgba(255,255,255,0.28);}

.preview-shell{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap:14px;
  align-items:start;
}

.card-preview-wrap{
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
}

/* Rendered card styles (shared with server) */
.card-frame{
  min-height:460px;
  background-size:cover;
  background-position:center;
  position:relative;
}
.card-overlay{
  padding:34px;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.60));
  min-height:460px;
  display:flex;
  flex-direction:column;
}
.card-headline{font-size:38px;font-weight:900;margin:0 0 10px;text-shadow:0 10px 30px rgba(0,0,0,0.35)}
.card-subline{font-size:16px;color:rgba(255,255,255,0.90);font-weight:600;margin:0 0 20px;max-width:560px}
.card-inner{font-size:18px;line-height:1.55;margin:0 0 22px;max-width:620px}
.card-footer{margin-top:auto;font-weight:900;color:rgba(255,255,255,0.92)}

.media-box{margin-top:12px;}
.media-box video,.media-box audio{width:100%;border-radius:14px;}

.table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:16px;
}
.table th,.table td{padding:12px 12px;text-align:left;font-size:14px;}
.table th{background: rgba(255,255,255,0.08);}
.table tr{border-bottom:1px solid rgba(255,255,255,0.10)}

/* Footer */
.footer{
  text-align:center;
  padding:18px 12px 26px;
  color: rgba(255,255,255,0.75);
  font-size:13px;
}

@media (max-width: 980px){
  .hero-left h1{font-size:48px;}
  .preview-shell{grid-template-columns:1fr;}
}

@media (max-width: 760px){
  .nav{display:none;}
  .hamburger{display:inline-flex;}
  .hero{flex-direction:column;}
  .hero-left{padding-top:14px;}
  .hero-left h1{font-size:44px;}
  .form-grid{grid-template-columns:1fr;}
}
