:root {
  --nrg-black: #050505;
  --nrg-red: #e30613;
  --nrg-white: #ffffff;

  --bg-dark: #111111;
  --bg-darker: #060606;
  --bg-light: #f4f4f4;

  --text-main: #f5f5f5;
  --text-muted: #b5b5b5;

  --radius-card: 12px;
  --shadow-soft: 0 14px 30px rgba(0, 0, 0, 0.45);
  --shadow-light: 0 6px 18px rgba(0, 0, 0, 0.3);

  --header-height: 70px;
}

/* Reset-ish */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-darker);
  color: var(--text-main);
}


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

a {
  color: var(--nrg-red);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.top-bar {
  background: #000;
  font-size: 13px;
  color: var(--text-muted);
}

.top-bar__inner {
  display: flex;
  justify-content: flex-end;   /* right aligned */
  align-items: center;
  padding: 6px 0;
}

/* Remove old layout groups completely */
.top-bar__left,
.top-bar__right {
  display: none;
}

/* Social icon group */
.top-bar__social-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Social icons style */
.top-bar__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.top-bar__social img {
  width: 32px;
  height: 32px;
  display: block;
}

.top-bar__social:hover {
  opacity: 0.75;
  transform: scale(1.06);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nrg-white);
}

.header__logo img {
  height: 48px;
  width: auto;
}

.header__logo-text {
  font-size: 16px;
}

/* Nav */
.header__nav {
  display: flex;
}

.site-header--scrolled {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6);
}

.header__nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.header__nav-list a {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-main);
  position: relative;
}

.header__nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--nrg-red);
  transition: width 0.2s ease;
}

.header__nav-list a:hover::after {
  width: 100%;
}

/* Mobile nav toggle */
.header__nav-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.header__nav-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nrg-white);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  background: radial-gradient(circle at top left, #2b0000 0, #000000 35%, #050505 100%);
  padding: 72px 0 72px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero__content h1 {
  font-size: 40px;
  line-height: 1.1;
}

.hero__subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 460px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.hero__note {
  font-size: 13px;
  color: var(--text-muted);
}

.hero__visual {
  display: flex;
  justify-content: flex-end;
}

.hero__card {
  background: rgba(0, 0, 0, 0.95);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  max-width: 320px;
}

.hero__card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.hero__card ul {
  margin: 0 0 16px 18px;
  padding: 0;
  font-size: 14px;
}

.hero__tag {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--nrg-red);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn--primary {
  background: var(--nrg-red);
  color: var(--nrg-white);
  border-color: var(--nrg-red);
}

.btn--primary:hover {
  background: #ff1a26;
  border-color: #ff1a26;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--nrg-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn--full {
  width: 100%;
}

/* Sections */
.section {
  padding: 64px 0;
  background: var(--bg-dark);
}

.section--dark {
  background: #050505;
}

.section__title {
  font-size: 28px;
  text-align: center;
}

.section__subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.section__split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: flex-start;
}

.section__split--reverse {
  grid-auto-flow: dense;
}

.section__split--reverse .section__block:first-child {
  order: 2;
}

.section__split--reverse .section__block:last-child {
  order: 1;
}

.section__block {
  min-width: 0;
}

