/* ============================================================
   PITAGORASLEGAL — Global Styles
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:      #0d1b2a;
  --navy-mid:  #1a2e44;
  --navy-soft: #243b55;
  --gold:      #c8973a;
  --gold-light:#e8b55a;
  --white:     #ffffff;
  --off-white: #f5f4f0;
  --text:      #1a1a2e;
  --text-muted:#4a5568;
  --border:    #e2e8f0;

  --font-body: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --radius:    12px;
  --radius-sm: 6px;
  --shadow:    0 4px 24px rgba(13, 27, 42, 0.10);
  --shadow-lg: 0 16px 48px rgba(13, 27, 42, 0.18);

  --nav-h: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

p { max-width: 68ch; }

/* ---------- Container ---------- */
.container {
  width: min(1180px, 100% - 3rem);
  margin-inline: auto;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--nav-h);
  background: rgba(13, 27, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200, 151, 58, 0.15);
  z-index: 100;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
}

.logo-mark {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav nav {
  display: flex;
  gap: 2rem;
}

.nav nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav nav a:hover {
  color: var(--gold-light);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Subtle geometric grid */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,151,58,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,151,58,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Radial glow */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 60% at 70% 50%,
    rgba(200, 151, 58, 0.12) 0%,
    transparent 70%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: 6rem;
}

.hero__badge {
  display: inline-block;
  background: rgba(200,151,58,0.15);
  color: var(--gold-light);
  border: 1px solid rgba(200,151,58,0.3);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 16ch;
}

.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  max-width: 54ch;
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
}

.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,151,58,0.35);
}

.btn--ghost {
  background: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.25);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding-block: 6rem;
}

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

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header--light .section-label,
.section-header--light h2 {
  color: var(--white);
}

.section-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: var(--navy);
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.about-text strong { color: var(--navy); }

.about-pillars {
  display: grid;
  gap: 1.5rem;
}

.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1rem;
  align-items: start;
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}

.pillar:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.pillar__icon {
  font-size: 1.75rem;
  grid-row: 1 / 3;
  padding-top: 2px;
}

.pillar h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

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

/* ============================================================
   APPS
   ============================================================ */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.app-card {
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s, transform 0.25s;
}

.app-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.app-card--placeholder {
  background: var(--off-white);
  box-shadow: none;
  opacity: 0.55;
}

.app-card--placeholder:hover {
  transform: none;
  box-shadow: none;
}


.app-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.app-card__icon {
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(13,27,42,0.18);
}

.app-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.app-card__icon--dim {
  background: #cbd5e0;
  color: #a0aec0;
  font-family: inherit;
  font-size: 1.2rem;
}

.app-card__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(200,151,58,0.12);
  color: var(--gold);
  border: 1px solid rgba(200,151,58,0.25);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
}

.app-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.app-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.app-card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  transition: gap 0.2s;
}

.app-card__link:hover {
  text-decoration: underline;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-item {
  margin-bottom: 1.75rem;
}

.contact-item__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.contact-item__value {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
}

.contact-item__value a {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Form */
.contact-form-wrap {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #080f18;
  padding-block: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer__brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.footer__links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--gold-light);
}

.footer__legal {
  text-align: right;
}

.footer__legal p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger children inside grids */
.about-pillars .pillar:nth-child(2) { transition-delay: 0.1s; }
.about-pillars .pillar:nth-child(3) { transition-delay: 0.2s; }
.apps-grid .app-card:nth-child(2)   { transition-delay: 0.1s; }
.apps-grid .app-card:nth-child(3)   { transition-delay: 0.2s; }

/* Nav active link */
.nav nav a.active {
  color: var(--gold-light);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__legal {
    text-align: center;
  }

  .footer__links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav nav {
    gap: 1rem;
  }

  .nav nav a {
    font-size: 0.82rem;
  }

  .hero__cta {
    flex-direction: column;
  }

  .btn--ghost {
    text-align: center;
  }
}
