:root{
  /* Bright, inspirational base */
  --bg: #f6f8ff;                 /* page background */
  --panel: rgba(255,255,255,0.86); /* panels/cards/modals */
  --input: rgba(241,245,255,0.96); /* inputs/textarea/select/surfaces */

  /* Text + borders for light UI */
  --text: #0f172a;               /* slate-900 */
  --muted: #475569;              /* slate-600 */
  --border: rgba(15,23,42,0.14); /* subtle border */

  /* Accents (keep “inspirational” blue + teal) */
  --accent: #2563eb;             /* blue-600 */
  --accent-2: #14b8a6;           /* teal-500 */
}

html { -webkit-text-size-adjust: 100%; }

*{ box-sizing: border-box; }

html, body{
  height: 100%;
  margin: 0;
  padding-bottom: 900px; /* add breathing room at the bottom */
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Fixed full-page background (does not scroll) */
body{
  position: relative;
  z-index: 0;
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/static/background.png");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: -1;
}


.container{
  max-width: 980px;
  margin: 24px auto;
  padding: 0 8px 48px;
}

/* Site footer: small, subtle, within the centered container */
#site-footer {
  margin: 20px 0 20px;
  padding-top: 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
#site-footer a {
  color: inherit;         /* match the subtle grey */
  text-decoration: underline;
}

/* Payment modal — spacing + Stripe card field styling */
#payment-modal #payment-summary{
  margin: 0 0 16px; /* more gap below the description line */
}


/* Reduce the huge empty area */
#payment-modal .dropin-host{
  margin: 0 0 12px;
  min-height: 30px;      /* enough to prevent jumping, without big blank space */
  max-height: none;      /* remove tall constraint from PayPal era */
  overflow: visible;     /* no inner scroll needed for a single card field */
}

/* Override base .modal-dialog min-height to avoid extra blank space */
#payment-modal .modal-dialog{
  /* keep your sizing behavior */
  max-height: 92vh;
  overflow-y: auto;
  min-height: 0;

  /* NEW: make this panel fully opaque */
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;

  /* modern light-theme shadow (replaces the “dark web” vibe) */
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}


/* Stripe Elements wrapper injected inside #dropin-container */
#payment-modal #dropin-container .StripeElement{
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff; /* fully opaque */
}

/* Nice focus/validation states (optional but helpful) */
#payment-modal #dropin-container .StripeElement--focus{
  border-color: rgba(255,255,255,0.45);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.10);
}

#payment-modal #dropin-container .StripeElement--invalid{
  border-color: rgba(255,80,80,0.65);
}

#payment-modal #dropin-container .StripeElement--complete{
  border-color: rgba(80,220,140,0.55);
}

/* Tighten the spacing above the buttons a bit */
#payment-modal .modal-actions{
  position: sticky;
  bottom: 0;
  background: var(--panel);
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 10px;
}

/* Payment modal: keep the action bar fully opaque to match the panel */
#payment-modal .modal-actions{
  background: #ffffff;
}


/* Credits modal layout */
#credits-modal .credits-grid{
  display: grid;
  grid-template-columns: 1fr;  /* stacked vertically */
  gap: 10px;
  margin: 0 0 12px;
}

/* “OR” separator used in the Credits modal */
#credits-modal .or-sep {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
  margin: 8px 0 12px;   /* top 8, bottom 16 → now both sides around OR appear 16px */
}
#credits-modal .or-sep::before,
#credits-modal .or-sep::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}
#credits-modal .or-sep span { opacity: .9; }


/* Landscape card: horizontal row with price on the right */
#credits-modal .credits-plan{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 72px;
  padding: 14px 16px;
  text-align: left;
  background: var(--panel, #0f172a);
  border: 1px solid #696969;
  border-radius: 12px;
  cursor: pointer;
  transition: box-shadow .2s ease, border-color .2s ease, transform .05s ease;
}

