/* =========================================
   PIXIAPP - MODERN KINETIC THEME
   ========================================= */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap");

/* === CSS Variables === */
:root {
  --k-bg: #0a0a0a;
  --k-surface: #141414;
  --k-surface-hover: #1f1f1f;
  --k-text: #ffffff;
  --k-text-muted: #888888;
  --k-gold: #e6c99a;
  --k-gold-dark: #d4af37;
  --grad-gold: linear-gradient(135deg, var(--k-gold-dark) 0%, var(--k-gold) 100%);
  --logo-left-offset: 0px;
  --logo-right-offset: -3px;
  --logo-left-rotate: 0deg;
  --logo-right-rotate: 0deg;

  /* Vibrant Gradients */
  --grad-sunset: linear-gradient(135deg, #ff512f 0%, #dd2476 100%);
  --grad-ocean: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
  --grad-purple: linear-gradient(135deg, #da22ff 0%, #9733ee 100%);
  --grad-prism: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 80%, rgba(255, 255, 255, 0.4));

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;

  --section-gap: 8rem;
  --section-padding: var(--section-gap) 0;
}

/* === Base Styles === */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--k-bg);
  color: var(--k-text);
  background-color: var(--k-bg);
  color: var(--k-text);
  font-family: "Cormorant Garamond", serif;
  overflow-x: hidden;
}

/* Menu overlay removed from pixiapp (menu-specific rules intentionally omitted) */

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

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

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

.container {
  width: min(90%, 1000px);
  margin-inline: auto;
  position: relative;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.1;
  margin-top: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(180deg, #fff, #666);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  color: var(--k-text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === NAV / HEADER === */
/* All managed by common-menu.css */

/* === HERO: FROSTED GLASS KINETIC === */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  z-index: 2;
  position: relative;
  text-align: left;
}

.hero-text-col {
  flex: 1;
}

.hero-visual-col {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-main-visual {
  max-width: 100%;
  height: auto;
  max-height: 80vh;
  filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.1));
  animation: floatVisual 8s ease-in-out infinite;
}

@keyframes floatVisual {

  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

@media (max-width: 900px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
}

.hero-tag {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--k-text-muted);
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title span {
  display: block;
}

.hero-desc {
  font-size: 1.2rem;
  color: var(--k-text-muted);
  max-width: 500px;
  max-width: 500px;
  margin: 0 0 3rem;
}

.hero-btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: #fff;
  color: #000;
  font-weight: 600;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* Frosted Shapes */
.frosted-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  perspective: 1000px;
}

.shape {
  position: absolute;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.shape-1 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  top: 20%;
  left: 15%;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 200px;
  height: 200px;
  border-radius: 30px;
  bottom: 20%;
  right: 15%;
  transform: rotate(45deg);
  animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  top: 50%;
  right: 30%;
  background: linear-gradient(135deg, rgba(255, 81, 47, 0.1), rgba(221, 36, 118, 0.1));
  animation: float 12s ease-in-out infinite 2s;
}

@keyframes float {

  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

/* === WHY PIXIAPP: CREATIVE BENTO GRID === */
.why-section {
  padding: var(--section-padding);
}

.widget-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 220px);
  gap: 1.5rem;
  /* max-width: 1100px; REMOVED, using split container now */
  /* margin: 0 auto; */
  position: relative;
}

.why-container-split {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: min(90%, 1200px);
  margin-inline: auto;
}

.why-visual-side {
  flex: 1;
  display: flex;
  justify-content: center;
}

.why-content-side {
  flex: 1.5;
}

.why-visual-img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

@media (max-width: 1100px) {
  .why-container-split {
    flex-direction: column;
  }

  .why-visual-side {
    margin-bottom: 2rem;
  }
}

/* === WHY PIXIAPP: SIMPLE BENTO GRID === */
.why-section {
  padding: var(--section-padding);
}

.widget-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Simple 3-column grid */
  grid-auto-rows: 240px;
  /* Fixed row height */
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.widget-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.widget-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.widget-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.widget-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}

