/* --- Global Styles & Variables --- */
:root {
  --background-color: #0F1724;
  --surface-color: #1A2333;
  --primary-text-color: #E6EEF6;
  --secondary-text-color: #94A3B8;
  --accent-color: #0F6FFF;
  --accent-color-hover: #3B8AFF;
  --secondary-accent-color: #00BFA6;
  --border-color: rgba(148, 163, 184, 0.2);
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --code-font-family: 'JetBrains Mono', 'Menlo', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background: var(--background-color);
  color: var(--primary-text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

/* --- Typography --- */
h1, h2, h3 {
  color: var(--primary-text-color);
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--secondary-text-color);
  font-size: 1.1rem;
  max-width: 65ch;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color-hover);
}

ul {
    list-style-position: inside;
    padding-left: 0;
    margin-top: 1.5rem;
}

li {
    margin-bottom: 0.75rem;
    color: var(--secondary-text-color);
}

li::marker {
    color: var(--secondary-accent-color);
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding: 0.65rem 0;
  background-color: rgba(15, 23, 36, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo { font-size: 1.5rem; font-weight: bold; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { color: var(--primary-text-color); font-weight: 500; }

/* --- Hero Section --- */
.hero { padding: 6rem 0; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero h1 { margin-bottom: 1.5rem; }
.hero p { margin-bottom: 2rem; max-width: 50ch; }
.hero-buttons { display: flex; gap: 1rem; margin-top: 1rem; }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease, background-color 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent-color); color: #fff; }
.btn.primary:hover { background: var(--accent-color-hover); }
.btn.secondary { background: transparent; color: var(--accent-color); border-color: var(--accent-color); }
.btn.secondary:hover { background: var(--accent-color); color: var(--background-color); }

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.text-content ul { max-width: 50ch; }

/* --- Images & Icons --- */
.showcase-img {
  width: 80%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

.showcase-img3 {
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

.showcase-img--hero {
  border: 1px solid var(--border-color);
}
.showcase-img--diagram {
    margin-top: 3rem;
}

.image-wrapper {
  width: 100%;
  height: auto;
}

.image-wrapper2 {
  width: 100%;
  height: auto;
}

.image-wrapper4 {
  width: 150%;
  height: auto;
  padding: 0;
  margin-left: 100px;
}

/* --- Features Section --- */
.text-center { text-align: center; }
.text-center > p { margin: 0 auto 1.5rem auto; }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    text-align: left;
}
.feature-card {
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}
.feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 1rem;
}

/* --- Use Cases Section --- */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.use-case-icon {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
}

.use-case-item {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    font-weight: 500;
}

/* --- Developers Section --- */
.code-wrapper {
    background: #011627;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}
.code-header {
    background: #1d2a3a;
    padding: 0.75rem 1.5rem;
    color: var(--secondary-text-color);
    font-family: var(--code-font-family);
    font-size: 0.9rem;
}
.code-wrapper pre {
    padding: 1.5rem;
    overflow-x: auto;
}
.code-wrapper code {
    font-family: var(--code-font-family);
    font-size: 0.95rem;
    color: #d6deeb;
}

/* --- Contact Form --- */
.contact-form {
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
}
.contact-form input,
.contact-form textarea {
  padding: 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  color: var(--primary-text-color);
  font-size: 1rem;
  font-family: var(--font-family);
  transition: box-shadow 0.2s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-color);
}
.contact-form button {
  align-self: center;
  margin-top: 1rem;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 3rem 0;
  background: var(--surface-color);
  color: var(--secondary-text-color);
  margin-top: 4rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-grid, .two-col, .two-col.reverse {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .two-col .text-content, .two-col .code-wrapper, .two-col .image-wrapper { 
    margin-top: 2rem; 
  }
  .two-col.reverse .text-content { 
    margin-top: 0; 
    margin-bottom: 2rem; 
  }
  .hero p { 
    margin: 0 auto 2rem auto; 
  }
  .hero-buttons { 
    justify-content: center; 
  }
  .text-content ul { 
    text-align: left; 
  }
  .nav-links { 
    display: none; 
  }
  .use-case-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;

  }
  .use-case-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
  }
}