/* Hover/focus state */
#credits-modal .credits-plan:hover,
#credits-modal .credits-plan:focus{
  border-color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)),
    var(--panel, #0f172a);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 8px 20px rgba(0,0,0,0.45);
}

/* Selected glow (match “glow” style feel) */
#credits-modal .credits-plan.selected{
  border-color: var(--accent, #60a5fa);
  background:
    linear-gradient(180deg, rgba(96,165,250,0.12), rgba(96,165,250,0.04)),
    var(--panel, #0f172a);
  box-shadow:
    0 0 0 2px rgba(96,165,250,.35),
    0 10px 28px rgba(96,165,250,.22);
}

/* Tiny badge for “Most Popular” */
#credits-modal .plan-count{
  font-size: 15px;
  color: var(--text);
  order: 1;
}

#credits-modal .plan-badge{
  font-size: 10px;
  line-height: 1;          /* tight line box so height = chip, not extra text space */
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid #696969;
  color: var(--muted);
  margin: 0 0 0 4px;       /* sits to the right of the count */
  order: 2;

  /* Ensure perfect vertical centering and add a 1px optical nudge */
  align-self: center;
  transform: translateY(1px);
}

#credits-modal .plan-price{
  margin-left: auto;  /* keep price pinned to the right */
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  order: 3;
}

/* Buttons: keep Buy as primary (inherits gradient),
   keep Return grey (we already added #credits-return to the grey list) */
#credits-modal .modal-actions{
  justify-content: flex-start; /* Buy left, Return follows */
  margin-top: 20px;
}



header {
  text-align: left;
  margin-bottom: 20px;
}

/* Ensure ONLY the logo area is clickable (prevents the <a> from covering the header) */
header .brand-link {
  display: inline-block;
  width: fit-content;
  line-height: 0; /* removes extra inline whitespace around the image */
  /* Move logo to the right / left */
  margin-left: 4px;
}

header .brand-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 12px;
}

header .logo {
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 0 0 -48px;  /* space around the logo */
}

.subtitle {
  font-size: 1.53rem;
  margin: -8px 0 0 0;
  color: var(--muted);
  font-weight: 400;
}

main{
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

/* Add space between stacked panels (user panel + generator panel) */
main + main {
  margin-top: 8px;
}

/* Tighter edges only for the top user panel */
.user-panel{
  padding: 6px 6px;
}

/* User panel layout — default (logged out) aligns controls to the right */
.user-panel .user-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;

  min-height: 26px;
}

/* When logged in, spread left/right sections */
.user-panel.logged-in .user-row {
  justify-content: space-between;
}

.user-left{
  color: var(--muted);
  display: inline-flex;   /* NEW: lay out the balance text + button in a row */
  align-items: center;    /* NEW: vertical center alignment */
  gap: 4px;               /* NEW: spacing between text and button (set to 0 if keep margin-left on the button) */
  white-space: nowrap;    /* keeps them on one line */
}


.user-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.user-right .sep {
  opacity: .6;
}


/* Auth links + general accent links (same blue as username) */
.auth-link,
.accent-link{
  color: var(--accent);       /* theme blue */
  text-decoration: none;
  font-weight: 600;
  transition: color .12s ease, opacity .12s ease;
}

.auth-link:hover,
.accent-link:hover{
  text-decoration: underline;
}

.auth-link:active,
.accent-link:active{
  opacity: .9;
}

.auth-link:visited,
.accent-link:visited{
  color: var(--accent);       /* keep blue after visit */
}


/* Front-page Login & Register links — old dark green */
#login-link.auth-link,
#register-link.auth-link {
  color: #059669;              /* old dark green */
}
#login-link.auth-link:hover,
#register-link.auth-link:hover {
  color: #10b981;              /* lighter on hover */
  text-decoration: underline;
}
#login-link.auth-link:active,
#register-link.auth-link:active,
#login-link.auth-link:visited,
#register-link.auth-link:visited {
  color: #047857;              /* pressed/darker state */
}

