/* style.css */

:root {
  --font-primary: "system-ui", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-secondary: "Georgia", "Times New Roman", serif;

  /* Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f7f9fc;
  --bg-tertiary: #eff3f8;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-light: #777777;
  --accent-primary: #0052cc;
  --accent-secondary: #007bff;
  --accent-hover: #0041a3;
  --border-color: #dde4ee;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08);
  --success-color: #28a745;
  --error-color: #dc3545;

  /* Sizing & Spacing */
  --container-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition-fast: 0.2s ease-in-out;
  --transition-slow: 0.4s ease-in-out;

  --fs-base: 16px;
  --fs-h1: 3.052rem;
  --fs-h2: 2.441rem;
  --fs-h3: 1.953rem;
  --fs-h4: 1.563rem;
  --fs-p: 1.125rem;
  --fs-small: 0.875rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2a2a2a;
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
    --text-light: #888888;
    --accent-primary: #4a90e2;
    --accent-secondary: #58a6ff;
    --accent-hover: #79b8ff;
    --border-color: #3a3a3a;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

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

html {
  font-size: var(--fs-base);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
}

.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-primary);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
}
h4 {
  font-size: var(--fs-h4);
}

p {
  font-size: var(--fs-p);
  margin-bottom: 1rem;
}

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

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

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

ul {
  list-style: none;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

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

.section-header p {
  font-size: var(--fs-p);
  color: var(--text-light);
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  transition: all var(--transition-fast);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: var(--fs-p);
}

.cta-button.primary {
  background-color: var(--accent-primary);
  color: #ffffff;
}

.cta-button.primary:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 82, 204, 0.2);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.cta-button.secondary:hover {
  background-color: var(--accent-primary);
  color: #ffffff;
}

.full-width {
  width: 100%;
}

/* Main Header */
.main-header {
  background-color: var(--bg-primary);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.8);
}

@media (prefers-color-scheme: dark) {
  .main-header {
    background-color: rgba(18, 18, 18, 0.8);
  }
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo:hover {
  text-decoration: none;
  color: var(--accent-primary);
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
}

.main-nav ul {
  display: flex;
  gap: 2.5rem;
}

.main-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width var(--transition-slow);
}

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

.main-nav a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle svg {
  width: 28px;
  height: 28px;
  color: var(--text-primary);
}

/* Hero Section */
.hero-section {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.hero-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content .subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.features-section {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature-card {
  background-color: var(--bg-secondary);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-slow);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-primary);
}

.feature-icon {
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 36px;
  height: 36px;
  color: var(--accent-primary);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Latest Articles Section */
.latest-articles-section {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.article-card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-slow);
  border: 1px solid var(--border-color);
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
}

