:root {
  --bg: #050b18;
  --bg-alt: #0b1220;
  --card: #0f172a;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.15);
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --border: #1f2937;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.7);
  --max-width: 1120px;
  --transition-fast: 0.18s ease-out;
  --input-padding: 0.55rem 0.7rem;
  --input-radius: 0.7rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1d3354 0, #020617 42%, #000 100%);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom,
    rgba(2, 6, 23, 0.92),
    rgba(2, 6, 23, 0.82),
    transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 0, #93c5fd, #1d4ed8 45%, #020617);
  color: #e5f0ff;
  font-size: 1.1rem;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.7);
}

.logo-text {
  font-size: 0.98rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.16);
}

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1.3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-text p {
  max-width: 34rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.hero-actions {
  margin: 1.7rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  background: rgba(15, 23, 42, 0.8);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-soft);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.25);
}

.hero-card {
  background: radial-gradient(circle at top left, #1d4ed8 0, #020617 55%);
  border-radius: var(--radius-xl);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-card h2 {
  font-size: 1.05rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.metric-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 0.75rem 0.8rem;
}

.metric-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0.2rem;
  font-size: 0.85rem;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.2);
}

.metric-list li:last-child {
  border-bottom: none;
}

.metric-label {
  color: var(--text-soft);
}

.metric-value {
  font-weight: 600;
}

.metric-ok {
  color: #4ade80;
}

.for-who {
  padding: 1.5rem 0 1rem;
}

.for-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.5rem;
}

.for-card {
  background: rgba(15, 23, 42, 0.8);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.for-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.for-card ul {
  padding-left: 1.1rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
}

.section h2 {
  font-size: 1.6rem;
  margin-top: 0;
}

.section-intro {
  max-width: 34rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.feature-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.2rem;
}

.feature-card {
  background: rgba(15, 23, 42, 0.88);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  font-size: 0.9rem;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.hardware-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 2rem;
  align-items: center;
}

.hardware-text p {
  color: var(--text-soft);
}

.hardware-image {
  width: 100%;
  height: 100%;
  overflow: hidden; /* prevents image spill */
  display: flex;
  justify-content: center;
  align-items: center;
}

.hardware-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.2rem;
  margin-top: 1.8rem;
}

.app-card {
  background: rgba(15, 23, 42, 0.88);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  text-align: center;
}

.app-card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.pricing-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.2rem;
}

.pricing-card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.9rem;
}

.pricing-card h3 {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.pricing-card .price {
  color: var(--text-soft);
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
}

.pricing-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.pricing-card-accent {
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.5);
  background: radial-gradient(circle at top, #1d4ed8, #020617 70%);
}

.contact-form {
  margin-top: 1.8rem;
  background: rgba(15, 23, 42, 0.98);
  border-radius: var(--radius-xl);
  padding: 1.5rem 1.4rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.86rem;
}

label {
  color: var(--text-soft);
}

input,
select,
textarea {
  border-radius: var(--input-radius);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  padding: var(--input-padding);
  font: inherit;
  color: var(--text);
  margin-bottom: 10px;
  outline: none;
  transition: border var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem var(--accent-soft);
  background: rgba(15, 23, 42, 0.95);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;

  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  border-radius: 999px;

  font-size: 1rem;
  color: #fff;
  font-weight: 500;

  box-shadow: 0 4px 20px rgba(30, 64, 175, 0.45);
  border: none;
  cursor: pointer;

  transition: transform 0.15s ease, opacity 0.2s ease;
  appearance: none;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn:active {
  transform: translateY(0);
  opacity: 0.85;
}


.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text-soft);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.9);
}

.btn-small {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
}