/* Logout link — old dark green */
#logout-link.auth-link {
  color: #059669;
}
#logout-link.auth-link:hover {
  color: #10b981;
  text-decoration: underline;
}
#logout-link.auth-link:active,
#logout-link.auth-link:visited {
  color: #047857;
}


/* Inline Top Up button (replaces the old hyperlink) */
#topup-btn.topup-btn{
  background: rgba(20, 184, 166, 0.14);
  color: #0f766e;
  border: 1px solid rgba(20, 184, 166, 0.35);
  padding: 7px 10px;
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  margin-left: 8px;

  transition: background .16s ease, transform .08s ease, box-shadow .16s ease, color .16s ease, border-color .16s ease;
}

#topup-btn.topup-btn:hover{
  background: var(--accent-2);
  color: #ffffff;
  border-color: rgba(20, 184, 166, 0.65);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

#topup-btn.topup-btn:active{
  transform: translateY(1px);
}

#topup-btn.topup-btn:focus-visible{
  outline: 3px solid rgba(20, 184, 166, 0.35);
  outline-offset: 3px;
}


/* Make only the "Resend" link blue */
#resend-link {
  color: var(--accent);     /* theme blue: #7aa2f7 */
}
#resend-link:hover {
  text-decoration: underline;
}
#resend-link:active {
  opacity: .9;              /* subtle press feedback */
}

/* Forgot password link: blue */
#forgot-link {
  color: var(--accent);
}
#forgot-link:hover {
  text-decoration: underline;
}
#forgot-link:active {
  opacity: .9;
}

/* Login verify: blue resend link */
#resend-link-login {
  color: var(--accent);
}
#resend-link-login:hover { text-decoration: underline; }
#resend-link-login:active { opacity: .9; }


/* Modal (empty pop-up) */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: grid;
  place-items: center;
  z-index: 1000;
}
.modal[hidden] { display: none; }

.modal-dialog {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,.4);
  width: min(560px, 92vw);
  min-height: 160px;   /* empty for now */
  padding: 16px;
}

/* Tighter bottom padding for User Info & Confirm Unsubscribe modals */
#user-modal .modal-dialog,
#confirm-unsub-modal .modal-dialog {
  padding-bottom: 16px;   /* ↓ reduce bottom whitespace for these two */
}
/* Add more space between User Info details and its buttons */
#user-modal .modal-actions {
  margin-top: 16px;
}


/* User Info modal — vertical spacing between the info lines */
#user-modal .modal-body {
  display: grid;         /* safe, only for this modal */
  row-gap: 6px;          /* tweak: 2–10px */
}

#confirm-unsub-modal .modal-actions {
  margin-top: 16px;
}

/* Modal title */
.modal-title {
  margin: 0 0 16px 0;
  font-size: 18px;
}

/* Compact form layout inside modal */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

/* Inputs (match textarea look & feel) */
.form-grid input[type="text"],
.form-grid input[type="password"],
.form-grid input[type="email"] {
  width: 100%;
  padding: 8px;
  background: var(--input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
}

.form-grid input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
}

/* Policy row: checkbox + text + link */
.policy-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

/* Modal actions */
.modal-actions {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;  /* ← was flex-end */
  gap: 8px;
}

/* Left-align buttons for Register and Login modals only */
#auth-modal .modal-actions,
#login-modal .modal-actions {
  justify-content: flex-start;
}

/* Left-align buttons for the Credits modal (match others) */
#credits-modal .modal-actions {
  justify-content: flex-start;
}

/* Compact dialog for the Credits modal (no extra empty space) */
#credits-modal .modal-dialog {
  min-height: auto;
}


.modal-actions button {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #0b1220;
  border: 0;
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .04s ease;
  min-width: 120px;            /* <- ensure equal visual width */
  text-align: center;          /* <- center labels inside */
}
.modal-actions button:active { transform: translateY(1px); }

