/* ============================================================
   PLAN22.NET - DESIGN SYSTEM  (EN)
   Updated: 2026-05-21

   COLOR TOKENS
   --color-bg             #ffffff      Main background
   --color-surface        #f8fafd      Card / elevated surface
   --color-bg-alt         #f0f7ff      Alternate section stripe
   --color-text-primary   #1a1f2e      Primary body text
   --color-text-secondary #5a6478      Meta / secondary text
   --color-accent         #00D9FF      Electric cyan - primary accent
   --color-accent-dark    #009ab8      Darker shade (hover, text on light)
   --color-accent-soft    rgba(0,217,255,0.10)  Badge backgrounds, tints
   --color-border         #e2e8f0      Card and input borders
   --color-nav-bg         #1a2030      Navigation and footer background

   TYPOGRAPHY TOKENS
   --font-heading   'Space Grotesk', sans-serif
   --font-body      'Inter', sans-serif
   --fs-display     clamp(1.6rem, 3.5vw, 2.4rem)   Hero headline
   --fs-h1          clamp(1.3rem, 2.5vw, 1.9rem)
   --fs-h2          1.75rem                          Section titles
   --fs-h3          1.2rem                           Card titles
   --fs-body        1rem
   --fs-small       0.82rem                          Meta, badges, labels
   ============================================================ */

:root {
  --color-bg: #ffffff;
  --color-surface: #f8fafd;
  --color-bg-alt: #f0f7ff;
  --color-text-primary: #1a1f2e;
  --color-text-secondary: #5a6478;
  --color-accent: #00D9FF;
  --color-accent-dark: #009ab8;
  --color-accent-soft: rgba(0, 217, 255, 0.10);
  --color-border: #e2e8f0;
  --color-nav-bg: #1a2030;
  --color-cta-bg: #007bff;
  --color-cta-hover: #0056b3;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --fs-display: clamp(1.6rem, 3.5vw, 2.4rem);
  --fs-h1: clamp(1.3rem, 2.5vw, 1.9rem);
  --fs-h2: 1.75rem;
  --fs-h3: 1.2rem;
  --fs-body: 1rem;
  --fs-small: 0.82rem;
}

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

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

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

/* NAV */
nav {
  background: var(--color-nav-bg);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
nav.nav-scrolled {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(26, 32, 48, 0.92);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  gap: 0.75rem;
}
nav .brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  font-family: var(--font-heading);
  white-space: nowrap;
  flex-shrink: 0;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  align-items: center;
  flex-wrap: nowrap;
}
nav li a {
  color: rgba(255, 255, 255, 0.80);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
nav li a:hover { color: #fff; }
nav li:not(.language-switch) a.nav-active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* Language pill */
.language-switch { margin-left: auto; flex-shrink: 0; }
.lang-pill {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}
.lang-pill a {
  color: rgba(255, 255, 255, 0.60);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.65rem;
  line-height: 1.6;
  border-bottom: none;
  transition: color 0.2s, background 0.2s;
}
.lang-pill a.active {
  background: var(--color-accent);
  color: #0f1420;
}
.lang-pill a:hover:not(.active) {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}

/* HAMBURGER */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 0.5rem;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* HERO BANNER */
#banner { margin: 0; padding: 0; display: block; }

.hero { position: relative; display: block; overflow: hidden; height: min(70vh, 41.06vw); }
.hero picture { display: block; height: 100%; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 45%; height: 100%;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.28) 50%,
    rgba(255,255,255,0) 100%
  );
  transform: translateX(-150%) skewX(-18deg);
  animation: banner-shine 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes banner-shine {
  0%   { transform: translateX(-150%) skewX(-18deg); }
  40%  { transform: translateX(280%)  skewX(-18deg); }
  100% { transform: translateX(280%)  skewX(-18deg); }
}

/* CTA bar */
.banner-text-below {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 2rem 2.2rem;
  background: var(--color-bg-alt);
  gap: 1rem;
  overflow: hidden;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: var(--fs-display);
  font-weight: 700;
  color: var(--color-text-primary);
  text-align: center;
  line-height: 1.18;
  max-width: 820px;
  animation: fadeUp 0.65s ease both;
}

.cta-tagline {
  font-size: 1rem;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 660px;
  animation: fadeUp 0.65s 0.15s ease both;
}

.hero-cta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.65s 0.30s ease both;
}

.hero-btn-primary {
  background: var(--color-accent);
  color: #0f1420;
  padding: 0.72rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  transition: background 0.25s, box-shadow 0.25s;
}
.hero-btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 4px 20px rgba(0, 217, 255, 0.35);
}

.hero-btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  padding: 0.70rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  border: 2px solid var(--color-border);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.hero-btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
  background: var(--color-accent-soft);
}

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

/* SOCIAL STRIP */
.social-strip {
  background: #2c3338;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.social-strip a {
  color: #bbb;
  text-decoration: none;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}
