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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  background: #f9f9f9;
}

header {
  background: #1A2744;
  color: white;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

header h1 {
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  color: white;
}

header a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
}

nav {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 24px;
  display: flex;
  gap: 0;
}

nav a {
  display: inline-block;
  padding: 14px 20px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav a:hover,
nav a.active {
  color: #1A2744;
  border-bottom-color: #1A2744;
}

.container {
  max-width: 720px;
  margin: 40px auto;
  padding: 0 24px 80px;
}

h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e0e0e0;
  color: #1A2744;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 28px 0 8px;
  color: #333;
}

p {
  margin-bottom: 12px;
  color: #444;
}

ul, ol {
  padding-left: 24px;
  margin-bottom: 12px;
  color: #444;
}

li {
  margin-bottom: 6px;
}

.updated {
  font-size: 13px;
  color: #888;
  margin-bottom: 28px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

a {
  color: #1A2744;
}

footer {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: #aaa;
}

/* index only */
.hero {
  text-align: center;
  padding: 60px 24px 40px;
}

.hero .app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: #1A2744;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.hero h2 {
  border: none;
  font-size: 28px;
  margin-bottom: 12px;
}

.hero p {
  font-size: 15px;
  color: #666;
  max-width: 400px;
  margin: 0 auto 36px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 620px;
  margin: 0 auto;
}

.link-card {
  background: white;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  text-decoration: none;
  color: #333;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.link-card .icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.link-card .title {
  font-size: 15px;
  font-weight: 700;
  color: #1A2744;
}

/* contact form */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #555;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #333;
  background: #fafafa;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #1A2744;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  background: #1A2744;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.btn:hover {
  background: #243b6e;
}