/* Danger (red) buttons: Unsubscribe + Confirm */
#user-unsubscribe-btn,
#confirm-unsub-yes {
  background: #c62828;   /* red */
  color: #fff;
  border: none;
}
#user-unsubscribe-btn:hover,
#confirm-unsub-yes:hover {
  filter: brightness(0.95);
}


/* Grey out disabled modal buttons */
.modal-actions button:disabled {
  opacity: .6;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.modal-footnote {
  margin-top: 12px;
  font-size: 14px;
}

/* Secondary buttons (Return/Close) — modern light outline */
#register-cancel,
#login-cancel,
#policy-close,
#credits-return,
#payment-cancel,
#user-return-btn,
#confirm-unsub-no{
  background: rgba(255,255,255,0.78);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
  transition: transform .08s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

#register-cancel:hover,
#login-cancel:hover,
#policy-close:hover,
#credits-return:hover,
#payment-cancel:hover,
#user-return-btn:hover,
#confirm-unsub-no:hover{
  background: rgba(37, 99, 235, 0.08);      /* soft accent tint */
  border-color: rgba(37, 99, 235, 0.30);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

#register-cancel:active,
#login-cancel:active,
#policy-close:active,
#credits-return:active,
#payment-cancel:active,
#user-return-btn:active,
#confirm-unsub-no:active{
  transform: translateY(0px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
}

#register-cancel:focus-visible,
#login-cancel:focus-visible,
#policy-close:focus-visible,
#credits-return:focus-visible,
#payment-cancel:focus-visible,
#user-return-btn:focus-visible,
#confirm-unsub-no:focus-visible{
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}



/* Scrollable policy content */
.policy-content {
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  height: 305px;
  overflow: auto;
  white-space: pre-wrap;
  margin: 0 0 16px 0;
}


/* One-line error message slot under the checkbox */
/* Error / success message under the policy row (wraps and can grow) */
.form-error {
  color: #ef4444;            /* red-500 */
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  margin: 0;

  /* ✅ allow wrapping + growth */
  height: auto;              /* remove fixed one-line height */
  min-height: 1.35em;        /* keep a stable “slot” when empty */
  white-space: pre-wrap;     /* wrap + preserve any line breaks */
  overflow: visible;         /* don't clip */
  overflow-wrap: anywhere;   /* break long tokens safely */
  word-break: break-word;
}


/* Success state (same slot, just green) */
.form-error.is-success {
  color: var(--accent-2); /* theme green (#34d399) */
}

/* On small screens, allow the line to wrap (but keep a minimum height) */
@media (max-width: 480px) {
  .form-error {
    white-space: normal;        /* allow wrapping */
    overflow: visible;          /* no clipping */
    text-overflow: clip;        /* no ellipsis */
    height: auto;               /* grow if it wraps */
    min-height: 1.2em;          /* reserve space when empty */
    line-height: 1.3;           /* readable multi-line spacing */
    overflow-wrap: anywhere;    /* break long tokens if needed */
    word-break: break-word;     /* safety for long words */
  }
}

form#gen-form{
  display: grid;
  gap: 10px;
}

label{
  color: var(--muted);
  font-size: 13px;
}

textarea{
  width: 100%;
  resize: vertical;
  min-height: 120px;
  padding: 8px;
  background: var(--input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
}


textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
}

button#generate{
  justify-self: start;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #ffffff;
  border: 0;
  padding: 14px 20px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;

  transition: transform .08s ease, box-shadow .16s ease, filter .16s ease;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
}

button#generate:disabled{
  opacity: .6;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

#generate:hover{
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

#generate:active{
  transform: translateY(0px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}

#generate:focus-visible{
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}


/* Actions row: dropdown + button */
form#gen-form .actions {
  display: flex;
  justify-content: space-between;  /* push items to far edges */
  align-items: center;
  margin-top: 6px;
  flex-wrap: wrap;
  row-gap: 12px;
}

/* Minimal select styling to match the UI */
#aspect {
  background: var(--input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  line-height: 1.4;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#aspect:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(96,165,250,0.15);
}

