/*
Theme Name: LoomGate
Theme URI: https://gate.mcv.network/
Author: LoomGate
Description: Custom marketing and policy theme for LoomGate.
Version: 1.0.0
Requires at least: 6.0
Text Domain: loomgate
*/

:root {
  --ink: #05333e;
  --ink-2: #102f38;
  --blue: #0d6bff;
  --cyan: #11b4d8;
  --lime: #d9ff66;
  --coral: #ff765f;
  --paper: #f7fbfa;
  --paper-2: #edf5f4;
  --line: #cfe0df;
  --muted: #5f7478;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(5, 51, 62, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img,
svg {
  max-width: 100%;
}

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

.site-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(207, 224, 223, 0.72);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 174px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  white-space: nowrap;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--blue);
  box-shadow: 0 14px 32px rgba(13, 107, 255, 0.24);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(217, 255, 102, 0.24), transparent 30%),
    linear-gradient(130deg, #05333e 0%, #0b5866 52%, #0d6bff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(90deg, rgba(0,0,0,0.32), rgba(0,0,0,0.9));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0 72px;
}

.hero-copy {
  width: min(650px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 6px rgba(217, 255, 102, 0.16);
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  color: var(--white);
  font-size: clamp(2.04rem, 4.56vw, 4.02rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  color: var(--lime);
}

.hero-lead {
  max-width: 640px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero .button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(760px, 100%);
  margin-top: 48px;
}

.proof-item {
  min-height: 102px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 17px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.proof-item strong {
  display: block;
  color: var(--white);
  font-size: 1.26rem;
}

.proof-item span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.35;
}

.hero-scene {
  position: absolute;
  right: max(16px, calc((100vw - 1180px) / 2));
  bottom: 34px;
  width: min(36vw, 460px);
  min-width: 360px;
  pointer-events: none;
}

.flow-panel,
.phone-panel,
.receipt-panel {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.flow-panel {
  padding: 18px;
  transform: rotate(-3deg);
}

.flow-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255,255,255,0.74);
  font-size: 0.84rem;
  font-weight: 800;
}

.flow-line {
  height: 10px;
  margin-top: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  overflow: hidden;
}

.flow-line span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime), var(--coral));
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.flow-step {
  min-height: 74px;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255,255,255,0.16);
}

.flow-step b,
.receipt-row b {
  display: block;
  color: var(--white);
}

.flow-step small,
.receipt-row small {
  display: block;
  margin-top: 5px;
  color: rgba(255,255,255,0.7);
  line-height: 1.3;
}

.phone-panel {
  width: 245px;
  min-height: 320px;
  margin: -24px 34px 0 auto;
  padding: 18px;
  transform: rotate(4deg);
}

.phone-notch {
  width: 70px;
  height: 7px;
  margin: 0 auto 22px;
  border-radius: 99px;
  background: rgba(255,255,255,0.32);
}

.phone-balance {
  color: var(--white);
  font-size: 2.15rem;
  font-weight: 900;
}

.phone-copy {
  margin-top: 7px;
  color: rgba(255,255,255,0.72);
  font-size: 0.94rem;
  line-height: 1.42;
}

.phone-bars {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.phone-bars span {
  height: 42px;
  border-radius: 8px;
  background: rgba(255,255,255,0.16);
}

.phone-bars span:nth-child(2) {
  background: rgba(217, 255, 102, 0.34);
}

.receipt-panel {
  width: 290px;
  margin: -38px 0 0 22px;
  padding: 14px;
  transform: rotate(-7deg);
}

.receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 10px 0;
}

.receipt-row:last-child {
  border-bottom: 0;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--paper);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.71rem, 3.75vw, 3.525rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-lead {
  max-width: 730px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.feature-card {
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(5, 51, 62, 0.07);
}

.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  background: var(--lime);
  font-weight: 900;
}

.feature-card:nth-child(2) .feature-icon {
  color: var(--white);
  background: var(--blue);
}

.feature-card:nth-child(3) .feature-icon {
  color: var(--white);
  background: var(--coral);
}

.feature-card h3 {
  margin: 24px 0 0;
  font-size: 1.42rem;
  line-height: 1.12;
}

.feature-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.62;
}

.split-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 54px;
  align-items: center;
}

.steps {
  display: grid;
  gap: 14px;
}

.step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
}

.step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--ink);
  font-weight: 900;
}

.step h3 {
  margin: 0;
  font-size: 1.1rem;
}

.step p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.dark-band {
  color: var(--white);
  background: var(--ink);
}

.dark-band .section-kicker {
  color: var(--lime);
}