/* Simple Grid Spans */

/* 1. Large Card (Top Left) */
.widget-1 {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

/* 2. Tall Card (Right) */
.widget-2 {
  grid-row: span 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

/* 4. Wide Card (Bottom Center) */
.widget-4 {
  grid-column: span 1;
}

/* 5. Standard Card */
.widget-5 {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(33, 147, 176, 0.1), rgba(109, 213, 237, 0.05));
  border-color: rgba(33, 147, 176, 0.3);
}

/* Responsive */
@media (max-width: 900px) {
  .widget-board {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .widget-1, .widget-2, .widget-3, .widget-4, .widget-5 {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* === CAPABILITIES: PRISMATIC GLASS CARDS === */
.services-section {
  padding: var(--section-padding);
  perspective: 2000px;
  /* Deep perspective for tilt */
}

/* Reduce visual gap specifically between Why section and Capabilities */
.pixiapp-page .why-section {
  padding-bottom: calc(var(--section-gap) / 2);
}

.pixiapp-page .services-section {
  padding-top: calc(var(--section-gap) / 2);
}

.prism-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.prism-card {
  position: relative;
  height: 350px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
  /* Smooth tilt */
  overflow: hidden;
}

/* Prismatic Border Effect */
.prism-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--grad-gold);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.prism-card:hover::before {
  opacity: 1;
  background: var(--grad-gold);
}

/* Glare Effect */
.prism-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.15), transparent 40%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.prism-card:hover .prism-glare {
  opacity: 1;
}

.prism-content {
  transform: translateZ(30px);
  /* Pop out text */
  z-index: 3;
}

.prism-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateZ(50px);
  /* Pop out icon more */
}

.prism-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.prism-card p {
  color: var(--k-text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* === SAAS PRODUCTS: STACK === */
.stack-section {
  padding: var(--section-padding);
  position: relative;
}

.stack-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  height: 200vh;
  /* Scroll space */
}

.stack-card {
  position: sticky;
  top: 150px;
  background: var(--k-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 2rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  transform-origin: top center;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stack-card h3 {
  z-index: 4;
  overflow: hidden;
  /* ensure pseudo elements don't overflow */
  margin-bottom: 0.5rem;
}

.stack-card p {
  color: var(--k-text-muted);
}

.stack-number {
  font-size: 4rem;
  font-weight: 800;
  /* Gold gradient for the stack numbers to match theme */
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--k-gold);
  /* fallback */
}

/* === PROCESS: PIPELINE === */
.process-section {
  padding: var(--section-padding);
}

.pipeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 50px;
}

.pipeline-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.pipeline-fill {

  /* menu overlay rules removed */
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0%;
  background: var(--grad-gold);
  border-radius: 2px;
  box-shadow: 0 0 15px var(--k-gold);
}

.process-step {
  margin-bottom: 6rem;
  position: relative;
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

.process-step.active {
  opacity: 1;
}

.step-dot {
  position: absolute;
  left: -58px;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--k-bg);
  border: 2px solid #fff;
  border-radius: 50%;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.process-step.active .step-dot {
  background: var(--k-gold);
  border-color: var(--k-gold);
  box-shadow: 0 0 20px var(--k-gold);
}

.process-step h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.process-step p {
  font-size: 1.1rem;
  color: var(--k-text-muted);
  line-height: 1.6;
}

/* === CTA === */
.cta-section {
  padding: 10rem 0;
  text-align: center;
  background: radial-gradient(circle at center, rgba(255, 81, 47, 0.1), transparent 70%);
}

.cta-title {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.cta-btn-big {
  display: inline-block;
  padding: 1.5rem 4rem;
  background: #fff;
  color: #000;
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.cta-btn-big:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
}

/* === FOOTER === */
footer {
  padding: 4rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links a {
  margin: 0 1rem;
  color: var(--k-text-muted);
}

.footer-links a:hover {
  color: #fff;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .widget-board {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    display: grid;
    gap: 1rem;
  }

  .widget-card {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

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

  .stack-card {
    padding: 2rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .stack-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
  }

  /* Keep reduced spacing between Why and Capabilities on smaller screens too */
  .pixiapp-page .why-section {
    padding-bottom: calc(var(--section-gap) / 2);
  }

  .pixiapp-page .services-section {
    padding-top: calc(var(--section-gap) / 2 + 1.5rem);
  }
}

/* Menu styles removed for PixiApp */

/* === Navbar Controls & Theme Toggle === */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 40px;
}

.theme-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--k-text);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.theme-toggle-btn:hover {
  color: var(--k-gold);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .nav-controls {
    gap: 20px;
  }
}

/* === LIGHT MODE STYLES === */
body.light-mode {
  background-color: #f9f9f9;
  color: #1a1a1a;
}

body.light-mode {
  --k-text: #1a1a1a;
  --k-text-muted: #555;
  --k-surface: #ffffff;
  --k-surface-hover: #f0f0f0;
}

/* Header & Nav Light */
body.light-mode header .nav-logo img {
  filter: invert(1);
}

body.light-mode .social-icon, body.light-mode .theme-toggle-btn {
  color: #1a1a1a;
}

body.light-mode .social-icon:hover, body.light-mode .theme-toggle-btn:hover {
  color: var(--k-gold);
}

body.light-mode .logo-container .logo-half {
  filter: invert(1);
}

body.light-mode .logo-menu-border circle {
  stroke: rgba(0, 0, 0, 0.2);
}

body.light-mode .logo-menu-glow {
  stroke: #000;
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.5));
}

/* Hero Section Light */
body.light-mode .hero-section {
  background: #f9f9f9;
}

body.light-mode .hero-title {
  color: #000;
}

body.light-mode .hero-desc {
  color: #444;
}

body.light-mode .hero-btn {
  background: #1a1a1a;
  color: #fff;
}

body.light-mode .hero-btn:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

body.light-mode .shape {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.01) 100%);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Why Section / Widget Cards Light */
body.light-mode .why-section {
  background: #f9f9f9;
}

