/* IntegraPost iCMS — Styles */

:root {
  --navy-950: #060d1a;
  --navy-900: #0a1628;
  --navy-800: #0f2240;
  --navy-700: #1a3673;
  --green-500: #10b981;
  --green-400: #34d399;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --white: #ffffff;
  --gray-100: #f1f5f9;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --red-500: #ef4444;
  --amber-500: #f59e0b;

  --gradient: linear-gradient(135deg, var(--navy-700), var(--cyan-500), var(--green-500));
  --gradient-text: linear-gradient(135deg, var(--cyan-400), var(--green-400));
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --header-h: 76px;
  --radius: 12px;
  --radius-lg: 18px;
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  background: var(--navy-950);
  color: var(--gray-100);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }

.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(26,54,115,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,54,115,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, black, transparent);
}
.bg-glow { position: fixed; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: 0; }
.bg-glow--1 { width: 520px; height: 520px; background: rgba(26,54,115,.3); top: -160px; right: -80px; }
.bg-glow--2 { width: 420px; height: 420px; background: rgba(16,185,129,.1); bottom: 10%; left: -120px; }

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 200;
  transition: background var(--ease), box-shadow var(--ease);
}
.header--scrolled {
  background: rgba(6,13,26,.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav__brand img { height: 48px; width: auto; max-width: 240px; object-fit: contain; }
.nav__menu { display: flex; align-items: center; gap: 1.75rem; }
.nav__link { font-size: .9rem; font-weight: 500; color: var(--gray-300); transition: color var(--ease); }
.nav__link:hover { color: var(--white); }
.nav__cta {
  background: var(--gradient); color: var(--white) !important;
  padding: .55rem 1.2rem; border-radius: 8px; font-weight: 600;
}
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav__toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--ease); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: none; cursor: pointer; transition: all var(--ease);
}
.btn--primary { background: var(--gradient); color: var(--white); box-shadow: 0 4px 20px rgba(6,182,212,.28); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(6,182,212,.38); }
.btn--ghost { background: rgba(255,255,255,.05); color: var(--white); border: 1px solid rgba(255,255,255,.12); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn--sm { padding: .5rem 1rem; font-size: .82rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero */
.hero {
  position: relative; z-index: 1;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  min-height: 92vh; display: flex; align-items: center;
}
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem; border-radius: 100px; font-size: .78rem; font-weight: 600;
  background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5;
  margin-bottom: 1.25rem;
}
.hero__badge svg { width: 14px; height: 14px; }
.hero__title { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 1rem; }
.hero__desc { color: var(--gray-400); font-size: 1.05rem; max-width: 520px; margin-bottom: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1rem; }
.trust-pill {
  display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--gray-400);
  padding: .4rem .75rem; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 8px;
}
.trust-pill svg { width: 16px; height: 16px; color: var(--green-400); }

.hero__panel {
  background: rgba(15,34,64,.65); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 1.5rem; backdrop-filter: blur(10px);
  box-shadow: 0 8px 40px rgba(0,0,0,.3);
}
.hero__panel h3 { font-size: 1rem; margin-bottom: 1rem; color: var(--cyan-400); }
.feature-list li {
  display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; color: var(--gray-300);
  margin-bottom: .75rem;
}
.feature-list li svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--green-400); margin-top: 2px; }

/* Sections */
.section { position: relative; z-index: 1; padding: 5rem 0; }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section__tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--cyan-400); margin-bottom: .6rem; }
.section__title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .75rem; }
.section__sub { color: var(--gray-400); }

/* Packages */
.packages__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.pkg {
  position: relative; padding: 1.75rem; border-radius: var(--radius-lg);
  background: rgba(15,34,64,.45); border: 1px solid rgba(255,255,255,.07);
  transition: all var(--ease); cursor: pointer;
}
.pkg:hover, .pkg.selected { border-color: rgba(6,182,212,.35); transform: translateY(-4px); box-shadow: 0 0 40px rgba(6,182,212,.12); }
.pkg--featured { border-color: rgba(16,185,129,.35); background: rgba(16,185,129,.06); }
.pkg__ribbon {
  position: absolute; top: 1rem; right: 1rem; font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: .2rem .55rem;
  background: var(--green-500); color: var(--white); border-radius: 4px;
}
.pkg__tier { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); margin-bottom: .5rem; }
.pkg__name { font-size: 1.2rem; font-weight: 700; margin-bottom: .35rem; }
.pkg__price { font-size: 1.65rem; font-weight: 800; margin-bottom: .15rem; }
.pkg__price span { font-size: .85rem; font-weight: 500; color: var(--gray-400); }
.pkg__desc { font-size: .85rem; color: var(--gray-400); margin-bottom: 1.25rem; min-height: 2.5rem; }
.pkg__features li {
  font-size: .82rem; color: var(--gray-300); padding-left: 1.1rem; position: relative; margin-bottom: .4rem;
}
.pkg__features li::before {
  content: ''; position: absolute; left: 0; top: .55em; width: 5px; height: 5px;
  background: var(--green-500); border-radius: 50%;
}
.pkg__select {
  margin-top: 1.25rem; width: 100%; padding: .65rem; border-radius: 8px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: var(--white); font-weight: 600; cursor: pointer; transition: all var(--ease);
}
.pkg:hover .pkg__select, .pkg.selected .pkg__select { background: var(--gradient); border-color: transparent; }

