/* ══════════════════════════════════════════════════════════════
   nintellsoft — main.css  v2.0
   Font: Syne (headings) + Inter (body)
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #06060a;
  --bg2:       #0e0e16;
  --bg3:       #13131e;
  --surface:   #18182a;
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.14);

  --ink:       #f0eff8;
  --ink2:      #9896b0;
  --ink3:      #5a5872;

  --accent:    #5b6ef5;
  --accent2:   #8b5cf6;
  --accentg:   linear-gradient(135deg,#5b6ef5,#8b5cf6);

  --danger:    #f43f5e;
  --success:   #22c55e;
  --warning:   #f59e0b;

  --serif:     'Syne', 'Georgia', serif;
  --sans:      'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;

  --r:         10px;
  --r2:        16px;
  --sh:        0 4px 32px rgba(0,0,0,0.5);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ─────────────────────────────────────────────────────── */
#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: 68px;
  background: rgba(6,6,10,0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
#main-nav.scrolled { box-shadow: 0 2px 40px rgba(0,0,0,0.6); }

.nav-logo {
  font-family: var(--serif);
  font-size: 1.3rem; font-weight: 800;
  color: var(--ink); text-decoration: none;
  letter-spacing: -0.5px;
}
.logo-n    { color: var(--accent); }
.logo-dot  { color: var(--accent2); }

.nav-links {
  display: flex; align-items: center; gap: 0.2rem; list-style: none;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--ink2);
  text-decoration: none; padding: 0.4rem 0.7rem;
  border-radius: 6px; transition: color .2s, background .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); background: rgba(255,255,255,0.06); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute; top: 110%; left: 0;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r2);
  padding: 0.5rem;
  min-width: 200px;
  box-shadow: var(--sh);
  z-index: 300;
}
.dropdown:hover .dropdown-menu { display: flex; flex-direction: column; }
.dropdown-menu a { padding: 0.55rem 0.8rem; border-radius: 6px; font-size: 0.875rem; }
.dropdown-menu a:hover { background: var(--border); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  transition: background .2s !important, transform .15s !important;
}
.nav-cta:hover { background: #4a5ee0 !important; transform: translateY(-1px); }
.nav-cta--ghost {
  background: transparent !important;
  color: var(--ink2) !important;
  border: 1px solid var(--border2) !important;
}
.nav-portal { color: var(--accent) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: .3s; }

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #fff;
  font-family: var(--sans); font-size: 0.9rem; font-weight: 600;
  padding: 0.75rem 1.8rem; border-radius: 8px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(91,110,245,0.35);
}
.btn-primary:hover { background: #4a5ee0; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(91,110,245,0.5); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: transparent; color: var(--ink);
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500;
  padding: 0.75rem 1.8rem; border-radius: 8px;
  border: 1px solid var(--border2); text-decoration: none; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: rgba(91,110,245,0.08); }

.btn-full { width: 100%; justify-content: center; }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  position: relative; height: 100vh; min-height: 700px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
#hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 8% 0; max-width: 820px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 1.6rem;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity:1; transform:scale(1); } 50%{ opacity:.5; transform:scale(1.4); } }

h1.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 800; line-height: 1.0; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 1.5rem;
}
.hero-word {
  background: var(--accentg); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  font-style: normal;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--ink2); max-width: 520px;
  margin-bottom: 2.5rem; font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; align-items: center; gap: 2rem; }
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-n { font-family: var(--serif); font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; }
.stat-l { font-size: 0.75rem; color: var(--ink3); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-div { width: 1px; height: 36px; background: var(--border2); }

.hero-scroll-hint {
  position: absolute; bottom: 2.5rem; left: 8%;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--ink3); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown { 0%{opacity:0;transform:scaleY(0);transform-origin:top} 50%{opacity:1;transform:scaleY(1)} 100%{opacity:0;transform:scaleY(1);transform-origin:bottom} }

/* ── SECTION COMMONS ──────────────────────────────────────────── */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.2rem;
}
.section-eyebrow::before { content: ''; display: block; width: 20px; height: 1.5px; background: var(--accent); }
.section-eyebrow--light { color: var(--ink3); }
.section-eyebrow--light::before { background: var(--ink3); }

