/* ============================================================
   ALNIC DESIGN — SHARED STYLESHEET
   alnic.css · referenced by index.html, login.html, contact.html
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── DESIGN TOKENS ── */
:root {
  /* Surfaces */
  --bg:         #0F1419;   /* page background */
  --surface:    #16202B;   /* alternate sections */
  --card:       #1E2D3D;   /* cards, panels */
  --border:     #263446;   /* dividers, outlines */

  /* Brand blue — #2A9ED8 and its range */
  --blue:       #2A9ED8;
  --blue-light: #5BBFE8;
  --blue-dark:  #1A6B9A;

  /* Accent — pale yellow (change this one var to retheme accents site-wide) */
  --accent:     #E8E0A0;
  --accent-dim: #B0A860;
  --accent-hover: #F0EAB8;

  /* Text */
  --white:      #EDF2F7;
  --muted:      #7D97B0;
  --dim:        #334D66;

  /* State */
  --error:      #FF4F64;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Subtle grid atmosphere on every page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(42,158,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,158,216,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── TYPOGRAPHY ── */
h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

h1 .accent { color: var(--blue-light); }

h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 16px;
}

h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

/* ── NAV (shared structure) ── */
nav {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 13px !important;
  letter-spacing: 0.06em !important;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent) !important;
  color: var(--bg) !important;
}

/* ── SECTION SCAFFOLDING ── */
section { position: relative; z-index: 1; }

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 100px 48px;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 64px;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid var(--dim);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
  background: transparent;
  cursor: pointer;
}

.btn-ghost:hover { border-color: var(--blue); color: var(--blue-light); }

/* ── FORM ELEMENTS (shared by login + contact) ── */
.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(42,158,216,0.1);
}

input::placeholder,
textarea::placeholder { color: var(--dim); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237D97B0' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

select option { background: var(--card); }
textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

/* Submit button (shared) */
.submit-btn {
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 6px;
  padding: 15px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.submit-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.submit-btn:active { transform: translateY(0); }
.submit-btn.loading .btn-label { opacity: 0; }

.btn-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}

.submit-btn.loading .btn-spinner { opacity: 1; }

.spinner-ring {
  width: 20px; height: 20px;
  border: 2px solid rgba(15,20,25,0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* aria-invalid states set by Formspree SDK */
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] { border-color: var(--error); }

/* ── FOOTER (main site) ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 48px 36px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1160px;
  margin: 0 auto 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.65;
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  color: var(--white);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--blue-light); }

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--dim);
}

/* Simple footer used on login / contact */
.page-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 18px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--dim);
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.04em;
}

.page-footer a { color: var(--dim); text-decoration: none; }
.page-footer a:hover { color: var(--muted); }

/* ── SCROLL ANIMATION ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ── RESPONSIVE (shared breakpoints) ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { gap: 20px; }
  .nav-links li:not(:last-child) { display: none; }
  .section-inner { padding: 70px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-footer { padding: 18px 24px; flex-direction: column; gap: 10px; }
}
