/* KTP Portal Styles */
:root {
  --primary: #00897B;
  --primary-dark: #00695C;
  --bg: #F5FAFA;
  --surface: #FFFFFF;
  --text: #1A1C1C;
  --text-muted: #444747;
  --border: #B2DFDB;
  
  --radius: 16px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 100%;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a { color: var(--primary); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--primary-dark); }

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
header {
  padding: 1.5rem 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* Hero */
.hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* App Grid */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
}

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

.app-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s;
  border: 1px solid rgba(0,0,0,0.02);
}

.app-card:hover {
  transform: translateY(-4px);
}

.app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.app-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.app-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-weight: 600;
}

.btn:hover {
  background: var(--primary-dark);
  color: white;
}

/* Footer */
footer {
  margin-top: auto;
  padding: 3rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: white;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-links {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

/* Legal Page */
.legal-content {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
  box-shadow: var(--shadow);
  word-wrap: break-word;
}
.legal-content h1 { margin-bottom: 1.5rem; }
.legal-content h2 { margin: 2rem 0 1rem; }
.legal-content p { margin-bottom: 1rem; }

/* Logo Rebranding */
.logo {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--primary-dark);
  text-decoration: none;
}

@media (max-width: 480px) {
  .logo {
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .logo img {
    width: 24px;
    height: 24px;
    margin-right: 6px;
  }
}

/* Center Logo */
.nav-wrapper {
  justify-content: center;
}
