/* ============================================================
   Hydra Platform Landing Page — Styles
   Visual identity: Ikerlan dark theme + brand green accent
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --brand: #23ef31;
  --brand-rgb: 35, 239, 49;
  --brand-dim: rgba(35, 239, 49, 0.12);
  --brand-hover: rgba(35, 239, 49, 0.75);
  --brand-glow: rgba(35, 239, 49, 0.25);

  --bg-primary: #111111;
  --bg-secondary: #1a1a1a;
  --bg-card: #1e1e1e;
  --bg-card-hover: #252525;

  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #7c7c7c;

  --border: #333333;
  --border-light: #444444;

  --radius: 16px;
  --radius-sm: 8px;
  --radius-xs: 4px;

  --max-width: 1200px;
  --header-height: 72px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  max-width: 680px;
}

.text-brand {
  color: var(--brand);
}

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

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

@media (min-width: 1280px) {
  .container { padding: 0 56px; }
}

.section {
  padding: 80px 0;
}

@media (min-width: 1024px) {
  .section { padding: 120px 0; }
}

.section--alt {
  background-color: var(--bg-secondary);
}

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__header p {
  margin: 16px auto 0;
  max-width: 600px;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  margin-bottom: 12px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--brand);
  color: #111;
}

.btn--primary:hover {
  background-color: var(--brand-hover);
  color: #111;
  transform: translateY(-1px);
}

.btn--secondary {
  background-color: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn--secondary:hover {
  background-color: var(--brand-dim);
  color: var(--brand);
  transform: translateY(-1px);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.8125rem;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.header--scrolled {
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .header__inner { padding: 0 40px; }
}

.header__logos {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__logo img,
.header__logo svg {
  height: 28px;
  width: auto;
}

.header__logo--group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo--group .header__logo-icon {
  height: 28px;
  width: auto;
}

.header__logo--group .header__logo-title {
  height: 17px;
  width: auto;
}

.header__divider {
  width: 1px;
  height: 24px;
  background-color: var(--border);
}

.header__nav {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .header__nav { display: flex; }
}

.header__nav a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.header__nav a:hover {
  color: var(--text-primary);
}

.header__cta {
  display: none;
}

@media (min-width: 768px) {
  .header__cta { display: inline-flex; }
}

/* Mobile nav toggle */
.header__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

@media (min-width: 768px) {
  .header__toggle { display: none; }
}

.header__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-primary);
  padding: 32px 24px;
  z-index: 999;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.25rem;
  color: var(--text-secondary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover {
  color: var(--text-primary);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 24px;
}

@media (min-width: 768px) {
  .hero__inner {
    padding: 80px 40px;
  }
}

.hero__content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: flex-start;
  }
  .hero__content { text-align: left; }
  .hero__brand { align-items: flex-start; }
}

.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
}

.hero__brand-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

@media (min-width: 768px) {
  .hero__brand-row {
    flex-direction: row;
    gap: 24px;
  }
}

.hero__brand-icon {
  height: 110px;
  width: auto;
  flex-shrink: 0;
}

.hero__brand-title {
  height: 72px;
  width: auto;
  flex-shrink: 0;
}

.hero__byline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__byline span {
  font-size: 1.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero__brand-ikerlan {
  max-height: 32px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.75;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background-color: var(--brand-dim);
  border: 1px solid rgba(35, 239, 49, 0.25);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero__title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

@media (min-width: 1024px) {
  .hero__subtitle { font-size: 1.25rem; }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero__actions { justify-content: flex-start; }
}

.hero__image {
  position: relative;
}

@media (min-width: 1024px) {
  .hero__image { padding-top: 0; margin-top: 170px; }
}

.hero__image img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(35, 239, 49, 0.1);
  pointer-events: none;
}

/* --- Value Props / Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.card:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: var(--brand-dim);
  margin-bottom: 20px;
}

.card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--brand);
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card__text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Feature Blocks --- */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.feature:last-child {
  border-bottom: none;
}

@media (min-width: 1024px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
  }

  .feature--reverse {
    direction: rtl;
  }

  .feature--reverse > * {
    direction: ltr;
  }
}

.feature__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature__number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.feature__title {
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .feature__title { font-size: 1.75rem; }
}

.feature__text {
  font-size: 1rem;
  line-height: 1.7;
}

.feature__image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background-color: var(--bg-card);
}

.feature__image img {
  width: 100%;
  display: block;
}

/* Screenshot placeholder */
.screenshot-placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.screenshot-placeholder span {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- Compatibility --- */
.compat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 768px) {
  .compat-grid { grid-template-columns: 1fr 1fr; }
}

.compat-section h3 {
  font-size: 1.125rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.compat-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compat-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.compat-tag:hover {
  border-color: var(--brand);
  color: var(--text-primary);
}

/* --- Steps (How It Works) --- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.step {
  text-align: center;
  position: relative;
  counter-increment: step;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--brand-dim);
  border: 2px solid var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
}

.step__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step__text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Connector line between steps (desktop) */
@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(50% + 36px);
    width: calc(100% - 72px);
    height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--border));
  }
}

/* --- Architecture --- */
.architecture__diagram {
  max-width: 700px;
  margin: 0 auto;
}

.architecture__diagram img {
  width: 100%;
}

/* --- About / Ikerlan --- */
.about__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .about__content { grid-template-columns: 2fr 1fr; }
}

.about__text p {
  margin-bottom: 16px;
}

.about__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.about__logos img {
  height: 40px;
  width: auto;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.about__logos img:hover {
  opacity: 1;
}

/* --- Contact CTA --- */
.cta-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--brand);
  border-bottom: 1px solid var(--brand);
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  margin: 0 auto 32px;
  max-width: 560px;
}

.cta-section__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 1fr auto; }
}

.footer__logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__logos img {
  height: 32px;
  width: auto;
  opacity: 0.8;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer__links a {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer__copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.footer__social a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.footer__social a svg {
  width: 16px;
  height: 16px;
}

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

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

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================================
   Lightbox
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.25s ease;
  object-fit: contain;
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s ease;
  padding: 4px 8px;
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox-trigger {
  cursor: zoom-in;
}