.social-strip a:hover { color: #fff; }

/* SECTION BACKGROUNDS */
.bg-white { background: var(--color-bg); }
.bg-alt   { background: var(--color-bg-alt); }

/* CONTAINER */
.container-section { max-width: 1200px; margin: 0 auto; padding: 3rem 1.25rem; }

/* SECTION TITLES */
.section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: var(--fs-h2);
  font-weight: 700;
}
.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* GRID CARDS */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid transparent;
  border-radius: 10px;
  padding: 1.5rem;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s, transform 0.3s, border-left-color 0.3s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
  transform: translateY(-3px);
  border-left-color: var(--color-accent);
}
.card picture, .card img { max-width: 100%; border-radius: 6px; }
.card h3 { margin-top: 1rem; margin-bottom: 0.5rem; font-size: var(--fs-h3); }
.card p { margin-bottom: 1rem; color: var(--color-text-secondary); }

/* NEWS BADGES */
.news-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}
.badge-paper    { background: var(--color-accent-soft); color: var(--color-accent-dark); border: 1px solid rgba(0,217,255,0.28); }
.badge-external { background: rgba(90,100,120,0.08);   color: var(--color-text-secondary); border: 1px solid var(--color-border); }
.badge-original { background: rgba(26,122,60,0.10);    color: #1a7a3c; border: 1px solid rgba(26,122,60,0.28); }

/* TAGS */
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 0.9rem; }
.tag        { background: #e8f1fd; color: #0061cc; font-size: 0.7rem; padding: 2px 9px; border-radius: 12px; font-weight: 600; }
.tag-green  { background: #e6f7ec; color: #1a7a3c; }
.tag-orange { background: #fff0e0; color: #b85c00; }

/* CARD LINKS */
.card-link { color: var(--color-cta-bg); text-decoration: none; }
.card-link:hover { color: var(--color-cta-hover); }
#news .card { cursor: pointer; }
#news .card .card-link::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; }

/* FEATURED APP CARDS */
.featured-apps { display: flex; flex-direction: column; gap: 2rem; }

.featured-card {
  display: flex;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.3s, transform 0.3s;
}
.featured-card:hover {
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.11);
  transform: translateY(-3px);
}

.featured-image { flex: 0 0 42%; max-width: 42%; overflow: hidden; }
.featured-image picture { display: block; height: 100%; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.featured-image.contain img { object-fit: contain; background: #f4f7fb; padding: 1.5rem; }
.featured-card:hover .featured-image img { transform: scale(1.04); }

.featured-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-content h3 { font-size: var(--fs-h3); margin-bottom: 0.4rem; }
.featured-content .meta { font-size: var(--fs-small); color: var(--color-text-secondary); margin-bottom: 0.5rem; }
.featured-content > p { color: var(--color-text-secondary); margin-bottom: 0.75rem; line-height: 1.7; }

.launch-btn {
  display: inline-block;
  background: var(--color-cta-bg);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-small);
  transition: background 0.25s;
  align-self: flex-start;
  margin-top: 0.4rem;
}
.launch-btn:hover { background: var(--color-cta-hover); }

/* Hero / Featured app card variant */
.hero-app-card {
  border-color: rgba(0, 217, 255, 0.22);
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(0,217,255,0.03) 100%);
  box-shadow: 0 4px 24px rgba(0,217,255,0.07), 0 2px 8px rgba(0,0,0,0.05);
}
.hero-app-card:hover {
  box-shadow: 0 12px 42px rgba(0,217,255,0.13), 0 4px 16px rgba(0,0,0,0.08);
  border-color: rgba(0, 217, 255, 0.40);
}
.hero-app-card .featured-image { flex: 0 0 48%; max-width: 48%; }
.hero-app-card .featured-content h3 { font-size: 1.4rem; }
.hero-app-card .featured-content > p { font-size: 1rem; }

.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-accent);
  color: #0f1420;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  z-index: 2;
}

/* ABOUT + CONTACT */
.about-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-contact-grid .section-title { text-align: start; }
.about-contact-grid .section-title::after { margin: 0.5rem 0 0; }
.about-contact-grid .about-content { max-width: 100%; }

/* CONTACT FORM */
.contact-form { max-width: 100%; display: flex; flex-direction: column; gap: 1rem; }
.contact-form label { font-weight: 600; font-size: var(--fs-small); }
.contact-form input, .contact-form textarea {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  background: var(--color-bg);
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.14);
}
.contact-form button {
  background: var(--color-cta-bg);
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.25s;
}
.contact-form button:hover { background: var(--color-cta-hover); }

