/* The first page (portal.html): the 3D scene of the rig (portal3d.js), the systems and the company. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.pt3 { margin: 0; background: #050b1a; color: #e7edfb; font-family: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif; font-size: 15px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
.pt3 a { color: inherit; }
.pt3-in { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* the hero: the scene behind, the text and the cards over it */
.pt3-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  background: radial-gradient(120% 80% at 30% 72%, #3a2a55 0%, #0b1d44 46%, #050b1a 100%); }
html:not(.has-3d) .pt3-hero { background: #0b1d44 url("img/hero-rig.jpg") 30% 45% / cover no-repeat; }
#rig3d { position: absolute; inset: 0; z-index: -2; display: block; width: 100%; height: 100%; }
.pt3-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to left, rgba(5, 11, 26, .86) 0%, rgba(5, 11, 26, .5) 30%, rgba(5, 11, 26, 0) 58%),
    linear-gradient(to top, rgba(5, 11, 26, .97) 0%, rgba(5, 11, 26, .55) 24%, rgba(5, 11, 26, 0) 46%),
    radial-gradient(140% 110% at 40% 40%, transparent 58%, rgba(0, 0, 0, .5) 100%); }

.pt3-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; position: relative; z-index: 1; }
.pt3-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.pt3-logo { display: grid; place-items: center; padding: 6px 9px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.pt3-logo img { display: block; height: 48px; width: auto; }
.pt3-brand b { display: block; color: #fff; font-size: 17px; line-height: 1.5; }
.pt3-brand small { display: block; color: #9fb6e3; font-size: 12.5px; }
.pt3-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #c6d4f2; }
.pt3-user form { margin: 0; }
.pt3-user button { font: inherit; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); border-radius: 9px; padding: 3px 14px; cursor: pointer; }
.pt3-user button:hover { background: rgba(255, 255, 255, .16); }

.pt3-intro { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 36px; padding-bottom: 190px; position: relative; z-index: 1; }
.pt3-intro > * { max-width: 620px; }
.pt3-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 5px 15px; border-radius: 999px; font-size: 13px; color: #dbe6ff;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pt3-kicker i { width: 8px; height: 8px; border-radius: 50%; background: #ff5a4f; animation: pt3-pulse 2.2s infinite; }
@keyframes pt3-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 79, .65); } 70% { box-shadow: 0 0 0 12px rgba(255, 90, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 90, 79, 0); } }
.pt3 h1 { margin: 18px 0 14px; color: #fff; font-size: clamp(30px, 4.3vw, 56px); font-weight: 700; line-height: 1.4; text-shadow: 0 6px 40px rgba(0, 0, 0, .45); }
.pt3-grad { background: linear-gradient(100deg, #ffffff 0%, #a9d3ff 48%, #ff9d86 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pt3-lead { margin: 0; color: #c6d4f2; font-size: clamp(15px, 1.3vw, 18px); line-height: 2.05; max-width: 560px; }

/* the three systems: glass cards that rise over the bottom of the scene and lean towards the pointer (portal3d.js) */
.pt3-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: -150px; padding-bottom: 10px; position: relative; z-index: 2; }
.pt3-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 22px; border-radius: 20px; color: #e7edfb; text-decoration: none;
  background: linear-gradient(155deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035)); border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); box-shadow: 0 22px 50px rgba(0, 0, 0, .38);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s, box-shadow .3s; will-change: transform; }
.pt3-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .16), transparent 46%); }
.pt3-card:hover::before { opacity: 1; }
.pt3-card.live::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #3d8bff, #ff5a4f); }
.pt3-card.live:hover { text-decoration: none; border-color: rgba(255, 150, 130, .45);
  box-shadow: 0 28px 64px rgba(0, 0, 0, .48), 0 0 46px rgba(61, 139, 255, .2); }
.pt3-card:focus-visible { outline: 2px solid #9fd0ff; outline-offset: 3px; }
.pt3-num { position: absolute; top: 16px; left: 20px; color: rgba(255, 255, 255, .08); font-size: 46px; font-weight: 700; line-height: 1; }
.pt3-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 15px; color: #bfe0ff;
  background: linear-gradient(145deg, rgba(61, 139, 255, .3), rgba(61, 139, 255, .08)); border: 1px solid rgba(159, 208, 255, .26); }
