/* SCS Landing Page */

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

:root {
  --bg: #1a1a2e;
  --bg-card: #16213e;
  --bg-card-hover: #1c2a4a;
  --text: #e0e0e0;
  --text-muted: #8892a4;
  --accent: #7C3AED;
  --accent-glow: rgba(124, 58, 237, 0.3);
  --border: rgba(255, 255, 255, 0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  display: flex;
  justify-content: center;
  padding: 4rem 2rem 1rem;
}

.logo {
  height: 200px;
  width: auto;
  opacity: 0.95;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2rem 2rem 3rem;
  max-width: 680px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.capabilities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.cap-tag {
  display: inline-block;
  background: rgba(124, 58, 237, 0.12);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Projects Section */
.projects {
  text-align: center;
  padding: 2rem 0 0;
  border-top: 1px solid var(--border);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.projects > h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.projects-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* Tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem 4rem;
  flex: 1;
}

.tile {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 32px var(--accent-glow);
  border-color: var(--accent);
}

.tile-screenshot {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.08) 0%, transparent 100%);
}

.tile-screenshot img {
  height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}

.tile-body {
  padding: 1.5rem 2rem 2rem;
}

.tile-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.tile-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.tile h2 {
  font-size: 1.3rem;
  font-weight: 600;
}

.tile p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1rem;
}

.tile-tag {
  display: inline-block;
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

/* Coffee Button */
.coffee-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 221, 0, 0.1);
  color: #ffdd00;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.coffee-btn:hover {
  background: rgba(255, 221, 0, 0.2);
}

.coffee-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  border-top: 1px solid var(--border);
}

footer p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

footer p a {
  color: var(--accent);
  text-decoration: none;
}

footer p a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 600px) {
  .logo {
    height: 150px;
  }

  .hero h2 {
    font-size: 1.3rem;
  }

  .tiles {
    grid-template-columns: 1fr;
    padding: 0 1rem 3rem;
  }

  .tile-screenshot img {
    height: 220px;
  }

  .tile-body {
    padding: 1rem 1.5rem 1.5rem;
  }
}