.dark-band .section-title,
.dark-band .section-lead {
  color: var(--white);
}

.dark-band .section-lead {
  color: rgba(255,255,255,0.76);
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.risk-item {
  min-height: 185px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255,255,255,0.08);
}

.risk-item strong {
  display: block;
  color: var(--lime);
  font-size: 2.6rem;
  line-height: 1;
}

.risk-item span {
  display: block;
  margin-top: 16px;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}

.policy-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 42px;
}

.policy-list {
  display: grid;
  gap: 12px;
}

.policy-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
}

.policy-list b {
  display: block;
  font-size: 1.08rem;
}

.policy-list span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.cta-band {
  padding: 82px 0;
  color: var(--white);
  background: linear-gradient(120deg, var(--blue), var(--ink));
}

.cta-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.cta-wrap h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.575rem, 3.75vw, 3.15rem);
  line-height: 1;
}

.cta-wrap p {
  max-width: 670px;
  margin: 18px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 1.12rem;
  line-height: 1.62;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-weight: 800;
  color: var(--ink);
}

.page-hero {
  padding: 72px 0 52px;
  color: var(--white);
  background: linear-gradient(126deg, var(--ink), #0b6474 62%, var(--blue));
}

.page-hero h1 {
  max-width: 940px;
  margin: 0;
  color: var(--white);
  font-size: clamp(1.5rem, 4.2vw, 3.48rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255,255,255,0.78);
  font-size: 1.12rem;
  line-height: 1.65;
}

.register-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.72fr);
  gap: 48px;
  align-items: start;
}

.signup-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(5, 51, 62, 0.08);
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--ink);
  font-weight: 850;
}

.form-field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 15px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-weight: 650;
  outline: none;
}

.form-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(13, 107, 255, 0.14);
}

.signup-form .button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.form-message {
  margin-bottom: 18px;
  border-radius: 8px;
  padding: 13px 14px;
  font-weight: 750;
  line-height: 1.45;
}

.form-message-success {
  color: #0d5132;
  background: #daf7e7;
}

.form-message-error {
  color: #8c1d18;
  background: #ffe2df;
}

.screen-reader-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.page-content {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 62px 0 88px;
}

.policy-content h1,
.policy-content h2,
.policy-content h3 {
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0;
}

.policy-content h1 {
  font-size: clamp(1.32rem, 3.6vw, 2.4rem);
  margin: 0 0 10px;
}

.policy-content h2 {
  margin: 48px 0 14px;
  font-size: clamp(1.275rem, 3vw, 1.95rem);
}

.policy-content h3 {
  margin: 32px 0 12px;
  font-size: 1.35rem;
}

.policy-content p,
.policy-content li {
  color: var(--ink-2);
  font-size: 1.03rem;
  line-height: 1.75;
}

.policy-content .doc-version {
  margin: 0 0 18px;
  color: var(--blue);
  font-weight: 900;
}

.policy-content .doc-intro {
  margin: 0 0 30px;
  color: var(--ink);
  font-size: 1.16rem;
  line-height: 1.75;
}

.policy-content ul {
  margin: 14px 0 24px;
  padding-left: 1.2rem;
}

.policy-content table {
  width: 100%;
  margin: 24px 0 34px;
  border-collapse: collapse;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  font-size: 0.96rem;
}

.policy-content th,
.policy-content td {
  border: 1px solid var(--line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.policy-content th {
  color: var(--white);
  background: var(--ink);
}

.policy-content tr:nth-child(even) td {
  background: var(--paper);
}

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: auto;
  }

  .hero-scene {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 540px);
    min-width: 0;
    margin-top: 46px;
  }

  .hero-proof,
  .feature-grid,
  .risk-grid,
  .policy-preview,
  .split-band,
  .register-layout,
  .cta-wrap {
    grid-template-columns: 1fr;
  }

  .risk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-actions {
    width: 100%;
  }

  .nav-actions .button {
    flex: 1 1 0;
    padding: 0 14px;
  }

  .brand img {
    width: 152px;
  }

  .nav-links {
    gap: 18px;
    font-size: 0.9rem;
  }

  .hero-inner {
    padding: 58px 0 48px;
  }

  .hero h1 {
    font-size: clamp(1.86rem, 10.8vw, 3.18rem);
  }

  .hero-proof,
  .flow-steps,
  .risk-grid {
    grid-template-columns: 1fr;
  }

  .phone-panel,
  .receipt-panel {
    width: auto;
    margin-left: 0;
    margin-right: 0;
  }

  .section {
    padding: 64px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .policy-content table {
    display: block;
    overflow-x: auto;
  }
}
