/* --- VARIABLES & RESET --- */
:root {
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-primary: #10b981;
  --accent-hover: #059669;
  --border: #334155;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --radius: 8px;
  --font-main: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease-in-out;
}
ul {
  list-style: none;
}

/* --- UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-hover)
  );
  color: #fff;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  margin-top: 24px;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #34d399, #10b981);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: none;
  margin-left: 15px;
}
.btn-outline:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-hover);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 8px var(--accent-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* --- NAVIGATION --- */
nav {
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  gap: 25px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-primary);
}

/* --- HERO SECTION --- */
header.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
  position: relative;
  padding: 0 20px;
}
header.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    rgba(255, 255, 255, 0.03) 0 1px,
    transparent 1px 100%
  );
  background-size: 100% 40px;
  pointer-events: none;
}

header.hero.home-hero {
  min-height: 90vh;
}

h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -2px;
  color: var(--text-primary);
  line-height: 1.1;
}
.accent {
  background: -webkit-linear-gradient(45deg, #34d399, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 650px;
  line-height: 1.7;
}

/* --- PAGE CONTENT & LAYOUT --- */
.page-content {
  padding: 100px 24px;
}
.section-title {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 60px;
  text-align: center;
  font-weight: 700;
  letter-spacing: -1px;
  position: relative;
  padding-bottom: 20px;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--accent-primary);
  border-radius: 2px;
}

/* --- CONDUIT WRAPPER (Cards Layout) --- */
.conduit-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 2px; /* slight gap for potential subtle border effect if wanted later */
  max-width: 1200px;
  margin: 0 auto;
}

.conduit-side {
  flex: 1;
  min-width: 350px;
  padding: 100px 60px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content in split view */
  position: relative;
  border-right: 1px solid var(--border);
  transition: background-color 0.3s;
}
.conduit-side:hover {
  background-color: rgba(30, 41, 59, 0.3);
}

/* If it is a full width page content */
.conduit-side.full {
  border-right: none;
  align-items: flex-start;
  padding: 0;
  background: transparent;
}
.conduit-side.full:hover {
  background: transparent;
}

.conduit-side:last-child {
  border-right: none;
}

.conduit-side h2 {
  font-size: 1.75rem;
  margin-bottom: 24px;
  font-weight: 700;
  color: var(--text-primary);
}

/* SERVICE & LISTS */
.service-list {
  list-style: none;
  width: 100%;
}
.service-list li {
  margin-bottom: 24px;
  font-size: 1.1rem;
  padding-left: 30px;
  position: relative;
}
.service-list li strong {
  color: var(--text-primary);
  font-weight: 600;
}
.service-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  width: 100%;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-primary);
}
.product-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: var(--text-primary);
  font-weight: 600;
}
.product-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.product-card a.accent {
  font-weight: 600;
  color: var(--accent-primary);
  margin-top: auto;
}
.product-card a.accent:hover {
  color: var(--accent-hover);
}

/* --- TEAM GRID --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 60px;
}
.team-member {
  background: var(--bg-card);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}
.member-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  margin: 0 auto 24px;
  border: 3px solid var(--accent-primary);
}
.member-name {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 600;
}
.member-role {
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- FOOTER --- */
footer {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background-color: #0b1120;
  color: #64748b;
  font-size: 0.9rem;
  margin-top: auto;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.75rem;
  }
  .nav-links {
    display: none;
  } /* Simplified for now */
  .conduit-side {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 60px 20px;
  }
  .page-content {
    padding: 60px 20px;
  }
}

/* --- ISO TOOL STYLES --- */
.iso-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
  z-index: 900;
  backdrop-filter: blur(10px);
  background: rgba(30, 41, 59, 0.95);
  margin-top: -40px;
}
.iso-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.iso-score-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}
.iso-score-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary);
}
.score-track {
  width: 100%;
  height: 10px;
  background: #334155;
  border-radius: 5px;
  overflow: hidden;
}
.score-bar {
  width: 0%;
  height: 100%;
  background: var(--accent-primary);
  transition: width 0.5s ease, background-color 0.5s ease;
}

.iso-category-header {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.iso-control-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}
.iso-control-card:hover {
  border-color: #475569;
}
.iso-card-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}
.iso-id {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-primary);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.85rem;
}
.iso-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.1rem;
}
.iso-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.iso-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.iso-btn {
  flex: 1;
  min-width: 120px;
  padding: 10px;
  background: #1e293b;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.iso-btn:hover {
  background: #334155;
  color: #fff;
}
.iso-btn.selected {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  max-width: 400px;
  background-color: rgba(
    30,
    41,
    59,
    0.95
  ); /* Dark card bg with slight transparency */
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  z-index: 9999;
  backdrop-filter: blur(10px);
  animation: slideIn 0.5s ease-out forwards;
  color: var(--text-primary);
}

@keyframes slideIn {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-content p {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-link {
  color: var(--accent-primary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: underline;
}

.cookie-link:hover {
  color: var(--accent-hover);
}

.btn-cookie {
  padding: 8px 24px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-hover)
  );
  color: #fff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.btn-cookie:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

@media (max-width: 480px) {
  .cookie-banner {
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: none;
  }
}