/* ── PRODUCTS ─────────────────────────────────────────────────── */
.products-section {
  padding: 8rem 5%; background: var(--bg2);
}
.section-head { text-align: center; margin-bottom: 4rem; }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--ink); margin-bottom: 1rem;
}
.section-head p { color: var(--ink2); max-width: 500px; margin: 0 auto; font-weight: 300; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 2rem;
  position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.product-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--accentg); opacity: 0;
  transition: opacity .3s;
}
.product-card:hover { border-color: var(--border2); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.product-card:hover::before { opacity: 1; }

.product-card--featured {
  border-color: rgba(139,92,246,0.4);
  background: rgba(139,92,246,0.06);
}
.product-card--featured::before { opacity: 0.6; background: linear-gradient(135deg,#8b5cf6,#5b6ef5); }

.product-card--dark { background: #0a0a14; }

.card-3d-icon {
  width: 60px; height: 60px; margin-bottom: 1.2rem;
}
.product-canvas { width: 100%; height: 100%; display: block; }

.card-tag {
  display: inline-block;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink3); border: 1px solid var(--border);
  padding: 0.2rem 0.5rem; border-radius: 4px;
  margin-bottom: 1rem;
}
.card-tag--light { color: var(--accent); border-color: rgba(91,110,245,0.3); }

.card-new-badge {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: var(--accent); color: #fff;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 99px;
}

.product-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem; font-weight: 700; color: var(--ink);
  margin-bottom: 0.8rem;
}
.product-card p {
  font-size: 0.875rem; color: var(--ink2); line-height: 1.7; margin-bottom: 1.2rem;
}
.card-features {
  list-style: none; margin-bottom: 1.5rem;
}
.card-features li {
  font-size: 0.82rem; color: var(--ink3);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.5rem;
}
.card-features li::before { content: '›'; color: var(--accent); font-weight: 700; }

.card-link {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  text-decoration: none; transition: gap .2s;
}
.card-link:hover { gap: 0.6rem; }

/* ── ABOUT ──────────────────────────────────────────────────────── */
.about-section {
  padding: 8rem 5%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start;
}
.about-left h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 1.2rem;
}
.about-left p { color: var(--ink2); font-weight: 300; margin-bottom: 1rem; max-width: 440px; }

.about-3d-container {
  width: 100%; aspect-ratio: 1;
  border-radius: var(--r2);
  overflow: hidden; margin-bottom: 2rem;
}
#about-canvas { width: 100%; height: 100%; display: block; }

.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pillar {
  padding: 1.2rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.pillar-n {
  font-family: var(--serif);
  font-size: 1.8rem; font-weight: 800;
  color: rgba(91,110,245,0.2); line-height: 1; margin-bottom: 0.5rem;
}
.pillar strong { font-size: 0.85rem; color: var(--ink); display: block; margin-bottom: 0.3rem; }
.pillar p { font-size: 0.78rem; color: var(--ink3); line-height: 1.55; }

/* ── PORTAL CTA ──────────────────────────────────────────────────── */
.portal-cta {
  padding: 8rem 5%;
  background: linear-gradient(135deg, var(--bg3) 0%, rgba(91,110,245,0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.portal-cta-inner { max-width: 900px; }
.portal-cta h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800;
  color: var(--ink); margin-bottom: 1rem;
}
.portal-cta p { color: var(--ink2); max-width: 540px; margin-bottom: 3rem; font-weight: 300; }

.role-cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; margin-bottom: 3rem;
}
.role-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.4rem 1.2rem;
  transition: border-color .2s;
}
.role-card:hover { border-color: var(--accent); }
.role-icon {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 800; margin-bottom: 0.8rem;
}
.role-card strong { font-size: 0.9rem; color: var(--ink); display: block; margin-bottom: 0.3rem; }
.role-card p { font-size: 0.78rem; color: var(--ink3); line-height: 1.5; }

/* ── CONTACT ──────────────────────────────────────────────────── */
.contact-section {
  padding: 8rem 5%;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 6rem;
  background: var(--bg2);
}
.contact-left h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  color: var(--ink); margin-bottom: 1rem;
}
.contact-left p { color: var(--ink2); font-weight: 300; max-width: 400px; margin-bottom: 2rem; }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.ci {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.9rem; color: var(--ink2);
}
.ci svg { flex-shrink: 0; color: var(--accent); }
.ci a { color: var(--ink2); text-decoration: none; }
.ci a:hover { color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--ink2); text-transform: uppercase; letter-spacing: 0.08em;
}
input, textarea, select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--sans); font-size: 0.9rem; color: var(--ink);
  outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91,110,245,0.2);
}
textarea { resize: vertical; min-height: 130px; }
select option { background: var(--bg3); }
.form-success { color: var(--success); font-size: 0.875rem; margin-top: 0.5rem; }
.form-error   { color: var(--danger);  font-size: 0.875rem; margin-top: 0.5rem; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 5rem 5% 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 4rem;
}
.footer-logo {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 800;
  color: var(--ink); margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.85rem; color: var(--ink3); line-height: 1.7; }
