/* ============================================
   NEBYSS INNOVATION â€” Global Styles
   Dark theme with magenta/blue gradient accents
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400&display=swap');

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

:root {
  --bg: #0A0A0A;
  --bg-alt: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1C1C1C;
  --text: #E8E8E8;
  --text-muted: #A0A0A0;
  --text-light: #555555;
  --accent-magenta: #7c43b4;
  --accent-blue: #4158D0;
  --accent-cyan: #2EA0D4;
  --gradient: linear-gradient(135deg, var(--accent-blue), var(--accent-magenta), var(--accent-cyan));
  --gradient-h: linear-gradient(90deg, var(--accent-blue), var(--accent-magenta), var(--accent-cyan));
  --border: #1E1E1E;
  --border-light: #2A2A2A;
  --white: #FFFFFF;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --max-width: 1140px;
  --nav-height: 72px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.0625rem;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

p { max-width: 680px; }

.label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; }

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
}

nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-h);
  opacity: 0.5;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-logo span {
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 2px;
  background: var(--gradient-h);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.85rem 1.8rem;
  border-radius: 6px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  background-size: 200% 200%;
  animation: gradientShift 6s ease infinite;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(200, 80, 192, 0.3);
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--white);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
}

.hero-content {
    max-width: 720px;
    margin-left: 100px;
  }
.hero h1 { margin-bottom: 1.5rem; }

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(200, 80, 192, 0.1) 0%, rgba(65, 88, 208, 0.07) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

.hero > * { position: relative; z-index: 1; }

/* --- Grids --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

.divider {
  width: 48px; height: 2px;
  background: var(--gradient-h);
  margin: 2rem 0;
}

/* --- Animations --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.8s ease forwards; }
.fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-up-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-up-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* --- Principles --- */
.principle {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}
.principle:last-child { border-bottom: none; }

.principle h3 {
  margin-bottom: 0.75rem;
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.principle p { color: var(--text-muted); }

/* --- Home Principles --- */
.home-principle h3 {
  margin-bottom: 0.75rem;
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.home-principle p { color: var(--text-muted); }

/* --- Problem Items --- */
.problem-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.5rem;
  align-items: start;
}
.problem-item:last-child { border-bottom: none; }

.problem-number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-top: 0.2rem;
}

.problem-item h3 { margin-bottom: 0.5rem; }
.problem-item p { color: var(--text-muted); font-size: 1rem; }

/* --- Domain Cards --- */
.domain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.domain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-h);
  opacity: 0.4;
}

.domain-card:hover {
  border-color: var(--border-light);
  background: var(--bg-card-hover);
}

.domain-card .label { margin-bottom: 1rem; display: block; }
.domain-card h3 { font-size: 1.4rem; margin-bottom: 1.25rem; }
.domain-card p { color: var(--text-muted); margin-bottom: 1.5rem; }

.domain-card .who {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 1.5rem;
}

/* --- Layer Cards --- */
.layer-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.layer-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-h);
}

.layer-card h3 { margin-bottom: 1rem; }
.layer-card p { color: var(--text-muted); font-size: 0.95rem; }

/* --- Belief Items --- */
.belief-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.belief-item:last-child { border-bottom: none; }

.belief-item strong {
  font-family: var(--font-display);
  font-weight: 500;
  display: block;
  margin-bottom: 0.35rem;
  color: var(--white);
}
.belief-item p { color: var(--text-muted); font-size: 1rem; }

/* --- Contact Form --- */
.contact-form { max-width: 560px; }
.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent-magenta); }

.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select option { background: var(--bg-card); color: var(--text); }

/* --- Turn Section --- */
.turn-section {
  text-align: center;
  padding: 5rem 0;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.turn-section::before,
.turn-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--gradient-h);
  opacity: 0.3;
}
.turn-section::before { top: 0; }
.turn-section::after { bottom: 0; }

.turn-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- Closing Quote --- */
.closing-quote {
  text-align: center;
  padding: 5rem 0;
  background: var(--bg-alt);
}

.closing-quote p {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Status Badge --- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-magenta);
  background: rgba(200, 80, 192, 0.08);
  border: 1px solid rgba(200, 80, 192, 0.18);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.status-badge .dot {
  width: 6px; height: 6px;
  background: var(--accent-magenta);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

.cta-section p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}

.footer-logo span {
  background: var(--gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--text-light);
  transition: color 0.2s;
}

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

.footer-copy {
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--text-light);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  section { padding: 4rem 0; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 4rem;
  }
  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .problem-item { grid-template-columns: 1fr; gap: 0.5rem; }
  .hero-glow {
    width: 300px; height: 300px;
    right: -80px; top: 30%;
  }
}