/* Hysterix OS Redesign Stylesheet
 * Inspired by the clean minimalism of Apple’s design language, this stylesheet
 * introduces a dark, cosmic aesthetic grounded in the Unity Constant values
 * of simplicity, clarity and contrast. Colours, typography and spacing are
 * carefully chosen to create harmony across the entire site. */

/* Colour palette */
:root {
  --primary-color: #ffffff;
  --accent-color: #ff5722; /* vibrant orange for calls to action */
  --accent-color-hover: #ff784e;
  --background-color: #0a0a20; /* deep cosmic backdrop */
  --secondary-bg: #1f2142; /* subtle panels and cards */
  --text-color: #dddddd;
  --heading-font: 'Helvetica Neue', Arial, sans-serif;
  --body-font: 'Inter', Arial, sans-serif;
}

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

html, body {
  height: 100%;
  font-family: var(--body-font);
  background-color: var(--background-color);
  color: var(--text-color);
  scroll-behavior: smooth;
}

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

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

/* Header styling */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.header .logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  letter-spacing: 0.05rem;
}

.header nav ul {
  list-style: none;
  display: flex;
  gap: 24px;
}

.header nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 4px;
}

.header nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.2s ease;
}

.header nav a:hover::after {
  width: 100%;
}

/* Active nav link */
.header nav a.active {
  color: var(--accent-color);
}

/* Hero section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero .content {
  position: relative;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  color: var(--primary-color);
}

.hero h1 {
  font-family: var(--heading-font);
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 32px;
  color: #e0e0e0;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  background-color: var(--accent-color);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: var(--accent-color-hover);
}

/* Generic sections */
.section {
  padding: 100px 40px;
  text-align: center;
}

.section h2 {
  font-family: var(--heading-font);
  font-size: 2.4rem;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.section p {
  max-width: 700px;
  margin: 0 auto 40px auto;
  font-size: 1rem;
  line-height: 1.6;
  color: #cccccc;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background-color: var(--secondary-bg);
  border-radius: 8px;
  padding: 24px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Learn more inline arrow styling */
.learn-more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  color: var(--accent-color);
  transition: color 0.2s ease;
}

.card:hover .learn-more {
  color: var(--accent-color-hover);
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.card p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #b6b6c2;
}

.card a {
  font-weight: 600;
}

/* Footer */
.footer {
  background-color: var(--secondary-bg);
  padding: 60px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  color: #bbbbbb;
}

.footer .column {
  flex: 1;
  min-width: 200px;
}

.footer h3 {
  margin-bottom: 16px;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 8px;
}

.footer a {
  color: #bbbbbb;
  font-size: 0.9rem;
}

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

/* Edition page specifics */
.edition-page .edition-hero {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.edition-page .edition-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
}

.edition-page .edition-hero .content {
  position: relative;
  text-align: center;
  padding: 20px;
  color: var(--primary-color);
}

.edition-page h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}

.edition-section {
  padding: 80px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.edition-section h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: var(--primary-color);
}

.edition-section h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--accent-color);
}

.edition-section p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: #c0c0d0;
}

.edition-section ul {
  margin-left: 20px;
  margin-bottom: 24px;
  color: #c0c0d0;
}

.edition-section ul li {
  margin-bottom: 8px;
  list-style: disc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header {
    padding: 0 20px;
  }
  .section {
    padding: 80px 20px;
  }
  .footer {
    padding: 40px 20px;
  }
  .hero h1 {
    font-size: 2.4rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}