/* =============================================
   NYSA TECHNOLOGY — SHARED STYLES
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #07080b;
  --bg-elev: #0d0f15;
  --bg-card: #10131c;
  --bg-card-2: #161a25;
  --line: rgba(255,255,255,0.06);
  --line-strong: rgba(255,255,255,0.12);
  --text: #f0f1f5;
  --text-dim: #c7cad3;
  --muted: #8a8f9d;
  --accent: #b69d6a;
  --accent-2: #e9d9b3;
  --accent-soft: rgba(182,157,106,0.12);
  --accent-grad: linear-gradient(135deg, #e9d9b3 0%, #b69d6a 55%, #8a734a 100%);
  --cyan: #22d3ee;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.2,0.7,0.2,1);
  --maxw: 1200px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Sora', sans-serif;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* =============================================
   UTILITY
   ============================================= */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 48px;
}

.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 20px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  max-width: 680px;
  line-height: 1.7;
}

.gold { color: var(--accent-2); }
.gold-grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cyan { color: var(--cyan); }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-grad);
  color: #07080b;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(182,157,106,0.35);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(182,157,106,0.12);
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent-2);
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(182,157,106,0.18);
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
  background: rgba(7,8,11,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(7,8,11,0.95);
  border-color: var(--line-strong);
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo svg { width: 36px; height: 36px; }

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-name {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav-logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
}

.nav-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-grad);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

.nav-link:hover { color: var(--text); background: var(--line); }

.nav-link.active { color: var(--accent-2); }
.nav-link.active::after { width: calc(100% - 32px); }

.nav-cta { flex-shrink: 0; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dim);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(13,15,21,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-strong);
  padding: 24px 32px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
}

.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { font-size: 1rem; padding: 12px 16px; }
.nav-mobile .btn { margin-top: 12px; justify-content: center; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  padding: 80px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.footer-brand { display: flex; flex-direction: column; gap: 20px; }

.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo svg { width: 38px; height: 38px; }
.footer-logo-text .nav-logo-name { font-size: 1.1rem; }

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--accent-2); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  gap: 16px;
}

.footer-copy { font-size: 0.8rem; color: var(--muted); }
.footer-contact { font-size: 0.8rem; color: var(--muted); }
.footer-contact a { color: var(--text-dim); transition: color 0.2s; }
.footer-contact a:hover { color: var(--accent-2); }
.footer-social { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.social-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--muted); transition: all 0.2s; }
.social-icon:hover { background: rgba(182,157,106,0.12); border-color: var(--accent); color: var(--accent); }

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal { transform: translateY(40px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }

.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.card:hover::before { transform: scaleX(1); }

/* =============================================
   TAGS / BADGES
   ============================================= */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  background: var(--bg-card-2);
}

.tag-gold {
  border-color: rgba(182,157,106,0.3);
  color: var(--accent-2);
  background: var(--accent-soft);
}

.tag-cyan {
  border-color: rgba(34,211,238,0.2);
  color: var(--cyan);
  background: rgba(34,211,238,0.06);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-gold {
  background: var(--accent-soft);
  color: var(--accent-2);
  border: 1px solid rgba(182,157,106,0.25);
}

.badge-cyan {
  background: rgba(34,211,238,0.07);
  color: var(--cyan);
  border: 1px solid rgba(34,211,238,0.2);
}

/* =============================================
   HERO SHARED
   ============================================= */
.hero {
  padding-top: 72px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 0;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

/* =============================================
   DIVIDER
   ============================================= */
.divider { height: 1px; background: var(--line); }

/* =============================================
   CHECKLIST
   ============================================= */
.checklist { display: flex; flex-direction: column; gap: 14px; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-dim);
}

.checklist li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: rgba(34,211,238,0.1);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 1px;
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg-card);
  transition: border-color 0.3s;
}

.faq-item.open { border-color: rgba(182,157,106,0.25); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  gap: 16px;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--accent-2); }

.faq-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.3s var(--ease), background 0.3s, border-color 0.3s;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-soft);
  border-color: rgba(182,157,106,0.3);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-answer-inner {
  padding: 0 28px 24px;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.75;
}

/* =============================================
   STEP NUMBERS
   ============================================= */
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(182,157,106,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-2);
  flex-shrink: 0;
  margin-bottom: 20px;
}

/* =============================================
   FRAMEWORK ICON
   ============================================= */
.fw-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(182,157,106,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/* =============================================
   FEATURE LIST
   ============================================= */
.feature-list { display: flex; flex-direction: column; gap: 18px; margin: 28px 0; }

.feature-item { display: flex; gap: 14px; align-items: flex-start; }

.feature-icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: var(--radius-sm);
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--cyan);
  margin-top: 2px;
}

.feature-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.feature-text span {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

/* =============================================
   CONTACT FORM
   ============================================= */
.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  width: 100%;
}

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

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(182,157,106,0.1);
}

.form-group textarea { resize: vertical; min-height: 130px; }

/* =============================================
   GREEN DOT BADGE
   ============================================= */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 50px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  font-size: 0.8rem;
  font-weight: 500;
  color: #34d399;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* =============================================
   CASE STUDY CARDS
   ============================================= */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.case-emoji { font-size: 2rem; }

.case-meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.65;
  flex: 1;
}

.case-result {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.case-result strong {
  color: var(--accent-2);
  display: block;
  font-size: 0.82rem;
  margin-bottom: 2px;
}

/* =============================================
   GRID UTILITIES
   ============================================= */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* =============================================
   SECTION BG VARIANTS
   ============================================= */
.bg-elev { background: var(--bg-elev); }
.bg-card-bg { background: var(--bg-card); }

/* =============================================
   PILLAR CARDS
   ============================================= */
.pillar-num {
  font-family: 'Sora', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  opacity: 0.35;
}

/* =============================================
   HERO PAGE VARIANTS (non-home)
   ============================================= */
.page-hero {
  padding-top: 72px;
  min-height: auto;
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  padding: 100px 0 80px;
  position: relative;
  z-index: 2;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(182,157,106,0.07) 0%, transparent 70%);
  z-index: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .nav { padding: 0 32px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .case-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav { padding: 0 20px; }
  .section { padding: 72px 0; }

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  .section-title { font-size: 1.75rem; }
  .hero-inner { padding: 60px 0; }
  .page-hero-inner { padding: 72px 0 56px; }
}

@media (max-width: 480px) {
  .btn { padding: 12px 22px; font-size: 0.85rem; }
}