body.light-mode .section-title {
  background: linear-gradient(180deg, #000, #666);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .section-desc {
  color: #555;
}

body.light-mode .widget-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.light-mode .widget-card:hover {
  background: #fafafa;
  border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .widget-card h3 {
  color: #000;
}

body.light-mode .widget-card p {
  color: #555;
}

body.light-mode .widget-icon {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
}

/* Services / Prism Cards Light */
body.light-mode .services-section {
  background: #f0f0f0;
}

body.light-mode .prism-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .prism-card h3 {
  color: #000;
}

body.light-mode .prism-card p {
  color: #555;
}

body.light-mode .prism-icon {
  background: linear-gradient(135deg, #333, #666);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Stack Section Light */
body.light-mode .stack-section {
  background: #f9f9f9;
}

body.light-mode .stack-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
}

body.light-mode .stack-card h3 {
  color: #000;
}

body.light-mode .stack-card p {
  color: #555;
}

/* Process Section Light */
body.light-mode .process-section {
  background: #f9f9f9;
}

body.light-mode .pipeline-line {
  background: rgba(0, 0, 0, 0.1);
}

body.light-mode .process-step h3 {
  color: #000;
}

body.light-mode .process-step p {
  color: #555;
}

body.light-mode .step-dot {
  background: #fff;
  border-color: #333;
}

body.light-mode .process-step.active .step-dot {
  background: var(--k-gold);
  border-color: var(--k-gold);
}

/* CTA Section Light */
body.light-mode .cta-section {
  background: #ffffff;
}

body.light-mode .cta-title {
  color: #000;
}

body.light-mode .cta-btn-big {
  background: #1a1a1a;
  color: #fff;
}

body.light-mode .cta-btn-big:hover {
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
}

/* Footer Light */
body.light-mode footer {
  background: #f0f0f0;
  border-top-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .footer-links a {
  color: #555;
}

body.light-mode .footer-links a:hover {
  color: #000;
}

/* === FOOTER STYLES === */
footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: auto;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--k-text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a:hover {
  color: var(--k-gold);
}