.ratio-select {
  display: flex;
  align-items: center;
  gap: 6px; /* space between label and dropdown */
}

.ratio-select label {
  color: var(--muted);
  font-size: 14px;
}


.progress-wrap{
  position: relative;
  height: 12px;
  margin: 16px 0 32px 0;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.progress-bar{
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width .2s ease;
}

#progress-text{
  display: inline-block;
  margin-left: 0;
  font-size: 13px;
  color: var(--muted);
}

.display{
  display: grid;
  place-items: center;
  min-height: 360px;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.display img{
  max-width: 100%;
  height: auto;
  display: block;
}

.slideshow {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 14px 0 1px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--input);
  padding: 6px;
  gap: 6px;
  white-space: normal;
}


.slideshow img {
  display: block;      /* removes inline gaps */
  border-radius: 10px;  /* optional, for style */
}

.slides{
  display: inline-flex;
  gap: 6px;
}

.slides .thumb{
  height: 72px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  opacity: .9;
  transition: transform .15s ease, opacity .15s ease;
}

.slides .thumb:hover{
  transform: translateY(-2px);
  opacity: 1;
}


/* Make the big placeholder inside the display match the muted tone */
#placeholder {
  color: var(--muted);
  font-size: 16px; /* keep it consistent across devices */
}

/* Make the textarea's placeholder match the same muted tone */
textarea::placeholder {
  color: var(--muted);
  opacity: 1;      /* Safari/iOS lowers opacity by default */
}

:root { --control-gap: 6px; }

/* Right-side controls: "Image has human" + ratio select in one row */
form#gen-form .right-controls {
  display: flex;
  align-items: center;
  gap: var(--control-gap, 8px); /* tweak this custom property to change spacing */
}

.human-toggle {
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px; /* keep tight */
  font-size: 14px;   /* match Output Ratio label */
}

.human-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* =============================
   SEO / Marketing Pages (NEW)
   ============================= */

.top-nav {
  margin-top: 10px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.top-nav a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.9;
}

.top-nav a:hover {
  text-decoration: underline;
  opacity: 1;
}

.footer-row {
  margin-bottom: 8px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 6px;
}

.footer-nav a {
  color: var(--text);
  text-decoration: none;
  opacity: 0.85;
}

.footer-nav a:hover {
  text-decoration: underline;
  opacity: 1;
}

.content-page {
  width: 100%;            /* match the container width (like the footer line) */
  max-width: 100%;        /* remove the 920px cap */
  margin: 0;              /* no centering needed now */
  padding: 18px 18px 18px;   /* keep outside padding */
  box-sizing: border-box;
}


.page-title {
  margin: 30px 0 0;
  text-align: center;
  font-size: 28px;
}

.lead {
  margin-top: 10px;
  opacity: 0.95;
  line-height: 1.5;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.card {
  padding: 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.card h2 {
  margin-top: 0;
  font-size: 18px;
  line-height: 1.25;
}


/* Screen-reader only (visually hidden, still accessible to crawlers & assistive tech) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* =========================
   HOME PAGE (/) STYLES
   ========================= */

/* Remove the big bottom padding + fixed background image ONLY on the homepage */
.home-html,
body.home-body{
  padding-bottom: 0;
  background: radial-gradient(1200px 800px at 20% 10%, rgba(52, 211, 153, 0.12), transparent 55%),
              radial-gradient(900px 700px at 80% 20%, rgba(122, 162, 247, 0.10), transparent 55%),
              linear-gradient(180deg, #050b0c, #060a0a 60%, #070707);
}

body.home-body::before{
  background-image: none;
  opacity: 0;
}

/* Slightly wider sections */
.home-container{
  margin: 0 auto;
  padding: 0 10px;
}

/* HERO */
.home-hero{
  position: relative;
  width: 100%;

  min-height: 100vh;
  height: auto;

  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}


.home-hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: contrast(1.05) saturate(1.05) brightness(0.7);
}

/* Darken video with a deep cyber tint (not “glowy”) */
.home-hero::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 50% 35%, rgba(52,211,153,0.08), transparent 60%),
    radial-gradient(900px 600px at 55% 50%, rgba(122,162,247,0.07), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.78));
  pointer-events: none;
}

