:root {
  --bg: #0a0a0a;
  --bg-secondary: #111111;
  --text: #ffffff;
  --text-muted: #a0a0a0;
  --border: #222222;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* Status indicator - morse code LED */
.status-indicator {
  margin-right: 1rem;
  display: flex;
  align-items: center;
}

.status-indicator .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2a2a2a;
  border: 1px solid #444;
  animation: morse-ERLYQ 8s steps(1) infinite;
}

@keyframes morse-ERLYQ {
  /* E */
  0%, 3.9% { background: #2a2a2a; box-shadow: none; }
  4%, 6.9% { background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px #fff; }
  7%, 11.9% { background: #2a2a2a; box-shadow: none; }
  
  /* R */
  12%, 14.9% { background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px #fff; }
  15%, 17.9% { background: #2a2a2a; box-shadow: none; }
  18%, 20.9% { background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px #fff; }
  21%, 23.9% { background: #2a2a2a; box-shadow: none; }
  24%, 26.9% { background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px #fff; }
  27%, 31.9% { background: #2a2a2a; box-shadow: none; }
  
  /* L */
  32%, 34.9% { background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px #fff; }
  35%, 37.9% { background: #2a2a2a; box-shadow: none; }
  38%, 42.9% { background: #2a2a2a; box-shadow: none; }
  43%, 45.9% { background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px #fff; }
  46%, 48.9% { background: #2a2a2a; box-shadow: none; }
  49%, 51.9% { background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px #fff; }
  52%, 56.9% { background: #2a2a2a; box-shadow: none; }
  
  /* Y */
  57%, 59.9% { background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px #fff; }
  60%, 62.9% { background: #2a2a2a; box-shadow: none; }
  63%, 65.9% { background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px #fff; }
  66%, 68.9% { background: #2a2a2a; box-shadow: none; }
  69%, 71.9% { background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px #fff; }
  72%, 74.9% { background: #2a2a2a; box-shadow: none; }
  75%, 77.9% { background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px #fff; }
  78%, 80.9% { background: #2a2a2a; box-shadow: none; }
  81%, 83.9% { background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px #fff; }
  84%, 100% { background: #2a2a2a; box-shadow: none; }
}

@keyframes breathe {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}
nav { display: flex; align-items: center; gap: 2rem; }
nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
nav a:hover { color: var(--text); }

.lang-switch { display: flex; gap: 0.5rem; }
.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  cursor: pointer;
}
.lang-btn:hover, .lang-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 2px; background: var(--text); }
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  padding: 2rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav.active { display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-nav a { color: var(--text); text-decoration: none; font-size: 1.1rem; }

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, var(--bg) 70%);
}
.hero-logo {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}


}
.hero-tagline { font-size: clamp(1rem, 3vw, 1.5rem); color: var(--text-muted); font-weight: 300; max-width: 560px; }

.hero-actions { margin-top: 1.8rem; display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.25s ease;
}
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(255,255,255,0.1); }

section { padding: 5rem 2rem; max-width: 1200px; margin: 0 auto; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 3rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}
/* Apple-style app cards */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1100px) { .apps-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .apps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .apps-grid { grid-template-columns: 1fr; } }

.app-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.app-card:hover {
  transform: scale(1.03);
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.app-card:hover::before {
  opacity: 1;
}

.app-link {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  height: 100%;
}

.app-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, #ffffff 0%, #e8e8e8 100%);
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d1d1f;
  font-weight: 600;
  font-size: 2rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover .app-icon {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.12);
}

.app-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #f5f5f7;
  letter-spacing: -0.01em;
}

.app-desc {
  color: #86868b;
  font-size: 0.85rem;
  line-height: 1.4;
  max-width: 160px;
}

.philosophy-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.philosophy-text p { color: var(--text-muted); margin-bottom: 1rem; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.stat-item { text-align: center; padding: 2rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; }
.stat-number { font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; }

/* Trust section - Apple style */
.trust-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 1.5rem; 
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 800px) { .trust-grid { grid-template-columns: 1fr; } }

.trust-item { 
  background: var(--bg-secondary); 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  padding: 2rem;
  text-align: left;
  transition: all 0.3s ease;
}

.trust-item:hover { 
  transform: translateY(-5px); 
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.trust-item h3 { 
  margin-bottom: 0.8rem; 
  font-size: 1.1rem; 
  font-weight: 600;
  color: #f5f5f7;
  letter-spacing: -0.01em;
}

.trust-item p { 
  color: #86868b; 
  font-size: 0.9rem; 
  line-height: 1.5; 
}

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; max-width: 800px; margin: 0 auto; }
.team-member { text-align: center; padding: 2.5rem; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 16px; transition: all 0.3s; }
.team-member:hover { transform: translateY(-5px); border-color: var(--text-muted); }
.team-avatar { width: 100px; height: 100px; margin: 0 auto 1.5rem; background: linear-gradient(135deg, #444 0%, #888 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.team-name { font-weight: 600; font-size: 1.3rem; margin-bottom: 0.5rem; }
.team-role { color: var(--text-muted); font-size: 0.95rem; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
/* Apple-style blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card { 
  background: var(--bg-secondary); 
  border: 1px solid var(--border); 
  overflow: hidden; 
  border-radius: 20px; 
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}

.blog-card:hover { 
  transform: scale(1.03); 
  border-color: rgba(255,255,255,0.3);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.blog-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.blog-image { 
  height: 180px; 
  background: linear-gradient(145deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-size: 3rem; 
  color: rgba(255,255,255,0.25);
}

.blog-content { padding: 1.8rem; }
.blog-date { color: #86868b; font-size: 0.8rem; margin-bottom: 0.8rem; font-weight: 500; }
.blog-title { font-weight: 600; font-size: 1.15rem; margin-bottom: 0.8rem; line-height: 1.35; color: #f5f5f7; letter-spacing: -0.01em; }
.blog-excerpt { color: #86868b; font-size: 0.9rem; line-height: 1.5; }

/* Contact section - Apple style */
.contact-section { 
  text-align: center; 
  background: linear-gradient(180deg, var(--bg-secondary) 0%, #0d0d0d 100%);
  border: 1px solid #2d2d2d;
  border-radius: 24px;
  margin: 4rem 2rem;
  padding: 4rem 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.contact-email { 
  font-size: clamp(1.5rem, 4vw, 2rem); 
  color: #fff; 
  text-decoration: none; 
  display: inline-block; 
  margin-bottom: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: all 0.3s ease;
}

.contact-email:hover { 
  color: #2997ff;
}
/* Footer */
footer { 
  padding: 4rem 2rem 3rem; 
  text-align: center; 
  border-top: 1px solid #2d2d2d; 
  color: #86868b; 
  font-size: 0.85rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}

footer p { margin-bottom: 1.5rem; }

.social-links { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; }
.social-link { 
  width: 48px; 
  height: 48px; 
  border: 1px solid #3d3d3d; 
  border-radius: 50%;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: #86868b; 
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.03);
}
.social-link:hover { 
  background: #fff; 
  color: #1d1d1f; 
  border-color: #fff;
  transform: scale(1.1);
}

.scroll-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: linear-gradient(90deg, #fff 0%, #888 100%); z-index: 10001; }
.loader { position: fixed; inset: 0; background: #0a0a0a; display: flex; align-items: center; justify-content: center; z-index: 99999; transition: opacity 0.6s ease, visibility 0.6s ease; }
.loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { width: 50px; height: 50px; border: 2px solid #222; border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .philosophy-content { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  section { padding: 3rem 1rem; }
  .hero { padding: 5rem 1rem 3rem; }
  .stats-grid { grid-template-columns: 1fr; }
}
