/* ============================================
   Open Tank Format - Landing Page Styles
   Brand Colors: Blue #2E9BD6, Dark #1A1A1A
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #2E9BD6;
  --color-primary-dark: #1E7BB0;
  --color-primary-light: #4DB8E8;
  --color-primary-subtle: #E8F4FC;
  --color-primary-glow: rgba(46, 155, 214, 0.15);
  --color-dark: #0F1419;
  --color-dark-soft: #1A2028;
  --color-dark-card: #1E2530;
  --color-text: #C8D1DA;
  --color-text-muted: #8494A7;
  --color-text-bright: #E8ECF1;
  --color-border: rgba(46, 155, 214, 0.12);
  --color-border-subtle: rgba(200, 209, 218, 0.08);
  --color-white: #FFFFFF;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(46, 155, 214, 0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-dark);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-light);
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Container --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar--scrolled {
  background: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  display: flex;
  align-items: center;
}

.navbar__logo {
  height: 40px;
  width: auto;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__link {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.navbar__link:hover {
  color: var(--color-text-bright);
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__cta {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
}

.navbar__cta:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(46, 155, 214, 0.3);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(46, 155, 214, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(46, 155, 214, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(46, 155, 214, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 155, 214, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__inner {
  position: relative;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-bright);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

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

.text-accent-muted {
  color: var(--color-primary);
  font-style: italic;
  font-weight: 500;
}

.text-muted {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

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

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(46, 155, 214, 0.35);
}

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

.btn--outline:hover {
  background: var(--color-primary-glow);
  color: var(--color-primary-light);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  justify-content: center;
  margin-top: 20px;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--color-dark-soft);
}

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: var(--color-primary-glow);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(46, 155, 214, 0.15);
}

.section__title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text-bright);
  letter-spacing: -0.02em;
}

/* --- Cards --- */
.card {
  background: var(--color-dark-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-glow);
}

.card--highlight {
  border-left: 3px solid var(--color-primary);
  background: linear-gradient(135deg, var(--color-dark-card) 0%, rgba(46, 155, 214, 0.04) 100%);
  margin-bottom: 40px;
}

.card--muted {
  background: rgba(26, 32, 40, 0.5);
  border: 1px solid var(--color-border-subtle);
}

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

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-glow);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  color: var(--color-primary);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-bright);
  margin-bottom: 16px;
}

.card p {
  margin-bottom: 12px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* --- Blockquote --- */
.blockquote {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--color-text-bright);
  font-style: italic;
  margin-bottom: 20px;
  padding: 0;
  border: none;
}

/* --- Content Blocks --- */
.content-block {
  max-width: 780px;
  margin: 0 auto;
}

.content-block p {
  margin-bottom: 16px;
}

.content-block h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-bright);
  margin-top: 28px;
  margin-bottom: 16px;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 24px;
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--center {
  align-items: center;
}

/* --- Tag List --- */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--color-primary-glow);
  color: var(--color-primary-light);
  border: 1px solid rgba(46, 155, 214, 0.12);
  border-radius: 100px;
}

/* --- Checklist --- */
.checklist {
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-primary-glow);
  border: 2px solid var(--color-primary);
}

.checklist li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 12px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}

/* --- Process List --- */
.process-list {
  list-style: none;
}

.process-list li {
  padding: 8px 0;
  padding-left: 16px;
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-subtle);
}

.process-list li:last-child {
  border-bottom: none;
}

.process-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* --- Out of Scope List --- */
.out-of-scope-list {
  list-style: none;
}

.out-of-scope-list li {
  padding: 10px 0;
  padding-left: 16px;
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border-subtle);
}

.out-of-scope-list li:last-child {
  border-bottom: none;
}

.out-of-scope-list li::before {
  content: '\2715';
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.out-of-scope-list li strong {
  color: var(--color-text);
}

/* --- CTA Box --- */
.cta-box {
  text-align: center;
  padding: 48px;
  margin-top: 40px;
  background: linear-gradient(135deg, rgba(46, 155, 214, 0.08) 0%, rgba(46, 155, 214, 0.02) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.cta-box__text {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text-bright);
  margin-bottom: 20px;
}

/* --- License --- */
.license-info {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 24px;
  padding: 24px;
  background: var(--color-dark-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
}

.license-badge img {
  width: 150px;
  flex-shrink: 0;
}

.license-info p {
  margin: 0;
  font-size: 0.95rem;
}

/* --- Changelog --- */
.changelog {
  list-style: none;
  margin-top: 8px;
}

.changelog li {
  position: relative;
  padding: 10px 0 10px 28px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.changelog li:last-child {
  border-bottom: none;
}

.changelog li::before {
  content: '+';
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
}

/* --- Releases --- */
.release-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.release {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.release:last-child {
  border-bottom: none;
}

.release__version {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-bright);
}

.release__date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.release__badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.release__badge--deprecated {
  background: rgba(220, 80, 80, 0.15);
  color: #E06060;
  border: 1px solid rgba(220, 80, 80, 0.2);
}

.release--deprecated .release__version {
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* --- Press Kit --- */
.presskit-badge {
  display: flex;
  justify-content: center;
}

.presskit-badge img {
  max-width: 260px;
  border-radius: var(--radius-md);
}

/* --- Scope Intro --- */
.scope-intro {
  margin-bottom: 40px;
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  border-top: 1px solid var(--color-border-subtle);
  padding: 60px 0 30px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  height: 36px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  gap: 60px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__heading {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.footer__col a {
  font-size: 0.9rem;
  color: var(--color-text);
  transition: color var(--transition);
}

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

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-border-subtle);
}

.footer__bottom p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    background: var(--color-dark-soft);
    padding: 80px 32px 32px;
    gap: 0;
    transition: right var(--transition);
    border-left: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
  }

  .navbar__menu.active {
    right: 0;
  }

  .navbar__link {
    padding: 16px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border-subtle);
    width: 100%;
  }

  .navbar__link::after {
    display: none;
  }

  .navbar__cta {
    margin-top: 16px;
    text-align: center;
    width: 100%;
    display: block;
  }

  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .card {
    padding: 28px;
  }

  .cta-box {
    padding: 32px 24px;
  }

  .footer__links {
    flex-direction: column;
    gap: 30px;
  }

  .license-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }

  .hero__title {
    font-size: 1.8rem;
  }
}