.home-hero-overlay{
  position: relative;
  z-index: 1;

  min-height: 100vh;

  /* Center ONLY the .home-hero-center group */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Leave room so links (positioned below) never get clipped */
  padding: 96px 14px 170px;

  text-align: center;
}

.home-hero-center{
  position: relative;          /* anchors the absolute links */
  display: flex;
  flex-direction: column;
  align-items: center;
}


.home-hero-logo{
  width: min(520px, 86vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.55));
}

.home-hero-tagline{
  margin: 0px 0 0;
  font-size: 32px;
  letter-spacing: 0.6px;
  text-transform: none;
  color: rgba(255,255,255,0.96);
}

.home-hero-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(90deg, rgba(52,211,153,0.95), rgba(122,162,247,0.90));
  color: #061010;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-decoration: none;
  box-shadow: 0 14px 40px rgba(0,0,0,0.38);
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
  margin-top: 68px;
}

.home-hero-cta:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 48px rgba(0,0,0,0.46);
}

.home-hero-subnav{
  position: absolute;

  /* Place it UNDER the centered group with a fixed gap */
  top: calc(100% + 140px);
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;

  font-size: 13px;
  color: rgba(255,255,255,0.72);

  width: min(860px, 92vw); /* keeps wrapping tidy */
}


.home-hero-subnav a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-dot{ opacity: 0.45; }

/* Main content wrapper (everything below the hero/video) */
.home-main{
  position: relative;
  z-index: 2;

  /* Bright, modern canvas behind About + Showcase */
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(37, 99, 235, 0.14), transparent 60%),
    radial-gradient(900px 700px at 80% 15%, rgba(20, 184, 166, 0.12), transparent 60%),
    linear-gradient(180deg,
      rgba(246, 248, 255, 0.98),
      rgba(246, 248, 255, 0.92) 55%,
      rgba(246, 248, 255, 0.98)
    );
}


/* SECTIONS */

/* ABOUT */
.home-about-copy{
  margin: 30px 0 0;
  color: var(--text); /* matches the title color */
  line-height: 1.75;
  font-size: 15px;
  max-width: 100ch; /* readable line length */
}

/* Paragraph spacing inside About */
.home-about-copy p{
  margin: 0 0 14px;
}

.home-about-copy p:last-child{
  margin-bottom: 0;
}

.home-section{
  padding: 44px 0 8px;
}

.home-section-alt{
  padding-bottom: 54px;
}

.home-section-head{
  margin: 0 0 16px;
}

/* About: no extra gap under the paragraph */
#about .home-section-head{
  margin-bottom: 0;
}

.home-h2{
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0.2px;
}

.home-lead{
  margin: 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
}

.home-muted{
  color: rgba(255,255,255,0.60);
}

/* FEATURES & SHOWCASE (simple stack) */
.home-showcase-stack{
  /* Matches About title -> paragraph spacing */
  margin-top: 30px;

  display: grid;
  gap: 24px; /* space between each paragraph+image pair */

  padding-bottom: 52px;
}

.home-showcase-item{
  margin: 0;
}

.home-showcase-copy{
  color: var(--text); /* matches the title color */
  line-height: 1.75;
  font-size: 15px;
}

.home-showcase-copy p{
  margin: 0 0 14px;
}

.home-showcase-copy p:last-child{
  margin-bottom: 0;
}

.home-showcase-image{
  display: block;
  width: 100%;
  height: auto;

  /* No panel / no border / no background — blends into page */
  margin-top: 18px;

  /* Keeps it from getting absurdly wide on huge screens */
  max-width: 980px;

  /* Center the image */
  margin-left: auto;
  margin-right: auto;
}
