/* ===========================
   SagauCo™ Core Styles
   =========================== */

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

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body.sagauco-frame {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #202020 0, #050505 45%, #000000 100%);
  color: #f5f5f5;
  min-height: 100vh;
}

/* Ensure images never blow layout */
img {
  max-width: 100%;
  height: auto;
}

/* Typography */

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.7rem, 2.4vw, 2rem);
  margin: 0 0 1.5rem;
}

h3 {
  font-size: 1.05rem;
  margin-top: 0;
}

p {
  margin: 0 0 0.9rem;
  color: #c9c9c9;
  line-height: 1.6;
}

.section-lead {
  max-width: 700px;
  font-size: 0.98rem;
}

/* Layout helpers */

.section {
  padding: 5rem 1.5rem;
}

.section-alt {
  background: radial-gradient(circle at top, #181818 0, #050505 40%, #020202 100%);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* Cards */

.card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.7));
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.4rem 1.5rem;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(18px);
}

.card h3 {
  margin-bottom: 0.4rem;
}

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

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.7));
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.15),
    rgba(127, 127, 127, 0.35),
    rgba(255, 255, 255, 0.15)
  );
  pointer-events: none;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.nav-logo {
  width: 34px;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
}

.nav-title {
  font-weight: 600;
  letter-spacing: 0.17em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.nav-dot {
  font-size: 0.7rem;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #e4e4e4;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  position: relative;
}

.nav-links a:not(.nav-pill)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ffffff, #7f7f7f);
  transition: width 0.22s ease-out;
}

.nav-links a:not(.nav-pill):hover::after {
  width: 100%;
}

.nav-pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.35rem 0.9rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-pill:hover {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 720px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }
}

/* Buttons */

.btn {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  color: #f5f5f5;
  transition:
    background 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #ffffff, #7f7f7f);
  color: #050505;
  border-color: transparent;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.3);
}

.btn.ghost {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.7));
}

.btn.full {
  width: 100%;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
}

/* Ventures */

.venture .tagline {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a6a6a6;
}

.venture-thumb {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 0.9rem;
  display: block;
}

/* Contact */

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: flex-start;
  gap: 2.5rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-list span:first-child {
  font-size: 1.1rem;
}

.contact-list a {
  color: #f5f5f5;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-form {
  padding: 1.8rem 1.7rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a8a8a8;
}

input,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.7rem 0.8rem;
  background: rgba(0, 0, 0, 0.7);
  color: #f5f5f5;
  font: inherit;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

textarea {
  resize: vertical;
}

@media (max-width: 820px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

/* Footer */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.2rem 1.5rem 1.6rem;
  background: #000000;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #a3a3a3;
}

.footer-tag {
  opacity: 0.8;
}

/* Scroll reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   TaiOS Chat Widget (SagauCo)
   =========================== */

.tai-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #ffffff, #868686);
  color: #050505;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.tai-launcher:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.98),
    0 0 0 1px rgba(255, 255, 255, 0.35);
}

.tai-launcher-open {
  background: radial-gradient(circle at bottom right, #f0f0f0, #7b7b7b);
}

.tai-chat-panel {
  position: fixed;
  right: 18px;
  bottom: 78px;
  width: 360px;
  max-height: 520px;
  display: none;
  flex-direction: column;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.09), rgba(0, 0, 0, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.98),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  z-index: 40;
  backdrop-filter: blur(18px);
}

.tai-chat-panel.tai-open {
  display: flex;
}

.tai-chat-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(60, 60, 60, 0.9));
}

