@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=JetBrains+Mono:wght@400&display=swap");

:root {
  /* Atlassian Design System Color Scheme */
  --bg-void: #f4f5f7; /* Atlassian Light Neutral Background */
  --bg-panel: #ffffff; /* White panels */
  --teal-primary: #0052cc; /* Atlassian Blue */
  --teal-glow: rgba(0, 82, 204, 0.05);
  --gold-roi: #ffab00; /* Atlassian Amber/Yellow */

  --text-white: #091e42; /* Atlassian dark neutral primary text */
  --text-muted: #42526e; /* Atlassian light neutral secondary text */
  --text-subtle: #5e6c84; /* Atlassian subtle grey text */

  --glass: rgba(9, 30, 66, 0.02);
  --border-color: #dfe1e6; /* Atlassian light border */
  --border-color-hover: #b3bac5;
  --border: 1px solid var(--border-color);

  --error-red: #de350b; /* Atlassian Red */
  --success-green: #00875a; /* Atlassian Green */

  /* Layout */
  --max-width: 1100px;
  --header-height: 64px;

  /* Fonts */
  --font-sans:
    "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading:
    "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-void);
  color: var(--text-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Minimalist Decorative Accents */
.glow-spot {
  position: fixed;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(13, 148, 136, 0.08) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
}

h1 {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-white);
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

strong {
  color: var(--text-white);
}

a {
  color: var(--teal-primary);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.85;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: var(--border);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-white);
  flex-shrink: 0;
  max-width: 200px;
}

.logo img {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  max-width: 28px;
  max-height: 28px;
  transform: scale(1);
  transform-origin: center;
}

.logo-text {
  font-weight: 800;
  color: var(--text-white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.3rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  gap: 6px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--teal-primary);
  color: #ffffff;
  border: 1px solid var(--teal-primary);
}

.btn-primary:hover {
  background-color: #0065ff;
  border-color: #0065ff;
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--bg-panel);
  color: var(--text-white);
  border: var(--border);
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  border-color: var(--border-color-hover);
}

/* Hero Section */
.hero {
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 60px;
  text-align: center;
}

.hero-badge {
  margin-bottom: 20px;
}

.hero h1 {
  max-width: 750px;
  margin: 0 auto 16px auto;
  font-size: 3.5rem;
  line-height: 1.1;
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 32px auto;
  color: var(--text-muted);
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
}

/* Carousel Visual Layout */
.hero-carousel {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 8px;
  border: var(--border);
  background: var(--bg-panel);
  padding: 6px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  aspect-ratio: 16/9;
  min-height: 500px;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 10;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Carousel caption overlay stays dark for high contrast text on screenshot images */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.95));
  color: #ffffff;
  padding: 20px;
  text-align: left;
  z-index: 20;
}

.carousel-caption h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
  color: #2dd4bf;
}

.carousel-caption p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 0;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 6px;
  z-index: 30;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
}

.carousel-dot.active {
  background: #2dd4bf;
  width: 16px;
  border-radius: 3px;
}

/* Trust Badge Row inside Product Cards */
.product-trust-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.product-card-actions {
  display: flex;
  gap: 10px;
}

.product-card-actions .btn-atlassian {
  flex: 1.4;
}

.product-card-actions .btn-secondary {
  flex: 1;
}

.trust-badge svg {
  color: var(--teal-primary);
  flex-shrink: 0;
}

/* Atlassian CTA Buttons */
.btn-atlassian {
  background-color: var(--teal-primary);
  color: #ffffff;
  border: 1px solid var(--teal-primary);
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-transform: uppercase;
}

.btn-atlassian:hover {
  background-color: #0065ff;
  border-color: #0065ff;
  color: #ffffff;
}

.atlassian-logo-btn {
  width: 14px;
  height: 14px;
  fill: #ffffff;
}

/* Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 10px;
}

.product-card {
  background: var(--bg-panel);
  border: var(--border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.15s ease;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.02),
    0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.product-card:hover {
  border-color: var(--border-color-hover);
  box-shadow:
    0 10px 15px -3px rgba(15, 23, 42, 0.04),
    0 4px 6px -2px rgba(15, 23, 42, 0.02);
}

.product-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.product-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.product-badge-group {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-blue {
  background: rgba(13, 148, 136, 0.06);
  color: var(--teal-primary);
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.badge-purple {
  background: rgba(124, 58, 237, 0.06);
  color: #6d28d9;
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.badge-green {
  background: rgba(22, 163, 74, 0.06);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.15);
}

.badge-gold {
  background: rgba(217, 119, 6, 0.06);
  color: var(--gold-roi);
  border: 1px solid rgba(217, 119, 6, 0.15);
}

.product-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 20px;
  line-height: 1.5;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--gold-roi);
  font-weight: 600;
}

.product-installs {
  font-weight: 500;
}

.product-card .btn {
  margin-top: 16px;
  width: 100%;
}

/* Why Teams Section */
/* Why Teams Section - Styled as "How We Build" dark section */
.how-we-build-section {
  background-color: #121212 !important;
  border-top: 1px solid #2d2d2d !important;
  border-bottom: 1px solid #2d2d2d !important;
  padding: 80px 0;
}

.how-we-build-section .section-header {
  margin-bottom: 50px;
}

.how-we-build-section .section-header .category-badge {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #8993a4;
  font-weight: 600;
  display: block;
  margin-bottom: 12px;
}

.how-we-build-section .section-header h2 {
  color: #ffffff !important;
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.how-we-build-section .section-header p {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  overflow: hidden;
  background-color: #161616;
}

.why-card {
  background: transparent;
  border: none;
  border-right: 1px solid #2d2d2d;
  border-bottom: 1px solid #2d2d2d;
  padding: 32px;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Remove borders on outer grid edges */
.why-card:nth-child(3n) {
  border-right: none;
}

.why-card:nth-child(n + 4) {
  border-bottom: none;
}

.why-card-icon {
  color: #4c9aff;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.why-card h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.why-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Contact form */
.contact-form-box {
  background: var(--bg-panel);
  border: var(--border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.form-group {
  margin-bottom: 16px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-void);
  border: var(--border);
  border-radius: 4px;
  padding: 10px;
  color: var(--text-white);
  font-size: 0.85rem;
  font-family: var(--font-sans);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-primary);
  background: #ffffff;
}

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

/* Legal content pages layout (Privacy, Terms, SLA) */
.legal-box {
  background: var(--bg-panel);
  padding: 40px;
  border-radius: 8px;
  border: var(--border);
  text-align: left;
}

.legal-box h2 {
  color: var(--teal-primary);
  font-size: 1.4rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-box ul {
  list-style: inside circle;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-left: 10px;
}

.legal-box li {
  margin-bottom: 8px;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 30px;
}

/* Footer styling */
footer {
  border-top: var(--border);
  background-color: var(--bg-panel);
  padding: 60px 0 30px 0;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(2, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

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

.footer-info .logo {
  margin-bottom: 12px;
}

.footer-info p {
  font-size: 0.8rem;
  line-height: 1.5;
}

.footer-column h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-white);
  margin-bottom: 16px;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-column a {
  color: var(--text-muted);
}

.footer-column a:hover {
  color: var(--teal-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.04);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-subtle);
  font-size: 0.75rem;
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  color: var(--text-subtle);
}

.footer-socials a:hover {
  color: var(--teal-primary);
}

/* SLA Table Specifics */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
  text-align: left;
}

table th {
  color: var(--teal-primary);
  font-weight: 700;
  border-bottom: 2px solid var(--border-color);
  padding: 10px;
}

table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.75rem;
  }
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-card {
    border-right: none !important;
  }
  .why-card:nth-child(n + 2) {
    border-bottom: 1px solid #2d2d2d;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    max-height: calc(100vh - var(--header-height));
    background: var(--bg-panel);
    flex-direction: column;
    padding: 30px 24px;
    align-items: flex-start;
    gap: 16px;
    transform: translateX(-100%);
    transition: transform 0.25s ease-in-out;
    border-top: var(--border);
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .nav-actions {
    display: none;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .why-card {
    border-right: none !important;
    border-bottom: 1px solid #2d2d2d;
  }
  .why-card:nth-child(n + 2) {
    border-bottom: 1px solid #2d2d2d;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
    gap: 10px;
  }
  .hero-carousel {
    min-height: 300px;
  }
}
