/* Norphex — One Intelligence Platform */
:root {
  --bg: #0b1623;
  --surface: #0f1e30;
  --text: #eaf0f6;
  --muted: #a9b4c3;
  --primary: #5dd1ff;
  --primary-15: rgba(93, 209, 255, 0.15);
  --accent: linear-gradient(90deg, #5dd1ff, #9a8cff 50%, #ff7ec3);
  --shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Light theme */
:root.light {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --text: #0b1623;
  --muted: #4b5a6b;
  --primary: #006dff;
  --primary-15: rgba(0, 109, 255, 0.12);
  --accent: linear-gradient(90deg, #006dff, #8a5cff 50%, #ff4fbf);
  --shadow: 0 10px 24px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.animated {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade {
  opacity: 0;
}

.animate-fade.animated {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-left {
  opacity: 0;
}

.animate-slide-left.animated {
  animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-right {
  opacity: 0;
}

.animate-slide-right.animated {
  animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale {
  opacity: 0;
}

.animate-scale.animated {
  animation: scaleIn 0.8s ease-out forwards;
}

.container {
  width: min(1100px, 100% - 3rem);
  margin: 0 auto;
}
.container.narrow { width: min(850px, 100% - 3rem); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--bg) 40%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--surface), transparent 80%);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); font-weight: 700; }
.brand-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 8px; background: var(--accent); color: #0b1623; font-weight: 800;
  box-shadow: var(--shadow);
}
.brand-name { letter-spacing: 0.4px; }
.nav { display: flex; align-items: center; gap: 1rem; }
.nav a { 
  color: var(--text); 
  text-decoration: none; 
  padding: 0.5rem 0.6rem; 
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}
.nav a:hover { 
  background: var(--primary-15);
  transform: translateY(-2px);
}
.nav a:hover::after {
  width: 70%;
}
.theme-toggle { 
  border: none; 
  background: transparent; 
  color: var(--text); 
  font-size: 1.05rem; 
  padding: 0.5rem; 
  border-radius: 8px; 
  cursor: pointer;
  transition: all 0.3s ease;
}
.theme-toggle:hover { 
  background: var(--primary-15);
  transform: rotate(15deg) scale(1.1);
}
.theme-toggle:active {
  transform: rotate(180deg) scale(0.95);
}
.logo-img { height: 42px; width: auto; }

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 100;
}
.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero */
.section { padding: 4.5rem 0; }
.hero { 
  margin-top: -80px;
  padding-top: calc(7rem + 80px);
  padding-bottom: 7rem;
  background:
  radial-gradient(1000px 800px at 10% -10%, color-mix(in oklab, var(--primary), transparent 70%), transparent 55%),
  radial-gradient(800px 800px at 95% 10%, color-mix(in oklab, #ff7ec3, transparent 75%), transparent 60%);
}
.hero-inner { text-align: center; }
.headline { 
  font-size: clamp(1.9rem, 3vw + 1rem, 3rem); 
  line-height: 1.15; 
  margin: 0 0 1rem;
  animation: fadeInUp 1s ease-out;
}
.accent { 
  background: var(--accent); 
  -webkit-background-clip: text; 
  background-clip: text; 
  color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}
.subtitle { 
  color: var(--muted); 
  font-size: 1.1rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.hero-cta { 
  display: flex; 
  gap: 0.8rem; 
  justify-content: center; 
  margin-top: 2rem; 
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn { 
  display: inline-block; 
  padding: 0.8rem 1.1rem; 
  border-radius: 12px; 
  text-decoration: none; 
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}
.btn:hover::before {
  width: 300px;
  height: 300px;
}
.btn.primary { background: var(--primary); color: #06101b; box-shadow: 0 4px 12px rgba(93, 209, 255, 0.3); }
.btn.ghost { color: var(--text); border: 1px solid color-mix(in oklab, var(--text), transparent 70%); }
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn.primary:hover { box-shadow: 0 12px 28px rgba(93, 209, 255, 0.5); }

/* Intro */
.intro { 
  background: radial-gradient(800px 600px at 90% 50%, color-mix(in oklab, #ff7ec3, transparent 92%), transparent);
}
.intro h2, .philosophy h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.2rem); margin: 0 0 0.5rem; }
.intro p, .philosophy p { font-size: 1.05rem; }

/* Brand sections */
.brands-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  max-width: 860px;
  margin: 0 auto;
}
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  padding: 2rem 0.5rem;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.brand-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(93, 209, 255, 0.1), rgba(255, 126, 195, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.brand-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.brand-card:hover::after {
  opacity: 1;
}
.brand-icon { 
  font-size: clamp(2.2rem, 4vw + 1rem, 3.2rem); 
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
  transition: transform 0.4s ease;
}
.brand-card:hover .brand-icon {
  transform: scale(1.1) rotate(5deg);
}
.brand-logo { 
  width: clamp(80px, 12vw, 120px); 
  height: auto; 
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
  transition: transform 0.4s ease;
}
.brand-card:hover .brand-logo {
  transform: scale(1.1);

  grid-template-columns: 1fr;
  gap: 2.2rem;
  max-width: 860px;
  margin: 0 auto;
}
.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  padding: 2rem 0.5rem;
  border-radius: 20px;
  transition: transform 0.3s ease;
}
.brand-card:nth-child(1) {
  background: radial-gradient(600px 500px at 50% 20%, color-mix(in oklab, var(--primary), transparent 94%), transparent);
}
.brand-card:nth-child(2) {
  background: radial-gradient(600px 500px at 50% 20%, color-mix(in oklab, #ff7ec3, transparent 94%), transparent);
}
.brand-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.brand-card:hover::after {
  opacity: 1;
}
.brand-icon { 
  font-size: clamp(2.2rem, 4vw + 1rem, 3.2rem); 
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
  transition: transform 0.4s ease;
}
.brand-card:hover .brand-icon {
  transform: scale(1.1) rotate(5deg);
}
.brand-logo { 
  width: clamp(80px, 12vw, 120px); 
  height: auto; 
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
  transition: transform 0.4s ease;
}
.brand-card:hover .brand-logo {
  transform: scale(1.1);
}
.brand-content h3 { font-size: 1.6rem; margin: 0 0 0.3rem; }
.brand .lead { color: var(--muted); font-weight: 500; }

/* Philosophy */
.philosophy {
  background: radial-gradient(800px 600px at 10% 50%, color-mix(in oklab, var(--primary), transparent 92%), transparent);
}

/* Team */
.team {
  background: radial-gradient(800px 600px at 50% 30%, color-mix(in oklab, #ff7ec3, transparent 92%), transparent);
}
.team h2 {
  font-size: clamp(1.9rem, 3vw + 1rem, 2.7rem);
}
.team > p.center {
  font-size: 1.05rem;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.team-member {
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-member:hover {
  transform: translateY(-6px);
}
.member-photo {
  width: 65%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid color-mix(in oklab, var(--primary), transparent 50%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--surface);
  position: relative;
  margin: 0 auto;
}
.team-member:hover .member-photo {
  border-color: var(--primary);
  box-shadow: 0 16px 40px color-mix(in oklab, #ff7ec3, transparent 60%);
  transform: scale(1.05) rotate(3deg);
}
.member-name {
  margin: 0.7rem 0 0.2rem;
  font-size: 1rem;
  font-weight: 600;
}
.member-title {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
}
.team-member {
  text-align: center;
  transition: transform 0.3s ease;
}
.team-member:hover {
  transform: translateY(-8px);
}
.member-photo {
  width: 70%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid color-mix(in oklab, var(--primary), transparent 50%);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: var(--surface);
}
.team-member:hover .member-photo {
  border-color: var(--primary);
  /* box-shadow: 0 12px 32px rgba(93, 209, 255, 0.4); */
  box-shadow: 0 12px 32px color-mix(in oklab, #ff7ec3, transparent 72%);
}
.member-name {
  margin: 1rem 0 0.3rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.member-title {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Summary */
.summary .cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.5rem; }
.card { 
  background: color-mix(in oklab, var(--surface), transparent 60%); 
  border: 1px solid color-mix(in oklab, var(--surface), transparent 40%); 
  border-radius: 16px; 
  padding: 1.2rem; 
  box-shadow: var(--shadow);
  position: relative;
  overflow: hiall 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease;
  background-size: 200% 100%;
  animation: gradientSlide 3s linear infinite;
}
@keyframes gradientSlide {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 200% 0%;
  }
}.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.card:hover::before {
  opacity: 1;
}
.card-icon { font-size: 1.7rem; }
.card-logo { width: 60px; height: auto; margin-bottom: 0.5rem; }
.card h3 { margin: 0.6rem 0 0.3rem; }

/* Footer */
.site-footer { border-top: 1px solid color-mix(in oklab, var(--surface), transparent 50%); padding: 2rem 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.footer-links { display: inline-flex; gap: 1rem; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-note { color: var(--muted); text-align: right; }

/* Contact */
.contact {
  background: radial-gradient(800px 600px at 50% 30%, color-mix(in oklab, #9a8cff, transparent 92%), transparent);
}
.contact h2 {
  font-size: clamp(1.9rem, 3vw + 1rem, 2.7rem);
}
.contact .contact-box {
  margin: 1rem auto 0; padding: 1.5rem; border-radius: 16px;
  background: color-mix(in oklab, var(--surface), transparent 60%);
  border: 1px solid color-mix(in oklab, var(--surface), transparent 40%);
  box-shadow: var(--shadow); text-align: center;
}

/* License */
.license {
  background: radial-gradient(800px 600px at 50% 50%, color-mix(in oklab, var(--primary), transparent 93%), transparent);
}
.license h2 {
  font-size: clamp(1.9rem, 3vw + 1rem, 2.7rem);
}
.license .license-img { display: block; width: 70%; max-width: 100%; height: auto; border: 0; margin: 0 auto; }

/* News */
.news {
  background: radial-gradient(800px 600px at 30% 50%, color-mix(in oklab, #9a8cff, transparent 92%), transparent);
}
.news h2 {
  font-size: clamp(1.9rem, 3vw + 1rem, 2.7rem);
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.news-card {
  background: color-mix(in oklab, var(--surface), transparent 60%);
  border: 1px solid color-mix(in oklab, var(--surface), transparent 40%);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}
.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.news-card:hover::before {
  transform: scaleX(1);
}
.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border-color: color-mix(in oklab, var(--primary), transparent 60%);
}
.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--surface);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-card:hover .news-card-image {
  transform: scale(1.08);
}
.news-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.8rem;
  line-height: 1.3;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.news-card {
  background: color-mix(in oklab, var(--surface), transparent 60%);
  border: 1px solid color-mix(in oklab, var(--surface), transparent 40%);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}
.news-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--surface);
}
.news-card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-card-title {
  font-size: 1.1rem;
}
.news-card-excerpt {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
  flex: 1;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.news-card-link:hover {
  color: #ff7ec3;
  gap: 0.6rem;
}

/* Responsive */
@media (min-width: 761px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 280px;
    height: 100vh;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 1.5rem 2rem;
    gap: 1rem;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    z-index: 99;
    border-top: 1px solid color-mix(in oklab, var(--primary), transparent 80%);
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav a {
    width: 100%;
    padding: 0.7rem 0.5rem;
    font-size: 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
  }
  
  .nav a:active {
    background: var(--primary-15);
  }
  
  .theme-toggle {
    width: 100%;
    padding: 0.7rem 0.5rem;
    justify-content: flex-start;
    margin-top: auto;
  }
  
  .brand-inner { grid-template-columns: 60px 1fr; }
  .summary .cards { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .news-grid { grid-template-columns: 1fr; }
  .footer-inner { 
    grid-template-columns: 1fr; 
    text-align: center;
    gap: 1rem;
  }
  .footer-brand {
    justify-content: center;
  }
  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  .footer-note { text-align: center; }
  .license .license-img { width: 100%; }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