.tai-chat-title {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tai-chat-subtitle {
  font-size: 0.74rem;
  color: #bdbdbd;
}

.tai-chat-close {
  border: none;
  background: transparent;
  color: #f5f5f5;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.tai-chat-messages {
  padding: 0.8rem 0.9rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tai-msg-row {
  display: flex;
}

.tai-msg-user {
  justify-content: flex-end;
}

.tai-msg-assistant {
  justify-content: flex-start;
}

.tai-msg-bubble {
  max-width: 80%;
  padding: 0.6rem 0.75rem;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.tai-msg-user .tai-msg-bubble {
  background: linear-gradient(135deg, #ffffff, #8a8a8a);
  color: #050505;
}

.tai-msg-assistant .tai-msg-bubble {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tai-msg-typing {
  font-style: italic;
  opacity: 0.75;
}

.tai-chat-input-row {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.6rem 0.7rem;
  display: flex;
  gap: 0.45rem;
}

.tai-chat-input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.8);
  color: #f5f5f5;
  padding: 0.55rem 0.7rem;
  font: inherit;
  outline: none;
}

.tai-chat-input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.tai-chat-send {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: radial-gradient(circle at top left, #ffffff, #8a8a8a);
  color: #050505;
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}

.tai-chat-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.9);
}

/* Mobile tweaks for chat */

@media (max-width: 640px) {
  .tai-chat-panel {
    right: 12px;
    bottom: 74px;
    width: calc(100% - 24px);
    max-height: 70vh;
  }

  .tai-launcher {
    right: 12px;
    bottom: 14px;
  }
}

@media (max-width: 480px) {
  .tai-chat-panel {
    width: calc(100% - 20px);
    right: 10px;
  }

  .tai-launcher {
    right: 10px;
  }
}

/* Founder / Meet Me section */

.founder-section {
  position: relative;
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 2.5rem;
}

.founder-photo-wrap {
  display: flex;
  justify-content: center;
}

.founder-photo {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  display: block;
  margin: 0 auto;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.founder-content p {
  max-width: 520px;
}

@media (max-width: 820px) {
  .founder-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .founder-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .founder-photo-wrap {
    order: -1;
  }
}

@media (max-width: 640px) {
  .founder-photo {
    max-width: 300px;
  }
}

/* ===========================
   SAGAUCO VIDEO HERO
   =========================== */

.hero-video-section {
  position: relative;
  width: 100%;
  /* Use modern viewport units so Android + iOS match better */
  height: 100vh;
  height: 100svh; /* supported on modern iOS + Android */
  overflow: hidden;
}


.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.75);
}

/* Main dark overlay */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.9)
  );
  z-index: 1;
}

/* Extra vignette depth from bottom */
.hero-video-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at bottom, rgba(0, 0, 0, 0.7), transparent 55%);
  z-index: 2;
}

.hero-video-content {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.hero-video-logo {
  width: 240px;
  filter:
    drop-shadow(0 18px 36px rgba(0, 0, 0, 0.85))
    drop-shadow(0 0 22px rgba(255, 255, 255, 0.25));
  margin-bottom: 1.3rem;
}

/* Scroll indicator at bottom centre */

.hero-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d0d0d0;
  opacity: 0.85;
}

.hero-scroll-indicator span {
  font-size: 1.1rem;
  margin-top: 0.25rem;
  animation: sagaucoScrollBounce 1.6s ease-in-out infinite;
}

@keyframes sagaucoScrollBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* Mobile recrop for video focus */

@media (max-width: 820px) {
  .hero-video {
    object-position: center 30%;
  }

  .hero-video-section {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-video-content {
    text-align: center;
    align-items: center;
    /* push content up a bit so it doesn’t sit too low on some Android screens */
    justify-content: flex-end;
    padding-bottom: 4.5rem;
  }

  .hero-video-logo {
    /* scale logo relative to screen so it isn’t huge on some Android ratios */
    width: clamp(150px, 40vw, 200px);
  }

  .hero-scroll-indicator {
    bottom: 18px;
    font-size: 0.65rem;
  }
}

/* ===========================
   Legal pages
   =========================== */

.legal-hero {
  padding: 5rem 1.5rem 2rem;
}

.legal-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.legal-hero h1 {
  margin-bottom: 0.75rem;
}

.legal-meta {
  font-size: 0.85rem;
  color: #b8b8b8;
  margin-top: 0.6rem;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 1.9rem 1.7rem 2.4rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.02);
}

.legal-content h2 {
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.legal-content h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.35rem;
  font-size: 0.98rem;
}

.legal-content p {
  margin-bottom: 0.8rem;
}

.legal-content ul {
  margin: 0 0 0.9rem 1.2rem;
  padding-left: 0.6rem;
}

.legal-content li {
  margin-bottom: 0.25rem;
}

.legal-content a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.footer-links a {
  color: #a3a3a3;
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.8rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Small-screen tweaks for legal content */
@media (max-width: 640px) {
  .legal-content {
    padding: 1.5rem 1.2rem 2rem;
    margin-bottom: 3rem;
  }
}
