/* Patria Mobile — corporate site */

:root {
  --ink: #12151c;
  --ink-soft: #2a3140;
  --mist: #eef1f4;
  --paper: #f5f7f9;
  --white: #ffffff;
  --line: rgba(18, 21, 28, 0.12);
  --line-strong: rgba(18, 21, 28, 0.22);
  --signal: #0e7c86;
  --signal-deep: #0a5c64;
  --signal-soft: rgba(14, 124, 134, 0.12);
  --glow: rgba(14, 124, 134, 0.18);

  --font-display: "Syne", sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5.5rem;
  --space-3xl: 7.5rem;

  --max: 1120px;
  --radius: 2px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--signal-deep);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--signal);
}

a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

h1,
h2,
h3,
.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0 0 1rem;
}

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

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(245, 247, 249, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  width: min(100% - 2.5rem, var(--max));
}

.brand-mark {
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.04em;
}

.brand-mark span {
  color: var(--signal);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  margin: 0.28rem auto;
  background: var(--ink);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: 0;
  }
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 80% 60% at 80% 20%, var(--glow), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(14, 124, 134, 0.25), transparent 50%),
    linear-gradient(160deg, #0d121a 0%, #15202e 45%, #0e3a42 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, black, transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) 0;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  text-align: left;
  animation: rise 0.9s ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  margin: 0 0 var(--space-sm);
}

.hero-brand em {
  font-style: normal;
  color: #5fd0d8;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 28rem;
  margin-bottom: var(--space-md);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--signal);
  color: var(--white);
}

.btn-primary:hover {
  background: #10919c;
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* Sections */

.section {
  padding: var(--space-2xl) 0;
}

.section-tight {
  padding: var(--space-xl) 0;
}

.section-alt {
  background: var(--white);
  border-block: 1px solid var(--line);
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: var(--space-sm);
}

.section h2 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin-bottom: var(--space-md);
  max-width: 18ch;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.split {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

/* Product block */

.product {
  position: relative;
}

.product-panel {
  background: var(--ink);
  color: var(--white);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.product-panel::after {
  content: "";
  position: absolute;
  width: 14rem;
  height: 14rem;
  right: -3rem;
  top: -4rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 208, 216, 0.35), transparent 70%);
  pointer-events: none;
}

.product-panel h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: var(--space-sm);
  position: relative;
}

.product-panel p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  position: relative;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: var(--space-lg) 0;
  position: relative;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
}

.product-meta strong {
  color: #5fd0d8;
  font-weight: 700;
}

.feature-list {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--ink-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--signal);
}

/* Legal / facts */

.facts {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.fact {
  background: var(--white);
  padding: 1.15rem 1.25rem;
}

.fact dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 0.35rem;
}

.fact dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}

@media (min-width: 640px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact */

.contact-block {
  display: grid;
  gap: var(--space-lg);
}

.contact-item h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.contact-item p,
.contact-item a {
  font-size: 1.05rem;
}

.contact-item a {
  text-decoration: none;
  font-weight: 600;
}

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

/* Support */

.support-steps {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.support-step {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--line);
}

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

.support-step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.support-step p {
  color: var(--ink-soft);
}

/* Legal pages */

.legal-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-sm);
}

.legal-page .meta {
  color: var(--ink-soft);
  margin-bottom: var(--space-xl);
}

.legal-page h2 {
  font-size: 1.35rem;
  margin: var(--space-xl) 0 var(--space-sm);
  max-width: none;
}

.legal-page ul {
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.legal-page li {
  margin-bottom: 0.4rem;
}

.notice {
  background: var(--signal-soft);
  border-left: 3px solid var(--signal);
  padding: 1rem 1.15rem;
  margin: var(--space-lg) 0;
}

.notice p {
  margin: 0;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
}

.link-list li {
  margin-bottom: 0.65rem;
}

.link-list a {
  font-weight: 700;
  text-decoration: none;
}

.link-list a:hover {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: auto;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #5fd0d8;
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.footer-col h3 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

/* Page shell */

.page-main {
  min-height: calc(100svh - var(--header-h) - 16rem);
}

.page-hero {
  padding: var(--space-2xl) 0 var(--space-lg);
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, var(--glow), transparent 55%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: var(--space-sm);
}

.page-hero p {
  color: var(--ink-soft);
  max-width: 36rem;
  font-size: 1.15rem;
}

/* Reveal on load for secondary pages */
.page-hero .container {
  animation: rise 0.7s ease-out both;
}