/* Cards (services) */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.card {
  background: rgba(15, 15, 15, 0.95);
  border-radius: var(--radius-card);
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

/* New: card with image */
.card--with-image {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__image {
  position: relative;
  overflow: hidden;
  max-height: 160px;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__body {
  padding: 14px 16px 16px;
}

/* List */
.list {
  padding-left: 18px;
  margin: 12px 0 16px;
  color: var(--text-muted);
  font-size: 14px;
}

/* App section */
.app-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-frame {
  border-radius: 26px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  padding: 10px;
  max-width: 260px;
  box-shadow: var(--shadow-soft);
}

.phone-screen {
  background: radial-gradient(circle at top, #2b0000 0, #090909 50%, #000000 100%);
  border-radius: 20px;
  padding: 18px;
  font-size: 13px;
}

.phone-screen h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.phone-screen p {
  margin-bottom: 10px;
  color: var(--text-muted);
}

.phone-song {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.phone-song__title {
  font-size: 12px;
}

.phone-song__cta {
  font-size: 11px;
  color: var(--nrg-red);
}

.phone-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Store buttons */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.store-image img {
  height: 48px;        /* perfect size */
  width: auto;
  display: block;
}

@media (max-width: 600px) {
  .store-image img {
    height: 44px;
  }
}

/* Clients */
.clients {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  align-items: center;
  margin-top: 24px;
}

.clients__logo {
  background: rgba(0, 0, 0, 0.75);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  height: 90px;
}

.clients__logo img {
  max-height: 90px;
  width: auto;
}

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.team-card {
  background: rgba(0, 0, 0, 0.9);
  border-radius: var(--radius-card);
  padding: 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.team-card__photo img {
  border-radius: 50%;
  width: 90px;
  height: 90px;
  object-fit: cover;
  margin: 0 auto 10px;
}

.team-card__name {
  font-size: 16px;
}

.team-card__role {
  font-size: 13px;
  color: var(--text-muted);
}

/* Contact */
.contact-form {
  background: rgba(0, 0, 0, 0.85);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-light);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form__field {
  margin-bottom: 12px;
}

.contact-form label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #050505;
  color: var(--nrg-white);
  font-size: 13px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #777777;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form__hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Footer */
.site-footer {
  background: #000000;
  color: var(--text-muted);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 32px 16px;
}

.footer__brand {
  flex: 1 1 240px;
}

.footer__logo img {
  height: 60px;
  width: auto;
  margin-bottom: 10px;
}

.footer__tagline {
  font-size: 13px;
}

.footer__columns {
  display: flex;
  flex: 2 1 320px;
  gap: 32px;
  justify-content: flex-end;
}

.footer__column h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nrg-white);
  margin-bottom: 10px;
}

.footer__column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.footer__column li {
  margin-bottom: 4px;
}

.footer__column a {
  color: var(--text-muted);
}

/* Bottom bar */
.bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #000000;
  font-size: 12px;
}

.bottom-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 12px;
  gap: 12px;
}

.bottom-bar__mini-links {
  display: flex;
  gap: 6px;
}

/* Legal pages */
.page-legal .hero,
.page-legal .section {
  background: var(--bg-darker);
}

.legal {
  padding: 40px 0 60px;
  background: var(--bg-darker);
}

.legal h1 {
  font-size: 26px;
  margin-bottom: 4px;
}

.legal h2 {
  font-size: 18px;
  margin-top: 24px;
}

.legal__meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.legal p,
.legal ul {
  font-size: 14px;
  color: #e0e0e0;
}

.contact-form__result {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.contact-form__result--success {
  color: #2ecc71;
}

.contact-form__result--error {
  color: #e74c3c;
}

/* Responsive */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    justify-content: flex-start;
  }

  .section__split {
    grid-template-columns: minmax(0, 1fr);
  }

  .section__split--reverse .section__block:first-child,
  .section__split--reverse .section__block:last-child {
    order: initial;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .footer__columns {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .top-bar__inner {
    flex-direction: column;
    align-items: flex-end;
  }

  .header__nav-toggle {
    display: block;
  }

  .header__nav {
    position: absolute;
    inset: calc(var(--header-height) + 0px) 0 auto 0;
    background: #000000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
  }

  .header__nav-list {
    flex-direction: column;
    padding: 10px 16px 12px;
    gap: 12px;
  }

  .header__nav--open {
    max-height: 240px;
  }

  /* ------- FOOTER FIXES ------- */

  .footer__inner {
    flex-direction: column;
    gap: 12px;              /* smaller gap on mobile */
    padding: 24px 16px;     /* a bit tighter vertically */
  }

  /* This is the important part: kill the 240px flex-basis */
  .footer__brand {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .footer__logo img {
    height: 40px;
  }

  .footer__tagline {
    margin: 0;
  }

  .footer__columns {
    flex-direction: column;
  }

  /* ------- OTHER MOBILE LAYOUT ------- */

  .clients {
    grid-template-columns: minmax(0, 1fr);
  }

  .team {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 48px;
  }
}