.footer {
  margin-top: 2.5rem;
  border-top: 1px solid rgba(15,23,42,1);
  background: linear-gradient(to bottom, #020617, #000);
}

.footer-inner {
  padding: 1.7rem 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-logo .logo-mark {
  box-shadow: none;
}

.footer-text {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.footer-columns {
  display: flex;
  gap: 2.5rem;
  font-size: 0.85rem;
}

.footer-columns h4 {
  margin: 0 0 0.45rem;
  font-size: 0.86rem;
}

.footer-columns p,
.footer-columns a {
  margin: 0.2rem 0;
  color: var(--text-soft);
  text-decoration: none;
}

.footer-columns a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid rgba(15,23,42,1);
  padding: 0.8rem 0 1.3rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* ==========================================================
   ADDITIONAL RESPONSIVE FIXES FOR INDEX.HTML
   ========================================================== */

/* Stack columns earlier for better mobile layout */
@media (max-width: 900px) {

  /* Hardware grid: 2 columns ➜ 1 column */
  .hardware-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hardware-text {
    order: 2;
  }

  .hardware-image {
    order: 1;
  }

  .hardware-image img {
    max-width: 80%;
    margin: 0 auto;
  }

  /* App grid: 2 columns ➜ 1 column */
  .app-grid {
    grid-template-columns: 1fr;
  }

  /* Pricing grid: ensure clean 2-column on tablets */
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Buttons wrap nicely */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Mobile phones */
@media (max-width: 720px) {

  /* Pricing grid: 1 column */
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  /* Hardware image tweaks */
  .hardware-image img {
    max-width: 100%;
  }

  /* Feature grid: 1 column */
  .feature-grid {
    grid-template-columns: 1fr;
  }

  /* Footer layout */
  .footer-columns {
    flex-direction: column;
    gap: 1.2rem;
  }

  /* App grid: remain single column */
  .app-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================
   Legal Documents Page (EULA / Privacy / SMS Terms / Terms)
   Works with rexaris_legal_full.html without changing HTML
   ========================================================== */

body > h1:first-of-type {
  max-width: 900px;
  margin: 2.75rem auto 1.25rem;
  padding: 0 1.5rem;
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

body > hr {
  max-width: 900px;
  margin: 2rem auto;
  border: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 163, 184, 0.35),
    transparent
  );
}

/* Card-style layout for each legal section */
#eula,
#privacy,
#sms-terms,
#terms {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.2rem 1.6rem;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 90px; /* nice if you later add anchor nav */
}

/* Headings inside legal sections */
#eula h1,
#privacy h1,
#sms-terms h1,
#terms h1 {
  margin-top: 0;
  font-size: 1.9rem;
  line-height: 1.2;
}

#eula h2,
#privacy h2,
#sms-terms h2,
#terms h2 {
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 0.65rem;
}

#eula h3,
#privacy h3,
#sms-terms h3,
#terms h3 {
  margin-top: 1.1rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: #cbd5e1;
}

/* Text + lists */
#eula p,
#privacy p,
#sms-terms p,
#terms p {
  color: var(--text-soft);
  font-size: 0.98rem;
  margin: 0.7rem 0;
}

#eula ul,
#privacy ul,
#sms-terms ul,
#terms ul,
#eula ol,
#privacy ol,
#sms-terms ol,
#terms ol {
  margin: 0.6rem 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

#eula li,
#privacy li,
#sms-terms li,
#terms li {
  margin: 0.35rem 0;
}

/* Emphasis + links */
#eula strong,
#privacy strong,
#sms-terms strong,
#terms strong {
  color: var(--text);
  font-weight: 600;
}

#eula a,
#privacy a,
#sms-terms a,
#terms a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

#eula a:hover,
#privacy a:hover,
#sms-terms a:hover,
#terms a:hover {
  color: var(--text);
  opacity: 0.95;
}

/* Small print */
#sms-terms .small {
  font-size: 0.9em;
  color: var(--text-soft);
}

/* Mobile tweaks */
@media (max-width: 720px) {
  body > h1:first-of-type {
    margin-top: 2.2rem;
    padding: 0 1rem;
  }

  #eula,
  #privacy,
  #sms-terms,
  #terms {
    padding: 1.6rem 1.1rem;
    border-radius: var(--radius-lg);
  }

  body > hr {
    margin: 1.4rem auto;
  }
}

/* ==========================================================
   INDEX.HTML POLISH (missing class styles)
   ========================================================== */

.hero-card-note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.compliance-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.compliance-card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: var(--shadow-soft);
}

.checklist {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin: 0.5rem 0;
  color: var(--text-soft);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #4ade80;
  font-weight: 700;
}

.sms-consent {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.sms-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  transform: scale(1.05);
}

.sms-legal {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
}

.sms-legal p {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.sms-legal ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-soft);
}

.form-footnote {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.form-group.full {
  grid-column: 1 / -1;
}

/* Responsive tweaks for compliance grid */
@media (max-width: 900px) {
  .compliance-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
}