/* Security */
.security {
  background: linear-gradient(180deg, transparent, rgba(239,68,68,.04) 50%, transparent);
}
.security__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.sec-card {
  padding: 1.5rem; border-radius: var(--radius);
  background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); text-align: center;
}
.sec-card svg { width: 32px; height: 32px; color: var(--green-400); margin: 0 auto .75rem; }
.sec-card h4 { font-size: .95rem; margin-bottom: .35rem; }
.sec-card p { font-size: .8rem; color: var(--gray-500); }

/* Register */
.register__wrapper {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start;
}
.register__info { padding: 1.5rem 0; }
.register__info h3 { font-size: 1.3rem; margin-bottom: .75rem; }
.register__info p { color: var(--gray-400); font-size: .92rem; margin-bottom: 1.25rem; }
.step-list { counter-reset: step; }
.step-list li {
  counter-increment: step; position: relative; padding-left: 2.5rem; margin-bottom: 1rem;
  font-size: .88rem; color: var(--gray-300);
}
.step-list li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: rgba(6,182,212,.15); color: var(--cyan-400);
  font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

.form-card {
  background: rgba(15,34,64,.55); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 2rem;
}
.form-card h3 { font-size: 1.15rem; margin-bottom: 1.25rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--gray-300); margin-bottom: .35rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .7rem .85rem; border-radius: 8px;
  background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1);
  color: var(--white); transition: border-color var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--cyan-500);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: .75rem; color: var(--gray-500); margin-top: .3rem; }
.form-error { font-size: .75rem; color: var(--red-500); margin-top: .3rem; display: none; }
.form-group.has-error .form-error { display: block; }
.form-group.has-error input, .form-group.has-error select { border-color: var(--red-500); }

.pkg-summary {
  padding: 1rem; border-radius: 8px; margin-bottom: 1rem;
  background: rgba(6,182,212,.08); border: 1px solid rgba(6,182,212,.2);
}
.pkg-summary__label { font-size: .75rem; color: var(--gray-500); }
.pkg-summary__value { font-size: 1.1rem; font-weight: 700; color: var(--cyan-400); }

.bank-info {
  padding: 1rem; border-radius: 8px; margin: 1rem 0;
  background: rgba(16,185,129,.06); border: 1px solid rgba(16,185,129,.2);
  font-size: .85rem;
}
.bank-info strong { color: var(--green-400); }
.bank-info p { color: var(--gray-300); margin-top: .25rem; }

/* Status panel */
.status-panel {
  display: none; margin-top: 1.5rem; padding: 1.25rem; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.2);
}
.status-panel.visible { display: block; }
.status-panel--pending { border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.06); }
.status-panel--paid { border-color: rgba(16,185,129,.3); background: rgba(16,185,129,.06); }
.status-panel--rejected { border-color: rgba(239,68,68,.3); background: rgba(239,68,68,.06); }
.status-panel h4 { font-size: .95rem; margin-bottom: .5rem; }
.status-panel p { font-size: .85rem; color: var(--gray-400); }

/* Footer */
.footer {
  position: relative; z-index: 1; padding: 2rem 0; margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.06); background: rgba(0,0,0,.2);
}
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer__brand img { height: 36px; width: auto; opacity: .9; }
.footer__links { display: flex; gap: 1.25rem; font-size: .82rem; color: var(--gray-500); }
.footer__links a:hover { color: var(--white); }
.footer__copy { width: 100%; text-align: center; font-size: .78rem; color: var(--gray-500); padding-top: .75rem; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--navy-900); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 2rem; max-width: 440px; width: 100%;
  text-align: center; position: relative;
}
.modal__close {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  color: var(--gray-400); font-size: 1.25rem; cursor: pointer;
}
.modal h3 { margin-bottom: .75rem; }
.modal p { color: var(--gray-400); font-size: .9rem; margin-bottom: 1.25rem; }

/* Toast */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 600;
  padding: .85rem 1.25rem; border-radius: 10px; font-size: .88rem; font-weight: 500;
  background: var(--navy-800); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 8px 30px rgba(0,0,0,.4); transform: translateY(120%); transition: transform .35s ease;
}
.toast.show { transform: translateY(0); }
.toast--success { border-color: rgba(16,185,129,.4); }
.toast--error { border-color: rgba(239,68,68,.4); }

/* Auth pages */
.auth-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: calc(var(--header-h) + 2rem) 0 3rem;
  display: flex;
  align-items: center;
}
.auth-page__inner { width: 100%; max-width: 520px; margin: 0 auto; }
.auth-card { padding: 2rem; }
.auth-card__sub { color: var(--gray-400); font-size: .9rem; margin-bottom: 1.25rem; }

@media (max-width: 1024px) {
  .hero__grid, .register__wrapper { grid-template-columns: 1fr; }
  .packages__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .security__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: .5rem 0;
    background: rgba(6,13,26,.97); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    transform: translateY(-120%); opacity: 0; pointer-events: none; transition: var(--ease);
  }
  .nav__menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { display: block; padding: .8rem 1.25rem; }
  .nav__cta { margin: .5rem 1.25rem; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .security__grid { grid-template-columns: 1fr; }
  .nav__brand img { height: 40px; max-width: 200px; }
}
