/* ============================================================
   SynapSys Software — stylesheet
   Colors derived from logo: deep navy, electric blue, cyan
   ============================================================ */

:root {
  --primary:        #1976D2;
  --primary-light:  #42A5F5;
  --accent:         #00C4D4;
  --dark:           #081524;
  --dark-card:      #0D1F38;
  --dark-border:    rgba(255, 255, 255, 0.08);
  --dark-border-hover: rgba(25, 118, 210, 0.45);
  --light:          #F2F6FB;
  --white:          #FFFFFF;
  --text:           #111827;
  --text-muted:     #6B7280;
  --text-dim:       rgba(255, 255, 255, 0.6);
  --shadow-card:    0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover:   0 12px 40px rgba(25, 118, 210, 0.18);
  --radius:         14px;
  --radius-sm:      8px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h2 { line-height: 1.1; }

/* ── Logo sizing ── */
.nav-logo img  { height: 56px; display: block; }
.hero-logo-img { height: 160px; display: inline-block; margin-bottom: 48px; }

/* ── Navigation ── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
#navbar.scrolled {
  background: rgba(8, 21, 36, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: inline-flex; opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
#navbar.logo-visible .nav-logo { opacity: 1; pointer-events: auto; }
.nav-links {
  display: flex;
  gap: 36px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }

.nav-cta {
  background: var(--primary);
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-light); transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  transition: all 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--dark);
  z-index: 850;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(25, 118, 210, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(25, 118, 210, 0.5); }
.btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

/* ── Hero ── */
#hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 55%, rgba(25, 118, 210, 0.14) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 20%, rgba(0, 196, 212, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 65% 80%, rgba(25, 118, 210, 0.07) 0%, transparent 60%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 30px 30px;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: 80px 40px 0;
}
.hero-tagline {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  line-height: 1.05;
}
.gradient-text {
  background: linear-gradient(110deg, var(--primary-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto 48px;
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.2s;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.hero-scroll:hover { color: rgba(255, 255, 255, 0.5); }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ── Section commons ── */
section { padding: 108px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}
.section-label.light { color: var(--accent); }

section h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 52px;
}
.dark-section h2 { color: var(--white); }

.section-intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 620px;
  margin-bottom: 56px;
}
.section-intro.light { color: var(--text-dim); }

.dark-section { background: var(--dark); }

/* ── Solana badge ── */
.solana-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(153, 69, 255, 0.12);
  border: 1px solid rgba(153, 69, 255, 0.3);
  color: #C084FC;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

/* ── Products ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--dark-border-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.product-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s;
}
.product-top-bar.accent {
  background: linear-gradient(90deg, var(--accent), #7C3AED);
}
.product-card:hover .product-top-bar { opacity: 1; }

.product-image {
  margin: 0 -40px 28px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.product-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.product-title-row h3 { margin-bottom: 0; }
.product-title-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-title-badge h3 { margin-bottom: 0; line-height: 1; }
.product-title-badge .product-badge { position: relative; top: -2px; }
.product-app-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  flex-shrink: 0;
}
.product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}
.product-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
}
.product-badge.live {
  background: rgba(0, 196, 212, 0.12);
  color: var(--accent);
  border: 1px solid rgba(0, 196, 212, 0.3);
}
.product-badge.soon {
  background: rgba(251, 191, 36, 0.1);
  color: #FBBF24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.product-card h3 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.product-title-row h3 { margin-bottom: 0; }
.product-card p {
  flex: 1;
  font-size: 0.93rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 28px;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.product-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(25, 118, 210, 0.14);
  color: var(--primary-light);
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.2s, gap 0.2s;
}
.product-link:hover { color: var(--white); gap: 10px; }

/* ── Story ── */
#story { background: var(--white); }
.story-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 12px;
  letter-spacing: -0.01em;
}
.story-grid {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 72px;
  align-items: start;
}
.story-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}
.story-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.story-text h2 { margin-bottom: 28px; }
.story-text p {
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.story-text p:last-child { margin-bottom: 0; }
.story-consult {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(25, 118, 210, 0.12);
  font-size: 0.92rem !important;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Mission & Values ── */
.mission-section {
  background: var(--light);
  padding: 108px 0;
}
.mission-header {
  max-width: 720px;
  margin-bottom: 64px;
}
.mission-header h2 { margin-bottom: 24px; }
.mission-statement {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-muted);
  font-style: italic;
  padding-left: 20px;
  border-left: 3px solid var(--primary);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--white);
  border: 1px solid rgba(25, 118, 210, 0.1);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.value-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--primary);
}
.value-icon {
  width: 44px;
  height: 44px;
  color: var(--primary);
  margin-bottom: 20px;
}
.value-icon svg { width: 100%; height: 100%; }
.value-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.value-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-intro {
  font-size: 1.02rem;
  color: var(--text-dim);
  line-height: 1.85;
  margin-bottom: 32px;
}
.contact-btn {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--dark-border);
  background: var(--dark-card);
  color: var(--white);
  text-decoration: none;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-btn:hover { transform: translateY(-2px); }
.contact-btn svg { width: 26px; height: 26px; flex-shrink: 0; }
.contact-btn-text { display: flex; flex-direction: column; gap: 3px; }
.contact-btn-label { font-size: 0.95rem; font-weight: 600; }
.contact-btn-handle { font-size: 0.8rem; opacity: 0.5; }
.contact-btn.telegram svg { color: #29B6F6; }
.contact-btn.telegram:hover { border-color: #29B6F6; box-shadow: 0 12px 40px rgba(41, 182, 246, 0.12); }

/* Contact form */
.contact-form { display: flex; flex-direction: column; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
}
.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 15px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.2); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(25, 118, 210, 0.08);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}
.submit-btn { width: 100%; font-size: 0.95rem; padding: 14px; margin-top: 4px; }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
}
.form-feedback.success {
  background: rgba(0, 196, 212, 0.12);
  border: 1px solid rgba(0, 196, 212, 0.3);
  color: var(--accent);
}
.form-feedback.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #F87171;
}
.hidden { display: none !important; }

/* ── Footer ── */
footer {
  background: #040D18;
  padding: 44px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo-link { display: inline-flex; }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255, 255, 255, 0.75); }
.footer-copy {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.25);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .story-grid { grid-template-columns: 180px 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }

  .nav-container { padding: 14px 24px; }
  .container { padding: 0 24px; }
  section { padding: 72px 0; }

  .hero-content { padding: 80px 24px 0; }
  .hero-logo-img { height: 200px; margin-bottom: 32px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 280px; }

  .story-grid { grid-template-columns: 1fr; gap: 36px; }
  .story-photo { height: auto; }

  .products-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-content { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
  .hero-tagline { font-size: 2.5rem; }
  section h2 { font-size: 1.9rem; }
  .contact-btn { padding: 18px 20px; gap: 14px; }
}
