/* ===== ReinLoop — Design System ===== */
:root {
  --blue:        #014ACD;   /* primary brand blue (loop / LOOP) */
  --blue-bright: #0050d8;
  --blue-deep:   #012A79;   /* gradient deep */
  --navy:        #0A1224;   /* REIN text / headings */
  --navy-soft:   #1c2538;
  --gray:        #8A8A8A;   /* tagline gray */
  --ink:         #2b3344;   /* body text */
  --muted:       #5c6677;
  --line:        #e7ebf2;
  --bg:          #ffffff;
  --bg-alt:      #f5f8fd;   /* light section tint */
  --bg-tint:     #eef3fc;
  --white:       #ffffff;
  --shadow-sm:   0 2px 8px rgba(10,18,36,.05);
  --shadow:      0 12px 40px rgba(1,74,205,.10);
  --shadow-lg:   0 24px 60px rgba(1,74,205,.14);
  --radius:      16px;
  --radius-sm:   10px;
  --maxw:        1140px;
  --grad:        linear-gradient(120deg, var(--blue-bright) 0%, var(--blue-deep) 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.25rem; font-weight: 700; }

a { color: var(--blue); text-decoration: none; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1rem; padding: 14px 28px;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: .94rem; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(1,74,205,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(1,74,205,.38); }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); background: var(--bg-tint); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand-logo { height: 30px; width: auto; display: block; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--navy-soft); font-weight: 500; font-size: .96rem; transition: color .2s; }
.nav a:hover { color: var(--blue); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(60px, 9vw, 110px); }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(1,74,205,.10), transparent 60%),
    radial-gradient(820px 480px at 10% 8%, rgba(1,42,121,.07), transparent 55%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); background: var(--bg-tint);
  padding: 7px 14px; border-radius: 100px; margin-bottom: 22px;
}
.hero h1 { margin-bottom: 22px; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 600px; }
.hero-sub { font-size: 1.18rem; font-weight: 600; color: var(--navy); margin-top: 14px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 26px; }
.hero-foot { font-size: .98rem; color: var(--muted); max-width: 600px; border-left: 3px solid var(--blue); padding-left: 16px; }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.orbit {
  position: relative; width: min(360px, 80%); aspect-ratio: 1;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #fff 0%, #f1f5fd 70%, #e8eefb 100%);
  border-radius: 50%; box-shadow: var(--shadow-lg);
}
.orbit::before {
  content: ""; position: absolute; inset: 18px; border-radius: 50%;
  border: 1.5px dashed rgba(1,74,205,.2);
}
.orbit-icon { width: 56%; animation: float 5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }

/* ===== Sections ===== */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-tag {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.section-intro { font-size: 1.1rem; color: var(--muted); max-width: 760px; margin-bottom: 18px; }
.section-outro { font-size: 1.05rem; color: var(--muted); max-width: 820px; margin-top: 36px; }

.prose { max-width: 820px; }
.prose p { margin-bottom: 18px; color: var(--ink); }
.statement {
  font-size: 1.35rem; font-weight: 700; color: var(--navy);
  line-height: 1.4; margin: 26px 0; max-width: 880px;
}
.statement-center { text-align: center; margin: 36px auto; color: var(--blue-deep); }

/* feature grid (the future) */
.feature-grid {
  list-style: none; display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px 32px; max-width: 860px; margin: 8px 0 8px;
}
.feature-grid li {
  display: flex; align-items: center; gap: 12px; font-weight: 500;
  color: var(--navy); font-size: 1.05rem;
}
.check {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-tint); color: var(--blue); font-size: .85rem; font-weight: 800;
  display: grid; place-items: center;
}

/* card grid (platform) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 16px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(1,74,205,.25); }
.card-ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; background: var(--bg-tint); margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; }

/* process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 16px; }
.process-step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.process-step::after {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--grad);
}
.step-num {
  display: block; font-size: 2.4rem; font-weight: 800; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin-bottom: 14px; opacity: .9;
}
.process-step h3 { margin-bottom: 8px; }
.process-step p { color: var(--muted); font-size: .96rem; }

/* ===== CTA band ===== */
.cta-band {
  background: var(--grad); color: #fff; padding: clamp(56px, 8vw, 92px) 0;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 360px at 85% 120%, rgba(255,255,255,.14), transparent 60%);
}
.cta-inner { position: relative; max-width: 880px; text-align: center; margin: 0 auto; }
.cta-band h2 { color: #fff; margin-bottom: 22px; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 16px; font-size: 1.08rem; }
.cta-inner .hero-cta { justify-content: center; margin-top: 30px; }

/* ===== Contact ===== */
.contact-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.contact-copy p { color: var(--muted); font-size: 1.05rem; }
.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); display: grid; gap: 18px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--gray); }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--navy);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fcfdff; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(1,74,205,.12);
}
.contact-form .btn { width: 100%; }
.form-status { font-size: .95rem; min-height: 1.2em; margin-top: -4px; }
.form-status.ok { color: #128a4e; }
.form-status.err { color: #c0392b; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 26px; filter: brightness(0) invert(1); opacity: .92; }
.footer-text { font-size: .92rem; }
.footer-text a { color: #fff; font-weight: 600; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .orbit { width: min(260px, 60%); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 16px;
  }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .card-grid, .process-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
}
