/* ============================================================
   Parasol Software — shared stylesheet
   ============================================================ */

:root {
  --bg: #0b1220;
  --bg-elevated: #111827;
  --bg-card: #151f32;
  --border: rgba(148, 163, 184, 0.12);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-2: #818cf8;
  --gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --container: min(1100px, 92vw);
  --container-narrow: min(720px, 92vw);
}

/* ---------- Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle grid + glow background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(129, 140, 248, 0.1), transparent),
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  pointer-events: none;
  z-index: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

/* ---------- Layout ---------- */

.container {
  width: var(--container);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.container--narrow {
  width: var(--container-narrow);
}

/* ---------- Header / nav ---------- */

header {
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(11, 18, 32, 0.75);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
  flex-shrink: 0;
}

.logo-mark svg {
  width: 22px;
  height: 22px;
  color: #0b1220;
}

.logo-mark--sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.logo-mark--sm svg {
  width: 16px;
  height: 16px;
}

.logo-mark--xs {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.logo-mark--xs svg {
  width: 18px;
  height: 18px;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-back {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient);
  color: #0b1220;
  box-shadow: 0 8px 24px -6px rgba(56, 189, 248, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(56, 189, 248, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg-elevated);
  border-color: rgba(148, 163, 184, 0.25);
}

/* ---------- Typography helpers ---------- */

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-lead {
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: 6rem 0 5rem;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 auto 1.25rem;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ---------- Sections ---------- */

section {
  padding: 4.5rem 0;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.about-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pillars {
  display: grid;
  gap: 1rem;
}

.pillar {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.pillar:last-child {
  border-bottom: none;
}

.pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent);
}

.pillar h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.pillar p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---------- Projects ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.2s;
}

.project-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-4px);
}

.project-card:hover::before {
  opacity: 1;
}

.project-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ---------- CTA / Contact ---------- */

.cta {
  text-align: center;
  padding: 4rem 0 5rem;
}

.cta-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(129, 140, 248, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  padding: 3rem 2rem;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-box p {
  color: var(--text-muted);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.contact-details span {
  color: var(--text-muted);
}

.contact-details a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.contact-details a:hover {
  text-decoration: underline;
}

.cta-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.cta-note a {
  color: var(--accent);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  max-width: 22rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom p + p {
  margin-top: 0.35rem;
}

/* Compact footer for legal pages */
.footer--simple {
  padding: 1.75rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer--simple a {
  color: var(--accent);
  text-decoration: none;
}

.footer--simple p + p {
  margin-top: 0.5rem;
}

/* ---------- Legal / policy pages ---------- */

.legal-main {
  padding: 3rem 0 4rem;
  position: relative;
  z-index: 1;
}

.legal-main h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-main h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.legal-main p,
.legal-main li {
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.legal-main ul,
.legal-main ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-main ul {
  list-style: disc;
}

.legal-main ol {
  list-style: decimal;
}

.legal-main strong {
  color: var(--text);
  font-weight: 600;
}

.legal-highlight {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.legal-highlight p {
  margin-bottom: 0.5rem;
}

.legal-highlight p:last-child {
  margin-bottom: 0;
}

/* ---------- Under construction banner ---------- */

.construction-banner {
  position: relative;
  z-index: 60;
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.12));
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  padding: 0.65rem 1rem;
  line-height: 1.4;
}

.construction-banner strong {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.construction-banner span {
  opacity: 0.9;
}

@media (max-width: 520px) {
  .construction-banner {
    font-size: 0.8rem;
    padding: 0.55rem 0.75rem;
  }
}

/* ---------- Contact form ---------- */

.contact-form {
  max-width: 28rem;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.form-row textarea {
  min-height: 7rem;
  resize: vertical;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
}

.form-actions .btn {
  min-width: 8rem;
  justify-content: center;
}

.form-status {
  font-size: 0.875rem;
  margin-top: 0.75rem;
  min-height: 1.25rem;
}

.form-status--ok {
  color: #4ade80;
}

.form-status--err {
  color: #f87171;
}

.cta-box .contact-form + .cta-note {
  margin-top: 0.5rem;
}