.article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.article-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-category {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.article-title {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.article-excerpt {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.article-read-more {
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.article-read-more:hover {
  color: var(--accent-primary);
}

.articles-grid .article-card:nth-child(2) {
  grid-column: span 1;
}

.articles-grid .article-card:nth-child(3) {
  grid-column: span 1;
}

.articles-grid .article-card:first-child {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.articles-grid .article-card:first-child .article-image {
  height: 100%;
}

/* Audience Section (Tabs) */
.audience-section {
  padding: 6rem 0;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.tab-button {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  position: relative;
  transition: color var(--transition-fast);
}

.tab-button::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--accent-primary);
  transform: scaleX(0);
  transition: transform var(--transition-slow);
}

.tab-button.active {
  color: var(--text-primary);
}

.tab-button.active::after {
  transform: scaleX(1);
}

.tab-content {
  display: none;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.tab-content h4 {
  margin-bottom: 1rem;
}

.tab-content ul {
  list-style-type: disc;
  padding-left: 20px;
  text-align: left;
  max-width: 600px;
  margin: 1.5rem auto;
}

.tab-content li {
  margin-bottom: 0.5rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--bg-primary);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--accent-primary);
}

blockquote {
  quotes: "„" "”" "‚" "’";
}

blockquote p {
  font-family: var(--font-secondary);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 2rem;
}

blockquote p::before {
  content: open-quote;
  font-size: 4rem;
  position: absolute;
  left: -1rem;
  top: -1.5rem;
  color: var(--accent-primary);
  opacity: 0.2;
}

.testimonial-card cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
}

.cite-name {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
}

.cite-title {
  font-size: var(--fs-small);
  color: var(--text-light);
}

/* FAQ Section */
.faq-section {
  padding: 6rem 0;
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.5rem 2rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color var(--transition-fast);
}

.faq-question:hover {
  background-color: var(--bg-secondary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
  transition: transform var(--transition-slow);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.5s ease;
}

.faq-answer p {
  padding: 0 2rem 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

.faq-more-link {
  text-align: center;
  margin-top: 2.5rem;
}

.faq-more-link a {
  font-weight: 600;
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background-color: var(--bg-tertiary);
}

.cta-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

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

.cta-content p {
  color: var(--text-light);
  max-width: 450px;
}

.cta-form-container {
  background-color: var(--bg-primary);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.quick-register-form .form-group {
  margin-bottom: 1.5rem;
}

.quick-register-form input[type="text"],
.quick-register-form input[type="email"],
.quick-register-form input[type="password"] {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.quick-register-form input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.form-group-checkbox {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  font-size: var(--fs-small);
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.form-group-checkbox input {
  margin-top: 4px;
}

.form-thank-you h3 {
  margin-bottom: 1rem;
}

/* Footer */
.main-footer {
  background-color: var(--bg-secondary);
  color: var(--text-light);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.logo-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-column.about p {
  font-size: 1rem;
  max-width: 350px;
}

.footer-column.links ul li {
  margin-bottom: 0.75rem;
}

.footer-column.links a {
  color: var(--text-light);
}

.footer-column.links a:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

.footer-column.contact p {
  font-size: 1rem;
  line-height: 1.8;
}

.footer-column.contact a {
  color: var(--text-light);
}

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
  font-size: var(--fs-small);
}

/* Animations Reveal on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(100px);
  animation: slideInUp 0.5s forwards ease-out;
}

.cookie-banner-content p {
  margin: 0;
  font-size: 1rem;
}

.cookie-banner-button {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  background-color: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */

@media (max-width: 1200px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .articles-grid .article-card:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 992px) {
  :root {
    --fs-h1: 2.5rem;
    --fs-h2: 2rem;
    --fs-h3: 1.7rem;
    --fs-h4: 1.3rem;
    --fs-p: 1rem;
  }

  .main-nav {
    display: none;
  }

  .main-header .cta-button {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .main-nav.mobile-nav-active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
  }

  .main-nav.mobile-nav-active ul {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .main-nav.mobile-nav-active ul a {
    font-size: 1.5rem;
  }

  .hero-section {
    padding: 4rem 0;
  }

  .hero-section .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-image {
    grid-row: 1;
    margin-bottom: 2rem;
  }

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

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

  .articles-grid .article-card:first-child {
    grid-template-columns: 1fr;
  }

  .articles-grid .article-card:first-child .article-image {
    height: 220px;
  }

  .cta-section .container {
    grid-template-columns: 1fr;
  }

  .cta-content {
    text-align: center;
  }
  .cta-content p {
    margin: 0 auto 1rem;
  }

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

  .footer-column.about,
  .footer-column.contact {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .articles-grid .article-card:first-child {
    grid-column: span 1;
  }

  .tab-buttons {
    flex-direction: column;
    gap: 0;
    border-bottom: none;
  }

  .tab-button {
    border-bottom: 1px solid var(--border-color);
  }

  .tab-button::after {
    display: none;
  }

  .tab-button.active {
    background-color: var(--bg-secondary);
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    bottom: 10px;
    left: 10px;
    right: 10px;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-column.about,
  .footer-column.contact {
    grid-column: span 1;
  }
}
