/* TrailTool Website Styles - Based on EngSecLabs Design System */

:root {
  --primary-color: #2563eb;
  --accent-color: #0ea5e9;
  --secondary-color: #64748b;
  --background: #ffffff;
  --background-subtle: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  font-weight: 600;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Header / Hero Section */
header {
  padding: 60px 0 40px;
  text-align: center;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 48px;
  position: relative;
}

.alpha-stamp {
  position: absolute;
  top: 20px;
  right: -20px;
  background: var(--accent-color);
  color: white;
  padding: 8px 40px;
  font-weight: 700;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transform: rotate(12deg);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 10;
}

h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.tagline {
  font-size: 1.25em;
  color: var(--accent-color);
  margin-bottom: 1em;
  font-weight: 500;
}

.subtitle {
  font-size: 1.1em;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

header .subtitle {
  text-align: center;
}

/* Call to Action Buttons */
.cta {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 12px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1em;
  font-weight: 500;
  margin: 8px;
  transition: all 0.2s ease;
  border: 2px solid var(--primary-color);
}

.cta:hover {
  background: #1e40af;
  border-color: #1e40af;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.cta-secondary {
  background: white;
  border: 2px solid var(--border-color);
  color: var(--text-primary);
}

.cta-secondary:hover {
  background: white;
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Sections */
section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-subtle);
}

section:last-of-type {
  border-bottom: none;
}

h2 {
  font-size: 1.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-align: left;
  position: relative;
  padding-bottom: 12px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

h3 {
  font-size: 1.25em;
  margin: 1.5em 0 0.5em;
  color: var(--text-primary);
  font-weight: 600;
}

/* Content sections */
.problem-section, .solution-section {
  padding: 40px 0;
}

.solution-section {
  background: rgba(37, 99, 235, 0.03);
  border-radius: 8px;
  padding: 40px 32px;
  margin: 0 -32px;
}

.problem-section p {
  margin-bottom: 12px;
}

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

/* Install page specific styles */
body p {
  margin-bottom: 16px;
}

body p:last-child {
  margin-bottom: 0;
}

h3 + p {
  margin-top: 12px;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.feature-card {
  background: var(--background-card);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color);
}

.feature-icon {
  font-size: 2.5em;
  margin-bottom: 0.3em;
}

.feature-title {
  font-size: 1.3em;
  color: white;
  margin-bottom: 0.5em;
  font-weight: 600;
}

.feature-desc {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Lists */
ul {
  margin: 20px 0;
  padding-left: 0;
  list-style: none;
}

ul li {
  margin: 14px 0;
  padding-left: 32px;
  position: relative;
  line-height: 1.7;
  color: var(--text-primary);
}

ul li::before {
  content: "→";
  position: absolute;
  left: 8px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1em;
}

/* Code */
code {
  background: var(--background-subtle);
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--text-primary);
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 0.875em;
  border: 1px solid var(--border-color);
}

pre {
  background: var(--background-subtle);
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  border: 1px solid var(--border-color);
}

/* Workflow boxes */
.workflow {
  padding: 20px 0;
  margin: 30px 0;
}

.workflow ol {
  list-style-position: inside;
  counter-reset: item;
  list-style-type: none;
}

.workflow li {
  margin: 15px 0;
  padding-left: 10px;
  counter-increment: item;
  position: relative;
}

.workflow li::before {
  content: counter(item) ".";
  font-weight: 600;
  color: var(--primary-color);
  margin-right: 0.5em;
}

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

/* Warning/Info boxes */
.warning, .limitations {
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--background-subtle);
  border-left: 3px solid var(--primary-color);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.95em;
}

/* Forms */
form {
  padding: 24px;
  margin: 20px 0 32px 0;
  background: var(--background-subtle);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

label {
  display: block;
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95em;
}

input, select {
  width: 100%;
  padding: 11px 14px;
  background: white;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1em;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

button {
  margin-top: 20px;
  padding: 11px 24px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 500;
  transition: all 0.2s ease;
}

button:hover {
  background: #1e40af;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* Footer */
footer {
  margin-top: 80px;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9em;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
}

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

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 48px 32px;
  background: var(--background-subtle);
  border-radius: 8px;
  margin: 40px 0;
  border: 1px solid var(--border-color);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5em;
  }

  h2 {
    font-size: 2em;
  }

  .tagline {
    font-size: 1.2em;
  }

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

  header {
    padding: 60px 0 40px;
  }

  .alpha-stamp {
    top: 10px;
    right: -10px;
    padding: 6px 30px;
    font-size: 0.8em;
  }

  section {
    padding: 32px 0;
  }

  .problem-section, .solution-section {
    padding: 32px 20px;
    margin: 0 -20px;
  }

  .cta-section {
    padding: 40px 20px;
  }
}