/* ABOUT */
.about-content { max-width: 820px; margin: 0 auto; }
.about-lead { font-size: 1.1rem; font-weight: 600; color: var(--color-cta-bg); margin-bottom: 1.2rem; }
.about-content p.about-lead { text-align: left; }
.about-content p { margin-bottom: 1rem; line-height: 1.78; color: #444; text-align: justify; }
.about-links { display: flex; gap: 1.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.about-links a {
  color: var(--color-text-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.18s ease;
}
.about-links a i {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.18s ease;
}
.about-links a .fa-linkedin { color: #0A66C2; }
.about-links a .fa-github { color: #1a1f2e; }
.about-links a .fa-youtube { color: #FF0000; }
.about-links a .fa-instagram { color: #E4405F; }
.about-links a .fa-envelope { color: var(--color-accent-dark); }
.about-links a:hover,
.about-links a:focus-visible { color: var(--color-accent-dark); }
.about-links a:hover i,
.about-links a:focus-visible i { transform: scale(1.1); }

/* FOOTER */
footer { background: var(--color-nav-bg); color: #fff; padding: 2.5rem 1.25rem 1.5rem; }
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}
.footer-brand, .footer-links, .footer-social { flex: 1 1 200px; }
.footer-brand h3 { margin-bottom: 0.5rem; font-family: var(--font-heading); }
.footer-brand p { line-height: 1.5; color: rgba(255,255,255,0.60); font-size: var(--fs-small); }
.footer-links ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer-links li { margin-bottom: 0; }
.footer-links a { color: rgba(255,255,255,0.70); text-decoration: none; font-size: var(--fs-small); transition: color 0.25s; }
.footer-links a:hover { color: var(--color-accent); }
.footer-social a { margin-right: 1rem; font-size: 1.4rem; color: rgba(255,255,255,0.70); transition: color 0.25s; }
.footer-social a:hover { color: var(--color-accent); }
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: var(--fs-small);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  color: rgba(255,255,255,0.50);
}

/* SCROLL-TO-TOP */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-cta-bg);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.3s;
  z-index: 998;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--color-cta-hover); }

/* MOBILE */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  nav .container { flex-wrap: wrap; }
  #nav-menu { display: none; width: 100%; flex-direction: column; align-items: center; gap: 0.65rem; padding: 0.75rem 0; }
  #nav-menu.open { display: flex; }
  nav li a { font-size: 0.9rem; padding: 0.25rem; }
  .language-switch { margin-left: 0; margin-top: 0.15rem; }

  .featured-card { flex-direction: column; }
  .featured-image { flex: none; max-width: 100%; height: 220px; }
  .featured-image.contain img { height: 220px; }
  .hero-app-card .featured-image { flex: none; max-width: 100%; height: 220px; }
  .hero-app-card .featured-content h3 { font-size: 1.15rem; }
  .featured-content { padding: 1.25rem; }
  .featured-badge { top: 0.75rem; left: 0.75rem; }

  .grid { grid-template-columns: 1fr; }
  .contact-form { width: 100%; }
  .about-contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-links { flex-direction: column; gap: 0.75rem; }

  .hero-headline { font-size: clamp(1.25rem, 5.5vw, 1.75rem); }
  .news-badge { top: 0.6rem; right: 0.6rem; }

  .scroll-top { bottom: 1rem; right: 1rem; }
}

/* 2.2 Banner headline */
#banner h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  line-height: 1.3;
  white-space: normal;
  word-break: normal;
}

@media (max-width: 480px) {
  #banner h1 { font-size: clamp(1.3rem, 5vw, 1.8rem); }
  /* 2.3 CTA buttons stack vertically on small screens */
  #banner .hero-cta { flex-direction: column; align-items: center; gap: 12px; }
}

/* Hero social profile row (between banner image and headline) */
.hero-socials {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 9px auto 0;
  padding: 0;
  background: transparent;
  position: static;
}
.hero-socials a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text-primary);
  background: transparent;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.18s ease, transform 0.18s ease;
}
.hero-socials a i {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.18s ease;
}
.hero-socials a .fa-linkedin { color: #0A66C2; }
.hero-socials a .fa-github { color: #1a1f2e; }
.hero-socials a .fa-youtube { color: #FF0000; }
.hero-socials a .fa-instagram { color: #E4405F; }
.hero-socials a:hover,
.hero-socials a:focus-visible {
  color: var(--color-accent-dark);
}
.hero-socials a:hover i,
.hero-socials a:focus-visible i {
  transform: scale(1.1);
}
.hero-socials a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (max-width: 480px) {
  .hero-socials { gap: 14px; margin: 6px auto 0; }
  .hero-socials a { font-size: 0.82rem; gap: 5px; }
  .hero-socials a i { font-size: 1rem; }
}

/* ============================================================
   NAV SIGN IN BUTTON
   ============================================================ */
.nav-signin { margin-left: 0.4rem; flex-shrink: 0; }
.nav-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-accent) !important;
  background: rgba(0, 217, 255, 0.10);
  border: 1px solid rgba(0, 217, 255, 0.45);
  border-radius: 20px;
  padding: 0.32rem 0.85rem 0.32rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 217, 255, 0.45) !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.05s;
}
.nav-signin-btn:hover {
  background: var(--color-accent);
  color: #0f1420 !important;
  border-color: var(--color-accent);
}
.nav-signin-btn:active { transform: translateY(1px); }
.nav-signin-btn i { font-size: 0.95rem; line-height: 1; }
.nav-signin-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
@media (max-width: 900px) {
  .nav-signin { margin-left: 0; margin-top: 0.5rem; }
  .nav-signin-btn { width: 100%; justify-content: center; }
}