.footer-contact { margin-top: 1rem; }
.footer-contact a { color: var(--ink3); text-decoration: none; font-size: 0.85rem; display: block; }
.footer-contact a:hover { color: var(--accent); }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--ink3); margin-bottom: 1.2rem;
}
.footer-col a {
  display: block; font-size: 0.85rem; color: var(--ink3);
  text-decoration: none; padding: 0.25rem 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 2rem;
  font-size: 0.8rem; color: var(--ink3);
}

/* ── ALERTS ──────────────────────────────────────────────────────── */
.alert {
  padding: 0.8rem 1.2rem; border-radius: 8px;
  font-size: 0.875rem; margin-bottom: 1.5rem;
}
.alert-success { background: rgba(34,197,94,0.12); color: var(--success); border: 1px solid rgba(34,197,94,0.25); }
.alert-error   { background: rgba(244,63,94,0.12);  color: var(--danger);  border: 1px solid rgba(244,63,94,0.25); }

/* ── ROLE PILLS ──────────────────────────────────────────────────── */
.role-pill {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem; border-radius: 99px;
}
.role-superadmin { background: rgba(139,92,246,0.2); color: #c4b5fd; }
.role-admin      { background: rgba(59,130,246,0.2); color: #93c5fd; }
.role-agent      { background: rgba(16,185,129,0.2); color: #6ee7b7; }
.role-client     { background: rgba(245,158,11,0.2); color: #fcd34d; }

/* ── STATUS BADGES ───────────────────────────────────────────────── */
.status-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; padding: 0.18rem 0.55rem; border-radius: 99px;
}
.status-active    { background: rgba(34,197,94,0.15);  color: var(--success); }
.status-trial     { background: rgba(91,110,245,0.15); color: #818cf8; }
.status-expired   { background: rgba(244,63,94,0.15);  color: var(--danger); }
.status-suspended { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-open        { background: rgba(91,110,245,0.15); color: #818cf8; }
.status-in_progress { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-resolved    { background: rgba(34,197,94,0.15);  color: var(--success); }
.status-closed      { background: rgba(90,88,114,0.3);   color: var(--ink3); }

.priority-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 4px; }
.priority-low    { background: rgba(90,88,114,0.2); color: var(--ink3); }
.priority-medium { background: rgba(59,130,246,0.15); color: #93c5fd; }
.priority-high   { background: rgba(245,158,11,0.15); color: var(--warning); }
.priority-urgent { background: rgba(244,63,94,0.15);  color: var(--danger); }

/* ── DATA TABLE ─────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th {
  text-align: left; padding: 0.65rem 1rem;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink3);
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); color: var(--ink2); vertical-align: middle; }
.data-table td small { font-size: 0.75rem; color: var(--ink3); display: block; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.data-table a { color: var(--accent); text-decoration: none; }
.data-table a:hover { text-decoration: underline; }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .role-cards { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem 5%; gap: 0.2rem; z-index: 199; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-content { padding: 0 5%; }
  .products-grid { grid-template-columns: 1fr; }
  .about-section { grid-template-columns: 1fr; gap: 3rem; }
  .contact-section { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .role-cards { grid-template-columns: 1fr 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .role-cards { grid-template-columns: 1fr; }
}
