@font-face {
  font-family: Axiforma;
  src: url('fonts/AXIFORMA/Axiforma-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Axiforma;
  src: url('fonts/AXIFORMA/Axiforma-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --page-bg: #f5f7f2;
  --surface: #ffffff;
  --surface-strong: #101818;
  --text: #101818;
  --muted: #5a6662;
  --border: rgba(16, 24, 24, 0.14);
  --accent: #00ab85;
  --accent-strong: #00896a;
  --gold: #d8b45a;
  --shadow: rgba(16, 24, 24, 0.16);
  --section-bg: #f8faf9;
  --landing-viewport-bg:
    linear-gradient(105deg, rgba(5, 11, 11, 0.98) 0%, rgba(11, 26, 24, 0.88) 48%, rgba(0, 137, 106, 0.45) 100%),
    #101818;
}

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

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: Axiforma, Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.nav-link,
.header-button,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

.nav-link {
  padding: 0 14px;
  color: rgba(255, 255, 255, 0.86);
}

.header-button {
  padding: 0 16px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(5, 11, 11, 0.42);
  backdrop-filter: blur(18px);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 92vh;
  display: flex;
  justify-content: center;
  padding: 100px 0 56px;
  overflow: hidden;
  color: #ffffff;
  background: var(--landing-viewport-bg);
  background-attachment: fixed;
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  width: 100%;
  max-width: 1400px;
  padding: 0 clamp(18px, 4vw, 56px);
}

@media (max-width: 1400px) {
  .hero {
    gap: 40px;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 24%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
}

.hero-art {
  position: fixed;
  left: 0;
  right: 0;
  bottom: -18svh;
  z-index: -2;
  width: 100vw;
  height: auto;
  opacity: 0.28;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, black 60%);
  mask-image: linear-gradient(to right, transparent, black 60%);
}

.hero-content {
  max-width: 820px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: "eurostile-extended", Axiforma, Arial, sans-serif;
  max-width: 100%;
  font-size: clamp(3.6rem, 6.5vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
-webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Old versions of Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.1rem, 2vw, 1.42rem);
  line-height: 1.5;
}

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

.primary-action,
.secondary-action {
  min-width: 176px;
  padding: 0 20px;
}

.primary-action {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 18px 40px rgba(0, 171, 133, 0.24);
}

.secondary-action {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.primary-action:hover,
.secondary-action:hover,
.header-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 171, 133, 0.32);
  filter: brightness(0.9);
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.hero-panel {
  align-self: end;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.hero-panel>div,
.hero-panel>form {
  padding: 20px;
  background: rgba(5, 11, 11, 0.42);
}

.panel-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.login-preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* Separator provided by grid gap */
}

.microsoft-btn-small {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  cursor: not-allowed;
  padding: 0;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.hero-panel strong {
  display: block;
  font-size: 1rem;
}

.preview-form {
  display: grid;
  gap: 16px;
}

.preview-field {
  display: grid;
  gap: 6px;
}

.preview-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.preview-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px; /* Prevents iOS auto-zoom on focus */
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.preview-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 171, 133, 0.15);
}

.preview-btn {
  width: 100%;
  border: none;
  margin-top: 4px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, box-shadow;
}

.preview-btn:hover {
  background: var(--accent-strong);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 171, 133, 0.28);
  filter: brightness(0.9);
}

.preview-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.turnstile-container {
  display: flex;
  width: 100%;
  margin: 4px 0;
}

.turnstile-container .cf-turnstile {
  width: 100%;
}

.login-preview-meta {
  margin-top: 4px;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
}

.quick-links {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  max-width: none;
  margin: 0 auto;
  padding: 32px max(clamp(18px, 4vw, 56px), calc((100vw - 1400px) / 2 + clamp(18px, 4vw, 56px))) 48px;
  background: var(--section-bg);
}

.quick-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 18px 46px 18px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(16, 24, 24, 0.08);
  text-decoration: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow;
  border: 1px solid transparent; /* Ensure border exists so it doesn't jump */
}

.quick-link:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(16, 24, 24, 0.14);
  border-color: var(--accent);
}

.quick-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--surface-strong);
}

.quick-link strong,
.quick-link small {
  display: block;
}

.quick-link strong {
  margin-bottom: 6px;
  font-size: 1rem;
}

.quick-link small {
  color: var(--muted);
  line-height: 1.45;
}

.quick-chevron {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(90, 102, 98, 0.78);
  font-size: 0.74rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s ease;
}

.quick-link:hover .quick-chevron {
  transform: translateY(-50%) translateX(5px);
  color: var(--accent);
}


.primary-action:hover {
  background: var(--accent-strong);
}

@media (max-width: 1100px) {
  .hero {
    padding-top: 140px;
    padding-bottom: 72px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    align-items: end;
    gap: 24px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    margin-bottom: 24px;
  }

  .hero-copy {
    margin: 26px auto 0;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-panel {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page-bg: #0b1111;
    --surface: #121b1b;
    --text: #f4f8f6;
    --muted: #aab5b0;
    --border: rgba(255, 255, 255, 0.12);
    --shadow: rgba(0, 0, 0, 0.36);
    --section-bg: #0a1011;
  }

  .quick-link {
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
  }
}

@media (max-width: 768px) {
  .nav-link {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .hero-container {
    gap: 32px;
  }

  h1 {
    font-size: clamp(2.8rem, 6.5vw, 4.5rem);
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .quick-links {
    padding-top: 32px;
    gap: 12px;
  }

  .quick-link {
    min-height: 90px;
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .header-button {
    width: auto;
    min-height: 44px;
    padding: 0 16px;
  }

  .header-button span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .hero {
    padding: 96px 16px 40px;
  }

  .hero-container {
    padding: 0;
  }

  .hero-art {
    left: auto;
    right: -50vw;
    bottom: -5svh;
    width: 160vw;
    opacity: 0.2;
  }

  h1 {
    font-size: clamp(1.85rem, 10vw, 2.9rem);
    line-height: 1.05;
  }

  .hero-copy {
    margin-top: 16px;
    font-size: 0.95rem;
  }

  .hero-actions {
    display: none;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
    min-width: 0;
  }

  .hero-panel {
    border-radius: 12px;
  }

  .hero-panel > div,
  .hero-panel > form {
    padding: 16px;
  }

  .quick-links {
    padding: 24px 16px 32px;
  }

}

footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--section-bg);
}
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .footer-software-enquiry {
    justify-content: center;
  }
}

.footer-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 56px);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-content p {
  margin: 0;
}

.footer-beta-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 7px;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.4;
  vertical-align: middle;
}

.footer-software-enquiry {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-software-enquiry a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.footer-software-enquiry a:hover {
  text-decoration: underline;
}
