/* RahatPay — coming soon
   Palette comes from the RahatPay mark. The page is drawn as a site
   elevation: scaffolding and payments share their vocabulary — the
   horizontal member is a ledger, the post is a standard, and the whole
   thing stands on rails — so the drawing labels itself in both trades. */

:root {
  --paper:       #EFF0F7;
  --paper-lift:  #F7F8FC;
  --ink:         #1B1A33;
  --slate:       #5A5C74;
  --rule:        #D5D8E6;
  --indigo:      #3D358B;
  --indigo-deep: #302B6F;
  --amber:       #F79721;

  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body:    "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(1.5rem, 5vw, 5rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* A single soft field of brand indigo, sitting behind the loop. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 62% at 76% 42%, rgba(61, 53, 139, 0.10), transparent 70%),
    radial-gradient(40% 45% at 88% 88%, rgba(247, 151, 33, 0.09), transparent 72%);
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 4px;
  border-radius: 2px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: clamp(2.25rem, 5vw, 3.5rem);
  padding: clamp(1.75rem, 4vw, 3rem) var(--gutter);
  max-width: 1440px;
  margin-inline: auto;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
}

.brand {
  display: block;
  line-height: 0;
  border-radius: 3px;
}

.brand img {
  height: clamp(2.1rem, 1.6rem + 1.6vw, 2.9rem);
  width: auto;
  display: block;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.45rem 0.9rem 0.45rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-lift);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: breathe 2.8s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 1;    box-shadow: 0 0 0 0 rgba(247, 151, 33, 0.45); }
  50%      { opacity: 0.55; box-shadow: 0 0 0 5px rgba(247, 151, 33, 0); }
}

/* ---------- stage ---------- */

.stage {
  flex: 1;
  display: grid;
  gap: clamp(3rem, 7vw, 4.5rem);
  align-items: center;
}

.copy { max-width: 38rem; }

.eyebrow {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--indigo);
}

.headline {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 1.5rem + 7.4vw, 5.75rem);
  line-height: 1.04;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.headline span {
  display: block;
}

/* "return." lands last — the only word the mark's indigo touches. */
.headline span:last-child {
  color: var(--indigo-deep);
}

.lead {
  margin: clamp(1.5rem, 3.5vw, 2.25rem) 0 0;
  max-width: 30rem;
  color: var(--slate);
  text-wrap: pretty;
}

.contact {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

.contact__label {
  margin: 0 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--rule);
  font-family: var(--mono);
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.15rem);
  color: var(--indigo);
  text-decoration: none;
  transition: border-color 220ms ease, color 220ms ease;
}

.contact__link:hover,
.contact__link:focus-visible {
  border-bottom-color: var(--amber);
  color: var(--indigo-deep);
}

.contact__arrow {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.3, 1);
}

.contact__link:hover .contact__arrow,
.contact__link:focus-visible .contact__arrow {
  transform: translateX(4px);
}

/* ---------- the site: an elevation of the card, mid-build ---------- */

.build {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 27rem;
  text-align: center;
}

.build__svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

/* Structure — standards, ledger, bracing. */
.build__frame {
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.build__lattice {
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.25;
  stroke-linejoin: round;
  opacity: 0.5;
}

.build__joint circle {
  fill: var(--paper);
  stroke: var(--indigo);
  stroke-width: 1.5;
}

/* Rails. */
.build__rail {
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.5;
}

.build__rail--b {
  fill: none;
  stroke: #C6CADD;
  stroke-width: 1.5;
}

.build__sleeper {
  fill: none;
  stroke: #C6CADD;
  stroke-width: 1.5;
}

/* The card. */
.build__card {
  fill: var(--paper-lift);
  stroke: var(--indigo);
  stroke-width: 1.5;
}

/* Anything dashed is drawn but not yet fitted. */
.build__pending {
  fill: none;
  stroke: var(--indigo);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 6;
  opacity: 0.4;
  animation: march 7s linear infinite;
}

@keyframes march {
  to { stroke-dashoffset: -24; }
}

.build__wave {
  fill: none;
  stroke: var(--indigo);
  stroke-width: 2;
  stroke-linecap: round;
}

/* Hoist and load. */
.build__trolley {
  fill: var(--paper-lift);
  stroke: var(--indigo);
  stroke-width: 1.5;
}

.build__cable {
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.25;
}

.build__chip {
  animation: hoist 5.5s ease-in-out infinite;
}

/* The load never lands — nothing here is finished yet. */
@keyframes hoist {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(7px); }
}

/* Ground level and the crew. The workers are scale figures: they say how
   big the thing being built is, the way they do on a real elevation. */
.build__ground {
  fill: none;
  stroke: #C6CADD;
  stroke-width: 1.5;
}

.build__hatch {
  fill: none;
  stroke: #C6CADD;
  stroke-width: 1.25;
  stroke-linecap: round;
  opacity: 0.7;
}

.build__crew {
  fill: none;
  stroke: var(--indigo);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.build__crew circle {
  fill: var(--indigo);
  stroke: none;
}

.build__hat {
  fill: var(--amber);
  stroke: var(--amber);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.build__plan {
  fill: var(--paper-lift);
  stroke: var(--indigo);
  stroke-width: 1.5;
}

.build__beam {
  stroke: var(--indigo);
  stroke-width: 3;
  stroke-linecap: round;
}

.build__pallet {
  fill: none;
  stroke: var(--indigo);
  stroke-width: 1.5;
  opacity: 0.7;
}

.build__label text {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  fill: var(--ink);
}

.build__stamp {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  fill: var(--slate);
  opacity: 0.75;
}

.build__caption {
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- colophon ---------- */

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--slate);
}

.colophon p { margin: 0; }

/* ---------- entrance ---------- */

.rise {
  animation: rise 800ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  animation-delay: var(--d, 0ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- wider viewports ---------- */

@media (min-width: 62rem) {
  .stage {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(3rem, 6vw, 6rem);
  }

  .build {
    max-width: 32rem;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .rise {
    animation: none;
  }

  .status__dot,
  .build__chip,
  .build__pending {
    animation: none;
  }

  .contact__link,
  .contact__arrow {
    transition: none;
  }
}
