/* =========================================================
   PORTALORE — corporate landing page
   Dark, cinematic, restrained-luminous visual system.
   No external fonts or assets — system font stack only.
   ========================================================= */

:root {
  --bg: #08070c;
  --bg-alt: #0d0c14;
  --bg-raised: #121019;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #f3f1f6;
  --text-muted: #aca8bc;
  --text-faint: #726e85;

  --violet: #8b7ae8;
  --violet-soft: #a78bfa;
  --gold: #cdae6f;

  --portal-core: #efe9ff;
  --portal-mid: #7c65d6;
  --portal-edge: #2a2145;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;

  --maxw: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 700px) {
  .container { padding: 0 40px; }
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-heading {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0.5em 0 0.6em;
  color: var(--text);
}

.section-lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 62ch;
}

section {
  position: relative;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #b6a4f5, var(--violet) 55%, #6f5bc4);
  color: #0a0812;
  box-shadow: 0 10px 30px -8px rgba(139, 122, 232, 0.55);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -6px rgba(139, 122, 232, 0.7);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--violet-soft);
  color: var(--violet-soft);
  transform: translateY(-2px);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 7, 12, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text);
}

.wordmark span {
  color: var(--violet-soft);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 36px;
}

.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}

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

@media (min-width: 860px) {
  .site-nav { display: flex; }
}

.header-cta {
  padding: 11px 22px;
  font-size: 0.78rem;
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(124, 101, 214, 0.16), transparent 70%),
    var(--bg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-wordmark {
  font-size: clamp(2.6rem, 9vw, 5.6rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  margin: 22px 0 28px;
  background: linear-gradient(180deg, #ffffff 0%, #ded6f7 55%, #9987e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(139, 122, 232, 0.25);
}

.hero-headline {
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0 0 22px;
  max-width: 16ch;
  color: var(--text);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-tags {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 42px;
}

/* Portal visual */

.portal-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.portal {
  position: relative;
  width: min(72vw, 560px);
  height: min(72vw, 560px);
  max-height: 620px;
}

.portal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.portal-ring--2 {
  inset: 9%;
  border-color: rgba(167, 139, 250, 0.16);
}

.portal-ring--3 {
  inset: 20%;
  border-color: rgba(167, 139, 250, 0.1);
}

.portal-glow {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--portal-core) 0%, var(--portal-mid) 34%, var(--portal-edge) 68%, transparent 78%);
  filter: blur(6px);
  opacity: 0.85;
  animation: portal-pulse 7s ease-in-out infinite;
}

.portal-rim {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  box-shadow: 0 0 90px 10px rgba(139, 122, 232, 0.35);
}

@keyframes portal-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.02); }
}

.portal-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--portal-core);
  opacity: 0;
  animation: particle-drift 9s ease-in-out infinite;
}

@keyframes particle-drift {
  0% { opacity: 0; transform: translateY(0); }
  15% { opacity: 0.8; }
  85% { opacity: 0.5; }
  100% { opacity: 0; transform: translateY(-70px); }
}

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

.about {
  padding: 120px 0 100px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.about-inner {
  max-width: 740px;
}

.about p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin: 0 0 1.2em;
}

.about p:last-child {
  color: var(--text);
}

/* ---------- What we develop ---------- */

.develop {
  padding: 110px 0;
  background: var(--bg);
}

.develop-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 760px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: linear-gradient(180deg, var(--bg-raised), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}

.card-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 22px;
  background: radial-gradient(circle at 40% 35%, var(--portal-core), var(--portal-mid) 55%, transparent 80%);
  box-shadow: 0 0 24px 2px rgba(139, 122, 232, 0.35);
}

.card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 14px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 0;
}

/* ---------- Philosophy ---------- */

.philosophy {
  position: relative;
  padding: 150px 0;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(124, 101, 214, 0.14), transparent 72%),
    var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}

.philosophy-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.philosophy-statement {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  line-height: 1.28;
  letter-spacing: 0.005em;
  margin: 0 0 30px;
  background: linear-gradient(180deg, #ffffff, #cabdf2 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.philosophy-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0 auto;
}

.philosophy-divider {
  width: 64px;
  height: 1px;
  margin: 34px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Business ---------- */

.business {
  padding: 120px 0;
  background: var(--bg);
  text-align: center;
}

.business-inner {
  max-width: 680px;
  margin: 0 auto;
}

.business p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin: 0 0 1.3em;
}

.business-actions {
  margin-top: 38px;
}

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

.contact {
  padding: 120px 0 100px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.contact-panel {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-raised), var(--bg-alt));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 34px;
}

.contact-role {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin: 14px 0 4px;
}

.contact-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 10px;
}

.contact-email {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--violet-soft);
  border-bottom: 1px solid rgba(167, 139, 250, 0.35);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact-email:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.contact-legal {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.85rem;
}

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

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

.footer-brand .wordmark {
  display: block;
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 34ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--violet-soft);
}

.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-legal p {
  margin: 0 0 6px;
}
