/**
 * site.css - Main stylesheet for cnTnc public website
 * Consistent with AwarenessUI and pitch deck aesthetic
 */

:root {
  /* Color scheme - smartNOC dark theme */
  --bg-primary: #0a0e27;
  --bg-secondary: #112240;
  --bg-tertiary: #1d2d50;
  --border-color: #2d3f66;
  --text-primary: #ccd6f6;
  --text-secondary: #8892b0;
  --text-accent: #64ffda;
  --primary: #00a8ff;  /* Cyan accent */
  --primary-blue: #1966b1;
  --light-blue: #238fcf;
  --cyan: #00b4c5;
  --orange: #f78d28;
}

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

html {
  background: #0a0e27;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: transparent;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* =================================================================
   UTILITY CLASSES - Use these to build pages quickly
   ================================================================= */

/* Typography */
.page-title {
  font-size: 2.5rem;
  text-align: center;
  line-height: 1.3;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
}

.page-tagline {
  font-size: 1.1rem;
  color: var(--text-accent);
  margin-top: 1rem;
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
}

.text-large {
  font-size: 1.15rem;
}

.text-medium {
  font-size: 1.1rem;
}

.text-small {
  font-size: 0.95rem;
}

.font-bold {
  font-weight: 600;
}

/* Text Alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Colors */
.color-primary {
  color: var(--primary);
}

.color-accent {
  color: var(--text-accent);
}

.color-secondary {
  color: var(--text-secondary);
}

.color-orange {
  color: var(--orange);
}

/* Spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 2.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 2.5rem; }

.my-2 { margin-top: 1rem; margin-bottom: 1rem; }
.my-3 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-4 { margin-top: 2rem; margin-bottom: 2rem; }

/* Layout */
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-800 {
  max-width: 800px;
}

.max-w-700 {
  max-width: 700px;
}

/* Line Height */
.leading-relaxed {
  line-height: 1.8;
}

/* Additional Font Sizes */
.text-xl {
  font-size: 1.3rem;
}

.text-xs {
  font-size: 0.85rem;
}

/* Footer Text */
.footer-text {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: #8892b0;
}

/* Subsection Headers */
.subsection-header {
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.subsection-header-accent {
  color: var(--text-accent);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

/* =================================================================
   END UTILITY CLASSES
   ================================================================= */

/* Starfield canvas */
#starfield {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* cnTnc branding - c n T n c */
.cntnc .c,
.cntnc .n {
  color: var(--primary-blue);
}

.cntnc .t {
  color: var(--orange);
}

/* smartNOC branding */
.smartnoc .smart {
  color: var(--orange);
  font-style: italic;
}

.smartnoc .noc {
  color: var(--primary-blue);
  font-weight: bold;
  margin-left: 0.1em;
}

.highlight {
  color: var(--primary);
}

/* Header (AwarenessUI style) */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-bottom: 1px solid var(--primary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: auto;
  background: white;
  padding: 4px 8px;
  border-radius: 4px;
}

.header-title {
  flex: 1;
  text-align: center;
  margin: 0 2rem;
}

.header-title h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.header-subtitle {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.header-nav {
  display: flex;
  gap: 2rem;
}

.header-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.header-nav a:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: center;
}

.hero-content h2 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-video {
  margin: 3rem auto;
  max-width: 900px;
  border: 2px solid rgba(0, 168, 255, 0.3);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 168, 255, 0.2);
}

.hero-video video {
  width: 100%;
  display: block;
}

/* CTA Buttons */
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), #e07b20);
  color: white;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(247, 141, 40, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: rgba(0, 168, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 168, 255, 0.3);
}

.btn-tertiary {
  background: transparent;
  border: 1px solid var(--text-accent);
  color: var(--text-accent);
  padding: 0.7rem 1.5rem;
  font-size: 0.95rem;
}

.btn-tertiary:hover {
  background: rgba(100, 255, 218, 0.1);
}

/* Window Frames */
.window-frame {
  background: transparent;
  border: 1px solid rgba(0, 200, 255, 0.4);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 200, 255, 0.15);
  overflow: hidden;
  margin: 1.5rem 0;
  transition: all 0.3s ease;
}

