/* ==========================================================================
   KN Innovation - Dark Navy Theme (Cloudflare Pages)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Plus+Jakarta+Sans:wght@500;700;800&display=swap');

:root {
  /* Color Palette - Deep Navy Theme */
  --bg-dark: #0a1128;
  --bg-section-alt: #0f172a;
  --primary: #2563eb;
  --primary-hover: #3b82f6;
  --accent: #38bdf8;
  --accent-light: #7dd3fc;
  --secondary: #030712;
  
  /* Backgrounds & Cards */
  --background: #0a1128;
  --card-bg: #131f37;
  --card-bg-hover: #1c2d4d;
  --glass-bg: rgba(19, 31, 55, 0.75);
  
  /* Text */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #ffffff;
  --border: #1e293b;
  --border-glow: rgba(56, 189, 248, 0.25);
  
  /* Gradients */
  --grad-hero: linear-gradient(135deg, rgba(10, 17, 40, 0.95) 0%, rgba(15, 23, 42, 0.88) 100%);
  --grad-accent: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  --grad-card: linear-gradient(145deg, #131f37 0%, #0d1629 100%);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 40px rgba(2, 132, 199, 0.25);

  /* Dimensions & Transitions */
  --max-width: 1200px;
  --nav-height: 80px;
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

/* Typography Helpers */
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  text-align: center;
  color: #ffffff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  text-align: center;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-lead {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 17, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.logo-badge {
  background: var(--grad-accent);
  color: #fff;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #cbd5e1;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent);
  font-weight: 700;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  background: var(--grad-hero), url('../images/hero_bg.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 7.5rem 1.5rem 6.5rem 1.5rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  background: rgba(56, 189, 248, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.6);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Main Container & Sections */
.section {
  padding: 5.5rem 1.5rem;
  background-color: var(--bg-dark);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--grad-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(56, 189, 248, 0.4);
}

.card-img-wrapper {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  opacity: 0.9;
}

.card:hover .card-img-wrapper img {
  transform: scale(1.05);
  opacity: 1;
}

.card-body {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Company / Mission Section */
.mission-box {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 3.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.mission-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--grad-accent);
}

.mission-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.mission-text {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #e2e8f0;
}

/* Pricing & Plan Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.price-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(145deg, #172647 0%, #0f1a33 100%);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.25rem 1rem;
  border-radius: 50px;
}

.price-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
}

.price-amount {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.price-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Profile Section */
.profile-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  align-items: center;
}

.profile-img-box {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.profile-name {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.profile-role {
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.profile-quote {
  font-size: 1.1rem;
  font-style: italic;
  color: #f1f5f9;
  background: rgba(15, 23, 42, 0.8);
  padding: 1.5rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  line-height: 1.8;
}

/* Specialization List */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.spec-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.spec-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.spec-icon {
  width: 48px;
  height: 48px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.spec-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

/* Footer */
.footer {
  background: #050b1a;
  color: var(--text-light);
  margin-top: auto;
  padding: 4rem 1.5rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-address {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.25rem;
  }
  .profile-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    background: #0a1128;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.4s ease-in-out;
  }
  .nav-menu.open {
    clip-path: circle(140% at 100% 0);
  }
}
