@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-main: #0B0F19;
  --bg-surface: #151B2C;
  --bg-surface-hover: #1E263F;
  --color-primary: #FF7A00;
  --color-primary-rgb: 255, 122, 0;
  --color-secondary: #00E5FF;
  --color-text: #E2E8F0;
  --color-text-muted: #94A3B8;
  --border-color: #2D3748;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.8);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  background-color: var(--bg-main);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px;
}

header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(21, 27, 44, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--color-secondary);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--border-color);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 24px;
  background: radial-gradient(circle at top, rgba(255, 122, 0, 0.15) 0%, transparent 60%);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
  border: 1px solid rgba(255, 122, 0, 0.05);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 40%, #FFB076 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 0, 0.4);
  box-shadow: var(--shadow-md);
  background-color: var(--bg-surface-hover);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 12px;
  color: #fff;
}

.card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  flex-grow: 1;
}

.card-footer {
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Parameter Grid */
.params-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.params-table th, .params-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.params-table th {
  background-color: rgba(255, 122, 0, 0.1);
  color: #fff;
  font-weight: 600;
  font-family: var(--font-heading);
}

.params-table tr:last-child td {
  border-bottom: none;
}

.params-table td strong {
  color: var(--color-secondary);
}

/* Page Layout */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

@media (max-width: 900px) {
  .layout-sidebar {
    grid-template-columns: 1fr;
  }
}

.content-area h1, .content-area h2, .content-area h3 {
  font-family: var(--font-heading);
  color: #fff;
  margin-top: 32px;
  margin-bottom: 16px;
}

.content-area h1 {
  font-size: 2.5rem;
  margin-top: 0;
  background: linear-gradient(135deg, #fff 60%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.content-area h2 {
  font-size: 1.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.content-area h3 {
  font-size: 1.25rem;
}

.content-area p {
  margin-bottom: 20px;
  color: #CBD5E1;
}

.content-area ul, .content-area ol {
  margin-bottom: 24px;
  padding-left: 24px;
  color: #CBD5E1;
}

.content-area li {
  margin-bottom: 8px;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.widget {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
}

.widget h4 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

/* Tool Styling */
.tool-group {
  margin-bottom: 20px;
}

.tool-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text-muted);
}

.tool-control {
  width: 100%;
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.tool-control:focus {
  border-color: var(--color-primary);
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-primary), #FF9E43);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4);
}

.tool-results {
  background-color: var(--bg-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-top: 24px;
}

.tool-results h4 {
  color: var(--color-primary);
  margin-bottom: 12px;
}

/* FAQ Accordion */
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  margin-top: 10px;
  color: var(--color-text-muted);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-question::after {
  content: "+";
  color: var(--color-primary);
  font-size: 1.25rem;
}

/* Disclaimer */
.disclaimer {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-primary);
  padding-left: 16px;
  margin-top: 40px;
}

footer {
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
  padding: 40px 24px 20px 24px;
  background-color: var(--bg-surface);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.footer-column h5 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 16px;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 10px;
}

.footer-column a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