.window-frame:hover {
  border-color: rgba(0, 200, 255, 0.6);
  box-shadow: 0 0 30px rgba(0, 200, 255, 0.25);
}

.window-frame.large {
  max-width: 1000px;
  margin: 2rem auto;
}

.window-header {
  height: 32px;
  background: transparent;
  border-bottom: 1px solid rgba(0, 200, 255, 0.3);
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.window-title {
  color: var(--primary);
  font-size: 0.85rem;
  font-family: 'Monaco', 'Courier New', monospace;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0, 200, 255, 0.5);
}

.window-content {
  padding: 2rem;
  background: transparent;
}

.window-content p {
  color: var(--text-primary);
  line-height: 1.8;
}

.window-content a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.window-content a:hover {
  color: var(--text-accent);
}

.link-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 500;
  color: var(--text-accent) !important;
}

/* Sections */
section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 0 2rem;
}

section h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary);
}

/* Video Demos Section */
.video-demos {
  margin: 5rem auto;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.video-card {
  text-align: center;
}

.video-card h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.video-thumbnail {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(0, 200, 255, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-thumbnail:hover {
  border-color: rgba(0, 200, 255, 0.6);
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 200, 255, 0.3);
}

.video-thumbnail img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.video-thumbnail:hover img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(247, 141, 40, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.video-thumbnail:hover .play-button {
  background: rgba(247, 141, 40, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button span {
  color: white;
  font-size: 1.125em;
  padding-left: 2px;
}

/* Capability Grid */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Feature List */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
  color: var(--text-primary);
}

.feature-list .icon {
  position: absolute;
  left: 0;
  color: var(--text-accent);
  font-weight: bold;
}

/* Compliance Links */
.compliance-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.compliance-links a {
  display: block;
  padding: 0.8rem 1rem;
  background: rgba(0, 168, 255, 0.05);
  border: 1px solid rgba(0, 168, 255, 0.2);
  border-radius: 5px;
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
  text-align: center;
  font-weight: 500;
}

.compliance-links a:hover {
  background: rgba(0, 168, 255, 0.1);
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* Contact Info */
.contact-info {
  margin-top: 1.5rem;
}

.contact-info p {
  margin: 0.8rem 0;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 2rem;
  text-align: center;
  margin-top: 5rem;
}

.site-footer p {
  color: var(--text-secondary);
  margin: 0.5rem 0;
}

/* Page Hero (simple header) */
.page-hero {
  max-width: 1000px;
  margin: 3rem auto;
  padding: 2rem;
}

/* Content Sections */
.content-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

/* Two Column Grid */
.two-column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

/* Compliance Grid */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

/* Forms */
form {
  max-width: 600px;
  margin: 0 auto;
}

form label {
  display: block;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.5rem;
  background: rgba(17, 34, 64, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="tel"]:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(0, 168, 255, 0.2);
}

form input::placeholder,
form textarea::placeholder {
  color: var(--text-secondary);
}

form fieldset {
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

form legend {
  color: var(--primary);
  font-weight: 600;
  padding: 0 0.5rem;
}

form input[type="checkbox"] {
  margin-right: 0.5rem;
  accent-color: var(--primary);
}

form label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  cursor: pointer;
}

.success-message {
  display: none;
  color: var(--text-accent);
  font-weight: 600;
  text-align: center;
  padding: 1rem;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid var(--text-accent);
  border-radius: 5px;
  margin-top: 1.5rem;
}

.success-message.show {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  .hero-content h2 {
    font-size: 1.8rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .two-column-grid {
    grid-template-columns: 1fr;
  }

  section h2 {
    font-size: 1.8rem;
  }
}
