/* FinAix holding page. Light (Ivory) theme of the FinAix design system. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --sage: #708b84;
  --sand: #e5bc84;
  --deep-sage: #2e3b38;
  --ivory: #f7f2ea;
  --white: #ffffff;

  --surface: var(--ivory);
  --surface-raised: var(--white);
  --ink: var(--deep-sage);
  --ink-muted: #56655f;
  --display-accent: var(--sage);
  --line: #d6cfc2;
  --border-control: var(--sage);
  --sage-ink: #4f6862;
  --cta: var(--sage-ink);
  --cta-hover: var(--deep-sage);
  --on-cta: var(--ivory);
  --focus: var(--deep-sage);

  --font: "Montserrat", Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 24px;
  --radius-xs: 2px;
  --radius-md: 10px;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 40px; } }
@media (min-width: 1200px) { :root { --gutter: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--surface); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Page frame */
.page {
  min-height: 100vh;
  min-height: 100svh;
  max-width: calc(1800px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 24px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Header */
.header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.logo { width: 200px; flex: none; }
.header > a { flex: none; }
.header-side { display: flex; align-items: center; gap: 20px; margin-top: 6px; }
.header .status--header { display: none; }

/* Status badge */
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: var(--surface-raised);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.3;
}
.status::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sand);
  animation: pulse 1.8s cubic-bezier(.16, 1, .3, 1) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 188, 132, .9); }
  80% { box-shadow: 0 0 0 10px rgba(229, 188, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 188, 132, 0); }
}

/* Language switch */
.lang { display: inline-flex; border: 1px solid var(--border-control); border-radius: var(--radius-xs); padding: 3px; gap: 2px; }
.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 34px;
  padding: 0 10px;
  border-radius: 1px;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="page"] { background: var(--sage-ink); color: var(--surface); }

/* Main */
.main { display: flex; flex-direction: column; gap: 32px; }
.intro { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.overline {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.intro .overline { display: none; }
h1 {
  margin: 4px 0 0;
  font-size: clamp(40px, 5.6vw, 96px);
  line-height: 1.04;
  font-weight: 300;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 .accent { display: block; color: var(--display-accent); }
.lead { margin: 0; max-width: 50ch; color: var(--ink-muted); font-size: 16px; line-height: 1.6; text-wrap: pretty; }

/* Buttons */
.actions { display: flex; flex-direction: column; gap: 12px; width: 100%; padding-top: 4px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--cta); color: var(--on-cta); }
.btn--primary:hover { background: var(--cta-hover); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--border-control); }
.btn--secondary:hover { background: var(--sand); color: var(--deep-sage); border-color: var(--sand); }

/* Contacts panel */
.contacts { background: var(--surface-raised); border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.contacts .overline { margin-bottom: 8px; }
.contact-list { display: grid; gap: 16px; margin: 0; }
.contact-list > div { display: grid; gap: 8px; padding-top: 16px; border-top: 1px solid var(--line); min-width: 0; }
.contact-list dt { margin: 0; }
.contact-list dd { margin: 0; font-size: 16px; line-height: 1.45; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .25s var(--ease);
}
.contact-list a:hover { background-size: 100% 1px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-top: 16px; }
.footer p { margin: 0; font-size: 13px; line-height: 1.45; font-weight: 500; color: var(--ink-muted); }

/* Tablet and up */
@media (min-width: 768px) {
  .page { padding-top: 40px; }
  .logo { width: 220px; }
  .header .status--header { display: inline-flex; }
  .intro .status { display: none; }
  .intro .overline { display: block; }
  .intro { gap: 24px; }
  h1 { margin-top: 0; }
  .lead { font-size: 18px; }
  .actions { flex-direction: row; flex-wrap: wrap; width: auto; padding-top: 8px; }
  .btn { width: auto; padding: 14px 28px; }
  .contacts { padding: 40px; }
  .contact-list { gap: 20px; }
}

/* Desktop: text left, contacts panel right */
@media (min-width: 1024px) {
  .page { padding-bottom: 36px; }
  .main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) clamp(400px, 28vw, 540px); gap: clamp(48px, 6vw, 96px); align-items: center; }
  .footer { padding-top: 18px; }
}

/* Entrance */
.rise { animation: rise .9s var(--ease) both; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .24s; }
.rise-4 { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .btn, .btn svg, .lang a, .contact-list a { transition: none; }
  .btn:hover svg { transform: none; }
}
