/* ---------------------------------------------------------------
 * ArchilitySolutions landing styles
 * Calm, deliberate B2B aesthetic. Inspired by Linear / Stripe Atlas.
 * ------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #14181f;
  background: #ffffff;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tokens */
:root {
  --text:        #14181f;
  --text-soft:   #2c333d;
  --muted:       #5b6573;
  --line:        #e6e8ec;
  --line-strong: #d6d9de;

  --bg:          #ffffff;
  --bg-alt:      #f8f9fa;

  --accent:        #1a2b4a;
  --accent-hover:  #0f1d35;
  --accent-tint:   rgba(26, 43, 74, 0.06);

  --max:         760px;

  --radius-sm:   6px;
  --radius-md:   8px;
}

/* Layout container */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  padding: 28px 0;
  background: transparent;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  border: none;
}

.brand:hover {
  color: var(--accent);
}

/* Sections */
.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

/* Adjacent same-color sections get a divider line; alt ↔ white change does its own job */
.section + .section:not(.section-alt):not(.hero):not(:first-of-type) {
  /* white after white never happens given current structure, but keep safety */
}

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 120px;
  background:
    radial-gradient(ellipse 1100px 520px at 50% -80px, var(--accent-tint), transparent 60%),
    #ffffff;
  overflow: hidden;
}

.hero::after {
  /* very subtle dot grid in upper area, fading out */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26, 43, 74, 0.07) 1px, transparent 1.4px);
  background-size: 28px 28px;
  background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 55%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 55%);
  pointer-events: none;
  opacity: 0.7;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Typography */
h1 {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: var(--text);
}

h2 {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 0 0 24px;
  color: var(--accent);
}

p {
  margin: 0 0 20px;
  color: var(--text-soft);
}

p:last-child {
  margin-bottom: 0;
}

.lede {
  font-size: 22px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 0;
  font-weight: 400;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 43, 74, 0.25);
  transition: border-color 120ms ease, color 120ms ease;
}

a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-hover);
}

/* Bullets with line icons */
.bullets {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
}

.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  line-height: 1.5;
}

.bullets li:last-child {
  border-bottom: 1px solid var(--line);
}

.bullet-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 0;
}

/* About */
.about {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-top: 8px;
}

.about-photo {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  display: block;
  filter: grayscale(15%);
}

.about p {
  margin: 0;
  align-self: center;
}

@media (max-width: 720px) {
  .about {
    flex-direction: column;
    gap: 20px;
  }
  .about-photo {
    width: 160px;
    height: 160px;
  }
}

/* CTA */
.cta {
  margin-top: 32px;
}

.cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(26, 43, 74, 0.18),
              0 0 0 1px rgba(26, 43, 74, 0.04);
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.cta-button:hover {
  background: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26, 43, 74, 0.22),
              0 0 0 1px rgba(26, 43, 74, 0.05);
}

.cta-secondary {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* Footer — dark */
.site-footer {
  padding: 44px 0 56px;
  background: #1a1a1a;
  color: #a8adb6;
  font-size: 14px;
  border-top: none;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.footer-link {
  color: #ffffff;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-link:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

@media (max-width: 720px) {
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Reveal-on-scroll (progressive enhancement) */
.js .reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Mobile */
@media (max-width: 720px) {
  body { font-size: 17px; }
  h1 { font-size: 38px; line-height: 1.12; }
  h2 { font-size: 26px; }
  .lede { font-size: 19px; }
  .section  { padding: 72px 0; }
  .hero     { padding: 60px 0 88px; }
  .container { padding: 0 22px; }

  .bullets li { gap: 14px; padding: 16px 0; }
  .bullet-icon { width: 20px; height: 20px; }

  .cta-button { padding: 14px 24px; font-size: 15px; }
}
