/* Harbor Security Technologies - Main Styles */
:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --slate: #334155;
  --accent: #0ea5e9;
  --accent-hover: #38bdf8;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --surface: #1e293b;
  --border: #334155;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.site-header {
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

main {
  flex: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  overflow-x: hidden;
}

.hero {
  text-align: center;
  padding: 4rem 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.section {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.section h2 {
  color: var(--accent);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 1rem;
}

.section p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.section a {
  color: var(--accent);
  text-decoration: none;
}

.section a:hover {
  text-decoration: underline;
}

.section .btn-primary {
  color: var(--navy);
}

.section .btn-primary:hover {
  color: var(--navy);
}

.section .btn-secondary {
  color: var(--accent);
}

.section-center {
  text-align: center;
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

.disclaimer p {
  margin-bottom: 0.5rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

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

.btn-secondary:hover {
  background: var(--accent);
  color: var(--navy);
}

.page-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.page-subtitle {
  color: var(--text-muted);
  margin: 0 0 2rem;
}

.products-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: grid;
  gap: 1rem;
}

.product-card-title {
  margin: 0 0 0.25rem;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.product-card-tagline {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
}

.product-card p {
  margin: 0;
  color: var(--text-muted);
}

.product-demo {
  margin-top: 3rem;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.demo-title {
  font-size: 1.5rem;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

.demo-caption {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.video-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.product-video {
  width: 100%;
  max-height: 70vh;
  display: block;
  vertical-align: top;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 1000px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .team-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.08);
  transition: box-shadow 0.2s;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.team-card:hover {
  box-shadow: 0 0 24px rgba(14, 165, 233, 0.15);
}

.team-photo-wrap {
  width: 140px;
  height: 140px;
  min-width: 140px;
  min-height: 140px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
  flex-shrink: 0;
}

.team-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.team-photo-fallback {
  position: absolute;
  inset: 0;
  background: var(--slate);
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.team-photo-fallback.show {
  display: flex;
}

.team-photo-wrap .team-photo {
  z-index: 1;
}

.team-card .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--slate);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.team-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.team-card .role {
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.team-card > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 100%;
}

.contact-wrap {
  max-width: 560px;
  margin-top: 2rem;
}

.form-feedback {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.form-feedback.success {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-group {
  margin-bottom: 1.25rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

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

.contact-info {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contact-info p {
  margin: 0.5rem 0;
  color: var(--text-muted);
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.site-footer {
  background: var(--navy-light);
  border-top: 1px solid var(--border);
  padding: 2rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer .logo {
  font-size: 1rem;
}

.site-footer .nav-links {
  gap: 1.5rem;
}

.site-footer small {
  color: var(--text-muted);
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .nav-links {
    gap: 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  main {
    padding: 1rem;
  }
}