.pt3-icon svg { width: 32px; height: 32px; }
.pt3-card h2 { margin: 0; color: #fff; font-size: 18px; line-height: 1.65; }
.pt3-card p { flex: 1; margin: 0; color: #b9c8e8; font-size: 13.5px; line-height: 1.95; }
.pt3-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 18px; border-radius: 12px; color: #fff;
  font-size: 14px; font-weight: 600; background: linear-gradient(135deg, #2f6fe8, #1b3f8f); box-shadow: 0 10px 24px rgba(44, 106, 230, .35); transition: transform .25s, box-shadow .25s; }
.pt3-go b { font-weight: 400; transition: transform .25s; }
.pt3-card.live:hover .pt3-go { box-shadow: 0 12px 30px rgba(44, 106, 230, .55); }
.pt3-card.live:hover .pt3-go b { transform: translateX(-4px); }
.pt3-card.soon { color: #aebbd8; }
.pt3-card.soon h2 { color: #d3dcf0; }
.pt3-card.soon .pt3-icon { color: #8fa2c9; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.pt3-soon { align-self: flex-start; margin-top: 12px; padding: 3px 13px; border-radius: 999px; font-size: 12.5px; color: #ffd08a;
  background: rgba(255, 190, 90, .12); border: 1px solid rgba(255, 190, 90, .35); }

/* the company */
.pt3-main { position: relative; padding: 80px 0 84px; background: linear-gradient(#050b1a, #081431 45%, #050b1a); }
.pt3-about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.pt3-eyebrow { margin: 0 0 6px; color: #ff8a76; font-size: 13px; font-weight: 600; }
.pt3-about h2 { margin: 0 0 14px; color: #fff; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.5; }
.pt3-about p { margin: 0 0 18px; color: #b9c8e8; font-size: 15px; line-height: 2.1; }
.pt3-services { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; padding: 0; list-style: none; }
.pt3-services li { padding: 6px 14px; border-radius: 12px; color: #dbe6ff; font-size: 13.5px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.pt3-more { color: #9fd0ff; font-weight: 600; text-decoration: none; }
.pt3-more:hover { text-decoration: underline; }
.pt3-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1);
  background: url("img/hero-rig.jpg") 35% 50% / cover; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.pt3-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 11, 26, .55), transparent 45%); }

/* sections that rise into view (portal3d.js adds .reveal-on to the page and .in to each section) */
.reveal-on .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.reveal-on .reveal.in { opacity: 1; transform: none; }

.pt3-foot { color: #9fb0d4; font-size: 13px; background: #03070f; border-top: 1px solid rgba(255, 255, 255, .06); }
.pt3-foot .pt3-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 26px; padding-bottom: 26px; }
.pt3-foot img { height: 58px; width: auto; padding: 5px 9px; border-radius: 10px; background: #fff; }
.pt3-foot a { color: #dbe6ff; }
.pt3-contact { display: grid; gap: 2px; }
.pt3-copy { margin-inline-start: auto; color: #6f84b3; font-size: 12px; }

@media (max-width: 960px) {
  .pt3-cards, .pt3-about { grid-template-columns: minmax(0, 1fr); }
  .pt3-hero { min-height: 0; }
  .pt3-intro { flex: none; padding-top: 38vh; padding-bottom: 90px; }
  .pt3-cards { margin-top: -60px; }
  .pt3-shade { background: linear-gradient(to top, rgba(5, 11, 26, .97) 0%, rgba(5, 11, 26, .72) 48%, rgba(5, 11, 26, .05) 78%),
                           radial-gradient(140% 110% at 50% 30%, transparent 58%, rgba(0, 0, 0, .5) 100%); }
}
@media (max-width: 520px) {
  .pt3-in { padding-left: 16px; padding-right: 16px; }
  .pt3-logo img { height: 40px; }
  .pt3-brand b { font-size: 15px; }
  .pt3-copy { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pt3-kicker i { animation: none; }
  .pt3-card, .pt3-go, .pt3-go b, .reveal-on .reveal { transition: none; }
}
